Refactored poweractions

This commit is contained in:
2024-09-05 15:36:38 -04:00
parent 82cefce424
commit deab274ba2
16 changed files with 34 additions and 64 deletions
@@ -16,9 +16,8 @@ import engine.objects.AbstractWorldObject;
import engine.powers.ActionsBase;
import engine.powers.EffectsBase;
import engine.powers.PowersBase;
import engine.wpak.data.PowerAction;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
@@ -27,10 +26,11 @@ public class InvisPowerAction extends AbstractPowerAction {
private String effectID;
private EffectsBase effect;
public InvisPowerAction(ResultSet rs, HashMap<String, EffectsBase> effects) throws SQLException {
public InvisPowerAction(PowerAction rs, HashMap<String, EffectsBase> effects) {
super(rs);
this.effectID = rs.getString("effectID");
this.effectID = rs.effects.get(0).effect_id;
;
this.effect = effects.get(this.effectID);
}