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