mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Consistent HP and damage types (#8167)
Remove deprecated HUDs and chat message handling. Remove unused m_damage variable (compat break). HP: s32 for setter/calculations, u16 for getter.
This commit is contained in:
@@ -183,8 +183,8 @@ int ObjectRef::l_punch(lua_State *L)
|
||||
ToolCapabilities toolcap = read_tool_capabilities(L, 4);
|
||||
dir.normalize();
|
||||
|
||||
s16 src_original_hp = co->getHP();
|
||||
s16 dst_origin_hp = puncher->getHP();
|
||||
u16 src_original_hp = co->getHP();
|
||||
u16 dst_origin_hp = puncher->getHP();
|
||||
|
||||
// Do it
|
||||
co->punch(dir, &toolcap, puncher, time_from_last_punch);
|
||||
|
Reference in New Issue
Block a user