]> granicus.if.org Git - nethack/commitdiff
follow-up to previous
authornhmall <nhmall@nethack.org>
Wed, 7 Oct 2020 13:23:41 +0000 (09:23 -0400)
committernhmall <nhmall@nethack.org>
Wed, 7 Oct 2020 13:23:41 +0000 (09:23 -0400)
src/worn.c

index 24dfdd99853dc111c76c52df6d80a8c679e18dcc..ad52e247494b9d50daf0dac6365a08a3bf2c20f9 100644 (file)
@@ -892,6 +892,9 @@ boolean polyspot;
             m_useup(mon, otmp);
         }
     } else if (sliparm(mdat)) {
+        /* sliparm checks whirly, noncorporeal, and small or under */
+        boolean passes_thru_clothes = !(mdat->msize <= MZ_SMALL);
+
         if ((otmp = which_armor(mon, W_ARM)) != 0) {
             if (vis)
                 pline("%s armor falls around %s!", s_suffix(Monnam(mon)),
@@ -917,8 +920,7 @@ boolean polyspot;
         }
         if ((otmp = which_armor(mon, W_ARMU)) != 0) {
             if (vis) {
-                /* sliparm checks whirly, noncorporeal, and small or under */
-                if (sliparm(mdat) && !(mdat->msize <= MZ_SMALL))
+                if (passes_thru_clothes)
                     pline("%s seeps right through %s shirt!", Monnam(mon),
                           ppronoun);
                 else