Refactor isTwoHanded()

This commit is contained in:
2024-03-10 16:21:23 -04:00
parent 32d9322189
commit 56b89b7080
4 changed files with 18 additions and 14 deletions
-7
View File
@@ -43,7 +43,6 @@ public class ItemBase {
private final short maxDamage;
private final String mastery;
private final engine.Enum.SourceType damageType;
private final boolean twoHanded;
private boolean isConsumable;
// Item stat modifiers
@@ -74,8 +73,6 @@ public class ItemBase {
this.mastery = rs.getString("mastery");
damageType = Enum.SourceType.valueOf(rs.getString("damageType").toUpperCase());
this.twoHanded = (rs.getInt("twoHanded") == 1);
ItemTemplate template = ItemTemplate.itemTemplates.get(this.getUUID());
if (template == null)
@@ -211,10 +208,6 @@ public class ItemBase {
public final int getUUID() {
return uuid;
}
public boolean isTwoHanded() {
return this.twoHanded;
}
public String getMastery() {
return mastery;
}