|
|
@ -338,16 +338,19 @@ namespace MWMechanics
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool updateSkills = false;
|
|
|
|
//Loop over ESM::Skill::SkillEnum
|
|
|
|
//Loop over ESM::Skill::SkillEnum
|
|
|
|
for(int i = 0; i < ESM::Skill::Length; ++i)
|
|
|
|
for(int i = 0; i < ESM::Skill::Length; ++i)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(stats.getSkill(i) != mWatchedSkills[i] || mWatchedStatsEmpty)
|
|
|
|
if(stats.getSkill(i) != mWatchedSkills[i] || mWatchedStatsEmpty)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
updateSkills = true;
|
|
|
|
mWatchedSkills[i] = stats.getSkill(i);
|
|
|
|
mWatchedSkills[i] = stats.getSkill(i);
|
|
|
|
winMgr->setValue((ESM::Skill::SkillEnum)i, stats.getSkill(i));
|
|
|
|
winMgr->setValue((ESM::Skill::SkillEnum)i, stats.getSkill(i));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (updateSkills) { winMgr->updateSkillArea(); }
|
|
|
|
winMgr->setValue("level", stats.getLevel());
|
|
|
|
winMgr->setValue("level", stats.getLevel());
|
|
|
|
|
|
|
|
|
|
|
|
mWatchedStatsEmpty = false;
|
|
|
|
mWatchedStatsEmpty = false;
|
|
|
|