moved mob powers method to PowersManager

This commit is contained in:
2023-03-12 10:36:38 -05:00
parent 4a06f18d55
commit 83eb1a3370
3 changed files with 15 additions and 15 deletions
+13
View File
@@ -54,6 +54,7 @@ public enum PowersManager {
public static HashMap<Integer, AbstractEffectModifier> modifiersByToken = new HashMap<>();
public static HashMap<String,Integer> AnimationOverrides = new HashMap<>();
private static JobScheduler js;
public static HashMap<Integer,HashMap<Integer,Integer>> AllMobPowers;
public static void initPowersManager(boolean fullPowersLoad) {
@@ -2784,6 +2785,18 @@ SourceType sourceType = SourceType.GetSourceType(pb.getCategory());
}
}
}
public static 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...");
}
}