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
+3 -3
View File
@@ -36,7 +36,7 @@ public class ItemFactory {
return;
int max = 20;
CharacterItemManager itemManager = pc.getCharItemManager();
CharacterItemManager itemManager = pc.charItemManager;
ItemTemplate template = ItemTemplate.templates.get(templateID);
@@ -96,7 +96,7 @@ public class ItemFactory {
if (forge == null)
return null;
if (!npc.getCharItemManager().hasRoomInventory(template.item_wt)) {
if (!npc.charItemManager.hasRoomInventory(template.item_wt)) {
if (pc != null)
ErrorPopupMsg.sendErrorPopup(pc, 21);
return null;
@@ -646,7 +646,7 @@ public class ItemFactory {
if (template == null)
return null;
if (!vendor.getCharItemManager().hasRoomInventory(template.item_wt)) {
if (!vendor.charItemManager.hasRoomInventory(template.item_wt)) {
if (playerCharacter != null)
ChatManager.chatSystemInfo(playerCharacter, vendor.getName() + " " + vendor.getContract().getName() + " Inventory is full.");