Browse Source

database loading effects

feature-config-parsing2
FatBoy-DOTC 4 months ago
parent
commit
001a89ccf0
  1. 16
      src/engine/gameManager/PowersManager.java

16
src/engine/gameManager/PowersManager.java

@ -138,7 +138,21 @@ public enum PowersManager {
PowersParser.parseWpakFile(); PowersParser.parseWpakFile();
PowerActionParser.parseWpakFile(); PowerActionParser.parseWpakFile();
InitializeEffects(); //InitializeEffects();
ArrayList<EffectsBase> 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 // Add Source Types to Effects
dbPowerHandler.addAllSourceTypes(); dbPowerHandler.addAllSourceTypes();

Loading…
Cancel
Save