1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-29 22:55:19 +01:00

Damage: Play no damage sound when immortal (#8350)

Add isImmortal server-side for proper enable_damage handling
Rework log messages
This commit is contained in:
SmallJoker
2019-06-09 11:25:41 +02:00
committed by GitHub
parent 2ba6785f09
commit a687efa6df
4 changed files with 29 additions and 38 deletions

View File

@@ -45,6 +45,8 @@ public:
inline bool isAttached() const
{ return getParent(); }
inline bool isImmortal() const
{ return itemgroup_get(m_armor_groups, "immortal"); }
void setArmorGroups(const ItemGroupList &armor_groups);
const ItemGroupList &getArmorGroups();