Rename a method for consistency

This commit is contained in:
Johannes Loher 2021-03-18 08:58:35 +01:00
parent b449a20348
commit 9f297149b2

View file

@ -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);
}