Refactor itembase.name to template.
This commit is contained in:
1 parent
507769c6b6
commit
d9775dbf4e
17 files changed
+131
-90
No files matched your search
@@ -37,7 +37,7 @@ public class ItemBase {
|
||||
private static final HashMap<String, Integer> _IDsByNames = new HashMap<>();
|
||||
private static final ArrayList<ItemBase> _resourceList = new ArrayList<>();
|
||||
private final int uuid;
|
||||
private final String name;
|
||||
private String name;
|
||||
//requirements/restrictions
|
||||
public EnumSet<Enum.MonsterType> restrictedRaces;
|
||||
public EnumSet<Enum.MonsterType> requiredRaces;
|
||||
@@ -91,7 +91,7 @@ public class ItemBase {
|
||||
public ItemBase(ResultSet rs) throws SQLException {
|
||||
|
||||
this.uuid = rs.getInt("ID");
|
||||
this.name = rs.getString("name");
|
||||
|
||||
this.durability = rs.getInt("durability");
|
||||
this.value = rs.getInt("value");
|
||||
this.weight = rs.getShort("weight");
|
||||
|
||||
Reference in new issue
Block a user