Pyrolisk eggs explode when broken

This commit is contained in:
Pasi Kallinen
2024-06-02 10:50:58 +03:00
parent d8aa4c0b1f
commit 2bec685bae
6 changed files with 34 additions and 3 deletions

View File

@@ -1402,6 +1402,8 @@ m_consume_obj(struct monst *mtmp, struct obj *otmp)
mcureblindness(mtmp, canseemon(mtmp));
if (ispet && deadmimic)
quickmimic(mtmp);
if (otmp->otyp == EGG && corpsenm == PM_PYROLISK)
explode(mtmp->mx, mtmp->my, -11, d(3, 6), 0, EXPL_FIERY);
if (corpsenm != NON_PM)
mon_givit(mtmp, &mons[corpsenm]);
}
@@ -1729,6 +1731,9 @@ mon_givit(struct monst *mtmp, struct permonst *ptr)
int prop = corpse_intrinsic(ptr);
boolean vis = canseemon(mtmp);
if (DEADMONSTER(mtmp))
return;
if (ptr == &mons[PM_STALKER]) {
/*
* Invisible stalker isn't flagged as conferring invisibility