Browse Source

Weight not value

combat-2
MagicBot 8 months ago
parent
commit
9d140be510
  1. 8
      src/engine/objects/CharacterItemManager.java

8
src/engine/objects/CharacterItemManager.java

@ -2097,7 +2097,7 @@ public class CharacterItemManager {
this.bankWeight = 0; this.bankWeight = 0;
for (Item item : this.bank) { for (Item item : this.bank) {
if (item.template != null) 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) { public void updateInventory(Item item, boolean add) {
ArrayList<Item> list = new ArrayList<>(); ArrayList<Item> list = new ArrayList<>();
list.add(item); list.add(item);

Loading…
Cancel
Save