forked from MagicBane/Server
Durability and initial charges migrated to template.
This commit is contained in:
@@ -45,7 +45,6 @@ public class ItemBase {
|
||||
public EnumSet<Enum.ClassType> requiredClasses;
|
||||
public EnumSet<Enum.DisciplineType> requiredDiscs;
|
||||
public EnumSet<Enum.DisciplineType> restrictedDiscs;
|
||||
private final float durability;
|
||||
private final int value;
|
||||
private final short weight;
|
||||
private final short color;
|
||||
@@ -75,7 +74,7 @@ public class ItemBase {
|
||||
private final boolean twoHanded;
|
||||
private boolean isConsumable;
|
||||
private boolean isStackable;
|
||||
private final int numCharges;
|
||||
|
||||
// Item stat modifiers
|
||||
private final HashMap<Integer, Integer> bakedInStats = new HashMap<>();
|
||||
private final HashMap<Integer, Integer> usedStats = new HashMap<>();
|
||||
@@ -92,7 +91,6 @@ public class ItemBase {
|
||||
|
||||
this.uuid = rs.getInt("ID");
|
||||
|
||||
this.durability = rs.getInt("durability");
|
||||
this.value = rs.getInt("value");
|
||||
this.weight = rs.getShort("weight");
|
||||
this.color = rs.getShort("color");
|
||||
@@ -105,7 +103,6 @@ public class ItemBase {
|
||||
|
||||
this.isConsumable = false;
|
||||
this.isStackable = false;
|
||||
this.numCharges = rs.getShort("numCharges");
|
||||
|
||||
this.equipFlag = rs.getInt("equipFlag");
|
||||
this.restrictFlag = rs.getInt("restrictFlag");
|
||||
@@ -256,13 +253,6 @@ public class ItemBase {
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Getters
|
||||
*/
|
||||
|
||||
public float getDurability() {
|
||||
return this.durability;
|
||||
}
|
||||
|
||||
private void initBakedInStats() {
|
||||
DbManager.ItemBaseQueries.LOAD_BAKEDINSTATS(this);
|
||||
@@ -280,25 +270,12 @@ public class ItemBase {
|
||||
public short getWeight() {
|
||||
return this.weight;
|
||||
}
|
||||
|
||||
public int getColor() {
|
||||
return this.color;
|
||||
}
|
||||
|
||||
|
||||
public boolean isConsumable() {
|
||||
return this.isConsumable;
|
||||
}
|
||||
|
||||
public boolean isStackable() {
|
||||
return this.isStackable;
|
||||
}
|
||||
|
||||
public int getNumCharges() {
|
||||
|
||||
return this.numCharges;
|
||||
|
||||
}
|
||||
|
||||
public int getEquipFlag() {
|
||||
|
||||
if ((this.type == ItemType.ARMOR)
|
||||
|
||||
Reference in New Issue
Block a user