mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
[Feature] Make all item types quantifiable in the party (#1808)
* Show notification when invalid item types are added to actors * Make all item types quantifiable in the party actor * Remove from comment * Use isInventoryItem to set quantity * Fix formatting
This commit is contained in:
parent
d9b322406d
commit
2fde61a1d5
12 changed files with 85 additions and 46 deletions
|
|
@ -66,6 +66,7 @@ Parameters:
|
|||
showLabels=../showLabels
|
||||
isAction=../isAction
|
||||
hideResources=../hideResources
|
||||
isQuantifiable=../isQuantifiable
|
||||
showActions=../showActions
|
||||
}}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,10 +63,10 @@ Parameters:
|
|||
{{#if (and (not hideResources) (not (eq item.system.resource.type 'diceValue')))}}
|
||||
{{> "systems/daggerheart/templates/sheets/global/partials/item-resource.hbs"}}
|
||||
{{/if}}
|
||||
{{#if (and (not hideResources) (gte item.system.quantity 0))}}
|
||||
<div class="item-resource">
|
||||
<input type="number" id="{{item.uuid}}-quantity" class="inventory-item-quantity" value="{{item.system.quantity}}" min="0" />
|
||||
</div>
|
||||
{{#if (or isQuantifiable (or (eq item.system.quantity 0) (gt item.system.quantity 1)))}}
|
||||
<div class="item-resource">
|
||||
<input type="number" id="{{item.uuid}}-quantity" class="inventory-item-quantity" value="{{item.system.quantity}}" min="0" />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{!-- Controls --}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue