summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.h
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-03-22 11:39:32 +0100
committerGitHub <noreply@github.com>2020-03-22 11:39:32 +0100
commitc750c4e55fb103a99cc36ed76e247ae41a323581 (patch)
treea2d38f3a599ca4fdc9c9d06c5ca2486bc2eb189a /src/Entities/Entity.h
parentDon't remove items twice (#4524) (diff)
downloadcuberite-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 'src/Entities/Entity.h')
-rw-r--r--src/Entities/Entity.h4
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 */