change damage roll label

This commit is contained in:
TheLastScrub
2023-10-01 15:50:41 -07:00
parent 4a34dac082
commit 979dbf1df4
+4 -8
View File
@@ -504,14 +504,10 @@ export class DGDamageRoll extends DGRoll {
this.options.rollMode || game.settings.get("core", "rollMode");
let label = this.formula;
try {
label = `${this.item.name}: ${game.i18n.localize(
"DG.Roll.Rolling",
)} <b>${game.i18n
.localize("DG.Roll.Damage")
.toUpperCase()}</b> ${game.i18n.localize(
"DG.Roll.For",
)} <b>${label.toUpperCase()}</b>`;
} catch {
label = `${game.i18n.localize("DG.Roll.Rolling",)} <b>${game.i18n.localize("DG.Roll.Damage").
toUpperCase()}</b> ${game.i18n.localize("DG.Roll.For",)} ${this.item.name}`;
} catch(ex) {
//console.log(ex);
label = `Rolling <b>DAMAGE</b> for <b>${label.toUpperCase()}</b>`;
}
return this.createMessage(this.total, label, rollMode);