-
Notifications
You must be signed in to change notification settings - Fork 13
TurnProcessing
Ed Kolis edited this page Aug 25, 2019
·
1 revision
This is the order of processing for turns in FrEee. It is included as a reference for scripters.
- Clear list of previous battles
- Clear script engine variables
- AI turns
- Load human player commands
- Advance turn number
- Population reproduction and replenishment from colony cargo
- Resource generation
-
Empire maintenance
- Ship maintenance
- Perform actions required by treaties
- Set stored resources to zero if they fall below zero
- Execute empire commands
- Research
- Validate fleets
- Replenish shields
- Movement and combat
- Construction
- Replenish population from cargo again (in case colony population took damage)
- Replenish shields again (so players can see full shield amount in the GUI)
- Fully repair all facilities that have not been destroyed
- Resource spoilage
- Clear empire commands
- Clear completed orders
- Clear obsolete sensor ghosts
- Check for empire victory/defeat
- Run end of turn scripts (including event scripts)