1
0
Fork 0

Merge pull request #2806 from SafwatHalaby/gargraj-chicken

[Gargaj] - Baby chickens don't lay eggs
This commit is contained in:
Safwat Halaby 2015-12-23 16:31:35 +02:00
commit 7285a43cf6
1 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,11 @@ void cChicken::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
super::Tick(a_Dt, a_Chunk);
if (IsBaby())
{
return; // Babies don't lay eggs
}
if ((m_EggDropTimer == 6000) && (m_World->GetTickRandomNumber(1) == 0))
{
cItems Drops;