diff --git a/Emberwind/emberwind.html b/Emberwind/emberwind.html index 1fd7a25f44..f8bcf3231c 100644 --- a/Emberwind/emberwind.html +++ b/Emberwind/emberwind.html @@ -235,6 +235,7 @@
+
Damage Modifiers
@@ -738,7 +739,7 @@ style="width: 25px; height: 25px"/> y
@@ -822,7 +823,7 @@ style="width: 25px; height: 25px"/> y @@ -923,7 +924,7 @@ y @@ -1189,7 +1190,7 @@ y @@ -5288,7 +5289,18 @@ return "kh1"; } }; - + on("sheet:opened change:damage_bonus_mod change:damage_dice_mod", function () { + getAttrs(['damage_bonus_mod','damage_dice_mod'], function(values) { + let mod_text = ""; + if (values.damage_bonus_mod && values.damage_bonus_mod !== "0") { + mod_text = " + @{damage_bonus_mod}"; + } + if (values.damage_dice_mod && values.damage_dice_mod !== "") { + mod_text = mod_text + " + @{damage_dice_mod}"; + } + setAttrs({damage_mod_text: mod_text}); + }); + }); on("clicked:reset_mods", function() { setAttrs({ "advantage_stack": 0,