feat: add resources to weapons

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
This commit is contained in:
Gergely Brautigam 2026-07-02 19:56:17 +02:00
parent 8c6a470d84
commit cdc507c5f7
No known key found for this signature in database
GPG key ID: 3763870D61A6E2CA
7 changed files with 38 additions and 9 deletions

View file

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

View file

@ -17,6 +17,11 @@
{{!-- Item Name --}}
<span class="item-name">{{localize item.name}}</span>
{{!-- Resource --}}
{{#if (and (eq type 'weapon') item.system.resource)}}
{{> "systems/daggerheart/templates/sheets/global/partials/item-resource.hbs"}}
{{/if}}
{{!-- Tags Start --}}
{{#with item}}
<div class="item-labels">

View file

@ -45,4 +45,5 @@
<span>{{localize "TYPES.Item.feature"}}</span>
<input type="text" class="features-input" value="{{features}}" />
</fieldset>
{{> "systems/daggerheart/templates/sheets/global/partials/resource-section/resource-section.hbs" }}
</section>