Refactor of animations

This commit is contained in:
2024-03-11 15:44:31 -04:00
parent 4f7c34aec9
commit ef38e93c11
3 changed files with 18 additions and 71 deletions
-25
View File
@@ -42,8 +42,6 @@ public class ItemBase {
private final engine.Enum.SourceType damageType;
private boolean isConsumable;
private final boolean isStrBased;
private ArrayList<Integer> animations = new ArrayList<>();
private ArrayList<Integer> offHandAnimations = new ArrayList<>();
public ItemBase(ResultSet rs) throws SQLException {
@@ -84,12 +82,6 @@ public class ItemBase {
this.isConsumable = true;
break;
}
try {
DbManager.ItemBaseQueries.LOAD_ANIMATIONS(this);
} catch (Exception e) {
Logger.error(e.getMessage());
}
initializeHashes();
}
@@ -204,7 +196,6 @@ public class ItemBase {
public short getMinDamage() {
return minDamage;
}
public Enum.SourceType getDamageType() {
return damageType;
}
@@ -213,20 +204,4 @@ public class ItemBase {
return percentRequired;
}
public ArrayList<Integer> getAnimations() {
return animations;
}
public void setAnimations(ArrayList<Integer> animations) {
this.animations = animations;
}
public ArrayList<Integer> getOffHandAnimations() {
return offHandAnimations;
}
public void setOffHandAnimations(ArrayList<Integer> offHandAnimations) {
this.offHandAnimations = offHandAnimations;
}
}