mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-28 20:27:46 +00:00
should not gain any exp past max level
This commit is contained in:
parent
628c1e20f5
commit
cea200a519
1 changed files with 5 additions and 0 deletions
|
@ -696,6 +696,11 @@ bool Sapphire::Entity::Player::isActionLearned( uint8_t actionId ) const
|
||||||
|
|
||||||
void Sapphire::Entity::Player::gainExp( uint32_t amount )
|
void Sapphire::Entity::Player::gainExp( uint32_t amount )
|
||||||
{
|
{
|
||||||
|
if( getLevel() >= Common::MAX_PLAYER_LEVEL )
|
||||||
|
{
|
||||||
|
setExp( 0 );
|
||||||
|
return;
|
||||||
|
}
|
||||||
auto pExdData = m_pFw->get< Data::ExdDataGenerated >();
|
auto pExdData = m_pFw->get< Data::ExdDataGenerated >();
|
||||||
|
|
||||||
uint32_t currentExp = getExp();
|
uint32_t currentExp = getExp();
|
||||||
|
|
Loading…
Add table
Reference in a new issue