From 2eaef15060b4d64e7c65c16ceac10fd34cb1ff85 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Sat, 18 Jul 2026 17:15:21 -0400 Subject: [PATCH] Fixes for direct damage and simplification --- templates/ui/chat/parts/damage-part.hbs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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)}}