Browse Source

SkillsBase are now cached when missing for mobs

combat-2
FatBoy-DOTC 1 year ago
parent
commit
0758bb5f38
  1. 2
      src/engine/objects/Mob.java

2
src/engine/objects/Mob.java

@ -1709,6 +1709,8 @@ public class Mob extends AbstractIntelligenceAgent {
//load mob skill adjustments form mobbase rune //load mob skill adjustments form mobbase rune
if(PowersManager._allRuneSkillAdjusts.containsKey(this.getMobBaseID())) if(PowersManager._allRuneSkillAdjusts.containsKey(this.getMobBaseID()))
for(RuneSkillAdjustEntry entry : PowersManager._allRuneSkillAdjusts.get(this.getMobBaseID())) { for(RuneSkillAdjustEntry entry : PowersManager._allRuneSkillAdjusts.get(this.getMobBaseID())) {
if(SkillsBase.getFromCache(entry.skill_type) == null)
SkillsBase.putInCache(DbManager.SkillsBaseQueries.GET_BASE_BY_NAME(entry.skill_type));
SkillsBase skillBase = SkillsBase.getFromCache(entry.skill_type); SkillsBase skillBase = SkillsBase.getFromCache(entry.skill_type);
if(skillBase == null) if(skillBase == null)
continue; continue;

Loading…
Cancel
Save