|
|
@ -16,9 +16,8 @@ import engine.objects.AbstractWorldObject; |
|
|
|
import engine.powers.ActionsBase; |
|
|
|
import engine.powers.ActionsBase; |
|
|
|
import engine.powers.EffectsBase; |
|
|
|
import engine.powers.EffectsBase; |
|
|
|
import engine.powers.PowersBase; |
|
|
|
import engine.powers.PowersBase; |
|
|
|
|
|
|
|
import engine.wpak.data.PowerAction; |
|
|
|
|
|
|
|
|
|
|
|
import java.sql.ResultSet; |
|
|
|
|
|
|
|
import java.sql.SQLException; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -27,10 +26,10 @@ public class TransformPowerAction extends AbstractPowerAction { |
|
|
|
private String effectID; |
|
|
|
private String effectID; |
|
|
|
private EffectsBase effect; |
|
|
|
private EffectsBase effect; |
|
|
|
|
|
|
|
|
|
|
|
public TransformPowerAction(ResultSet rs, HashMap<String, EffectsBase> effects) throws SQLException { |
|
|
|
public TransformPowerAction(PowerAction rs, HashMap<String, EffectsBase> effects) { |
|
|
|
super(rs); |
|
|
|
super(rs); |
|
|
|
|
|
|
|
|
|
|
|
this.effectID = rs.getString("effectID"); |
|
|
|
this.effectID = rs.effects.get(0).effect_id; |
|
|
|
this.effect = effects.get(this.effectID); |
|
|
|
this.effect = effects.get(this.effectID); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|