asset-php/src/Test/Card/Mouse.php
2024-03-16 15:30:40 +02:00

59 lines
992 B
PHP

<?php
declare(strict_types=1);
namespace OpenLegends\Asset\Test\Card;
class Mouse extends \OpenLegends\Engine\Abstract\Card
{
public function __construct()
{
$this->setAttribute(
new \OpenLegends\Asset\Test\Attribute\Neutral()
);
$this->setType(
new \OpenLegends\Asset\Test\Type\Animal()
);
$this->setRarity(
new \OpenLegends\Asset\Test\Rarity\Common()
);
$this->setTitle(
_('Mouse')
);
$this->setDescription(
_('Just mouse')
);
$this->setCost(
0
);
$this->setPower(
1
);
$this->setHealth(
1
);
$this->setCraft(
1
);
$this->setExtract(
1
);
}
public function act(
\OpenLegends\Engine\Abstract\Card $target
) {
$this->attack(
$target
);
}
}