empserver/tests/update
Markus Armbruster 4a714a37da production: Use update code instead of duplicating it
prod() duplicates the update's sector production code, except it
computes both output with present materials ("make" output) and output
not limited by lack of materials or production backlog ("max" output).
It also rounds materials consumed up instead of randomly.

Factor prod_output() out of produce() for reuse by prod().  prod()
runs it twice: once for "make" output and once for "max" output.

Test output changes are due to random rounding.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-06 20:08:29 +02:00
..
01-1 update: Don't use materials and work destroyed by che or plague 2017-08-06 19:59:58 +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 budget: Fix level prod. forecast when required level is too low 2017-08-06 19:59:58 +02:00
05-5 tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
06-6 tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
07-7 tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
99-POGO update: Don't use materials and work destroyed by che or plague 2017-08-06 19:59:58 +02:00
final.xdump update production: Make sector production a bit more predictable 2017-08-06 20:08:29 +02:00
journal.log production: Use update code instead of duplicating it 2017-08-06 20:08:29 +02:00
server.log tests/update: New; exercises the update 2017-08-06 14:04:15 +02:00
setup-POGO update: Saner rounding of unit building money and work 2017-08-06 19:59:58 +02:00