From 99431f78ffafc58026c72cb44964c21c48a0f2f8 Mon Sep 17 00:00:00 2001 From: openlegends Date: Mon, 18 Mar 2024 15:27:16 +0200 Subject: [PATCH] add new setters --- src/Test/Card/Goblin.php | 32 ++++++++++++++++++++ src/Test/Card/Mouse.php | 32 ++++++++++++++++++++ src/Test/Card/Rat.php | 64 ++++++++++++++++++++++++++++++---------- 3 files changed, 112 insertions(+), 16 deletions(-) diff --git a/src/Test/Card/Goblin.php b/src/Test/Card/Goblin.php index bbc255d..2eaf010 100644 --- a/src/Test/Card/Goblin.php +++ b/src/Test/Card/Goblin.php @@ -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() ); diff --git a/src/Test/Card/Mouse.php b/src/Test/Card/Mouse.php index 4fc758a..b95b5fd 100644 --- a/src/Test/Card/Mouse.php +++ b/src/Test/Card/Mouse.php @@ -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() ); diff --git a/src/Test/Card/Rat.php b/src/Test/Card/Rat.php index ff44d84..14e3e67 100644 --- a/src/Test/Card/Rat.php +++ b/src/Test/Card/Rat.php @@ -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() + ); } } \ No newline at end of file