mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
armor rewrite
This commit is contained in:
parent
45b36cb034
commit
bae0d4618e
34 changed files with 143 additions and 67 deletions
|
|
@ -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){
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class PigZombie extends Monster{
|
|||
$this->update();
|
||||
}
|
||||
public function getAttackDamage(){
|
||||
return 5;
|
||||
return 5;
|
||||
}
|
||||
public function getDrops(){
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ class Skeleton extends Monster{
|
|||
}
|
||||
|
||||
public function getAttackDamage(){
|
||||
return 0; //TODO special attack
|
||||
return 0; //TODO special attack
|
||||
}
|
||||
|
||||
public function updateBurning(){
|
||||
|
|
|
|||
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue