Simplify DS4Check.MODIFIERS
This commit is contained in:
parent
746d4d7a44
commit
fc3f3eb1f3
1 changed files with 2 additions and 7 deletions
|
@ -93,11 +93,6 @@ export class DS4Check extends DiceTerm {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Term Modifiers */
|
|
||||||
noop(): void {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// DS4 only allows recursive explosions
|
// DS4 only allows recursive explosions
|
||||||
explode(modifier: string): void {
|
explode(modifier: string): void {
|
||||||
const rgx = /[xX]/;
|
const rgx = /[xX]/;
|
||||||
|
@ -135,7 +130,7 @@ export class DS4Check extends DiceTerm {
|
||||||
static DENOMINATION = "s";
|
static DENOMINATION = "s";
|
||||||
static MODIFIERS = {
|
static MODIFIERS = {
|
||||||
x: "explode",
|
x: "explode",
|
||||||
c: "noop", // Modifier is consumed in constructor for target value
|
c: (): void => undefined, // Modifier is consumed in constructor for crit
|
||||||
v: "noop", // Modifier is consumed in constructor for target value
|
v: (): void => undefined, // Modifier is consumed in constructor for target value
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue