create saetor shrine object
This commit is contained in:
@@ -87,12 +87,19 @@ public class dbItemBaseHandler extends dbHandlerBase {
|
||||
recordsRead++;
|
||||
itemBase = new ItemBase(rs);
|
||||
ItemBase.addToCache(itemBase);
|
||||
|
||||
//copy the vampire shrine for saetor and change uuid and name
|
||||
if(itemBase.getName().contains("Vampire Shrine")){
|
||||
ItemBase saetorShrine = new ItemBase(rs);
|
||||
saetorShrine.setUUID(1035);
|
||||
saetorShrine.setName(saetorShrine.getName().replace("Vampire","Saetor"));
|
||||
ItemBase.addToCache(saetorShrine);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (SQLException e) {
|
||||
Logger.error(e);
|
||||
}
|
||||
|
||||
Logger.info("read: " + recordsRead + " cached: " + ItemBase.getUUIDCache().size());
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ public class ItemBase {
|
||||
private static HashMap<Integer, Integer> itemHashIDMap = new HashMap<>();
|
||||
private static HashMap<String, Integer> _IDsByNames = new HashMap<>();
|
||||
private static ArrayList<ItemBase> _resourceList = new ArrayList<>();
|
||||
private final int uuid;
|
||||
private final String name;
|
||||
private int uuid;
|
||||
private String name;
|
||||
private float durability;
|
||||
private int value;
|
||||
private short weight;
|
||||
@@ -723,7 +723,12 @@ public class ItemBase {
|
||||
public final int getUUID() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUUID(int id) {
|
||||
this.uuid = id;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
public boolean isRing() {
|
||||
return ((this.equipFlag & (64 | 128 | 192)) != 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user