From 84c29a1222257ca7693a255ef8a91ee7c8340737 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 28 Mar 2024 04:59:30 -0400 Subject: [PATCH] More itembase refactor --- src/engine/devcmd/cmds/PrintRunesCmd.java | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/engine/devcmd/cmds/PrintRunesCmd.java b/src/engine/devcmd/cmds/PrintRunesCmd.java index 01c8cb60..b60814c2 100644 --- a/src/engine/devcmd/cmds/PrintRunesCmd.java +++ b/src/engine/devcmd/cmds/PrintRunesCmd.java @@ -10,9 +10,10 @@ 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.CharacterRune; +import engine.objects.PlayerCharacter; /** * @@ -25,16 +26,6 @@ public class PrintRunesCmd extends AbstractDevCmd { // super("printstats", MBServerStatics.ACCESS_LEVEL_ADMIN); } - public static ItemBase getWeaponBase(int slot, HashMap 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) {