empserver/tests/update
Markus Armbruster 43a0a4a451 update: Reorder feeding, tax & plague for consistency
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>
2017-08-06 20:09:16 +02:00
..
01-1 budget: Fix for ship, plane, land unit building abroad 2017-08-06 20:08:30 +02:00
02-2 update: Don't double-round money, fixing mil pay and more 2017-08-06 20:07:55 +02:00
03-3 budget: Fix treasury tracking 2017-08-06 20:00:00 +02:00
04-4 update: Fix sector maintenance when stopped or broke 2017-08-06 20:08:30 +02:00
05-5 tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
06-6 budget: Fix for ship, plane, land unit building abroad 2017-08-06 20:08:30 +02:00
07-7 tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
99-POGO update: Reorder unit building and maintenance for fairness 2017-08-06 20:08:31 +02:00
final.xdump update: Reorder feeding, tax & plague for consistency 2017-08-06 20:09:16 +02:00
journal.log update: Reorder feeding, tax & plague for consistency 2017-08-06 20:09:16 +02:00
server.log tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
setup-POGO update: Reorder unit building and maintenance for fairness 2017-08-06 20:08:31 +02:00