Fixed Details Xoft gave.
Increased the range where orbs (should) track you. Blazes give 10 xp now.
This commit is contained in:
@@ -40,7 +40,7 @@ void cExpOrb::SpawnOn(cClientHandle & a_Client)
|
||||
|
||||
void cExpOrb::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
{
|
||||
cPlayer * a_ClosestPlayer(m_World->FindClosestPlayer(Vector3f(GetPosition()), 3));
|
||||
cPlayer * a_ClosestPlayer(m_World->FindClosestPlayer(Vector3f(GetPosition()), 4));
|
||||
if (a_ClosestPlayer)
|
||||
{
|
||||
Vector3f a_PlayerPos(a_ClosestPlayer->GetPosition());
|
||||
|
||||
@@ -22,7 +22,7 @@ public:
|
||||
virtual void SpawnOn(cClientHandle & a_Client) override;
|
||||
|
||||
// cExpOrb functions
|
||||
short int GetReward(void) const { return m_Reward; }
|
||||
int GetReward(void) const { return m_Reward; }
|
||||
|
||||
protected:
|
||||
int m_Reward;
|
||||
|
||||
Reference in New Issue
Block a user