mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Leader roll displays the large result display right away after rolling
This commit is contained in:
parent
56d0776811
commit
d71df40b60
1 changed files with 11 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<h4 class="divider group-roll-header first">
|
||||
<label>{{localize "DAGGERHEART.UI.Chat.groupRoll.leader"}}</label>
|
||||
</h4>
|
||||
<div class="group-roll-content {{#unless (isNullish system.leader.manualSuccess)}}finished{{/unless}}">
|
||||
<div class="group-roll-content {{#if system.leader.result}}finished{{/if}}">
|
||||
<div class="group-roll-member">
|
||||
<div class="group-roll-data">
|
||||
<img src="{{system.leader.actor.img}}" />
|
||||
|
|
@ -22,11 +22,9 @@
|
|||
<a class="group-roll-button" data-path="leader"><img class="dice-icon normal" src="{{concat 'systems/daggerheart/assets/icons/dice/default/d20.svg'}}" alt=""></a>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="roll-results {{#unless (isNullish system.leader.manualSuccess)}}finished{{/unless}}">
|
||||
<div class="roll-results {{#if system.leader.result}}finished{{/if}}">
|
||||
{{#if (isNullish system.leader.manualSuccess)}}
|
||||
<div class="reroll-result-container">
|
||||
<span class="label">{{system.leader.result.total}}</span>
|
||||
|
||||
<a class="group-roll-success success" data-success="true" data-path="leader"><i class="fa-solid fa-check"></i></a>
|
||||
<a class="group-roll-success failure" data-path="leader"><i class="fa-solid fa-xmark"></i></a>
|
||||
</div>
|
||||
|
|
@ -47,17 +45,23 @@
|
|||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
{{#unless (isNullish system.leader.manualSuccess)}}
|
||||
{{#if system.leader.result}}
|
||||
<div class="group-roll-main-roll">
|
||||
<h4 class="divider">
|
||||
{{localize "DAGGERHEART.UI.Chat.dualityRoll.abilityCheckTitle" ability=(localize (concat "DAGGERHEART.CONFIG.Traits." system.leader.trait ".name"))}}
|
||||
</h4>
|
||||
<span class="main-roll-content">
|
||||
<span class="main-value">{{system.leader.result.total}}{{#unless (isNullish system.totalModifier)}} {{#if (gte system.totalModifier 0)}}+{{else}}-{{/if}} {{positive system.totalModifier}}{{/unless}}</span>
|
||||
<span class="main-value">
|
||||
{{system.leader.result.total}}
|
||||
{{#unless (isNullish system.totalModifier)}}
|
||||
{{#if (gte system.totalModifier 0)}}+{{else}}-{{/if}}
|
||||
{{positive system.totalModifier}} = {{add system.leader.result.total system.totalModifier}}
|
||||
{{/unless}}
|
||||
</span>
|
||||
<span class="main-text">{{localize "DAGGERHEART.GENERAL.withThing" thing=system.leader.result.result.label}}</span>
|
||||
</span>
|
||||
</div>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="group-roll-section">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue