Rename a method for consistency
This commit is contained in:
parent
b449a20348
commit
9f297149b2
1 changed files with 4 additions and 2 deletions
|
@ -33,7 +33,9 @@ class CheckFactory {
|
|||
private options: DS4CheckFactoryOptions;
|
||||
|
||||
async execute(): Promise<ChatMessage> {
|
||||
const innerFormula = ["ds", this.createTargetNumberModifier(), this.createCoupFumbleModifier()].filterJoin("");
|
||||
const innerFormula = ["ds", this.createCheckTargetNumberModifier(), this.createCoupFumbleModifier()].filterJoin(
|
||||
"",
|
||||
);
|
||||
const formula = this.options.useSlayingDice ? `{${innerFormula}}x` : innerFormula;
|
||||
const roll = Roll.create(formula);
|
||||
|
||||
|
@ -43,7 +45,7 @@ class CheckFactory {
|
|||
);
|
||||
}
|
||||
|
||||
createTargetNumberModifier(): string | null {
|
||||
createCheckTargetNumberModifier(): string | null {
|
||||
return "v" + (this.checkTargetNumber + this.gmModifier);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue