mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
separated tnt class from all other ones
This commit is contained in:
parent
002f7f0946
commit
218dd4ffa4
10 changed files with 78 additions and 60 deletions
|
|
@ -23,7 +23,7 @@ class Chicken extends Animal{
|
|||
}
|
||||
|
||||
public function getDrops(){
|
||||
return $this->isBaby() ? array() :
|
||||
return $this->isBaby() ? parent::getDrops() :
|
||||
array(
|
||||
array(FEATHER, 0, mt_rand(0,2)),
|
||||
array(($this->fire > 0 ? COOKED_CHICKEN : RAW_CHICKEN), 0, 1),
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ class Cow extends Animal{
|
|||
}
|
||||
|
||||
public function getDrops(){
|
||||
return $this->isBaby() ? array() :
|
||||
return $this->isBaby() ? parent::getDrops() :
|
||||
array(
|
||||
array(LEATHER, 0, mt_rand(0,2)),
|
||||
array(($this->fire > 0 ? STEAK:BEEF), 0, 1),
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class Pig extends Animal{
|
|||
return $id === POTATO || $id === CARROT || $id === BEETROOT;
|
||||
}
|
||||
public function getDrops(){
|
||||
return $this->isBaby() ? array() :
|
||||
return $this->isBaby() ? parent::getDrops() :
|
||||
array(
|
||||
array(($this->fire > 0 ? COOKED_PORKCHOP:RAW_PORKCHOP), 0, 1),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ class Sheep extends Animal{
|
|||
}
|
||||
|
||||
public function getDrops(){
|
||||
return $this->isBaby() ? array() :
|
||||
return $this->isBaby() ? parent::getDrops() :
|
||||
array(
|
||||
array(WOOL, $this->data["Color"] & 0x0F, 1),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue