Browse Source

More itembace refactor work

combat-2
MagicBot 8 months ago
parent
commit
e831f447ae
  1. 16
      src/engine/devcmd/cmds/PrintStatsCmd.java

16
src/engine/devcmd/cmds/PrintStatsCmd.java

@ -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)) {

Loading…
Cancel
Save