Simplify DS4Check.MODIFIERS

This commit is contained in:
Johannes Loher 2021-02-08 02:15:43 +01:00
parent 746d4d7a44
commit fc3f3eb1f3

View file

@ -93,11 +93,6 @@ export class DS4Check extends DiceTerm {
}
}
/** Term Modifiers */
noop(): void {
return;
}
// DS4 only allows recursive explosions
explode(modifier: string): void {
const rgx = /[xX]/;
@ -135,7 +130,7 @@ export class DS4Check extends DiceTerm {
static DENOMINATION = "s";
static MODIFIERS = {
x: "explode",
c: "noop", // Modifier is consumed in constructor for target value
v: "noop", // Modifier is consumed in constructor for target value
c: (): void => undefined, // Modifier is consumed in constructor for crit
v: (): void => undefined, // Modifier is consumed in constructor for target value
};
}