NPc Manager for static NPC classes

This commit is contained in:
2025-01-05 20:57:43 -06:00
parent 450ae2ec82
commit f0bef72fde
41 changed files with 487 additions and 486 deletions
@@ -11,6 +11,7 @@ package engine.net.client.msg;
import engine.Enum.ItemType;
import engine.exception.SerializationException;
import engine.gameManager.NPCManager;
import engine.gameManager.PlayerManager;
import engine.net.AbstractConnection;
import engine.net.AbstractNetMsg;
@@ -92,7 +93,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
float sellPercent = 1;
NPC npc = NPC.getFromCache(npcID);
NPC npc = NPCManager.getFromCache(npcID);
CharacterItemManager man = null;
ArrayList<Item> inventory = null;
ArrayList<MobEquipment> sellInventory = null;