forked from MagicBane/Server
Power Action Constructor (not finished)
This commit is contained in:
@@ -17,6 +17,7 @@ import engine.objects.Item;
|
||||
import engine.powers.ActionsBase;
|
||||
import engine.powers.EffectsBase;
|
||||
import engine.powers.PowersBase;
|
||||
import engine.wpak.data.PowerAction;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
@@ -32,11 +33,11 @@ public class ApplyEffectsPowerAction extends AbstractPowerAction {
|
||||
private EffectsBase effect2;
|
||||
private EffectsBase effectParent;
|
||||
|
||||
public ApplyEffectsPowerAction(ResultSet rs, HashMap<String, EffectsBase> effects) throws SQLException {
|
||||
public ApplyEffectsPowerAction(PowerAction rs, HashMap<String, EffectsBase> effects){
|
||||
super(rs);
|
||||
this.IDString = rs.getString("IDString");
|
||||
this.effectID = rs.getString("effectID");
|
||||
this.effectID2 = rs.getString("effectID2");
|
||||
this.IDString = rs.action_id;
|
||||
this.effectID = rs.effects.get(0).effect_id;
|
||||
this.effectID2 = rs.effects.get(2).effect_id;
|
||||
this.effect = effects.get(this.effectID);
|
||||
this.effect2 = effects.get(this.effectID2);
|
||||
this.effectParent = effects.get(this.IDString);
|
||||
|
||||
Reference in New Issue
Block a user