Skip to content

Commit

Permalink
fix: Change 'other modifiers' to a text field to avoid invisible text.
Browse files Browse the repository at this point in the history
And, in this commit, fix compilation error. I had forgotten I was in the middle of something. :)
  • Loading branch information
xdy committed Nov 8, 2020
1 parent 87f3655 commit 2002cc2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/module/utils/TwodsixRolls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class TwodsixRolls {
}
}

static async rollDamage(item:TwodsixItem | null, showEffect:boolean, actor:TwodsixActor, justRollIt = true, effect = 0, rollMode: string):Promise<any> {
static async rollDamage(item:TwodsixItem | null, showEffect:boolean, actor:TwodsixActor, justRollIt = true, effect = 0, rollMode:string):Promise<any> {
const rollDamage = game.settings.get("twodsix", "automateDamageRollOnHit") || justRollIt;
const success = effect >= 0;
const doesDamage = item?.data?.data?.damage != null;
Expand Down Expand Up @@ -169,10 +169,11 @@ export class TwodsixRolls {
}
if (dataset.skill) {
flavorParts.push(`${dataset.skill}`);
title = dataset.skill;
if (dataset.item) {
title += ` ${game.i18n.localize("TWODSIX.Actor.using")} ${dataset.item}`;
title = `${dataset.skill} ${game.i18n.localize("TWODSIX.Actor.using")} ${dataset.item}`;
flavorParts.push(`${dataset.item}`);
} else {
title = dataset.skill;
}
}

Expand Down

0 comments on commit 2002cc2

Please sign in to comment.