forked from MagicBane/Server
Power Action Constructor (not finished)
This commit is contained in:
@@ -18,6 +18,7 @@ import engine.objects.Mob;
|
||||
import engine.objects.PlayerCharacter;
|
||||
import engine.powers.ActionsBase;
|
||||
import engine.powers.PowersBase;
|
||||
import engine.wpak.data.PowerAction;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
@@ -28,10 +29,10 @@ public class CharmPowerAction extends AbstractPowerAction {
|
||||
private int levelCap;
|
||||
private int levelCapRamp;
|
||||
|
||||
public CharmPowerAction(ResultSet rs) throws SQLException {
|
||||
public CharmPowerAction(PowerAction rs){
|
||||
super(rs);
|
||||
this.levelCap = rs.getInt("levelCap");
|
||||
this.levelCapRamp = rs.getInt("levelCapRamp");
|
||||
this.levelCap = rs.levelCap;
|
||||
this.levelCapRamp = rs.levelCurve.ordinal();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user