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
|
|
@ -19,7 +19,8 @@ export default class DhCharacter extends DhCreature {
|
|||
type: 'character',
|
||||
settingSheet: DHCharacterSettings,
|
||||
isNPC: false,
|
||||
hasInventory: true
|
||||
hasInventory: true,
|
||||
quantifiable: ["loot", "consumable"]
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@ export default class DhParty extends BaseDataActor {
|
|||
/** @inheritdoc */
|
||||
static get metadata() {
|
||||
return foundry.utils.mergeObject(super.metadata, {
|
||||
hasInventory: true
|
||||
hasInventory: true,
|
||||
quantifiable: ["weapon", "armor", "loot", "consumable"]
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue