developmentPhase state

Properties

id

100

name

developmentPhase

type

game

description

not set

descriptionmyturn

not set

action

SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\States\Actions\PETDevelopmentPhaseFunctionsTrait::stDevelopmentPhase

transitions
possibleactions

not set

args

not set

updateGameProgression

false

initialprivate

not set

Summary

This game state is responsible for removing research cubes on the player’s research cards. If the last cube is removed, then the card is discovered and if applicable, the game will transition to the openNextAge. Otherwise the game will proceed to the next state.

Detailed description

  1. Get the cards in the active player’s research area ("research_$playerId" location).

  2. Remove a research cube on each card. If the card doesn’t have cubes anymore, push it to an array to discover it in the next step.

  3. Discover the cards with no cubes on them anymore. Check the $benefits["openNextAge"] array value to see whether the next state should be openNextAge or not. One notification is sent per discovered card.

  4. Transition to the according state.