Remove the DB power action loader
Power actions come from PowerActions.cfg (3fc5e725, tested). Deletes
AbstractPowerAction.getAllPowerActions and the ResultSet constructor on
every power action class. static_power_poweraction is dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
29e1e51b04
commit
025a451770
33 files changed
-466
No files matched your search
@@ -17,9 +17,6 @@ import engine.parsers.objects.wpak.PowerActionTemplate;
|
||||
import engine.powers.ActionsBase;
|
||||
import engine.powers.PowersBase;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
|
||||
public class RemoveEffectPowerAction extends AbstractPowerAction {
|
||||
|
||||
@@ -27,14 +24,6 @@ public class RemoveEffectPowerAction extends AbstractPowerAction {
|
||||
public EffectSourceType sourceType;
|
||||
private boolean removeAll;
|
||||
|
||||
public RemoveEffectPowerAction(ResultSet rs) throws SQLException {
|
||||
super(rs);
|
||||
String effectTypeToRemove = rs.getString("effectSourceToRemove").replace("-", "").trim();
|
||||
sourceType = EffectSourceType.GetEffectSourceType(effectTypeToRemove);
|
||||
int flags = rs.getInt("flags");
|
||||
this.removeAll = ((flags & 2) != 0) ? true : false;
|
||||
}
|
||||
|
||||
public RemoveEffectPowerAction(PowerActionTemplate powerActionTemplate, int id) {
|
||||
super(powerActionTemplate, id);
|
||||
String effectTypeToRemove = powerActionTemplate.effect_source_to_remove.replace("-", "").trim();
|
||||
|
||||
Reference in new issue
Block a user