mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +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:
@@ -191,7 +191,7 @@ void read_object_properties(lua_State *L, int index,
|
||||
|
||||
int hp_max = 0;
|
||||
if (getintfield(L, -1, "hp_max", hp_max))
|
||||
prop->hp_max = (s16)rangelim(hp_max, 0, S16_MAX);
|
||||
prop->hp_max = (u16)rangelim(hp_max, 0, U16_MAX);
|
||||
|
||||
getintfield(L, -1, "breath_max", prop->breath_max);
|
||||
getboolfield(L, -1, "physical", prop->physical);
|
||||
|
Reference in New Issue
Block a user