openNextAge state
Properties
- id
500
- name
openNextAge
- type
game
- description
not set
- descriptionmyturn
not set
- action
- transitions
- possibleactions
not set
- args
not set
- updateGameProgression
true
- initialprivate
not set
Summary
This game state is responsible for opening a new age once enough Age tokens have been received by players.
Detailed description
The action function will take apropriate steps according to the age being opened:
Opening Age II:
The
age_II_started
global is set to1
(meaningtrue
), which will have effects onSwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETCardFunctionsTrait::getValidDrawLocations
. Notification is sent to the front-end so that the Age II deck and discards may appear.Opening Age III
The
age_III_started
global is set to1
as well as theage_I_ended
global. Notification is sent to the front-end so that the Age III deck may become available, and the Age I deck becomes unavailable. The function also moves remaining cards in the Age I deck and discard into thetrash
location. Remaining Age I cards in players’ research locations and hands are also moved to thetrash
location, so that they may not be retrieved.