mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
* Action Refactor Part #1 * Fixed Weapon/Armor features. Fixed Feature actions * f * Action Refactor Part #2 * Fixes * Remove ActionsField from Companion * Fixes * Localization fix * BaseDataItem hasActions false --------- Co-authored-by: WBHarry <williambjrklund@gmail.com>
61 lines
No EOL
2.9 KiB
Handlebars
61 lines
No EOL
2.9 KiB
Handlebars
<div class="dice-roll daggerheart chat roll" data-action="expandRoll">
|
|
<div class="dice-flavor">{{title}}</div>
|
|
<div class="dice-result">
|
|
<div class="dice-formula">{{roll.formula}}</div>
|
|
<div class="dice-tooltip">
|
|
<div class="wrapper">
|
|
<section class="tooltip-part">
|
|
<div class="dice">
|
|
{{#each roll.dice as | dice index |}}
|
|
<header class="part-header flexrow">
|
|
<span class="part-formula">{{formula}}</span>
|
|
<span class="part-total">{{total}}</span>
|
|
</header>
|
|
<div class="flexrow">
|
|
<ol class="dice-rolls rerollable">
|
|
{{#if dice.rerolled.any}}
|
|
<i class="fa-solid fa-dice dice-rerolled" title="{{localize "DAGGERHEART.UI.Tooltip.diceIsRerolled" times=dice.rerolled.rerolls.length}}"></i>
|
|
{{/if}}
|
|
<button type="checkbox" class="reroll-button" data-die-index="0" data-tooltip="{{localize "DAGGERHEART.GENERAL.reroll"}}">
|
|
{{#each results as |result index|}}
|
|
<li class="roll die {{../dice}}{{#if discarded}} discarded{{/if}} min">{{result.result}}</li>
|
|
{{/each}}
|
|
</button>
|
|
</ol>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<div class="dice-total">
|
|
<div class="dice-total-value">{{roll.total}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<fieldset class="dice-roll daggerheart chat roll expanded{{#unless damage.roll}} hidden{{/unless}}" data-action="expandRoll">
|
|
<legend class="dice-flavor">{{localize "DAGGERHEART.GENERAL.damage"}}</legend>
|
|
<div class="dice-result">
|
|
<div class="dice-tooltip">
|
|
<div class="wrapper">
|
|
{{> 'systems/daggerheart/templates/ui/chat/parts/damage-chat.hbs' damage=damage noTitle=true}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
{{> 'systems/daggerheart/templates/ui/chat/parts/target-chat.hbs'}}
|
|
{{#if hasDamage}}
|
|
<div class="dice-roll daggerheart chat roll">
|
|
<div class="dice-result">
|
|
{{#if damage.roll}}
|
|
<div class="dice-actions">
|
|
<button class="damage-button">{{localize "DAGGERHEART.UI.Chat.damageRoll.dealDamage"}}</button>
|
|
</div>
|
|
{{else}}
|
|
<div class="flexrow">
|
|
<button class="duality-action duality-action-damage" data-value="{{roll.total}}"><span>{{localize "DAGGERHEART.UI.Chat.damageRoll.rollDamage"}}</span></button>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{/if}} |