remove commented slaying dice code
This commit is contained in:
parent
98deee1856
commit
7e5a912cf0
1 changed files with 0 additions and 32 deletions
|
@ -95,43 +95,11 @@ export class DS4Check extends DiceTerm {
|
|||
this.fumble = results[0].failure ?? false;
|
||||
}
|
||||
|
||||
// // DS4 only allows recursive explosions
|
||||
// explode(modifier: string): void {
|
||||
// const rgx = /[xX]/;
|
||||
// const match = modifier.match(rgx);
|
||||
// if (!match) return;
|
||||
|
||||
// this.results = (this.results as Array<RollResult>)
|
||||
// .map((r) => {
|
||||
// const intermediateResults = [r];
|
||||
|
||||
// let checked = 0;
|
||||
// while (checked < intermediateResults.length) {
|
||||
// const r = intermediateResults[checked];
|
||||
// checked++;
|
||||
// if (!r.active) continue;
|
||||
|
||||
// if (r.dice[0] <= this.maxCritSuccess) {
|
||||
// r.exploded = true;
|
||||
// const newRoll = this.rollWithDifferentBorders({}, true);
|
||||
// intermediateResults.push(newRoll);
|
||||
// }
|
||||
|
||||
// if (checked > 1000) throw new Error(game.i18n.localize("DS4.ErrorExplodingRecursionLimitExceeded"));
|
||||
// }
|
||||
// return intermediateResults;
|
||||
// })
|
||||
// .reduce((acc, cur) => {
|
||||
// return acc.concat(cur);
|
||||
// }, []);
|
||||
// }
|
||||
|
||||
static readonly DEFAULT_CHECK_TARGET_NUMBER = 10;
|
||||
static readonly DEFAULT_MAXIMUM_COUP_RESULT = 1;
|
||||
static readonly DEFAULT_MINIMUM_FUMBLE_RESULT = 20;
|
||||
static DENOMINATION = "s";
|
||||
static MODIFIERS = {
|
||||
//x: "explode",
|
||||
c: (): void => undefined, // Modifier is consumed in constructor for crit
|
||||
v: "evaluateResults",
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue