X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=advent.h;h=ee8e3faa9808e33b831669291ddd986fcfb65147;hb=5d8275c147ddae5e06fb80707bd40dd5e02b1d12;hp=477b8b84652a0f51c15fe7d95098b9ca5fdccf8b;hpb=d61cab352ee4345311eb9dd1a40fe11fb979f463;p=open-adventure.git diff --git a/advent.h b/advent.h index 477b8b8..ee8e3fa 100644 --- a/advent.h +++ b/advent.h @@ -11,7 +11,8 @@ #define MAXTRS 79 #define MAXPARMS 25 #define INVLIMIT 7 -#define INTRANSITIVE -1 /* illegal object number */ +#define INTRANSITIVE -1 /* illegal object number */ +#define SPECIALBASE 300 /* base umber of special rooms */ typedef struct lcg_state { @@ -146,6 +147,7 @@ extern int saveresume(FILE *, bool); #define GSTONE(OBJ) ((OBJ) == EMRALD || (OBJ) == RUBY || (OBJ) == AMBER || (OBJ) == SAPPH) #define FOREST(LOC) ((LOC) >= 145 && (LOC) <= 166) #define VOCWRD(LETTRS,SECT) (VOCAB(MAKEWD(LETTRS),SECT)) +#define SPECIAL(LOC) ((LOC) > SPECIALBASE) /* The following two functions were added to fix a bug (game.clock1 decremented * while in forest). They should probably be replaced by using another