diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index a98dfc60..6a24fae4 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -138,7 +138,21 @@ public enum PowersManager { PowersParser.parseWpakFile(); PowerActionParser.parseWpakFile(); - InitializeEffects(); + //InitializeEffects(); + + ArrayList ebList = dbEffectsBaseHandler.getAllEffectsBase(); + + for (EffectsBase eb : ebList) { + PowersManager.effectsBaseByToken.put(eb.getToken(), eb); + PowersManager.effectsBaseByIDString.put(eb.getIDString(), eb); + + } + + // Add Fail Conditions + EffectsBase.getFailConditions(PowersManager.effectsBaseByIDString); + + // Add Modifiers to Effects + dbEffectsBaseHandler.cacheAllEffectModifiers(); // Add Source Types to Effects dbPowerHandler.addAllSourceTypes();