Start mobequip refactor
This commit is contained in:
1 parent
0590ae64e7
commit
61c4cb1361
56 files changed
+198
-377
No files matched your search
@@ -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.");
|
||||
|
||||
Reference in new issue
Block a user