convert DB lookup of mob powers to static Hashmap lookup

This commit is contained in:
2023-03-12 10:17:25 -05:00
parent 095aee57bc
commit e38a04bf23
2 changed files with 17 additions and 3 deletions
+2 -1
View File
@@ -2219,7 +2219,8 @@ public class Mob extends AbstractIntelligenceAgent {
} catch(Exception e){
Logger.error( e.getMessage());
}
mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(this.getMobBaseID());
//mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(this.getMobBaseID());
mobPowers = (HashMap<Integer, Integer>) WorldServer.AllMobPowers.get(this.getMobBaseID()).entrySet();
if(this.isPlayerGuard() == true){
//load guards powers
ArrayList<MobBase> mobbases = DbManager.MobBaseQueries.GET_ALL_MOBBASES();