Power Action Constructor (not finished)

This commit is contained in:
FatBoy committed 2024-09-02 16:30:47 -05:00
1 parent a5ccba2e27
commit 0fd6dfb648
13 files changed
+168 -173

No files matched your search

@@ -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