change damage roll label
This commit is contained in:
+4
-8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user