mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-24 11:29:54 +02:00
Fixed so that dice css uses specific results.denomation if available
This commit is contained in:
parent
de0d4ef9b4
commit
e25cf0c4cd
3 changed files with 26 additions and 2 deletions
|
|
@ -84,8 +84,13 @@
|
|||
{{else}}
|
||||
{{#each roll.dice}}
|
||||
{{#each results}}
|
||||
{{debug this}}
|
||||
<div class="roll-die {{#unless (or @../first discarded)}} has-plus{{/unless}}">
|
||||
<div class="dice {{../denomination}}{{#if discarded}} discarded{{else}}{{#if (and @../first ../../roll.advantage.type)}}{{#if (eq ../../roll.advantage.type 1)}} color-adv{{else}} color-dis{{/if}}{{/if}}{{#if success}} color-adv{{/if}}{{/if}}">
|
||||
<div class="
|
||||
dice
|
||||
{{ifThen denomination denomination ../denomination}}
|
||||
{{#if discarded}} discarded{{else}}{{#if (and @../first ../../roll.advantage.type)}}{{#if (eq ../../roll.advantage.type 1)}} color-adv{{else}} color-dis{{/if}}{{/if}}{{#if success}} color-adv{{/if}}{{/if}}
|
||||
">
|
||||
{{result}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue