config: Make work to build sectors configurable

Traditionally, building up 100% takes 100 work.  Make the work to
build configurable, via new sect-chr selector bwork, backed by new
struct dchrstr member d_bwork.  Keep the required work exactly the
same for now.

Tearing down sectors remains four times easier than building.

Clients that hardcode sector build work need to be updated.  Easy,
since build work is now exposed in xdump.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2016-06-05 22:49:07 +02:00
parent bb9619c053
commit 2ffd7b948d
6 changed files with 143 additions and 142 deletions

View file

@ -114,6 +114,7 @@ struct dchrstr {
int d_value; /* resale ("collect") value */
short d_mat[I_MAX+1]; /* materials to build 100% */
/* only I_LCM and I_HCM non-zero */
int d_bwork; /* work to build 100% */
int d_cost; /* cost to build 100% */
int d_maint; /* maintenance cost per ETU */
int d_maxpop; /* maximum population */