empserver/src/lib/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
..
age.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
anno.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
bp.c include: Rename budg.h to update.h 2017-08-06 19:59:59 +02:00
deliver.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
distribute.c include: Merge distribute.h into update.h 2017-08-06 19:59:59 +02:00
finish.c budget: Fix treasury tracking 2017-08-06 20:00:00 +02:00
human.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
land.c update: Don't double-round money, fixing mil pay and more 2017-08-06 20:07:55 +02:00
main.c budget: Fix treasury tracking 2017-08-06 20:00:00 +02:00
material.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
mobility.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
move_sat.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
nat.c update: Don't double-round money, fixing mil pay and more 2017-08-06 20:07:55 +02:00
nxtitemp.c include: Drop update.h 2017-08-06 19:59:59 +02:00
plague.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
plane.c update: Don't double-round money, fixing mil pay and more 2017-08-06 20:07:55 +02:00
populace.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
prepare.c update: Don't double-round money, fixing mil pay and more 2017-08-06 20:07:55 +02:00
produce.c production: Use update code instead of duplicating it 2017-08-06 20:08:29 +02:00
removewants.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
revolt.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
sect.c update: Don't double-round money, fixing mil pay and more 2017-08-06 20:07:55 +02:00
ship.c update: Don't double-round money, fixing mil pay and more 2017-08-06 20:07:55 +02:00