|
|
@ -75,7 +75,7 @@ public class WorldServer { |
|
|
|
// Member variable declaration
|
|
|
|
// Member variable declaration
|
|
|
|
|
|
|
|
|
|
|
|
public static HashMap<Integer,HashMap<Integer,ArrayList<Integer>>> ZoneFidelityMobRunes = new HashMap<>(); |
|
|
|
public static HashMap<Integer,HashMap<Integer,ArrayList<Integer>>> ZoneFidelityMobRunes = new HashMap<>(); |
|
|
|
|
|
|
|
public static HashMap<Integer,HashMap<Integer,Integer>> AllMobPowers; |
|
|
|
public WorldServer() { |
|
|
|
public WorldServer() { |
|
|
|
super(); |
|
|
|
super(); |
|
|
|
} |
|
|
|
} |
|
|
@ -470,9 +470,22 @@ public class WorldServer { |
|
|
|
Logger.info("Running garbage collection..."); |
|
|
|
Logger.info("Running garbage collection..."); |
|
|
|
System.gc(); |
|
|
|
System.gc(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Logger.info("Loading All Mob Powers..."); |
|
|
|
|
|
|
|
GatherMobPowers(); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void GatherMobPowers(){ |
|
|
|
|
|
|
|
for(Mob mob : DbManager.MobQueries.GET_ALL_MOBS()){ |
|
|
|
|
|
|
|
if(DbManager.MobBaseQueries.LOAD_STATIC_POWERS(mob.getMobBaseID()).isEmpty() == true){ |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
HashMap<Integer, Integer> mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(mob.getMobBaseID()); |
|
|
|
|
|
|
|
AllMobPowers.put(mob.getMobBaseID(), mobPowers); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Logger.info("Static Mob Powers HashMap Loaded Successfully..."); |
|
|
|
|
|
|
|
} |
|
|
|
protected boolean initDatabaselayer() { |
|
|
|
protected boolean initDatabaselayer() { |
|
|
|
|
|
|
|
|
|
|
|
// Try starting a GOM <-> DB connection.
|
|
|
|
// Try starting a GOM <-> DB connection.
|
|
|
|