Add a macro to provide universal consistency around the check

for what sort of creatures tend to revive.
This commit is contained in:
nethack.allison
2002-01-26 15:05:00 +00:00
parent 5482d1ab74
commit 69ce21fe0b
3 changed files with 5 additions and 5 deletions

View File

@@ -100,11 +100,8 @@ STATIC_VAR short cham_to_pm[] = {
PM_SANDESTIN,
};
/* return TRUE if the monster tends to revive */
#define REVIVER(ptr) (is_rider(ptr) || ptr->mlet == S_TROLL)
#define KEEPTRAITS(mon) (mon->isshk || mon->mtame || \
(mon->data->geno & G_UNIQ) || REVIVER(mon->data) || \
(mon->data->geno & G_UNIQ) || is_reviver(mon->data) || \
(mon->m_id == quest_status.leader_m_id))
/* Creates a monster corpse, a "special" corpse, or nothing if it doesn't