diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-06-09 11:25:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-09 11:25:41 +0200 |
commit | a687efa6dfb97927d94db4d2f05970cde9d4181f (patch) | |
tree | f3f5712e65a12a20bc87beba95d8a2b6011bbb75 /src/content_sao.h | |
parent | 2ba6785f090bcf0dbc6fadb77a6ec0fab84d0690 (diff) | |
download | minetest-a687efa6dfb97927d94db4d2f05970cde9d4181f.tar.gz minetest-a687efa6dfb97927d94db4d2f05970cde9d4181f.tar.bz2 minetest-a687efa6dfb97927d94db4d2f05970cde9d4181f.zip |
Damage: Play no damage sound when immortal (#8350)
Add isImmortal server-side for proper enable_damage handling
Rework log messages
Diffstat (limited to 'src/content_sao.h')
-rw-r--r-- | src/content_sao.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index 1321edb91..9fbddbc5a 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -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(); |