zombies and skeletons will burn now:

This commit is contained in:
GameHerobrine 2022-11-13 02:47:35 +03:00
parent 6dae45045b
commit cf13bd4c43
6 changed files with 54 additions and 27 deletions

View file

@ -17,6 +17,7 @@ class Chicken extends Animal{
}
public function update(){
parent::update();
if($this->timeUntilEgg-- <= 0){
$this->dropAnEgg();
$this->timeUntilEgg = mt_rand(0,6000) + 6000;