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
This commit is contained in:
committed by
peterbell10
parent
1e014a54dc
commit
57690b81a2
+1
-1
@@ -1937,7 +1937,7 @@ void cSlotAreaFurnace::HandleSmeltItem(const cItem & a_Result, cPlayer & a_Playe
|
||||
int Reward = m_Furnace->GetAndResetReward();
|
||||
if (Reward > 0)
|
||||
{
|
||||
a_Player.GetWorld()->SpawnExperienceOrb(a_Player.GetPosX(), a_Player.GetPosY(), a_Player.GetPosZ(), Reward);
|
||||
a_Player.GetWorld()->SpawnSplitExperienceOrbs(a_Player.GetPosX(), a_Player.GetPosY(), a_Player.GetPosZ(), Reward);
|
||||
}
|
||||
|
||||
/** TODO 2014-05-12 xdot: Figure out when to call this method. */
|
||||
|
||||
Reference in New Issue
Block a user