mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
20 lines
No EOL
563 B
PHP
20 lines
No EOL
563 B
PHP
<?php
|
|
class Zombie extends Monster{
|
|
const TYPE = MOB_ZOMBIE;
|
|
|
|
function __construct(Level $level, $eid, $class, $type = 0, $data = array()){
|
|
parent::__construct($level, $eid, $class, $type, $data);
|
|
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 12, "generic");
|
|
$this->setName('Zombie');
|
|
$this->setSize(0.6, 1.95);
|
|
$this->update();
|
|
}
|
|
|
|
public function getDrops(){
|
|
return array(
|
|
array(CARROT, 0, Utils::chance(0.83) ? 1 : 0),
|
|
array(POTATO, 0, Utils::chance(0.83) ? 1 : 0),
|
|
array(FEATHER, 0, mt_rand(0,2)),
|
|
);
|
|
}
|
|
} |