Helper method created

This commit is contained in:
2024-03-07 09:30:13 -05:00
parent 3048f86f5b
commit 642270aacf
+7
View File
@@ -356,4 +356,11 @@ public class ItemTemplate {
}
public static boolean isTwoHanded(ItemTemplate template) {
if (!template.item_type.equals(Enum.ItemType.WEAPON))
return false;
return template.item_eq_slots_or.contains(EnumSet.of(Enum.ItemEquipSlotType.LHELD, Enum.ItemEquipSlotType.RHELD));
}
}