From db229dcf74d4207a51537b60b0fb009db3c97935 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 7 Feb 2024 16:04:41 -0600 Subject: [PATCH] 1000 unit missed spot --- src/engine/objects/CharacterItemManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index ab682ece..964e97ef 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -2098,7 +2098,7 @@ public class CharacterItemManager { if (this.absCharacter.getObjectType() == GameObjectType.PlayerCharacter) { PlayerCharacter pc = (PlayerCharacter) this.absCharacter; int newWeight = this.getCarriedWeight() + weight; - return newWeight <= (int) pc.statStrBase * 3; + return newWeight <= pc.getInventoryCapacity(); } else if (this.absCharacter.getObjectType() == GameObjectType.NPC) { int newWeight = this.getCarriedWeight() + weight; return newWeight <= 1900 + (this.absCharacter.getLevel() * 3);