mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 07:36:26 +01:00
16 lines
No EOL
970 B
Handlebars
16 lines
No EOL
970 B
Handlebars
<div>
|
|
<div class="resource-items">
|
|
{{#times (rollParsed item.resource.max actor item numerical=true)}}
|
|
{{#with (ifThen (lookup ../diceStates this) (lookup ../diceStates this) this) as | state |}}
|
|
<div class="resource-item" data-dice="{{#if ../../this}}{{../this}}{{else}}{{state}}{{/if}}">
|
|
<input type="number" data-dtype="Number" name={{concat "diceStates." (ifThen ../../this ../this state) ".value" }} value="{{state.value}}" />
|
|
<img src="{{concat "systems/daggerheart/assets/icons/dice/hope/d" (ifThen ../../item.resource.dieFaces ../../item.resource.dieFaces ../item.resource.dieFaces) ".svg"}}" />
|
|
</div>
|
|
{{/with}}
|
|
{{/times}}
|
|
</div>
|
|
<footer>
|
|
<button data-action="save">{{localize 'Save'}}</button>
|
|
<button data-action="rerollDice">{{localize "DAGGERHEART.APPLICATIONS.ResourceDice.rerollDice"}}</button>
|
|
</footer>
|
|
</div> |