Fixed character sheet armor update

This commit is contained in:
WBHarry 2026-02-10 22:30:55 +01:00
parent aef3d3cd04
commit 81e61a7386
2 changed files with 16 additions and 13 deletions

View file

@ -35,9 +35,9 @@
{{#if useResourcePips}}
<div class='slot-value'>
<div class="slot-bar">
{{#times document.system.armorScore}}
<a class='armor-slot' data-action='toggleArmor' data-value="{{add this 1}}">
{{#if (gte ../document.system.armor.system.marks.value (add this 1))}}
{{#times document.system.armorScore.max}}
<a class='armor-slot' data-action='toggleArmor' data-value="{{add this 1}}">
{{#if (gte ../document.system.armorScore.value (add this 1))}}
<i class="fa-solid fa-shield"></i>
{{else}}
<i class="fa-solid fa-shield-halved"></i>
@ -47,7 +47,7 @@
</div>
<div class="slot-label">
<span class="label">{{localize "DAGGERHEART.GENERAL.armorSlots"}}</span>
<span class="value">{{document.system.armor.system.marks.value}} / {{document.system.armorScore}}</span>
<span class="value">{{document.system.armorScore.value}} / {{document.system.armorScore.max}}</span>
</div>
</div>
{{else}}