From df381135334570a03215efbdd77663ff8d629d7d Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 20 Mar 2024 21:20:51 -0600 Subject: [PATCH] Simplify logic that I did weirdly for some reason --- module/documents/Item/GenericItem.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/documents/Item/GenericItem.mjs b/module/documents/Item/GenericItem.mjs index d015404..50d1fee 100644 --- a/module/documents/Item/GenericItem.mjs +++ b/module/documents/Item/GenericItem.mjs @@ -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; };