|
|
@ -23,17 +23,6 @@ public class PrintStatsCmd extends AbstractDevCmd { |
|
|
|
|
|
|
|
|
|
|
|
public PrintStatsCmd() { |
|
|
|
public PrintStatsCmd() { |
|
|
|
super("printstats"); |
|
|
|
super("printstats"); |
|
|
|
// super("printstats", MBServerStatics.ACCESS_LEVEL_ADMIN);
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static ItemBase getWeaponBase(int slot, HashMap<Enum.EquipSlotType, MobEquipment> equip) { |
|
|
|
|
|
|
|
if (equip.containsKey(slot)) { |
|
|
|
|
|
|
|
MobEquipment item = equip.get(slot); |
|
|
|
|
|
|
|
if (item != null && item.getItemBase() != null) { |
|
|
|
|
|
|
|
return item.getItemBase(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -98,11 +87,6 @@ public class PrintStatsCmd extends AbstractDevCmd { |
|
|
|
|
|
|
|
|
|
|
|
//get weapons
|
|
|
|
//get weapons
|
|
|
|
HashMap<Enum.EquipSlotType, MobEquipment> equip = tar.getEquip(); |
|
|
|
HashMap<Enum.EquipSlotType, MobEquipment> equip = tar.getEquip(); |
|
|
|
ItemBase main = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (equip != null) |
|
|
|
|
|
|
|
main = getWeaponBase(1, equip); |
|
|
|
|
|
|
|
ItemBase off = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(equip != null){ |
|
|
|
if(equip != null){ |
|
|
|
if (equip.get(2) != null && !ItemTemplate.isShield(equip.get(2).template)) { |
|
|
|
if (equip.get(2) != null && !ItemTemplate.isShield(equip.get(2).template)) { |
|
|
|