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:
parent
1f60baf818
commit
44c36fa7d5
10 changed files with 77 additions and 72 deletions
|
@ -38,7 +38,8 @@
|
|||
#include "item.h"
|
||||
|
||||
#define SCT_EFFIC (SCT_TYPE_MAX + 1)
|
||||
#define SCT_BUDG_MAX SCT_EFFIC
|
||||
#define SCT_MAINT (SCT_TYPE_MAX + 2)
|
||||
#define SCT_BUDG_MAX SCT_MAINT
|
||||
|
||||
struct bp *bp_alloc(void);
|
||||
void bp_set_from_sect(struct bp *, struct sctstr *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue