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