mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
* Some tests * Filter types choices * Resource/Uses max as FormulaField * Removed isReversed on item resources * Stuffs --------- Co-authored-by: WBHarry <williambjrklund@gmail.com>
30 lines
No EOL
1.3 KiB
Handlebars
30 lines
No EOL
1.3 KiB
Handlebars
<fieldset class="one-column">
|
|
<legend>{{localize 'DAGGERHEART.GENERAL.Cost.single'}}</legend>
|
|
<ul>
|
|
{{#if uses}}
|
|
<li class="scalable-input">
|
|
<div class="form-group">
|
|
<div class="form-fields nest-inputs">
|
|
<input name="uses.enabled" type="checkbox"{{#if uses.enabled}} checked{{/if}}>
|
|
<label for="uses.enabled">Uses</label>
|
|
</div>
|
|
</div>{{log @root}}
|
|
<label class="modifier-label">{{uses.value}}/{{formulaValue uses.max @root.rollConfig.data}}</label>
|
|
</li>
|
|
{{/if}}
|
|
{{#each costs as | cost index |}}
|
|
<li class="scalable-input">
|
|
<div class="form-group">
|
|
<div class="form-fields nest-inputs">
|
|
<input name="costs.{{index}}.enabled" type="checkbox"{{#if enabled}} checked{{/if}}>
|
|
<label>{{label}}</label>
|
|
</div>
|
|
</div>
|
|
{{#if (and scalable (gt maxStep 1))}}
|
|
<input type="range" value="{{scale}}" min="1" max="{{maxStep}}" step="1" name="costs.{{index}}.scale">
|
|
{{/if}}
|
|
<label class="modifier-label">{{total}}/{{max}}</label>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</fieldset> |