cflags.h
dirt31/include/cflags.h · 487 B
From the archive dirt31.tar.gz
Download the archive « Back to the archive contents
#define IN_ROOM 0 /* In room <room> */
#define IN_CONTAINER 1 /* In container <object> */
#define CARRIED_BY 2 /* Carried by <player or mobile> */
#define WORN_BY 3 /* Worn by <player or mobile> */
#define WIELDED_BY 4 /* Wielded by <player or mobile> */
#define BOTH_BY 5 /* Both worn and wielded */
/* by <player or mobile> */
#define iswielded(O) (ocarrf(O) >= WIELDED_BY)
#define isworn(O) (ocarrf(O) == WORN_BY || ocarrf(O) == BOTH_BY)