Make sector maintenance cost configurable

Replace the fixed $1 per ETU maintenance for capital/city sectors that
are at least 60% efficient by a configurable maintenance cost, payable
regardless of efficiency.  The only change in the default
configuration is that inefficient capitals now pay maintenance.
Charging sector maintenance regardless of efficiency is consistent
with unit maintenance.

New struct dchrstr member d_maint and sector-chr selector maint.  Make
show_sect_build() show it.  Change produce_sect() to record
maintenance in new slot p_sect[SCT_MAINT] instead of abusing
p_sect[SCT_CAPIT].  Replace the "Capital maintenance" line in budget
by "Sector maintenance".
This commit is contained in:
Markus Armbruster 2009-02-20 18:58:01 +01:00
parent 1f60baf818
commit 44c36fa7d5
10 changed files with 77 additions and 72 deletions

View file

@ -237,11 +237,12 @@ The \*Qshow\*U command can be used to show special things about sector
types. To check out build costs, you do:
.EX show sect build
.NF
desig build 100% eff
sector type $ lcm hcm $
- wilderness 0 0 0 0
f fortress 0 0 100 500
any other 0 0 0 100
desig build 100% eff maint
sector type $ lcm hcm $ $
- wilderness 0 0 0 0 0
c capital 0 0 0 100 60
f fortress 0 0 100 500 0
any other 0 0 0 100 0
Infrastructure building - adding 1 point of efficiency costs:
type lcms hcms mobility $$$$
@ -259,6 +260,8 @@ The lcm required to build the sector.
The hcm required to build the sector.
.L "build $"
What it costs to build the sector.
.L "maint $"
Cost of maintenance per update.
.in
.s1
The show command also shows infrastructure build costs.