diff options
author | Mat <mail@mathias.is> | 2020-03-22 11:39:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-22 11:39:32 +0100 |
commit | c750c4e55fb103a99cc36ed76e247ae41a323581 (patch) | |
tree | a2d38f3a599ca4fdc9c9d06c5ca2486bc2eb189a /src/Entities/Entity.h | |
parent | Don't remove items twice (#4524) (diff) | |
download | cuberite-c750c4e55fb103a99cc36ed76e247ae41a323581.tar cuberite-c750c4e55fb103a99cc36ed76e247ae41a323581.tar.gz cuberite-c750c4e55fb103a99cc36ed76e247ae41a323581.tar.bz2 cuberite-c750c4e55fb103a99cc36ed76e247ae41a323581.tar.lz cuberite-c750c4e55fb103a99cc36ed76e247ae41a323581.tar.xz cuberite-c750c4e55fb103a99cc36ed76e247ae41a323581.tar.zst cuberite-c750c4e55fb103a99cc36ed76e247ae41a323581.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index 563db7b9e..a6404a128 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -357,10 +357,10 @@ public: virtual bool ArmorCoversAgainst(eDamageType a_DamageType); /** Returns the hitpoints out of a_RawDamage that the currently equipped armor would cover */ - virtual int GetArmorCoverAgainst(const cEntity * a_Attacker, eDamageType a_DamageType, int a_RawDamage); + virtual float GetArmorCoverAgainst(const cEntity * a_Attacker, eDamageType a_DamageType, int a_RawDamage); /** Returns the hitpoints that the currently equipped armor's enchantments would cover */ - virtual int GetEnchantmentCoverAgainst(const cEntity * a_Attacker, eDamageType a_DamageType, int a_Damage); + virtual float GetEnchantmentCoverAgainst(const cEntity * a_Attacker, eDamageType a_DamageType, int a_Damage); /** Returns explosion knock back reduction percent from blast protection level @return knock back reduce percent */ |