From 57690b81a24a29d70cb6f4196a6e0f521a3cb61b Mon Sep 17 00:00:00 2001 From: changyong guo Date: Thu, 2 Aug 2018 22:59:10 +0800 Subject: Experience orb (#4259) * Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216 --- src/Entities/ExpOrb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Entities/ExpOrb.h') diff --git a/src/Entities/ExpOrb.h b/src/Entities/ExpOrb.h index 20ac6e304..c4519e963 100644 --- a/src/Entities/ExpOrb.h +++ b/src/Entities/ExpOrb.h @@ -44,6 +44,9 @@ public: // tolua_end + /** Split reward into small values according to regular Minecraft rules */ + static std::vector Split(int a_Reward); + protected: int m_Reward; -- cgit v1.2.3