|
|
@ -50,11 +50,14 @@ public class PrintBankCmd extends AbstractDevCmd { |
|
|
|
CharacterItemManager cim = ((AbstractCharacter) tar).getCharItemManager(); |
|
|
|
CharacterItemManager cim = ((AbstractCharacter) tar).getCharItemManager(); |
|
|
|
ArrayList<Item> list = cim.getBank(); |
|
|
|
ArrayList<Item> list = cim.getBank(); |
|
|
|
throwbackInfo(pc, "Bank for " + type + ' ' + name + " (" + tar.getObjectUUID() + ')'); |
|
|
|
throwbackInfo(pc, "Bank for " + type + ' ' + name + " (" + tar.getObjectUUID() + ')'); |
|
|
|
|
|
|
|
|
|
|
|
for (Item item : list) { |
|
|
|
for (Item item : list) { |
|
|
|
ItemTemplate template = ItemTemplate.itemTemplates.get(item.getItemBaseID()); |
|
|
|
ItemTemplate template = ItemTemplate.itemTemplates.get(item.getItemBaseID()); |
|
|
|
throwbackInfo(pc, " " + template.item_base_name + ", count: " + item.getNumOfItems()); |
|
|
|
throwbackInfo(pc, " " + template.item_base_name + ", count: " + item.getNumOfItems()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Item gold = cim.getGoldBank(); |
|
|
|
Item gold = cim.getGoldBank(); |
|
|
|
|
|
|
|
|
|
|
|
if (gold != null) |
|
|
|
if (gold != null) |
|
|
|
throwbackInfo(pc, " Gold, count: " + gold.getNumOfItems()); |
|
|
|
throwbackInfo(pc, " Gold, count: " + gold.getNumOfItems()); |
|
|
|
else |
|
|
|
else |
|
|
|