From 853e6e6882969f24547d782d42a3c19df4395064 Mon Sep 17 00:00:00 2001 From: Gargaj Date: Sat, 14 Nov 2015 16:42:26 +0100 Subject: change from single followable item to multiple --- src/Mobs/Rabbit.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Mobs/Rabbit.h') diff --git a/src/Mobs/Rabbit.h b/src/Mobs/Rabbit.h index 56181e3d0..79a9afe15 100644 --- a/src/Mobs/Rabbit.h +++ b/src/Mobs/Rabbit.h @@ -34,7 +34,12 @@ public: CLASS_PROTODEF(cRabbit) virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override; - virtual const cItem GetFollowedItem(void) const override { return cItem(E_ITEM_CARROT); } + virtual void GetFollowedItems(cItems & a_Items) override + { + a_Items.Add(E_ITEM_CARROT); + a_Items.Add(E_ITEM_GOLDEN_CARROT); + a_Items.Add(E_BLOCK_DANDELION); + } eRabbitType GetRabbitType() const { return m_Type; } UInt8 GetRabbitTypeAsNumber() const { return static_cast(GetRabbitType()); } -- cgit v1.2.3