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