Simplify logic that I did weirdly for some reason

This commit is contained in:
Oliver-Akins 2024-03-20 21:20:51 -06:00
parent 6db5818184
commit df38113533

View file

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