1
0

Player: Removed food-poisoning-specific code, set duration to 30 seconds

http://minecraft.gamepedia.com/Hunger#Behavior
This commit is contained in:
archshift
2014-06-06 21:55:23 -07:00
parent 481f05b011
commit 2123173202
3 changed files with 3 additions and 27 deletions

View File

@@ -577,7 +577,7 @@ bool cItemHandler::EatItem(cPlayer * a_Player, cItem * a_Item)
cFastRandom r1;
if ((r1.NextInt(100, a_Player->GetUniqueID()) - Info.PoisonChance) <= 0)
{
a_Player->FoodPoison(300);
a_Player->FoodPoison(600); // Give the player food poisoning for 30 seconds.
}
}