Remove the dead power animation override and valid item flag code

PowersManager.AnimationOverrides was loaded from
static_power_animation_override and never read. validItemFlags on
AbstractPowerAction was always 0 and its getter had no callers; its
loader (static_power_effect_allowed_item) was already commented out.
No value change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-25 11:42:38 -04:00
1 parent 637a798191
commit 337cc3d360
4 files changed
+4 -44

No files matched your search

@@ -34,7 +34,6 @@ public abstract class AbstractPowerAction {
protected String IDString;
protected String type;
protected boolean isAggressive;
protected long validItemFlags;
/**
* No Table ID Constructor
@@ -55,8 +54,7 @@ public abstract class AbstractPowerAction {
this.isAggressive = ((flags & 128) != 0) ? true : false;
}
public AbstractPowerAction(int uUID, String iDString, String type, boolean isAggressive,
long validItemFlags) {
public AbstractPowerAction(int uUID, String iDString, String type, boolean isAggressive) {
super();
UUID = uUID;
IDString = iDString;
@@ -184,7 +182,6 @@ public abstract class AbstractPowerAction {
}
powerActions.put(IDString, apa);
powerActionsByID.put(apa.UUID, apa);
apa.validItemFlags = 0;
}
rs.close();
} catch (Exception e) {
@@ -192,7 +189,7 @@ public abstract class AbstractPowerAction {
}
//Add OpenGatePowerAction
AbstractPowerAction openGateAction = new OpenGatePowerAction(5000, "OPENGATE", "OpenGate", false, 0);
AbstractPowerAction openGateAction = new OpenGatePowerAction(5000, "OPENGATE", "OpenGate", false);
powerActions.put("OPENGATE", openGateAction);
powerActionsByID.put(openGateAction.UUID, openGateAction);
}
@@ -267,11 +264,6 @@ public abstract class AbstractPowerAction {
return null;
}
//These functions verify a powerAction is valid for an item type
public long getValidItemFlags() {
return this.validItemFlags;
}
public String getType() {
return type;
}
@@ -32,8 +32,8 @@ public class OpenGatePowerAction extends AbstractPowerAction {
super(rs);
}
public OpenGatePowerAction(int uUID, String iDString, String type, boolean isAggressive, long validItemFlags) {
super(uUID, iDString, type, isAggressive, validItemFlags);
public OpenGatePowerAction(int uUID, String iDString, String type, boolean isAggressive) {
super(uUID, iDString, type, isAggressive);
// TODO Auto-generated constructor stub
}