mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Declare tool harvest level as a property
This commit is contained in:
@ -35,6 +35,10 @@ class Pickaxe extends TieredTool{
|
||||
return BlockToolType::TYPE_PICKAXE;
|
||||
}
|
||||
|
||||
public function getBlockToolHarvestLevel() : int{
|
||||
return $this->tier;
|
||||
}
|
||||
|
||||
public function getAttackPoints() : int{
|
||||
return self::getBaseDamageFromTier($this->tier) - 2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user