Resource.hash refactored

This commit is contained in:
2024-03-11 17:10:34 -04:00
parent ef38e93c11
commit 0b68ae3960
4 changed files with 59 additions and 63 deletions
-13
View File
@@ -30,7 +30,6 @@ public class ItemBase {
public final int uuid;
private final int modTable;
private int hashID;
private final short percentRequired;
private final short defense;
private final float dexPenalty;
@@ -47,8 +46,6 @@ public class ItemBase {
this.uuid = rs.getInt("ID");
this.modTable = rs.getInt("modTable");
this.hashID = rs.getInt("itemHashID");
this.isConsumable = false;
this.percentRequired = rs.getShort("percentRequired");
this.defense = rs.getShort("defense");
@@ -82,7 +79,6 @@ public class ItemBase {
this.isConsumable = true;
break;
}
initializeHashes();
}
@@ -149,19 +145,10 @@ public class ItemBase {
return ID > 7000099 && ID < 7000281;
}
public final void initializeHashes() {
itemHashIDMap.put(this.hashID, uuid);
}
public int getModTable() {
return modTable;
}
public int getHashID() {
return hashID;
}
public final int getUUID() {
return uuid;
}