Merge remote-tracking branch 'origin/main' into refactor/84-data-models-structure

This commit is contained in:
Joaquin Pereyra 2025-06-01 15:31:29 -03:00
commit a6acbe750a
368 changed files with 5489 additions and 2581 deletions

View file

@ -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>

View file

@ -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>

View 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>