Make all item types quantifiable in the party actor

This commit is contained in:
Carlos Fernandez 2026-04-16 02:02:26 -04:00
parent 76a3268cf3
commit 9aab9fca52
13 changed files with 91 additions and 45 deletions

View file

@ -7,7 +7,6 @@ export default class DHLoot extends BaseDataItem {
label: 'TYPES.Item.loot',
type: 'loot',
hasDescription: true,
isQuantifiable: true,
isInventoryItem: true,
hasActions: true
});
@ -15,8 +14,10 @@ export default class DHLoot extends BaseDataItem {
/** @inheritDoc */
static defineSchema() {
const fields = foundry.data.fields;
return {
...super.defineSchema()
...super.defineSchema(),
quantity: new fields.NumberField({ integer: true, initial: 1, min: 0, required: true }),
};
}