From 59e906ec6caac03a705d194705cc2859c5797632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Imrich?= Date: Fri, 22 Jan 2021 10:05:18 +0100 Subject: Implementation of totem of undying behaviour (#5111) * notchian totem of undying * ... * .... * Update src/Entities/Pawn.cpp Co-authored-by: Alexander Harkness * DeductTotem func * fixed build errors * Added myself to CONTRIBUTORS * Small changes Co-authored-by: Peter Co-authored-by: Alexander Harkness Co-authored-by: Tiger Wang --- src/Entities/Pawn.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Entities/Pawn.h') diff --git a/src/Entities/Pawn.h b/src/Entities/Pawn.h index 1a9285b77..ab8d66a58 100644 --- a/src/Entities/Pawn.h +++ b/src/Entities/Pawn.h @@ -71,6 +71,7 @@ public: cEntityEffect * GetEntityEffect(cEntityEffect::eType a_EffectType) const; protected: + typedef std::map> tEffectMap; tEffectMap m_EntityEffects; @@ -83,4 +84,8 @@ private: /** A list of all monsters that are targeting this pawn. */ std::vector m_TargetingMe; + + /** Attempt to activate a Totem of Undying. + If activation for the given type of damage was successful, consumes the totem and returns true. */ + bool DeductTotem(eDamageType a_DamageType); } ; // tolua_export -- cgit v1.2.3