forked from MagicBane/Server
Refactored mob powers to rune powers. Now uses rune_id to call into system which is derived in the getter to support minions.
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
package engine.powers;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class MobPowerEntry {
|
||||
|
||||
public int token;
|
||||
public int rank;
|
||||
|
||||
|
||||
public MobPowerEntry(ResultSet rs) throws SQLException {
|
||||
this.token = rs.getInt("token");
|
||||
this.rank = rs.getInt("rank");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package engine.powers;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class RunePowerEntry {
|
||||
|
||||
public String name;
|
||||
public int token;
|
||||
public String power_type;
|
||||
public int rank;
|
||||
|
||||
|
||||
public RunePowerEntry(ResultSet rs) throws SQLException {
|
||||
this.name = rs.getString("name");
|
||||
this.token = rs.getInt("token");
|
||||
this.power_type = rs.getString("power_type");
|
||||
this.rank = rs.getInt("rank");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user