Abolish VOCWRD().
Action word mnemonics are now enums from adventure.yaml.
This commit is contained in:
parent
2aa5f1dd61
commit
7dc8839249
5 changed files with 5 additions and 34 deletions
8
advent.h
8
advent.h
|
@ -160,19 +160,11 @@ extern int restore(FILE *);
|
|||
#define PCT(N) (randrange(100) < (N))
|
||||
#define GSTONE(OBJ) ((OBJ) == EMERALD || (OBJ) == RUBY || (OBJ) == AMBER || (OBJ) == SAPPH)
|
||||
#define FOREST(LOC) CNDBIT(LOC, COND_FOREST)
|
||||
#define VOCWRD(LETTRS,SECT) (vocab(MAKEWD(LETTRS),SECT))
|
||||
#define SPECIAL(LOC) ((LOC) > SPECIALBASE)
|
||||
#define OUTSID(LOC) (CNDBIT(LOC, COND_ABOVE) || FOREST(LOC))
|
||||
|
||||
#define INDEEP(LOC) ((LOC) >= LOC_MISTHALL && !OUTSID(LOC))
|
||||
|
||||
/* vocabulary items */
|
||||
extern long FIND;
|
||||
extern long INVENT;
|
||||
extern long SAY;
|
||||
extern long LOCK;
|
||||
extern long THROW;
|
||||
|
||||
enum speechpart {unknown, intransitive, transitive};
|
||||
|
||||
struct command_t {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue