From 26dbb072e5a704ea106a78e19d78b3d02ae5b3f4 Mon Sep 17 00:00:00 2001 From: lightman Date: Tue, 14 Dec 2010 23:10:18 +0300 Subject: [PATCH] [10878] Update achievement at maximize skill level by command or config option. Signed-off-by: VladimirMangos --- src/game/Player.cpp | 2 ++ src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 5582c8513..27eed5b9a 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -5677,6 +5677,7 @@ void Player::UpdateSkillsForLevel() SetUInt32Value(valueIndex, MAKE_SKILL_VALUE(maxSkill,maxSkill)); if(itr->second.uState != SKILL_NEW) itr->second.uState = SKILL_CHANGED; + GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, pskill); } else if(max != maxconfskill) /// update max skill value if current max skill not maximized { @@ -5708,6 +5709,7 @@ void Player::UpdateSkillsToMaxSkillsForLevel() SetUInt32Value(valueIndex,MAKE_SKILL_VALUE(max,max)); if(itr->second.uState != SKILL_NEW) itr->second.uState = SKILL_CHANGED; + GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, pskill); } if(pskill == SKILL_DEFENSE) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b527d41a1..dd8a828c0 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10877" + #define REVISION_NR "10878" #endif // __REVISION_NR_H__