Browse Source

More itembase refactor

combat-2
MagicBot 8 months ago
parent
commit
84c29a1222
  1. 17
      src/engine/devcmd/cmds/PrintRunesCmd.java

17
src/engine/devcmd/cmds/PrintRunesCmd.java

@ -10,9 +10,10 @@
package engine.devcmd.cmds; package engine.devcmd.cmds;
import engine.devcmd.AbstractDevCmd; import engine.devcmd.AbstractDevCmd;
import engine.objects.*; import engine.objects.AbstractCharacter;
import engine.objects.AbstractGameObject;
import java.util.HashMap; import engine.objects.CharacterRune;
import engine.objects.PlayerCharacter;
/** /**
* *
@ -25,16 +26,6 @@ public class PrintRunesCmd extends AbstractDevCmd {
// super("printstats", MBServerStatics.ACCESS_LEVEL_ADMIN); // super("printstats", MBServerStatics.ACCESS_LEVEL_ADMIN);
} }
public static ItemBase getWeaponBase(int slot, HashMap<Integer, Item> equip) {
if (equip.containsKey(slot)) {
Item item = equip.get(slot);
if (item != null && item.getItemBase() != null) {
return item.getItemBase();
}
}
return null;
}
@Override @Override
protected void _doCmd(PlayerCharacter pc, String[] words, protected void _doCmd(PlayerCharacter pc, String[] words,
AbstractGameObject target) { AbstractGameObject target) {

Loading…
Cancel
Save