From 73b8be0fef6603b5dd3a101c26a4947669068d5e Mon Sep 17 00:00:00 2001 From: bibo38 Date: Sat, 31 Oct 2015 16:24:45 +0100 Subject: Implemented the FireResistence potion effects. This not only provides fire resistence, but also prevents blaze fireballs. See #2556 --- src/Entities/Pawn.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Entities/Pawn.h') diff --git a/src/Entities/Pawn.h b/src/Entities/Pawn.h index e3e99651d..40ce9b2dd 100644 --- a/src/Entities/Pawn.h +++ b/src/Entities/Pawn.h @@ -23,6 +23,8 @@ public: virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; virtual void KilledBy(TakeDamageInfo & a_TDI) override; + virtual bool IsFireproof(void) const override; + // tolua_begin /** Applies an entity effect @@ -39,6 +41,11 @@ public: */ void RemoveEntityEffect(cEntityEffect::eType a_EffectType); + /** Returns true, if the entity effect is currently applied + @param a_EffectType The entity effect to check + */ + bool HasEntityEffect(cEntityEffect::eType a_EffectType) const; + /** Removes all currently applied entity effects (used when drinking milk) */ void ClearEntityEffects(void); -- cgit v1.2.3