|
|
@ -407,7 +407,7 @@ public enum NPCManager { |
|
|
|
mob.getSkills().put(baseSkill.getName(),new CharacterSkill(baseSkill,mob,mob.mobBase.getMobBaseStats().getBaseSkillAmount())); |
|
|
|
mob.getSkills().put(baseSkill.getName(),new CharacterSkill(baseSkill,mob,mob.mobBase.getMobBaseStats().getBaseSkillAmount())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void applyRuneSkills(AbstractCharacter character,int runeID){ |
|
|
|
public static void applyRuneSkills(Mob mob, int runeID){ |
|
|
|
//load mob skill adjustments from mobbase rune
|
|
|
|
//load mob skill adjustments from mobbase rune
|
|
|
|
if(PowersManager._allRuneSkillAdjusts.containsKey(runeID)) |
|
|
|
if(PowersManager._allRuneSkillAdjusts.containsKey(runeID)) |
|
|
|
for(RuneSkillAdjustEntry entry : PowersManager._allRuneSkillAdjusts.get(runeID)) { |
|
|
|
for(RuneSkillAdjustEntry entry : PowersManager._allRuneSkillAdjusts.get(runeID)) { |
|
|
@ -416,11 +416,11 @@ public enum NPCManager { |
|
|
|
SkillsBase skillBase = SkillsBase.getFromCache(entry.skill_type); |
|
|
|
SkillsBase skillBase = SkillsBase.getFromCache(entry.skill_type); |
|
|
|
if(skillBase == null) |
|
|
|
if(skillBase == null) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
if (entry.level <= character.level) |
|
|
|
if (entry.level <= mob.level) |
|
|
|
if (character.skills.containsKey(entry.name) == false) |
|
|
|
if (mob.skills.containsKey(entry.name) == false) |
|
|
|
character.skills.put(entry.skill_type, new CharacterSkill(skillBase, character, entry.rank)); |
|
|
|
mob.skills.put(entry.skill_type, new CharacterSkill(skillBase, mob, entry.rank)); |
|
|
|
else |
|
|
|
else |
|
|
|
character.skills.put(entry.skill_type, new CharacterSkill(skillBase, character, entry.rank + character.skills.get(entry.skill_type).getNumTrains())); |
|
|
|
mob.skills.put(entry.skill_type, new CharacterSkill(skillBase, mob, entry.rank + mob.skills.get(entry.skill_type).getNumTrains())); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|