feat: Add Player Event OnReleasedGhost (#355)
This commit is contained in:
@@ -643,7 +643,8 @@ public:
|
||||
PLAYERHOOK_ON_CAN_UPDATE_SKILL,
|
||||
PLAYERHOOK_ON_BEFORE_UPDATE_SKILL,
|
||||
PLAYERHOOK_ON_UPDATE_SKILL,
|
||||
PLAYERHOOK_CAN_RESURRECT
|
||||
PLAYERHOOK_CAN_RESURRECT,
|
||||
PLAYERHOOK_ON_PLAYER_RELEASED_GHOST
|
||||
}) { }
|
||||
|
||||
void OnPlayerResurrect(Player* player, float /*restore_percent*/, bool /*applySickness*/) override
|
||||
@@ -955,11 +956,16 @@ public:
|
||||
{
|
||||
sALE->OnPlayerUpdateSkill(player, skill_id, value, max, step, new_value);
|
||||
}
|
||||
|
||||
|
||||
bool OnPlayerCanResurrect(Player* player) override
|
||||
{
|
||||
return sALE->CanPlayerResurrect(player);
|
||||
}
|
||||
|
||||
void OnPlayerReleasedGhost(Player* player) override
|
||||
{
|
||||
sALE->OnPlayerReleasedGhost(player);
|
||||
}
|
||||
};
|
||||
|
||||
class ALE_ServerScript : public ServerScript
|
||||
|
||||
Reference in New Issue
Block a user