Browse Source

More itembase refactor

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

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

@ -10,9 +10,9 @@ @@ -10,9 +10,9 @@
package engine.devcmd.cmds;
import engine.devcmd.AbstractDevCmd;
import engine.objects.*;
import java.util.HashMap;
import engine.objects.AbstractCharacter;
import engine.objects.AbstractGameObject;
import engine.objects.PlayerCharacter;
/**
*
@ -25,16 +25,6 @@ public class PrintEffectsCmd extends AbstractDevCmd { @@ -25,16 +25,6 @@ public class PrintEffectsCmd extends AbstractDevCmd {
// 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
protected void _doCmd(PlayerCharacter pc, String[] words,
AbstractGameObject target) {

Loading…
Cancel
Save