Correct the way that the successes are counted
This commit is contained in:
parent
82816d8915
commit
1afffb0a73
1 changed files with 2 additions and 3 deletions
|
|
@ -43,12 +43,11 @@ export class CryptDie extends Die {
|
|||
}
|
||||
};
|
||||
|
||||
// Count successes and deduct failures from total
|
||||
// Count successes
|
||||
await this.countSuccess(`cs>=${target}`);
|
||||
await this.deductFailures(`df<${target}`);
|
||||
};
|
||||
|
||||
get total() {
|
||||
return Math.max(super.total, 0);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue