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>
This commit is contained in:
parent
6013758272
commit
4a714a37da
6 changed files with 215 additions and 229 deletions
|
@ -350,7 +350,7 @@ b bank bars 100%
|
|||
@ bridge tower deity
|
||||
.FI
|
||||
Column product shows what the sector produces. Column p.e. shows the
|
||||
sector type's production efficiency. Use command \*Qshow product\*U
|
||||
sector type's process efficiency. Use command \*Qshow product\*U
|
||||
to find out more about products, and see \*Qinfo Products\*U.
|
||||
.s1
|
||||
Column capabilities shows special capabilities, if any. These are:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue