Skip to content

Commit

Permalink
fix(Panic): 🐛 Patch panicValue minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefouch committed Sep 26, 2022
1 parent 56a9663 commit e3284b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/roll/panic.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = class PanicCommand extends SebediusCommand {
const panicValue = stress + panicRand - (hasNerves ? 2 : 0);
const panicMin = clamp(minPanic, 0, 15);
const panicLowerThanMin = panicValue < panicMin;
const panicValueMore = panicLowerThanMin ? panicMin + 1 : panicValue;
const panicValueMore = panicLowerThanMin ? panicMin + (minPanic ? 1 : 0) : panicValue;
const panicResult = clamp(panicValueMore, 0, 15);

// @ts-ignore
Expand Down

0 comments on commit e3284b3

Please sign in to comment.