Use isInventoryItem to set quantity

This commit is contained in:
Carlos Fernandez 2026-04-16 05:07:08 -04:00
parent dc3390711f
commit aa8e8678fa
5 changed files with 4 additions and 6 deletions

View file

@ -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;