1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Add possibility to easier override HP and breath engine logic by Lua (#14179)

Co-authored-by: Lars Mueller <appgurulars@gmx.de>
This commit is contained in:
sfence
2024-08-21 20:24:43 +02:00
committed by GitHub
parent dc21924f31
commit f2c66b9ceb
6 changed files with 66 additions and 4 deletions

View File

@@ -228,6 +228,12 @@ private:
SimpleMetadata m_meta;
public:
struct {
bool breathing : 1;
bool drowning : 1;
bool node_damage : 1;
} m_flags = {true, true, true};
bool m_physics_override_sent = false;
};