Unify checking if monster is ok in poison gas
This commit is contained in:
@@ -1449,6 +1449,7 @@ E int FDECL(cmap_to_type, (int));
|
||||
/* ### mon.c ### */
|
||||
|
||||
E void NDECL(mon_sanity_check);
|
||||
E int FDECL(m_poisongas_ok, (struct monst *));
|
||||
E int FDECL(undead_to_corpse, (int));
|
||||
E int FDECL(genus, (int, int));
|
||||
E int FDECL(pm_to_cham, (int));
|
||||
|
||||
@@ -315,6 +315,11 @@ typedef struct sortloot_item Loot;
|
||||
#define SHIFT_SEENMSG 0x01 /* put out a message if in sight */
|
||||
#define SHIFT_MSG 0x02 /* always put out a message */
|
||||
|
||||
/* m_poisongas_ok() return values */
|
||||
#define M_POISONGAS_BAD 0 /* poison gas is bad */
|
||||
#define M_POISONGAS_MINOR 1 /* poison gas is ok, maybe causes coughing */
|
||||
#define M_POISONGAS_OK 2 /* ignores poison gas completely */
|
||||
|
||||
/* flags for deliver_obj_to_mon */
|
||||
#define DF_NONE 0x00
|
||||
#define DF_RANDOM 0x01
|
||||
|
||||
Reference in New Issue
Block a user