]> git.pond.sub.org Git - empserver/blob - info/Update-sequence.t
update: Fix ship, plane, land unit repair work use abroad
[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 sectors
10                 a) fallout is checked, if FALLOUT is defined
11                 b) guerrilla warfare is checked
12                 c) if the sector doesn't have the plague, see if it
13                         catches it
14                         otherwise plague the people
15                 d) if there are no civs or mil in the sector, it
16                         reverts to the deity
17                 e) taxes are collected from civs & uws; mil are paid.
18                 f) if the sector is a bank it makes $$ proportional to
19                         its efficiency
20         b) prepare all ships
21                 a) pay military on board
22         c) prepare all planes
23                 a) pay crew
24         d) prepare all land units
25                 a) pay military on board
26         e) pay for military reserves.
27
28 2) Produce
29         a) ship maintenance, in order of country number
30                 pay maintenance, then feed and plague people on board
31         b) plane maintenance, in order of country number
32         c) land unit maintenance, in order of country number
33                 pay maintenance, then feed and plague people on board
34         g) sectors, in order of country number
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 country 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 country number
52                 stopped planes are started, but not built (see info stop)
53         f) land unit building, in order of country 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"