From 9d140be510dbc175a28dbb8b71b70e14b380a134 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 24 Mar 2024 23:19:55 -0400 Subject: [PATCH] Weight not value --- src/engine/objects/CharacterItemManager.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 58a12766..ac6c5a4b 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -2097,7 +2097,7 @@ public class CharacterItemManager { this.bankWeight = 0; for (Item item : this.bank) { if (item.template != null) - this.bankWeight += item.template.item_value; + this.bankWeight += item.template.item_wt; } } @@ -2128,12 +2128,6 @@ public class CharacterItemManager { } } - private int calculateTradingForWeight() { - int tradingForWeight = 0; - - return tradingForWeight; - } - public void updateInventory(Item item, boolean add) { ArrayList list = new ArrayList<>(); list.add(item);