1 .TH Concept Update-sequence
2 .NA Update-sequence "The order of events at the update"
5 This document gives a rough order of events during the update.
8 1) First, prepare all sectors in the world, row by row, going from top
9 to bottom, left to right
11 a) fallout is checked, if FALLOUT is defined
12 b) guerrilla warfare is checked
13 c) if the sector doesn't have the plague, see if it catches it
14 otherwise plague the people
15 d) if there are no civs or mil in the sector, it reverts to the deity
16 e) taxes are collected from civs & uws; mil are paid.
17 f) if the sector is a bank it makes $$ proportional to its efficiency
19 2) Then, in order of country #, deal with each country:
20 a) pay for military reserves.
22 pay maintenance, produce, then feed and plague people on board
24 d) land unit maintenance
25 pay maintenance, then feed and plague people on board
26 e) produce for all sectors
27 a) if the sector is a cap, it costs $1 per etu since
29 b) people in non-sanctuary sectors eat
30 If not enough is available, the excess people will
31 starve off. No more than 50% of the people
32 in a sector can die; the uw's die first, then
33 the civs, then the mil.
34 c) if there was starvation, the work percentage is set
35 to 0, otherwise the work rate rises by
37 d) population grows and is truncated
38 e) sectors that are stopped are skipped (see info stop)
42 stopped ships are started, but not built (see info stop)
43 ships execute their orders right after building
44 finally, if option SAIL is enabled, follow sail paths
46 stopped planes are started, but not built (see info stop)
48 stopped land units are started, but not built (see info stop)
50 3) Then, do deliveries for all sectors in the world, row by row, going from
51 top to bottom, left to right
53 4) Then, do exporting via distribution for all sectors in the world, row by
54 row, going from top to bottom, left to right
56 5) Then, do importing via distribution for all sectors in the world, row by
57 row, going from top to bottom, left to right
58 Also start sectors that are stopped
60 6) modify tech/res/hap/edu levels & do tech bleed
61 7) decrease levels due to passing of time
62 8) update war declarations (for slow war)
64 9) If MOB_ACCESS is not enabled, mobility is updated as follows:
65 a) Add mobility to ships
66 b) Add mobility to sectors
67 c) Add mobility to planes
68 d) Add mobility to land units
71 .SA "Innards, Updates"