mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 07:37:45 +00:00
Style fixes
This commit is contained in:
parent
606f6e126f
commit
c8216f0528
1 changed files with 4 additions and 2 deletions
|
@ -174,26 +174,28 @@ void Core::Entity::Actor::resetHp()
|
||||||
void Core::Entity::Actor::resetMp()
|
void Core::Entity::Actor::resetMp()
|
||||||
{
|
{
|
||||||
m_mp = getMaxMp();
|
m_mp = getMaxMp();
|
||||||
sendStatusUpdate(true);
|
sendStatusUpdate( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \param hp amount to set ( caps to maxHp ) */
|
/*! \param hp amount to set ( caps to maxHp ) */
|
||||||
void Core::Entity::Actor::setHp( uint32_t hp )
|
void Core::Entity::Actor::setHp( uint32_t hp )
|
||||||
{
|
{
|
||||||
m_hp = hp < getMaxHp() ? hp : getMaxHp();
|
m_hp = hp < getMaxHp() ? hp : getMaxHp();
|
||||||
sendStatusUpdate(true);
|
sendStatusUpdate( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \param mp amount to set ( caps to maxMp ) */
|
/*! \param mp amount to set ( caps to maxMp ) */
|
||||||
void Core::Entity::Actor::setMp( uint32_t mp )
|
void Core::Entity::Actor::setMp( uint32_t mp )
|
||||||
{
|
{
|
||||||
m_mp = mp < getMaxMp() ? mp : getMaxMp();
|
m_mp = mp < getMaxMp() ? mp : getMaxMp();
|
||||||
|
sendStatusUpdate( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \param gp amount to set*/
|
/*! \param gp amount to set*/
|
||||||
void Core::Entity::Actor::setGp( uint32_t gp )
|
void Core::Entity::Actor::setGp( uint32_t gp )
|
||||||
{
|
{
|
||||||
m_gp = gp;
|
m_gp = gp;
|
||||||
|
sendStatusUpdate( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \param type invincibility type to set */
|
/*! \param type invincibility type to set */
|
||||||
|
|
Loading…
Add table
Reference in a new issue