People in sectors get plagued, then taxed or paid, then fed. People on ships and land units get paid, then fed, then plagued. Sectors were messed up when Empire 3 made the update code work for budget. Change sectors back to how they worked before Empire 3: move do_feed() from produce_sect() to prepare_sects(), and delay do_plague() until after do_feed(). People in sectors now get taxed, paid and fed even when they die of the plague, just like they do on ships and land units. Because do_plague() now runs after populace(), the latter's handling of people dying off doesn't cover plague anymore. Delay it to the very end of prepare_sects(). Additionally, move feeding and plaguing from upd_ship(), upd_land() to prep_ship(), prep_land(), for consistency with sectors. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
29 lines
404 B
Text
29 lines
404 B
Text
des 5,-1 d
|
|
thres g 5,-1 1
|
|
des -6,-4 f
|
|
thres g -6,-4 7
|
|
thres s -6,-4 200
|
|
des -4,-2 *
|
|
thres l -4,-2 200
|
|
thres h -4,-2 200
|
|
thres s -4,-2 200
|
|
thres d -4,-2 0
|
|
des -1,-3 !
|
|
thres l -1,-3 200
|
|
thres h -1,-3 200
|
|
thres s -1,-3 200
|
|
thres g -1,-3 10
|
|
thres d -1,-3 0
|
|
des -2,0 p
|
|
thres d -2,0 0
|
|
thres l -2,0 75
|
|
des 1,1 k
|
|
thres i 1,1 999
|
|
thres h 1,1 1
|
|
thres l 1,-3 400
|
|
mov m 0,0 55 -6,-4
|
|
bmap #
|
|
cen *
|
|
map #
|
|
read y
|
|
prod *
|