diff --git a/templates/ui/chat/parts/damage-part.hbs b/templates/ui/chat/parts/damage-part.hbs index ab27187d..7d6d983d 100644 --- a/templates/ui/chat/parts/damage-part.hbs +++ b/templates/ui/chat/parts/damage-part.hbs @@ -11,7 +11,7 @@
{{#if damage.main}} - {{> formula roll=damage.main label=(ifThen hasHealing (localize "DAGGERHEART.GENERAL.healing") (localize "DAGGERHEART.GENERAL.damage")) }} + {{> formula roll=damage.main label=(localize "DAGGERHEART.GENERAL.damage") }} {{/if}} {{#each damage.resources as | roll index | }} {{> formula roll=roll label=(ifThen ../hasHealing (localize (concat 'DAGGERHEART.CONFIG.HealingType.' index '.name')) (localize (concat 'DAGGERHEART.CONFIG.HealingType.' index '.inChatRoll'))) }} @@ -20,20 +20,15 @@
-
+
{{#if damage.main}} - {{> damage - label=(ifThen hasHealing (localize "DAGGERHEART.GENERAL.healing") (localize "DAGGERHEART.GENERAL.damage")) - roll=damage.main - index=0 - }} + {{> damage label=(localize "DAGGERHEART.GENERAL.damage") roll=damage.main isDirect=isDirect }} {{/if}} {{#each damage.resources as | roll index | }} {{> damage label=(ifThen ../hasHealing (localize (concat 'DAGGERHEART.CONFIG.HealingType.' index '.name')) (localize (concat 'DAGGERHEART.CONFIG.HealingType.' index '.inChatRoll'))) - roll=roll - index=index + roll=roll isResource=true }} {{/each}} @@ -50,7 +45,7 @@
{{label}} -
{{localize "DAGGERHEART.GENERAL.total"}}: {{roll.total}}
{{#if (and (eq index "hitPoints") ../isDirect)}}
{{localize "DAGGERHEART.CONFIG.DamageType.direct.short"}}
{{/if}} +
{{localize "DAGGERHEART.GENERAL.total"}}: {{roll.total}}
{{#if isDirect}}
{{localize "DAGGERHEART.CONFIG.DamageType.direct.short"}}
{{/if}}
{{#if (and (not @root.hasHealing) roll.options.damageTypes.length)}}