add new setters

This commit is contained in:
openlegends 2024-03-18 15:27:16 +02:00
parent b59d519637
commit 99431f78ff
3 changed files with 112 additions and 16 deletions

View File

@ -36,6 +36,38 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card
3
);
$this->setBreakthrough(
true
);
$this->setCover(
false
);
$this->setDrain(
true
);
$this->setGuard(
true
);
$this->setLethal(
true
);
$this->setPilfer(
false
);
$this->setProphecy(
false
);
$this->setUnique(
false
);
$this->setAttribute(
new \OpenLegends\Asset\Test\Card\Attribute\Neutral()
);

View File

@ -36,6 +36,38 @@ class Mouse extends \OpenLegends\Engine\Abstract\Card
1
);
$this->setBreakthrough(
false
);
$this->setCover(
false
);
$this->setDrain(
false
);
$this->setGuard(
false
);
$this->setLethal(
false
);
$this->setPilfer(
false
);
$this->setProphecy(
false
);
$this->setUnique(
false
);
$this->setAttribute(
new \OpenLegends\Asset\Test\Card\Attribute\Neutral()
);

View File

@ -8,22 +8,6 @@ class Rat extends \OpenLegends\Engine\Abstract\Card
{
public function __construct()
{
$this->setAttribute(
new \OpenLegends\Asset\Test\Card\Attribute\Neutral()
);
$this->setType(
new \OpenLegends\Asset\Test\Card\Type\Animal()
);
$this->setRarity(
new \OpenLegends\Asset\Test\Card\Rarity\Common()
);
$this->setAbility(
new \OpenLegends\Asset\Test\Card\Ability\Damage()
);
$this->setName(
_('Rat')
);
@ -51,5 +35,53 @@ class Rat extends \OpenLegends\Engine\Abstract\Card
$this->setExtract(
2
);
$this->setBreakthrough(
false
);
$this->setCover(
false
);
$this->setDrain(
false
);
$this->setGuard(
false
);
$this->setLethal(
false
);
$this->setPilfer(
false
);
$this->setProphecy(
false
);
$this->setUnique(
false
);
$this->setAttribute(
new \OpenLegends\Asset\Test\Card\Attribute\Neutral()
);
$this->setType(
new \OpenLegends\Asset\Test\Card\Type\Animal()
);
$this->setRarity(
new \OpenLegends\Asset\Test\Card\Rarity\Common()
);
$this->setAbility(
new \OpenLegends\Asset\Test\Card\Ability\Damage()
);
}
}