|
|
@ -12,6 +12,7 @@ import engine.Enum.*; |
|
|
|
import engine.InterestManagement.HeightMap; |
|
|
|
import engine.InterestManagement.HeightMap; |
|
|
|
import engine.InterestManagement.WorldGrid; |
|
|
|
import engine.InterestManagement.WorldGrid; |
|
|
|
import engine.db.handlers.dbEffectsBaseHandler; |
|
|
|
import engine.db.handlers.dbEffectsBaseHandler; |
|
|
|
|
|
|
|
import engine.db.handlers.dbSkillReqHandler; |
|
|
|
import engine.job.AbstractJob; |
|
|
|
import engine.job.AbstractJob; |
|
|
|
import engine.job.AbstractScheduleJob; |
|
|
|
import engine.job.AbstractScheduleJob; |
|
|
|
import engine.job.JobContainer; |
|
|
|
import engine.job.JobContainer; |
|
|
@ -100,7 +101,7 @@ public enum PowersManager { |
|
|
|
public static void InitializeLoginPowers() { |
|
|
|
public static void InitializeLoginPowers() { |
|
|
|
|
|
|
|
|
|
|
|
// get all PowersBase
|
|
|
|
// get all PowersBase
|
|
|
|
ArrayList<PowersBase> pbList = PowersBase.getAllPowersBase(); |
|
|
|
ArrayList<PowersBase> pbList = dbSkillReqHandler.getAllPowersBase(); |
|
|
|
|
|
|
|
|
|
|
|
for (PowersBase pb : pbList) { |
|
|
|
for (PowersBase pb : pbList) { |
|
|
|
if (pb.getToken() != 0) |
|
|
|
if (pb.getToken() != 0) |
|
|
@ -137,7 +138,7 @@ public enum PowersManager { |
|
|
|
// AbstractPowerAction.loadValidItemFlags(PowersManager.powerActionsByIDString);
|
|
|
|
// AbstractPowerAction.loadValidItemFlags(PowersManager.powerActionsByIDString);
|
|
|
|
|
|
|
|
|
|
|
|
// get all PowersBase
|
|
|
|
// get all PowersBase
|
|
|
|
ArrayList<PowersBase> pbList = PowersBase.getAllPowersBase(); |
|
|
|
ArrayList<PowersBase> pbList = dbSkillReqHandler.getAllPowersBase(); |
|
|
|
for (PowersBase pb : pbList) { |
|
|
|
for (PowersBase pb : pbList) { |
|
|
|
if (pb.getToken() != 0) { |
|
|
|
if (pb.getToken() != 0) { |
|
|
|
PowersManager.powersBaseByIDString.put(pb.getIDString(), pb); |
|
|
|
PowersManager.powersBaseByIDString.put(pb.getIDString(), pb); |
|
|
@ -148,7 +149,7 @@ public enum PowersManager { |
|
|
|
// Add Power Prereqs
|
|
|
|
// Add Power Prereqs
|
|
|
|
PowerPrereq.getAllPowerPrereqs(PowersManager.powersBaseByIDString); |
|
|
|
PowerPrereq.getAllPowerPrereqs(PowersManager.powersBaseByIDString); |
|
|
|
// Add Fail Conditions
|
|
|
|
// Add Fail Conditions
|
|
|
|
PowersBase.getFailConditions(PowersManager.powersBaseByIDString); |
|
|
|
dbSkillReqHandler.getFailConditions(PowersManager.powersBaseByIDString); |
|
|
|
// Add Actions Base
|
|
|
|
// Add Actions Base
|
|
|
|
ActionsBase.getActionsBase(PowersManager.powersBaseByIDString, |
|
|
|
ActionsBase.getActionsBase(PowersManager.powersBaseByIDString, |
|
|
|
PowersManager.powerActionsByIDString); |
|
|
|
PowersManager.powerActionsByIDString); |
|
|
|