Browse Source

Power loading work.

master
MagicBot 1 year ago
parent
commit
1fb2d8cadf
  1. 2
      src/engine/db/handlers/dbPowerHandler.java
  2. 4
      src/engine/gameManager/PowersManager.java
  3. 1
      src/engine/objects/Mob.java

2
src/engine/db/handlers/dbPowerHandler.java

@ -86,7 +86,7 @@ public class dbPowerHandler extends dbHandlerBase {
} }
} }
public HashMap<Integer, ArrayList<MobPowerEntry>> LOAD_MOB_POWERS() { public static HashMap<Integer, ArrayList<MobPowerEntry>> LOAD_MOB_POWERS() {
HashMap<Integer, ArrayList<MobPowerEntry>> mobPowers = new HashMap<>(); HashMap<Integer, ArrayList<MobPowerEntry>> mobPowers = new HashMap<>();
MobPowerEntry mobPowerEntry; MobPowerEntry mobPowerEntry;

4
src/engine/gameManager/PowersManager.java

@ -27,7 +27,6 @@ import engine.net.client.ClientConnection;
import engine.net.client.msg.*; import engine.net.client.msg.*;
import engine.objects.*; import engine.objects.*;
import engine.powers.*; import engine.powers.*;
import engine.powers.effectmodifiers.AbstractEffectModifier;
import engine.powers.poweractions.AbstractPowerAction; import engine.powers.poweractions.AbstractPowerAction;
import engine.powers.poweractions.TrackPowerAction; import engine.powers.poweractions.TrackPowerAction;
import engine.server.MBServerStatics; import engine.server.MBServerStatics;
@ -53,9 +52,8 @@ public enum PowersManager {
public static HashMap<String, AbstractPowerAction> powerActionsByIDString = new HashMap<>(); public static HashMap<String, AbstractPowerAction> powerActionsByIDString = new HashMap<>();
public static HashMap<Integer, AbstractPowerAction> powerActionsByID = new HashMap<>(); public static HashMap<Integer, AbstractPowerAction> powerActionsByID = new HashMap<>();
public static HashMap<String, Integer> ActionTokenByIDString = new HashMap<>(); public static HashMap<String, Integer> ActionTokenByIDString = new HashMap<>();
public static HashMap<Integer, AbstractEffectModifier> modifiersByToken = new HashMap<>();
public static HashMap<String, Integer> AnimationOverrides = new HashMap<>(); public static HashMap<String, Integer> AnimationOverrides = new HashMap<>();
public static HashMap<Integer, ArrayList<MobPowerEntry>> AllMobPowers = new HashMap<>(); public static HashMap<Integer, ArrayList<MobPowerEntry>> AllMobPowers;
private static JobScheduler js; private static JobScheduler js;
private PowersManager() { private PowersManager() {

1
src/engine/objects/Mob.java

@ -1946,7 +1946,6 @@ public class Mob extends AbstractIntelligenceAgent {
} catch (Exception e) { } catch (Exception e) {
Logger.error(e.getMessage()); Logger.error(e.getMessage());
} }
mobPowers = new HashMap<>();
// Powers from mobbase // Powers from mobbase

Loading…
Cancel
Save