Added Resource capability to armor items

This commit is contained in:
WBHarry 2026-07-03 16:08:55 +02:00
parent eccab6ad64
commit 4e3721aae8
3 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,8 @@ export default class DHArmor extends AttachableItem {
type: 'armor',
hasDescription: true,
isInventoryItem: true,
hasActions: true
hasActions: true,
hasResource: true
});
}

View file

@ -30,7 +30,6 @@
collection=@root.inventory.armor
isGlassy=true
canCreate=@root.editable
hideResources=true
}}
{{> 'daggerheart.inventory-items'
title='TYPES.Item.consumable'

View file

@ -19,4 +19,6 @@
{{ formField systemFields.baseThresholds.fields.severe value=source.system.baseThresholds.severe label=(localize "DAGGERHEART.ITEMS.Armor.baseThresholds.severe") }}
</div>
</fieldset>
{{> "systems/daggerheart/templates/sheets/global/partials/resource-section/resource-section.hbs" }}
</section>