.dungeon/module/documents/Item/GenericItem.mjs

12 lines
294 B
JavaScript

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