daggerheart/templates/ui/chat/damageSummary.hbs
Gergely Brautigam 9e4d8d637a
add reloading feature
Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
2026-07-14 20:24:19 +02:00

41 lines
No EOL
1.9 KiB
Handlebars

<ul class="daggerheart chat damage-summary">
{{#each targets}}
<li class="token-target-container {{#if this.token.id}}clickable{{/if}}" data-token="{{this.token.id}}">
<header>
<img src="{{this.token.texture.src}}" />
<h2 class="actor-name">{{this.token.name}}</h2>
</header>
<ul class="damage-container">
{{#each this.updates}}
<li class="damage-row">
{{#if this.itemId}}
<span>
{{#if this.clear}}
{{localize "DAGGERHEART.UI.Chat.reloadWeapon" weapon=this.target.name}}
{{else}}
{{localize "DAGGERHEART.UI.Chat.restoreWeaponResource" quantity=this.value weapon=this.target.name}}
{{/if}}
</span>
{{else if (gte this.value 0)}}
<span>
{{
localize "DAGGERHEART.UI.Chat.markResource"
quantity=this.value
resource=(localize (concat "DAGGERHEART.CONFIG.HealingType." this.key ".name"))
}}
</span>
{{else}}
<span>
{{
localize "DAGGERHEART.UI.Chat.clearResource"
quantity=(positive this.value)
resource=(localize (concat "DAGGERHEART.CONFIG.HealingType." this.key ".name"))
}}
</span>
{{/if}}
</li>
{{/each}}
</ul>
</li>
{{/each}}
</ul>