Start mobequip refactor

This commit is contained in:
2024-03-18 10:01:29 -04:00
parent 0590ae64e7
commit 61c4cb1361
56 changed files with 198 additions and 377 deletions
@@ -60,7 +60,7 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
} else if (repairMsg.getMsgType() == 0) { //Request RepairObject
CharacterItemManager itemMan = player.getCharItemManager();
CharacterItemManager itemMan = player.charItemManager;
if (itemMan == null)
return true;
@@ -116,10 +116,10 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
return true;
}
if (player.getCharItemManager().getGoldInventory().getNumOfItems() - cost < 0)
if (player.charItemManager.getGoldInventory().getNumOfItems() - cost < 0)
return true;
if (player.getCharItemManager().getGoldInventory().getNumOfItems() - cost > MBServerStatics.PLAYER_GOLD_LIMIT)
if (player.charItemManager.getGoldInventory().getNumOfItems() - cost > MBServerStatics.PLAYER_GOLD_LIMIT)
return true;
if (!itemMan.buyFromNPC(building, cost, cost)) {