config: Add sect-chr flags, replace cost by flag "deity"
Give sector types capability flags (dchrstr member d_flags), like ship, plane, land unit and nuke types have. Member d_cost is effectively a flag since the previous commit. Replace it by capability flag "deity". This is an xdump compatibility break. To provide the customary grace period, we'd have make selector cost virtual instead, and deprecate it. But we're not bothering with maintaining xdump compatibility in this release. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
ba2795fbf7
commit
16bf0d28b2
12 changed files with 240 additions and 187 deletions
|
@ -30,7 +30,7 @@
|
|||
* Dave Pare
|
||||
* Ken Stevens, 1995
|
||||
* Steve McClure, 1998
|
||||
* Markus Armbruster, 2004-2014
|
||||
* Markus Armbruster, 2004-2016
|
||||
*/
|
||||
|
||||
|
||||
|
@ -112,15 +112,18 @@ struct dchrstr {
|
|||
float d_ostr; /* offensive strength */
|
||||
float d_dstr; /* defensive strength */
|
||||
int d_value; /* resale ("collect") value */
|
||||
int d_cost; /* cost to designate the sect */
|
||||
int d_build; /* cost multiplier for eff */
|
||||
int d_lcms; /* lcm's needed per point of eff */
|
||||
int d_hcms; /* hcm's needed per point of eff */
|
||||
int d_maint; /* maintenance cost per ETU */
|
||||
int d_maxpop; /* maximum population */
|
||||
int d_flags; /* capability flags */
|
||||
char *d_name; /* full name of sector type */
|
||||
};
|
||||
|
||||
/* Sector capability flags */
|
||||
#define D_DEITY bit(0) /* Only the deity can designate this */
|
||||
|
||||
/* Sector types, must match sect.config */
|
||||
#define SCT_WATER 0 /* basics */
|
||||
#define SCT_MOUNT 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue