daggerheart/templates/dialogs/groupRollDialog/parts/result.hbs
2026-04-21 18:33:24 -04:00

29 lines
No EOL
1.1 KiB
Handlebars

{{#if hasRolled}}
<div class="group-roll-results with-result {{groupRoll.totalDualityClass}}">
<div class="row leader">
<span class="label">Leader Roll</span>
<span class="duality-label">
{{leader.roll.total}}
<span class="with">{{localize "DAGGERHEART.GENERAL.withThing" thing=leader.roll.totalLabel}}</span>
</span>
</div>
<div class="row modifiers">
<span class="label">Modifiers</span>
<div class="item-tags">
{{#each groupRoll.modifiers as |modifier|}}
<span class="tag">{{#if (gte modifier 0)}}+{{else}}-{{/if}}{{positive modifier}}</span>
{{/each}}
</div>
</div>
<div class="divider"></div>
<div class="row total">
<span class="label">Total</span>
<span class="duality-label"><span class="value">{{groupRoll.total}}</span> {{groupRoll.totalLabel}}</span>
</div>
</div>
{{else}}
<div class="group-roll-results empty">
Results will appear when characters roll
</div>
{{/if}}