mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 08:35:52 -04:00
Use setLevelProgress when setting LocalPlayer's skills
This commit is contained in:
parent
8fbc6f31f1
commit
f4621d8529
@ -153,6 +153,9 @@ void LocalPlayer::updateLevel(bool forceUpdate)
|
|||||||
{
|
{
|
||||||
CreatureStats()->mLevel = ptrNpcStats.getLevel();
|
CreatureStats()->mLevel = ptrNpcStats.getLevel();
|
||||||
GetNetworking()->GetPacket(ID_GAME_LEVEL)->Send(this);
|
GetNetworking()->GetPacket(ID_GAME_LEVEL)->Send(this);
|
||||||
|
|
||||||
|
// Also update skills to refresh level progress
|
||||||
|
updateSkills(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -297,6 +300,8 @@ void LocalPlayer::setSkills()
|
|||||||
skillValue.readState(NpcStats()->mSkills[i]);
|
skillValue.readState(NpcStats()->mSkills[i]);
|
||||||
ptrNpcStats->setSkill(i, skillValue);
|
ptrNpcStats->setSkill(i, skillValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ptrNpcStats->setLevelProgress(NpcStats()->mLevelProgress);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocalPlayer::setLevel()
|
void LocalPlayer::setLevel()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user