mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02:00
Add reasons to on_dieplayer and on_hpchange
This commit is contained in:
@@ -46,6 +46,7 @@ class ServerEnvironment;
|
||||
struct ItemStack;
|
||||
struct ToolCapabilities;
|
||||
struct ObjectProperties;
|
||||
struct PlayerHPChangeReason;
|
||||
|
||||
class ServerActiveObject : public ActiveObject
|
||||
{
|
||||
@@ -139,7 +140,7 @@ public:
|
||||
{ return 0; }
|
||||
virtual void rightClick(ServerActiveObject *clicker)
|
||||
{}
|
||||
virtual void setHP(s16 hp)
|
||||
virtual void setHP(s16 hp, const PlayerHPChangeReason &reason)
|
||||
{}
|
||||
virtual s16 getHP() const
|
||||
{ return 0; }
|
||||
|
Reference in New Issue
Block a user