Unify checking if monster is ok in poison gas

This commit is contained in:
Pasi Kallinen
2020-04-02 18:15:13 +03:00
parent 49f4a1d8d2
commit 2f64f419ad
4 changed files with 43 additions and 18 deletions

View File

@@ -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