for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AardsGerds\Game\Inventory\Alchemy\Potion;
use AardsGerds\Game\Build\Attribute\Etherum;
use AardsGerds\Game\Inventory\Coin;
use AardsGerds\Game\Player\Player;
final class EtherumPotion extends Potion
{
public function __construct()
parent::__construct(
'Etherum Potion',
'Alcohol solution with little Etherum in it. This potion will grant you 1 Etherum.',
new Coin(100),
new Coin(200),
);
}
public function drink(Player $player): void
$player->getEtherum()->increaseBy(new Etherum(1));