forked from MagicBane/Server
Resource.hash refactored
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user