Browse Source

remove ItemBase variables

combat-2
FatBoy-DOTC 8 months ago
parent
commit
cde9901bb6
  1. 19
      src/engine/objects/ItemBase.java

19
src/engine/objects/ItemBase.java

@ -9,7 +9,6 @@
package engine.objects; package engine.objects;
import engine.Enum;
import engine.gameManager.DbManager; import engine.gameManager.DbManager;
import org.pmw.tinylog.Logger; import org.pmw.tinylog.Logger;
@ -24,17 +23,11 @@ public class ItemBase {
public final int uuid; public final int uuid;
private final int modTable; private final int modTable;
private final short percentRequired;
private final float speed;
private final float range;
public ItemBase(ResultSet rs) throws SQLException { public ItemBase(ResultSet rs) throws SQLException {
this.uuid = rs.getInt("ID"); this.uuid = rs.getInt("ID");
this.modTable = rs.getInt("modTable"); this.modTable = rs.getInt("modTable");
this.percentRequired = rs.getShort("percentRequired");
this.speed = rs.getFloat("speed");
this.range = rs.getFloat("range");
ItemTemplate template = ItemTemplate.templates.get(this.getUUID()); ItemTemplate template = ItemTemplate.templates.get(this.getUUID());
@ -75,16 +68,4 @@ public class ItemBase {
return uuid; return uuid;
} }
public float getSpeed() {
return speed;
}
public float getRange() {
return range;
}
public short getPercentRequired() {
return percentRequired;
}
} }

Loading…
Cancel
Save