daggerheart/templates/chat/damage-roll.hbs
IrkTheImp 7c792f409f
Issue 80 Chatmessage fix (#81)
* fix chatmessage to render the template in constructor. Update namespaces.

* update all chat messages to render templates
2025-05-30 11:13:08 +02:00

32 lines
No EOL
1.5 KiB
Handlebars

<div class="dice-roll daggerheart chat roll" data-action="expandRoll">
<div class="dice-flavor">{{this.title}}</div>
<div class="dice-result">
<div class="dice-formula">{{this.roll}}</div>
<div class="dice-tooltip">
<div class="wrapper">
<section class="tooltip-part">
{{#each dice}}
<div class="dice">
<header class="part-header flexrow">
<span class="part-formula">{{this.rolls.length}}{{this.type}}</span>
<span class="part-total">{{this.rollTotal}}</span>
</header>
<ol class="dice-rolls">
{{#each this.rolls}}
<li class="roll die {{../type}} min">{{this}}</li>
{{/each}}
</ol>
</div>
{{/each}}
</section>
</div>
</div>
<div class="dice-total">{{this.damage.total}}</div>
<div class="dice-actions">
<button class="damage-button" data-target-hit="true" {{#if (eq this.targets.length 0)}}disabled{{/if}}>{{localize "DAGGERHEART.Chat.DamageRoll.DealDamageToTargets"}}</button>
<button class="damage-button">{{localize "DAGGERHEART.Chat.DamageRoll.DealDamage"}}</button>
</div>
</div>
</div>