[Feature] add resources to weapons (#2058)

* feat: add resources to weapons

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>

* remove sidebar resource view

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>

---------

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
This commit is contained in:
Gergely Bräutigam 2026-07-03 11:05:28 +02:00 committed by GitHub
parent b3d96c25d9
commit 44dd3bd2e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 8 deletions

View file

@ -2,11 +2,17 @@
## Table of Contents ## Table of Contents
- [Overview](#overview) - [Foundryborne Daggerheart](#foundryborne-daggerheart)
- [User Install Guide](#user-install) - [Table of Contents](#table-of-contents)
- [Documentation](#documentation) - [Overview](#overview)
- [Developer Setup](#development-setup) - [User Install](#user-install)
- [Contribution Info](#contributing) - [Documentation](#documentation)
- [Development Setup](#development-setup)
- [Available Scripts](#available-scripts)
- [Notes](#notes)
- [Contributing](#contributing)
- [AI Policy](#ai-policy)
- [Disclaimer](#disclaimer)
## Overview ## Overview
@ -72,7 +78,7 @@ Looking to contribute to the project? Look no further, check out our [contributi
The Foundryborne Daggerheart system does not make use of AI (generative or otherwise) for any area of its implementation. We expect all contributors to follow this same policy when contributing with a pull request; contributions made using AI will be rejected outright. The Foundryborne Daggerheart system does not make use of AI (generative or otherwise) for any area of its implementation. We expect all contributors to follow this same policy when contributing with a pull request; contributions made using AI will be rejected outright.
## Disclaimer: ## Disclaimer
**Daggerheart System** **Daggerheart System**
Daggerheart is a trademark of Darrington Press LLC. All original content, mechanics, and intellectual property related to the Daggerheart roleplaying game are © Darrington Press LLC. Daggerheart is a trademark of Darrington Press LLC. All original content, mechanics, and intellectual property related to the Daggerheart roleplaying game are © Darrington Press LLC.

View file

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

View file

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

View file

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