mthrowu, nhlan, options, regions, rip and role globals moved to g.

This commit is contained in:
Bart House
2018-12-25 16:26:27 -08:00
parent 64be5fd35a
commit 769ad91cc3
48 changed files with 679 additions and 649 deletions

View File

@@ -23,8 +23,8 @@ struct RoleName {
struct RoleAdvance {
/* "fix" is the fixed amount, "rnd" is the random amount */
xchar infix, inrnd; /* at character initialization */
xchar lofix, lornd; /* gained per level < urole.xlev */
xchar hifix, hirnd; /* gained per level >= urole.xlev */
xchar lofix, lornd; /* gained per level < g.urole.xlev */
xchar hifix, hirnd; /* gained per level >= g.urole.xlev */
};
struct u_have {
@@ -167,9 +167,8 @@ struct Role {
};
extern const struct Role roles[]; /* table of available roles */
extern struct Role urole;
#define Role_if(X) (urole.malenum == (X))
#define Role_switch (urole.malenum)
#define Role_if(X) (g.urole.malenum == (X))
#define Role_switch (g.urole.malenum)
/* used during initialization for race, gender, and alignment
as well as for character class */
@@ -219,9 +218,8 @@ struct Race {
};
extern const struct Race races[]; /* Table of available races */
extern struct Race urace;
#define Race_if(X) (urace.malenum == (X))
#define Race_switch (urace.malenum)
#define Race_if(X) (g.urace.malenum == (X))
#define Race_switch (g.urace.malenum)
/*** Unified structure specifying gender information ***/
struct Gender {