early breeding classes, it still doesnt work although it might be implemented later

This commit is contained in:
GameHerobrine 2022-06-17 19:49:36 +03:00
parent 7ec27bfb04
commit d7bfd96739
7 changed files with 22 additions and 5 deletions

View file

@ -8,7 +8,9 @@ class Pig extends Animal{
//$this->setName('Pig');
$this->size = $this->isBaby() ? 0.60 : 1.1875;
}
public function isFood($id){
return $id === POTATO || $id === CARROT || $id === BEETROOT;
}
public function getDrops(){
return $this->isBaby() ? array() :
array(