From fce3fa800433c89124493e14d62fa242d2a33d4d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 16 Mar 2024 06:50:55 -0400 Subject: [PATCH] More itembase refactor work --- src/engine/devcmd/cmds/PrintEquipCmd.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/engine/devcmd/cmds/PrintEquipCmd.java b/src/engine/devcmd/cmds/PrintEquipCmd.java index ab87e3eb..50c74a53 100644 --- a/src/engine/devcmd/cmds/PrintEquipCmd.java +++ b/src/engine/devcmd/cmds/PrintEquipCmd.java @@ -66,8 +66,7 @@ public class PrintEquipCmd extends AbstractDevCmd { throwbackInfo(pc, "Equip for " + type + ' ' + name + " (" + tar.getObjectUUID() + ')'); for (Enum.EquipSlotType slot : tarMob.getEquip().keySet()) { MobEquipment equip = tarMob.getEquip().get(slot); - ItemTemplate template = ItemTemplate.itemTemplates.get(equip.getItemBase().getUUID()); - throwbackInfo(pc, equip.getItemBase().getUUID() + " : " + template.item_base_name + ", slot: " + slot); + throwbackInfo(pc, equip.getItemBase().getUUID() + " : " + equip.template.item_base_name + ", slot: " + slot); } return; } @@ -77,8 +76,7 @@ public class PrintEquipCmd extends AbstractDevCmd { throwbackInfo(pc, "Equip for " + type + ' ' + name + " (" + tar.getObjectUUID() + ')'); for (Enum.EquipSlotType slot : tarMob.getEquip().keySet()) { MobEquipment equip = tarMob.getEquip().get(slot); - ItemTemplate template = ItemTemplate.itemTemplates.get(equip.getItemBase().getUUID()); - throwbackInfo(pc, equip.getItemBase().getUUID() + " : " + template.item_base_name + ", slot: " + slot); + throwbackInfo(pc, equip.getItemBase().getUUID() + " : " + equip.template.item_base_name + ", slot: " + slot); } return; } @@ -89,8 +87,7 @@ public class PrintEquipCmd extends AbstractDevCmd { for (Enum.EquipSlotType slot : list.keySet()) { Item item = list.get(slot); - ItemTemplate template = ItemTemplate.itemTemplates.get(item.getTemplateID()); - throwbackInfo(pc, " " + template.item_base_name + ", slot: " + slot); + throwbackInfo(pc, " " + item.template.item_base_name + ", slot: " + slot); } }