From 5537934f884d3dbd923d8ba954411bfa16bebac5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 9 Mar 2024 12:28:49 -0500 Subject: [PATCH] Moved method in class. --- src/engine/objects/ItemTemplate.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 0205f054..2b2acc37 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -370,15 +370,6 @@ public class ItemTemplate { } - public static boolean isTwoHanded(Item item) { - - if (!item.template.item_type.equals(Enum.ItemType.WEAPON)) - return false; - - return item.template.item_eq_slots_and.contains(EnumSet.of(Enum.EquipSlotType.LHELD, Enum.EquipSlotType.RHELD)); - } - - public static Boolean ValidRace(Item item, Enum.MonsterType race) { if (item.template.item_race_req.isEmpty() && item.template.item_race_res.isEmpty()) @@ -468,6 +459,14 @@ public class ItemTemplate { return false; } + public static boolean isTwoHanded(Item item) { + + if (!item.template.item_type.equals(Enum.ItemType.WEAPON)) + return false; + + return item.template.item_eq_slots_and.contains(EnumSet.of(Enum.EquipSlotType.LHELD, Enum.EquipSlotType.RHELD)); + } + public static boolean isShield(Item item) { if (item.template.item_skill_required.containsKey("Block"))