Browse Source

Updated rs constructor to use new enumset system.

combat-2
MagicBot 9 months ago
parent
commit
608324c500
  1. 5
      src/engine/objects/ItemBase.java

5
src/engine/objects/ItemBase.java

@ -126,7 +126,12 @@ public class ItemBase {
this.minDamage = rs.getShort("minDamage"); this.minDamage = rs.getShort("minDamage");
this.maxDamage = rs.getShort("maxDamage"); this.maxDamage = rs.getShort("maxDamage");
// Item restrictions and requirements
this.requiredRaces = DbManager.parseEnumSet(rs.getString("race_required"), Enum.MonsterType.class); this.requiredRaces = DbManager.parseEnumSet(rs.getString("race_required"), Enum.MonsterType.class);
this.restrictedRaces = DbManager.parseEnumSet(rs.getString("race_restricted"), Enum.MonsterType.class);
this.requiredClasses = DbManager.parseEnumSet(rs.getString("class_required"), Enum.ClassType.class);
this.requiredDiscs = DbManager.parseEnumSet(rs.getString("disc_required"), Enum.DisciplineType.class);
this.mastery = rs.getString("mastery"); this.mastery = rs.getString("mastery");
damageType = DamageType.valueOf(rs.getString("damageType")); damageType = DamageType.valueOf(rs.getString("damageType"));

Loading…
Cancel
Save