Merge pull request #2806 from SafwatHalaby/gargraj-chicken
[Gargaj] - Baby chickens don't lay eggs
This commit is contained in:
commit
7285a43cf6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user