From 32ee1708a24836b26cd700eb42ad8264a3ecae83 Mon Sep 17 00:00:00 2001 From: 12xx12 <44411062+12xx12@users.noreply.github.com> Date: Fri, 9 Oct 2020 22:49:25 +0200 Subject: Adding wolf breading and moving breeding functionality to cMonster (#4951) * added wolf breading * mpoved breeding to monster * checkstyle * fixed my IDE "helping" * removed magic number and fixed faster aging * added flooring to age manipulation * fixed copiler error * fixed typo * moved tps to Defines.h * removed the TPS constant from the lua API exposure * added inline constexpr added explanation * fixed broken build * "fixed" build Co-authored-by: 12xx12 <12xx12100@gmail.com> --- src/Mobs/Wolf.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/Mobs/Wolf.h') diff --git a/src/Mobs/Wolf.h b/src/Mobs/Wolf.h index 6ce708a52..d3b689ef3 100644 --- a/src/Mobs/Wolf.h +++ b/src/Mobs/Wolf.h @@ -59,6 +59,23 @@ public: virtual void InStateIdle(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; + virtual void InheritFromParents(cMonster * a_Parent1, cMonster * a_Parent2) override; + virtual void GetBreedingItems(cItems & a_Items) override + { + a_Items.Add(E_ITEM_RAW_BEEF); + a_Items.Add(E_ITEM_STEAK); + a_Items.Add(E_ITEM_RAW_PORKCHOP); + a_Items.Add(E_ITEM_COOKED_PORKCHOP); + a_Items.Add(E_ITEM_RAW_CHICKEN); + a_Items.Add(E_ITEM_COOKED_CHICKEN); + a_Items.Add(E_ITEM_RAW_MUTTON); + a_Items.Add(E_ITEM_COOKED_MUTTON); + a_Items.Add(E_ITEM_RAW_RABBIT); + a_Items.Add(E_ITEM_COOKED_RABBIT); + a_Items.Add(E_ITEM_ROTTEN_FLESH); + } + + protected: bool m_IsSitting; -- cgit v1.2.3