mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
11 lines
315 B
PHP
11 lines
315 B
PHP
<?php
|
|
class Monster extends Creature{
|
|
public function __construct(Level $level, $eid, $class, $type = 0, $data = []){
|
|
parent::__construct($level, $eid, $class, $type, $data);
|
|
$this->ai->addTask(new TaskAttackPlayer());
|
|
}
|
|
|
|
public function getAttackDamage(){
|
|
return 2;
|
|
}
|
|
}
|