1
0

Added E_EFFECT_<Effect>

This commit is contained in:
STRWarrior
2013-12-14 22:23:20 +01:00
parent 123799a4e0
commit 71250b275f
2 changed files with 32 additions and 3 deletions

View File

@@ -557,12 +557,12 @@ void cPlayer::FoodPoison(int a_NumTicks)
m_FoodPoisonedTicksRemaining = std::max(m_FoodPoisonedTicksRemaining, a_NumTicks);
if (!HasBeenFoodPoisoned)
{
m_ClientHandle->SendRemoveEntityEffect(*this, 17);
m_ClientHandle->SendRemoveEntityEffect(*this, E_EFFECT_HUNGER);
SendHealth();
}
else
{
m_ClientHandle->SendEntityEffect(*this, 17, 0, 20);
m_ClientHandle->SendEntityEffect(*this, E_EFFECT_HUNGER, 0, 20);
}
}
@@ -1710,7 +1710,7 @@ void cPlayer::HandleFood(void)
}
else
{
m_ClientHandle->SendRemoveEntityEffect(*this, 17); // remove the "Hunger" effect.
m_ClientHandle->SendRemoveEntityEffect(*this, E_EFFECT_HUNGER); // remove the "Hunger" effect.
}
// Apply food exhaustion that has accumulated: