From 84f86a467e7c289936571c738f9422868ecaaee6 Mon Sep 17 00:00:00 2001 From: Mat Date: Thu, 26 Mar 2020 19:54:40 +0200 Subject: Improvements to blaze and ghast (#4547) --- src/Mobs/Blaze.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Mobs/Blaze.h') diff --git a/src/Mobs/Blaze.h b/src/Mobs/Blaze.h index ca755b626..3e6726efa 100644 --- a/src/Mobs/Blaze.h +++ b/src/Mobs/Blaze.h @@ -17,6 +17,15 @@ public: CLASS_PROTODEF(cBlaze) + virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override; virtual bool Attack(std::chrono::milliseconds a_Dt) override; + +private: + /** Specifies whether or not the blaze has started shooting fireballs. */ + bool m_IsCharging; + + /** Number of ticks since the blaze started charging. + Used to create 3 successive projectiles. */ + int m_ChargeTimer; } ; -- cgit v1.2.3