From eba8beb8f51dc1787164180f1786aa3efa564922 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 28 Mar 2024 04:52:01 -0400 Subject: [PATCH] More itembase refactor --- src/engine/devcmd/cmds/PrintEffectsCmd.java | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/engine/devcmd/cmds/PrintEffectsCmd.java b/src/engine/devcmd/cmds/PrintEffectsCmd.java index 3f4785b5..a2793d4a 100644 --- a/src/engine/devcmd/cmds/PrintEffectsCmd.java +++ b/src/engine/devcmd/cmds/PrintEffectsCmd.java @@ -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 { // 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) {