(sctstr): Member sct_che encoded number of che and their target.
Simplify. Split into member sct_che (number) and sct_che_target. Users changed. (get_che_cnum, set_che_cnum, get_che_value, get_che_value): Che encoding/decoding functions; remove. (CHE_MAX): Move from var.h to sect.h. (prsect, doland): Print / edit the new field.
This commit is contained in:
parent
eccc5cb7d7
commit
5bad9875a5
11 changed files with 56 additions and 59 deletions
|
@ -77,7 +77,8 @@ struct sctstr {
|
|||
u_short sct_mines; /* number of mines */
|
||||
u_short sct_pstage; /* plague stage */
|
||||
u_short sct_ptime; /* how many etus remain in this stage */
|
||||
u_short sct_che; /* che combo */
|
||||
u_char sct_che; /* number of guerrillas */
|
||||
natid sct_che_target; /* nation targeted by che */
|
||||
u_short sct_fallout;
|
||||
time_t sct_access; /* Last time mob was updated (MOB_ACCESS) */
|
||||
u_char sct_road; /* Road value of a sector */
|
||||
|
@ -183,6 +184,9 @@ extern struct dchrstr bigcity_dchr;
|
|||
/* Sector flags */
|
||||
#define MOVE_IN_PROGRESS bit(0) /* move in progress */
|
||||
|
||||
/* maximal number of che, must fit into struct sctstr member sct_che */
|
||||
#define CHE_MAX 255
|
||||
|
||||
/* Each cost is per point of efficency */
|
||||
struct sctintrins {
|
||||
char *in_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue