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

@ -15,7 +15,7 @@ class Creeper extends Monster{
}
public function getAttackDamage(){
return 0; //TODO special attack
return 0; //TODO special attack
}
public function setIgnited($v = null){

View file

@ -10,7 +10,7 @@ class PigZombie extends Monster{
$this->update();
}
public function getAttackDamage(){
return 5;
return 5;
}
public function getDrops(){
return [

View file

@ -11,7 +11,7 @@ class Skeleton extends Monster{
}
public function getAttackDamage(){
return 0; //TODO special attack
return 0; //TODO special attack
}
public function updateBurning(){

View file

@ -10,6 +10,10 @@ class Zombie extends Monster{
$this->update();
}
public function getArmorValue(){
return 2;
}
public function updateBurning(){
if($this->fire > 0 or !$this->level->isDay()){
return false;
@ -31,7 +35,7 @@ class Zombie extends Monster{
}
public function getAttackDamage(){
return 4; //TODO vanillafy(zombies might be able to hold items)
return 4; //TODO vanillafy(zombies might be able to hold items)
}
public function update(){