]> git.pond.sub.org Git - empserver/blob - info/Update-sequence.t
m4: Refresh macros from autoconf-archive commit fd1d25c148
[empserver] / info / Update-sequence.t
1 .TH Concept Update-sequence
2 .NA Update-sequence "The order of events at the update"
3 .LV Expert
4 .s1
5 This document gives a rough order of events during the update.
6 .s1
7 .nf
8 1) Prepare
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
14                 a) pay crew
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
23                         reverts to the deity
24                 d) taxes are collected from civs & uws; mil are paid.
25                 e) if the sector is a bank it makes $$ proportional to
26                         its efficiency
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
34                         8+(1-15), max of 100
35                 h) population grows and is truncated
36                 i) if the sector doesn't have the plague, see if it
37                         catches it
38                         otherwise plague the people
39         e) pay for military reserves.
40
41 2) Produce
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)
48                 c) first increase eff
49                 d) then make things
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)
57
58 3) Then, do deliveries for all sectors in the world, row by row, going from
59         top to bottom, left to right
60
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
63
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
67
68 6) modify tech/res/hap/edu levels & do tech bleed
69
70 7) decrease levels due to passing of time
71
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
77 .fi
78 .s1
79 .SA "Innards, Updates"