.dungeon/module/documents/Item/GenericItem.mjs
2024-03-20 21:20:51 -06:00

12 lines
295 B
JavaScript

export class DotDungeonItem extends Item {
get usedCapacity() {
let capacity = 0;
if (this.system.uses_inventory_slot && this.system.quantity > 0) {
capacity = 1;
};
if (this.system.quantity_affects_used_capacity) {
capacity = this.system.quantity;
};
return capacity;
};
};