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
@@ -23,21 +23,11 @@ import engine.powers.PowersBase;
|
||||
import engine.powers.effectmodifiers.AbstractEffectModifier;
|
||||
import engine.server.MBServerStatics;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
|
||||
public class TeleportPowerAction extends AbstractPowerAction {
|
||||
|
||||
private boolean ignoreNoTeleSpire;
|
||||
|
||||
public TeleportPowerAction(ResultSet rs) throws SQLException {
|
||||
super(rs);
|
||||
|
||||
int flags = rs.getInt("flags");
|
||||
this.ignoreNoTeleSpire = ((flags & 32768) != 0) ? true : false;
|
||||
}
|
||||
|
||||
public TeleportPowerAction(PowerActionTemplate powerActionTemplate, int id) {
|
||||
super(powerActionTemplate, id);
|
||||
|
||||
|
||||
Reference in new issue
Block a user