mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[10878] Update achievement at maximize skill level by command or config option.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
801fcca274
commit
26dbb072e5
2 changed files with 3 additions and 1 deletions
|
|
@ -5677,6 +5677,7 @@ void Player::UpdateSkillsForLevel()
|
||||||
SetUInt32Value(valueIndex, MAKE_SKILL_VALUE(maxSkill,maxSkill));
|
SetUInt32Value(valueIndex, MAKE_SKILL_VALUE(maxSkill,maxSkill));
|
||||||
if(itr->second.uState != SKILL_NEW)
|
if(itr->second.uState != SKILL_NEW)
|
||||||
itr->second.uState = SKILL_CHANGED;
|
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
|
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));
|
SetUInt32Value(valueIndex,MAKE_SKILL_VALUE(max,max));
|
||||||
if(itr->second.uState != SKILL_NEW)
|
if(itr->second.uState != SKILL_NEW)
|
||||||
itr->second.uState = SKILL_CHANGED;
|
itr->second.uState = SKILL_CHANGED;
|
||||||
|
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, pskill);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(pskill == SKILL_DEFENSE)
|
if(pskill == SKILL_DEFENSE)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10877"
|
#define REVISION_NR "10878"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue