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', type: 'armor',
hasDescription: true, hasDescription: true,
isInventoryItem: true, isInventoryItem: true,
hasActions: true hasActions: true,
hasResource: true
}); });
} }

View file

@ -30,7 +30,6 @@
collection=@root.inventory.armor collection=@root.inventory.armor
isGlassy=true isGlassy=true
canCreate=@root.editable canCreate=@root.editable
hideResources=true
}} }}
{{> 'daggerheart.inventory-items' {{> 'daggerheart.inventory-items'
title='TYPES.Item.consumable' 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") }} {{ formField systemFields.baseThresholds.fields.severe value=source.system.baseThresholds.severe label=(localize "DAGGERHEART.ITEMS.Armor.baseThresholds.severe") }}
</div> </div>
</fieldset> </fieldset>
{{> "systems/daggerheart/templates/sheets/global/partials/resource-section/resource-section.hbs" }}
</section> </section>