forked from MagicBane/Server
Equipment slot refactor started.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
package engine.devcmd.cmds;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.Enum.GameObjectType;
|
||||
import engine.devcmd.AbstractDevCmd;
|
||||
import engine.objects.*;
|
||||
@@ -83,9 +84,10 @@ public class PrintEquipCmd extends AbstractDevCmd {
|
||||
}
|
||||
|
||||
CharacterItemManager cim = ((AbstractCharacter) tar).getCharItemManager();
|
||||
ConcurrentHashMap<Integer, Item> list = cim.getEquipped();
|
||||
ConcurrentHashMap<Enum.EquipSlotType, Item> list = cim.getEquipped();
|
||||
throwbackInfo(pc, "Equip for " + type + ' ' + name + " (" + tar.getObjectUUID() + ')');
|
||||
for (Integer slot : list.keySet()) {
|
||||
|
||||
for (Enum.EquipSlotType slot : list.keySet()) {
|
||||
Item item = list.get(slot);
|
||||
ItemTemplate template = ItemTemplate.itemTemplates.get(item.getTemplsteID());
|
||||
throwbackInfo(pc, " " + template.item_base_name + ", slot: " + slot);
|
||||
|
||||
Reference in New Issue
Block a user