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.
9 a) prepare all ships, in order of ship number
10 a) pay military on board
11 b) feed people on board
12 c) plague people on board
13 b) prepare all planes, in order of plane number
15 c) prepare all land units, in order of land unit number
16 a) pay military on board
17 b) feed people on board
18 c) plague people on board
19 d) prepare all sectors, top to bottom, left to right
20 a) fallout is checked, if FALLOUT is defined
21 b) guerrilla warfare is checked
22 c) if there are no civs or mil in the sector, it
24 d) taxes are collected from civs & uws; mil are paid.
25 e) if the sector is a bank it makes $$ proportional to
27 f) people in non-sanctuary sectors eat
28 If not enough is available, the excess people will
29 starve off. No more than 50% of the people
30 in a sector can die; the uw's die first, then
31 the civs, then the mil.
32 g) if there was starvation, the work percentage is set
33 to 0, otherwise the work rate rises by
35 h) population grows and is truncated
36 i) if the sector doesn't have the plague, see if it
38 otherwise plague the people
39 e) pay for military reserves.
42 a) ship maintenance, in order of ship number
43 b) plane maintenance, in order of plane number
44 c) land unit maintenance, in order of land unit number
45 d) sectors, top to bottom, left to right
46 a) pay sector maintenance
47 b) sectors that are stopped are skipped (see info stop)
50 e) ship building, in order of ship number
51 first increase efficiency, then produce
52 stopped ships are started, but not built (see info stop)
53 f) plane building, in order of plane number
54 stopped planes are started, but not built (see info stop)
55 g) land unit building, in order of land unit number
56 stopped land units are started, but not built (see info stop)
58 3) Then, do deliveries for all sectors in the world, row by row, going from
59 top to bottom, left to right
61 4) Then, do exporting via distribution for all sectors in the world, row by
62 row, going from top to bottom, left to right
64 5) Then, do importing via distribution for all sectors in the world, row by
65 row, going from top to bottom, left to right
66 Also start sectors that are stopped
68 6) modify tech/res/hap/edu levels & do tech bleed
70 7) decrease levels due to passing of time
72 8) If MOB_ACCESS is not enabled, mobility is updated as follows:
73 a) Add mobility to ships
74 b) Add mobility to sectors
75 c) Add mobility to planes
76 d) Add mobility to land units
79 .SA "Innards, Updates"