Potato: drop 1-5 potatoes per harvest, not 1-4

This commit is contained in:
Dylan K. Taylor 2020-09-03 14:54:58 +01:00
parent 883e135bc0
commit 3031d89ec5

View File

@ -41,7 +41,7 @@ class Potato extends Crops{
public function getDropsForCompatibleTool(Item $item) : array{
$result = [
ItemFactory::get(Item::POTATO, 0, $this->getDamage() >= 0x07 ? mt_rand(1, 4) : 1)
ItemFactory::get(Item::POTATO, 0, $this->getDamage() >= 0x07 ? mt_rand(1, 5) : 1)
];
if($this->getDamage() >= 7 && mt_rand(0, 49) === 0){
$result[] = ItemFactory::get(Item::POISONOUS_POTATO);