mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 04:01:06 +01:00
Merge remote-tracking branch 'origin/main' into refactor/84-data-models-structure
This commit is contained in:
commit
a6acbe750a
368 changed files with 5489 additions and 2581 deletions
|
|
@ -10,6 +10,7 @@
|
|||
<button class="ability-use-button" data-index="{{index}}">
|
||||
{{action.name}}
|
||||
</button>
|
||||
{{#if action.cost.value}}<div class="ability-card-action-cost">{{action.cost.value}} {{action.cost.type}}</div>{{/if}}
|
||||
{{/each}}
|
||||
</footer>
|
||||
</div>
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="abilities-text-container domain">
|
||||
<div ><i data-action="removeCard" data-type="{{card.type}}" data-key="{{card.uuid}}" class="fas fa-trash icon-button row-icon"></i></div>
|
||||
<div class="abilities-card-title">{{card.name}}</div>
|
||||
{{#if inVault}}
|
||||
<div class="abilities-card-description">{{{card.system.effect}}}</div>
|
||||
|
|
|
|||
16
templates/views/resources.hbs
Normal file
16
templates/views/resources.hbs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<div>
|
||||
<div id="resource-fear" class="{{#if isGM}}isGM{{/if}}">
|
||||
{{#if (eq display 'token')}}
|
||||
{{#times max}}
|
||||
<i class="fas fa-skull {{#if (gte @this ../current)}} inactive{{/if}}" style="filter: hue-rotate(calc(({{this}}/{{../max}})*75deg))" data-index="{{this}}" data-action="setFear"></i>
|
||||
{{/times}}
|
||||
{{/if}}
|
||||
{{#if (eq display 'bar')}}
|
||||
{{#if isGM}}<div class="controls control-minus {{#if (lte current 0)}} disabled{{/if}}" data-increment="-1" data-action="increaseFear">-</div>{{/if}}
|
||||
<div class="resource-bar fear-bar" style="--fear-percent: {{percent}}%">
|
||||
<span>{{current}}/{{max}}</span>
|
||||
</div>
|
||||
{{#if isGM}}<div class="controls control-plus {{#if (gte current max)}} disabled{{/if}}" data-increment="+1" data-action="increaseFear">+</div>{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue