|
|
@ -1706,12 +1706,16 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
|
|
|
|
|
|
|
|
this.deathTime = 0; |
|
|
|
this.deathTime = 0; |
|
|
|
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(entry.level <= this.level) |
|
|
|
SkillsBase skillBase = SkillsBase.getFromCache(entry.token); |
|
|
|
if(this.skills.containsKey(entry.name) == false) |
|
|
|
if(skillBase == null) |
|
|
|
this.skills.put(entry.skill_type,new CharacterSkill(SkillsBase.getFromCache(entry.token),this,entry.rank)); |
|
|
|
continue; |
|
|
|
else |
|
|
|
if (entry.level <= this.level) |
|
|
|
this.skills.put(entry.skill_type,new CharacterSkill(SkillsBase.getFromCache(entry.token),this,entry.rank + this.skills.get(entry.skill_type).getNumTrains())); |
|
|
|
if (this.skills.containsKey(entry.name) == false) |
|
|
|
|
|
|
|
this.skills.put(entry.skill_type, new CharacterSkill(skillBase, this, entry.rank)); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
this.skills.put(entry.skill_type, new CharacterSkill(skillBase, this, entry.rank + this.skills.get(entry.skill_type).getNumTrains())); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|