developmentPhase state
Properties
- id
100
- name
developmentPhase
- type
game
- description
not set
- descriptionmyturn
not set
- action
- 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
Get the cards in the active player’s research area (
"research_$playerId"
location).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.
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.Transition to the according state.