1
0

Fixed hunger bugs, Implemented golden apple, added jump statistic, added correct food effects.

This commit is contained in:
Howaner
2014-07-31 23:04:00 +02:00
parent 5a1f9e5044
commit 84462ba8b2
8 changed files with 177 additions and 48 deletions

View File

@@ -309,7 +309,7 @@ void cEntityEffectHunger::OnTick(cPawn & a_Target)
if (a_Target.IsPlayer())
{
cPlayer & Target = (cPlayer &) a_Target;
Target.SetFoodExhaustionLevel(Target.GetFoodExhaustionLevel() + 0.025); // 0.5 per second = 0.025 per tick
Target.AddFoodExhaustion(0.025 * ((double)GetIntensity() + 1.0)); // 0.5 per second = 0.025 per tick
}
}