Power Action Constructor (not finished)

This commit is contained in:
2024-09-02 16:30:47 -05:00
parent a5ccba2e27
commit 0fd6dfb648
13 changed files with 168 additions and 173 deletions
@@ -20,6 +20,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;
@@ -29,10 +30,10 @@ public class FearPowerAction extends AbstractPowerAction {
private int levelCap;
private int levelCapRamp;
public FearPowerAction(ResultSet rs) throws SQLException {
public FearPowerAction(PowerAction rs){
super(rs);
this.levelCap = rs.getInt("levelCap");
this.levelCapRamp = rs.getInt("levelCapRamp");
this.levelCap = rs.levelCap;
this.levelCapRamp = rs.levelCurve.ordinal();
}
@Override