mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-22 07:23:37 +02:00
Use isInventoryItem to set quantity
This commit is contained in:
parent
dc3390711f
commit
aa8e8678fa
5 changed files with 4 additions and 6 deletions
|
|
@ -81,6 +81,9 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
|||
);
|
||||
}
|
||||
|
||||
if (this.metadata.isInventoryItem)
|
||||
schema.quantity = new fields.NumberField({ integer: true, initial: 1, min: 0, required: true });
|
||||
|
||||
if (this.metadata.hasActions) schema.actions = new ActionsField();
|
||||
|
||||
return schema;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue