X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=advent.h;h=ee8e3faa9808e33b831669291ddd986fcfb65147;hp=477b8b84652a0f51c15fe7d95098b9ca5fdccf8b;hb=dc6a5751ed04ff15103c9852c8dc7427298b6945;hpb=d61cab352ee4345311eb9dd1a40fe11fb979f463 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