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

@ -64,43 +64,43 @@
# econfig key custom_tables.
config sect-chr
uid mnem prd peff val l_b h_b cost maint name ...
0 "." -1 0 0 0 0 0 0 "sea"
1 "^" dust 75 5 0 0 100 0 "mountain"
2 "s" -1 0 127 0 0 0 0 "sanctuary"
3 "\134" -1 0 0 0 0 0 0 "wasteland"
4 "-" -1 0 1 0 0 0 0 "wilderness"
uid mnem prd peff val l_b h_b bwork cost maint name ...
0 "." -1 0 0 0 0 0 0 0 "sea"
1 "^" dust 75 5 0 0 100 100 0 "mountain"
2 "s" -1 0 127 0 0 100 0 0 "sanctuary"
3 "\134" -1 0 0 0 0 100 0 0 "wasteland"
4 "-" -1 0 1 0 0 100 0 0 "wilderness"
# Uncomment one of the following two. The second one is for big cities.
5 "c" -1 0 30 0 0 100 1 "capital"
# 5 "c" -1 0 30 100 200 1000 1 "city"
6 "u" rad 100 15 0 0 100 0 "uranium mine"
7 "p" hap 100 5 0 0 100 0 "park"
8 "d" gun 100 7 0 0 100 0 "defense plant"
9 "i" sh 100 6 0 0 100 0 "shell industry"
10 "m" iron 100 5 0 0 100 0 "mine"
11 "g" dust 100 8 0 0 100 0 "gold mine"
12 "h" -1 0 12 0 0 100 0 "harbor"
13 "w" -1 0 7 0 0 100 0 "warehouse"
14 "*" -1 0 12 0 0 100 0 "airfield"
15 "a" food 900 2 0 0 100 0 "agribusiness"
16 "o" oil 100 5 0 0 100 0 "oil field"
17 "j" lcm 100 3 0 0 100 0 "light manufacturing"
18 "k" hcm 100 4 0 0 100 0 "heavy manufacturing"
19 "f" -1 0 10 0 100 500 0 "fortress"
20 "t" tech 100 10 0 0 100 0 "technical center"
21 "r" med 100 9 0 0 100 0 "research lab"
22 "n" -1 0 10 0 0 100 0 "nuclear plant"
23 "l" edu 100 4 0 0 100 0 "library/school"
24 "+" -1 0 3 0 0 100 0 "highway"
25 ")" -1 0 4 0 0 100 0 "radar installation"
26 "!" -1 0 12 0 0 100 0 "headquarters"
27 "#" -1 0 3 0 0 100 0 "bridge head"
28 "=" -1 0 5 0 0 100 0 "bridge span"
29 "b" bars 100 10 0 0 100 0 "bank"
30 "%" pet 1000 2 0 0 100 0 "refinery"
31 "e" -1 0 7 0 0 100 0 "enlistment center"
32 "~" -1 0 1 0 0 100 0 "plains"
33 "@" -1 0 4 0 0 100 0 "bridge tower"
5 "c" -1 0 30 0 0 100 100 1 "capital"
# 5 "c" -1 0 30 100 200 100 1000 1 "city"
6 "u" rad 100 15 0 0 100 100 0 "uranium mine"
7 "p" hap 100 5 0 0 100 100 0 "park"
8 "d" gun 100 7 0 0 100 100 0 "defense plant"
9 "i" sh 100 6 0 0 100 100 0 "shell industry"
10 "m" iron 100 5 0 0 100 100 0 "mine"
11 "g" dust 100 8 0 0 100 100 0 "gold mine"
12 "h" -1 0 12 0 0 100 100 0 "harbor"
13 "w" -1 0 7 0 0 100 100 0 "warehouse"
14 "*" -1 0 12 0 0 100 100 0 "airfield"
15 "a" food 900 2 0 0 100 100 0 "agribusiness"
16 "o" oil 100 5 0 0 100 100 0 "oil field"
17 "j" lcm 100 3 0 0 100 100 0 "light manufacturing"
18 "k" hcm 100 4 0 0 100 100 0 "heavy manufacturing"
19 "f" -1 0 10 0 100 100 500 0 "fortress"
20 "t" tech 100 10 0 0 100 100 0 "technical center"
21 "r" med 100 9 0 0 100 100 0 "research lab"
22 "n" -1 0 10 0 0 100 100 0 "nuclear plant"
23 "l" edu 100 4 0 0 100 100 0 "library/school"
24 "+" -1 0 3 0 0 100 100 0 "highway"
25 ")" -1 0 4 0 0 100 100 0 "radar installation"
26 "!" -1 0 12 0 0 100 100 0 "headquarters"
27 "#" -1 0 3 0 0 100 100 0 "bridge head"
28 "=" -1 0 5 0 0 100 100 0 "bridge span"
29 "b" bars 100 10 0 0 100 100 0 "bank"
30 "%" pet 1000 2 0 0 100 100 0 "refinery"
31 "e" -1 0 7 0 0 100 100 0 "enlistment center"
32 "~" -1 0 1 0 0 100 100 0 "plains"
33 "@" -1 0 4 0 0 100 100 0 "bridge tower"
# Deity-defined sector types go here
/config