1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-25 02:57:45 +00:00

refactor: Missed some inconsistents

This commit is contained in:
Matthe815 2023-01-06 12:50:13 -05:00
parent b2bd202ed7
commit b811dd1197
No known key found for this signature in database
GPG key ID: 6B963FE816B1DC39

View file

@ -152,7 +152,7 @@ bool Sapphire::Entity::Player::loadFromDb( uint64_t characterId )
// Stats // Stats
m_hp = res->getUInt( "Hp" ); m_hp = res->getUInt( "Hp" );
m_mp = res->getUInt( "Mp" ); m_mp = res->getUInt( "Mp" );
m_tp = res->getUInt("Tp"); m_tp = res->getUInt( "Tp" );
m_maxHp = getMaxHp(); m_maxHp = getMaxHp();
m_maxMp = getMaxMp(); m_maxMp = getMaxMp();
@ -168,6 +168,7 @@ bool Sapphire::Entity::Player::loadFromDb( uint64_t characterId )
m_bNewGame = false; m_bNewGame = false;
m_hp = getMaxHp(); m_hp = getMaxHp();
m_mp = getMaxMp(); m_mp = getMaxMp();
m_tp = 1000;
} }
if( m_hp == 0 ) if( m_hp == 0 )