Browse Source

add new setters

main
openlegends 9 months ago
parent
commit
99431f78ff
  1. 32
      src/Test/Card/Goblin.php
  2. 32
      src/Test/Card/Mouse.php
  3. 64
      src/Test/Card/Rat.php

32
src/Test/Card/Goblin.php

@ -36,6 +36,38 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card @@ -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()
);

32
src/Test/Card/Mouse.php

@ -36,6 +36,38 @@ class Mouse extends \OpenLegends\Engine\Abstract\Card @@ -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()
);

64
src/Test/Card/Rat.php

@ -8,22 +8,6 @@ class Rat extends \OpenLegends\Engine\Abstract\Card @@ -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 @@ -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()
);
}
}
Loading…
Cancel
Save