armor rewrite

This commit is contained in:
GameHerobrine 2023-01-23 17:39:57 +03:00
parent 45b36cb034
commit bae0d4618e
34 changed files with 143 additions and 67 deletions

View file

@ -28,7 +28,9 @@ abstract class Creature extends Living{
public function getSpeedModifer(){
return $this->speedModifer * ($this->inPanic ? 1.4 : 0.7);
}
public function getArmorValue(){
return 2;
}
public function spawn($player){
if(!($player instanceof Player)){
$player = $this->server->api->player->get($player);