]> granicus.if.org Git - nethack/commitdiff
Merge branch 'pr775' into NetHack-3.7
authornhmall <nhmall@nethack.org>
Sat, 28 May 2022 23:42:21 +0000 (19:42 -0400)
committernhmall <nhmall@nethack.org>
Sat, 28 May 2022 23:42:21 +0000 (19:42 -0400)
1  2 
src/mon.c
src/muse.c
src/trap.c

diff --cc src/mon.c
index cc0d6bab816db5678349bfdfae543ccfbd3bda75,b4f0d96d23a2abb991d7b19be53a9aa0a635b867..0623986a2663dce7a4103c66b16d00b6c4f3644c
+++ b/src/mon.c
@@@ -3811,7 -3808,7 +3811,7 @@@ normal_shape(struct monst *mon
      if (mcham >= LOW_PM) {
          unsigned mcan = mon->mcan;
  
-         (void) newcham(mon, &mons[mcham], NO_NC_FLAGS);
 -        (void) newcham(mon, &mons[mcham], FALSE, TRUE);
++        (void) newcham(mon, &mons[mcham], NC_SHOW_MSG);
          mon->cham = NON_PM;
          /* newcham() may uncancel a polymorphing monster; override that */
          if (mcan)
diff --cc src/muse.c
index 10e453a1f592acf2c6f46b07f0fe2f0c4b1b0440,0b5d0446ba7b7823520a23d00048c04fe643ea1a..9d36506e7fa7fa32019bd620dbdfc72eb7a2a6bd
@@@ -2143,7 -2143,7 +2143,8 @@@ use_misc(struct monst* mtmp
          return 2;
      case MUSE_WAN_POLYMORPH:
          mzapwand(mtmp, otmp, TRUE);
-         (void) newcham(mtmp, muse_newcham_mon(mtmp), NC_VIA_WAND_OR_SPELL);
 -        (void) newcham(mtmp, muse_newcham_mon(mtmp), TRUE, TRUE);
++        (void) newcham(mtmp, muse_newcham_mon(mtmp),
++                       NC_VIA_WAND_OR_SPELL | NC_SHOW_MSG);
          if (oseen)
              makeknown(WAN_POLYMORPH);
          return 2;
          m_useup(mtmp, otmp);
          if (vismon)
              pline("%s suddenly mutates!", Monnam(mtmp));
-         (void) newcham(mtmp, muse_newcham_mon(mtmp), NO_NC_FLAGS);
 -        (void) newcham(mtmp, muse_newcham_mon(mtmp), FALSE, TRUE);
++        (void) newcham(mtmp, muse_newcham_mon(mtmp), NC_SHOW_MSG);
          if (oseen)
              makeknown(POT_POLYMORPH);
          return 2;
              worm_move(mtmp);
          newsym(g.trapx, g.trapy);
  
-         (void) newcham(mtmp, (struct permonst *) 0, NO_NC_FLAGS);
 -        (void) newcham(mtmp, (struct permonst *) 0, FALSE, TRUE);
++        (void) newcham(mtmp, (struct permonst *) 0, NC_SHOW_MSG);
          return 2;
      case MUSE_BAG:
          return mloot_container(mtmp, otmp, vismon);
diff --cc src/trap.c
index 66ae64e03470d2405830b647aff009702bdc25b4,520b3a82cb7fb25cfeea12fd5e4c557ed38402c8..bfe59d98ee3a75e6bcb20e109313aebc59aa6598
@@@ -2166,8 -2166,7 +2166,7 @@@ trapeffect_poly_trap
          if (resists_magm(mtmp)) {
              shieldeff(mtmp->mx, mtmp->my);
          } else if (!resist(mtmp, WAND_CLASS, 0, NOTELL)) {
-             (void) newcham(mtmp, (struct permonst *) 0,
-                            in_sight ? NC_SHOW_MSG : NO_NC_FLAGS);
 -            (void) newcham(mtmp, (struct permonst *) 0, FALSE, TRUE);
++            (void) newcham(mtmp, (struct permonst *) 0, NC_SHOW_MSG);
              if (in_sight)
                  seetrap(trap);
          }
@@@ -2618,7 -2617,7 +2617,7 @@@ steedintrap(struct trap* trap, struct o
          if (!resists_magm(steed) && !resist(steed, WAND_CLASS, 0, NOTELL)) {
              struct permonst *mdat = steed->data;
  
-             (void) newcham(steed, (struct permonst *) 0, NO_NC_FLAGS);
 -            (void) newcham(steed, (struct permonst *) 0, FALSE, TRUE);
++            (void) newcham(steed, (struct permonst *) 0, NC_SHOW_MSG);
              if (!can_saddle(steed) || !can_ride(steed)) {
                  dismount_steed(DISMOUNT_POLY);
              } else {