mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 20:36:42 +00:00
don't increase skill beyond 100
This commit is contained in:
parent
f5237ff1a6
commit
0dc242c603
1 changed files with 3 additions and 0 deletions
|
@ -157,6 +157,9 @@ void MWMechanics::NpcStats::increaseSkill(int skillIndex, const ESM::Class &clas
|
||||||
|
|
||||||
int level = static_cast<int> (base);
|
int level = static_cast<int> (base);
|
||||||
|
|
||||||
|
if (level == 100)
|
||||||
|
return;
|
||||||
|
|
||||||
if (preserveProgress)
|
if (preserveProgress)
|
||||||
base += 1;
|
base += 1;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue