config: Define sector build cost per 100% instead of 1%
Sector build cost is defined by sect-chr column build (struct dchrstr
member d_build). It's the cost per point of efficiency. In contrast,
unit build cost is defined for 100%, by ship-chr, plane-chr, land-chr,
nuke-chr column cost.
Switch sectors to cost per 100%, for flexibility and consistency:
replace struct dchrstr member d_build by d_cost, and replace selector
build by selector cost. Naming it cost for consistency with units is
possible only because the previous commit made the name available.
This is an xdump compatibility break. To provide the customary grace
period, we'd have to make selector build virtual instead, with value
bcost / 100 rounded up, and deprecate it. Deities would have to avoid
bcost values that aren't multiples of 100 for this to work fully. But
we're not bothering with maintaining xdump compatibility in this
release.
With bcost values that aren't multiple of 100, the cost of sector
building may have to be rounded. On the one hand, the cost of sector
demolition has always been rounded up. On the other hand, the cost of
producing stuff is rounded randomly. For now, round up, because
rounding randomly would affect subsequent random rounding, and upset
the smoke test.
Fortunately, show se b already shows build costs per 100%, since
commit 48ff096
, v4.3.23.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
16bf0d28b2
commit
826fcf009b
6 changed files with 102 additions and 102 deletions
|
@ -64,43 +64,43 @@
|
|||
# econfig key custom_tables.
|
||||
|
||||
config sect-chr
|
||||
uid mnem prd peff val bui lcm hcm maint name ...
|
||||
0 "." -1 0 0 0 0 0 0 "sea"
|
||||
1 "^" dust 75 5 1 0 0 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 lcm hcm 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"
|
||||
# Uncomment one of the following two. The second one is for big cities.
|
||||
5 "c" -1 0 30 1 0 0 1 "capital"
|
||||
# 5 "c" -1 0 30 10 1 2 1 "city"
|
||||
6 "u" rad 100 15 1 0 0 0 "uranium mine"
|
||||
7 "p" hap 100 5 1 0 0 0 "park"
|
||||
8 "d" gun 100 7 1 0 0 0 "defense plant"
|
||||
9 "i" sh 100 6 1 0 0 0 "shell industry"
|
||||
10 "m" iron 100 5 1 0 0 0 "mine"
|
||||
11 "g" dust 100 8 1 0 0 0 "gold mine"
|
||||
12 "h" -1 0 12 1 0 0 0 "harbor"
|
||||
13 "w" -1 0 7 1 0 0 0 "warehouse"
|
||||
14 "*" -1 0 12 1 0 0 0 "airfield"
|
||||
15 "a" food 900 2 1 0 0 0 "agribusiness"
|
||||
16 "o" oil 100 5 1 0 0 0 "oil field"
|
||||
17 "j" lcm 100 3 1 0 0 0 "light manufacturing"
|
||||
18 "k" hcm 100 4 1 0 0 0 "heavy manufacturing"
|
||||
19 "f" -1 0 10 5 0 1 0 "fortress"
|
||||
20 "t" tech 100 10 1 0 0 0 "technical center"
|
||||
21 "r" med 100 9 1 0 0 0 "research lab"
|
||||
22 "n" -1 0 10 1 0 0 0 "nuclear plant"
|
||||
23 "l" edu 100 4 1 0 0 0 "library/school"
|
||||
24 "+" -1 0 3 1 0 0 0 "highway"
|
||||
25 ")" -1 0 4 1 0 0 0 "radar installation"
|
||||
26 "!" -1 0 12 1 0 0 0 "headquarters"
|
||||
27 "#" -1 0 3 1 0 0 0 "bridge head"
|
||||
28 "=" -1 0 5 1 0 0 0 "bridge span"
|
||||
29 "b" bars 100 10 1 0 0 0 "bank"
|
||||
30 "%" pet 1000 2 1 0 0 0 "refinery"
|
||||
31 "e" -1 0 7 1 0 0 0 "enlistment center"
|
||||
32 "~" -1 0 1 1 0 0 0 "plains"
|
||||
33 "@" -1 0 4 1 0 0 0 "bridge tower"
|
||||
5 "c" -1 0 30 0 0 100 1 "capital"
|
||||
# 5 "c" -1 0 30 1 2 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 1 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"
|
||||
# Deity-defined sector types go here
|
||||
/config
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue