mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
small changes to entity ai(again =/)
This commit is contained in:
parent
c29d8dab9d
commit
978447cdbb
9 changed files with 44 additions and 41 deletions
|
|
@ -9,7 +9,7 @@ abstract class Creature extends Living{
|
|||
public $inPanic;
|
||||
|
||||
public function __construct(Level $level, $eid, $class, $type = 0, $data = []){
|
||||
$this->inPanic = true;
|
||||
$this->inPanic = false; //force for now
|
||||
parent::__construct($level, $eid, $class, $type, $data);
|
||||
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 1, "generic");
|
||||
//$this->setName((isset($mobs[$this->type]) ? $mobs[$this->type]:$this->type));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue