pull request #763 - noxious nemeses

Pull request from vultur-cadens:  some of the quest nemeses death
messages mention releasing noxious gas or noxious fumes so create
a poison gas cloud for them.

Closes #763
This commit is contained in:
PatR
2022-05-15 12:20:10 -07:00

View File

@@ -2370,8 +2370,18 @@ m_detach(
mtmp->mhp = 0; /* simplify some tests: force mhp to 0 */
if (mtmp->iswiz)
wizdead();
if (mtmp->data->msound == MS_NEMESIS)
if (mtmp->data->msound == MS_NEMESIS) {
struct permonst *mdat = mtmp->data;
nemdead();
/* The Archeologist, Caveman, and Priest quest texts describe
the nemesis's body creating noxious fumes/gas when
killed. */
if (mdat == &mons[PM_MINION_OF_HUHETOTL]
|| mdat == &mons[PM_CHROMATIC_DRAGON]
|| mdat == &mons[PM_NALZOK]) {
create_gas_cloud(mx, my, 5, 8);
}
}
if (mtmp->data->msound == MS_LEADER)
leaddead();
if (mtmp->m_id == g.stealmid)