Start mobequip refactor

This commit is contained in:
2024-03-18 09:38:33 -04:00
parent 7fa8c3bfff
commit 0590ae64e7
20 changed files with 79 additions and 435 deletions
@@ -94,7 +94,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
NPC npc = NPC.getFromCache(npcID);
CharacterItemManager man = null;
ArrayList<Item> inventory = null;
ArrayList<MobEquipment> sellInventory = null;
ArrayList<Item> sellInventory = null;
if (npc != null) {
man = npc.getCharItemManager();
@@ -147,9 +147,9 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
//add generic sell inventory from contract
if (sellInventory != null) {
for (MobEquipment mobEquipment : sellInventory) {
for (Item Item : sellInventory) {
try {
MobEquipment.serializeForVendor(mobEquipment, writer, sellPercent);
Item.serializeForVendor(Item, writer, sellPercent);
} catch (SerializationException se) {
continue;
}