mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Removed damage-table mess and added API methods Item->getAttackPoints() and Item->getDefensePoints()
This commit is contained in:
@ -28,4 +28,8 @@ class GoldLeggings extends Armor{
|
||||
public function __construct(int $meta = 0){
|
||||
parent::__construct(self::GOLD_LEGGINGS, $meta, "Gold Leggings");
|
||||
}
|
||||
|
||||
public function getDefensePoints() : int{
|
||||
return 3;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user