-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4eff001
commit d3fad19
Showing
13 changed files
with
292 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace Innovation\Cards\Base; | ||
|
||
use Innovation\Cards\AbstractCard; | ||
|
||
class Card74_3E extends AbstractCard | ||
{ | ||
// Railroad (3rd edition): | ||
// - Return all cards from your hand, then draw three [6]. | ||
// - You may splay up any one color of your cards currently splayed right. | ||
|
||
public function getInteractionOptions(): array | ||
{ | ||
if (self::isFirstNonDemand()) { | ||
return self::youMust()->return()->all()->fromYourHand()->build(); | ||
} else { | ||
return self::youMay()->splayUp()->currentlySplayedRight()->build(); | ||
} | ||
} | ||
|
||
public function afterInteraction() | ||
{ | ||
if (self::isFirstNonDemand()) { | ||
self::draw(6); | ||
self::draw(6); | ||
self::draw(6); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace Innovation\Cards\Base; | ||
|
||
use Innovation\Cards\AbstractCard; | ||
|
||
class Card74_3E extends AbstractCard | ||
{ | ||
// Railroad (4th edition): | ||
// - Return all cards from your hand. | ||
// - Draw three [6]. | ||
// - You may splay up any one color of your cards currently splayed right. | ||
|
||
public function initialExecution() | ||
{ | ||
if (self::isSecondNonDemand()) { | ||
self::draw(6); | ||
self::draw(6); | ||
self::draw(6); | ||
} else { | ||
self::setMaxSteps(1); | ||
} | ||
} | ||
|
||
public function getInteractionOptions(): array | ||
{ | ||
if (self::isFirstNonDemand()) { | ||
return self::youMust()->return()->all()->fromYourHand()->build(); | ||
} else { | ||
return self::youMay()->splayUp()->currentlySplayedRight()->build(); | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.