discoverActionPhaseDiscover state

Properties

id

num

name

name

type

game

description

not set

descriptionmyturn

not set

action

SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\States\Actions\PETDiscoverActionPhaseFunctionsTrait::stDiscoverActionPhaseDiscover

transitions
possibleactions

not set

args

not set

updateGameProgression

false

initialprivate

not set

Summary

During this state, the card being discovered is actually discovered, and the benefits applied. The game then transitions to the appropriate state based on the card being discovered and the number of actions the player can still carry out.

Detailed description

The card is retrieved from the Deck component and its benefits are applied. Should a new age open when the card is discovered, then the $benefits["openNextAge"] array value is set to true. Then the game will automatically transition to the openNextAge state (handled by decreaseActionsCountAndChangeState) and then to the appropriate next state, depending on the number of actions left for the active player to carry out.