switch to using a flag parameter on newcham()

This commit is contained in:
nhmall
2022-05-28 19:35:48 -04:00
parent ef9d874c22
commit 9e6ac144b4
13 changed files with 70 additions and 49 deletions

View File

@@ -2143,7 +2143,7 @@ use_misc(struct monst* mtmp)
return 2;
case MUSE_WAN_POLYMORPH:
mzapwand(mtmp, otmp, TRUE);
(void) newcham(mtmp, muse_newcham_mon(mtmp), TRUE, FALSE);
(void) newcham(mtmp, muse_newcham_mon(mtmp), NC_VIA_WAND_OR_SPELL);
if (oseen)
makeknown(WAN_POLYMORPH);
return 2;
@@ -2152,7 +2152,7 @@ use_misc(struct monst* mtmp)
m_useup(mtmp, otmp);
if (vismon)
pline("%s suddenly mutates!", Monnam(mtmp));
(void) newcham(mtmp, muse_newcham_mon(mtmp), FALSE, FALSE);
(void) newcham(mtmp, muse_newcham_mon(mtmp), NO_NC_FLAGS);
if (oseen)
makeknown(POT_POLYMORPH);
return 2;
@@ -2179,7 +2179,7 @@ use_misc(struct monst* mtmp)
worm_move(mtmp);
newsym(g.trapx, g.trapy);
(void) newcham(mtmp, (struct permonst *) 0, FALSE, FALSE);
(void) newcham(mtmp, (struct permonst *) 0, NO_NC_FLAGS);
return 2;
case MUSE_BAG:
return mloot_container(mtmp, otmp, vismon);