Stressful task

This commit is contained in:
Nikhil Nagarajan 2025-11-08 16:48:43 -05:00
parent c887f82e3f
commit 3334baef11
2 changed files with 25 additions and 20 deletions

View file

@ -24,15 +24,11 @@
<span class='slot {{#if (gte ../document.system.resources.hitPoints.value (add this 1))}}filled{{/if}}' data-action='toggleHitPoints' data-value="{{add this 1}}">
</span>
{{/times}}
</div> {{!--
<p><input class="bar-input" name="system.resources.hitPoints.value" min="0" max='{{document.system.resources.hitPoints.max}}'
value="{{document.system.resources.hitPoints.value}}" type="number"></p>
<p>/</p>
<p class="bar-label">{{document.system.resources.hitPoints.max}}</p> --}}
</div>
</div>
<div class='progress-bar'>
</div>
<div
class='progress-bar'
></div>
<div class="status-label">
<h4><span>{{localize "DAGGERHEART.GENERAL.HitPoints.short"}}</span><span>|</span>
<span>{{document.system.resources.hitPoints.value}} / {{document.system.resources.hitPoints.max}}</span></h4>
@ -41,19 +37,17 @@
</div>
<div class="status-bar">
<div class='status-value'>
<p><input class="bar-input" name="system.resources.stress.value" min="0" max='{{document.system.resources.stress.max}}'
value="{{document.system.resources.stress.value}}" type="number"></p>
<p>/</p>
<p class="bar-label">{{document.system.resources.stress.max}}</p>
<div class="slot-bar">
{{#times document.system.resources.stress.max}}
<span class='slot {{#if (gte ../document.system.resources.stress.value (add this 1))}}filled{{/if}}' data-action='toggleStress' data-value="{{add this 1}}">
</span>
{{/times}}
</div>
</div>
<progress
class='progress-bar stress-color'
value='{{document.system.resources.stress.value}}'
min="0"
max='{{document.system.resources.stress.max}}'
></progress>
<div class="progress-bar"></div>
<div class="status-label">
<h4>{{localize "DAGGERHEART.GENERAL.stress"}}</h4>
<h4>{{localize "DAGGERHEART.GENERAL.stress"}}</span><span>|</span>
<span>{{document.system.resources.stress.value}} / {{document.system.resources.stress.max}}</span></h4>
</div>
</div>
</div>