]> granicus.if.org Git - nethack/commitdiff
small monsters seeping through their shirt
authornhmall <nhmall@nethack.org>
Wed, 7 Oct 2020 13:09:51 +0000 (09:09 -0400)
committernhmall <nhmall@nethack.org>
Wed, 7 Oct 2020 13:09:51 +0000 (09:09 -0400)
The code is slightly different than in the PR which left out the noncorporeal case.

Closes #397

doc/fixes37.0
src/worn.c

index 0246efc538eb6a8d3b0957ca618719ac1caf9e28..6b92c5b02d4033f6f82132529a5d30ff3f537b29 100644 (file)
@@ -270,6 +270,7 @@ make piranhas faster and give them extra bite attack
 fire sources can ignite candles, lamps, and potions of oil
 for multiple drop ('D') with menustyle traditional or combination, if the only
        object class player picked was '$' then it operated on all classes
+small monsters could seep through their shirt
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index de97f2b7fd88a524ffb22df147f43f9bb0a8c5af..24dfdd99853dc111c76c52df6d80a8c679e18dcc 100644 (file)
@@ -917,7 +917,8 @@ boolean polyspot;
         }
         if ((otmp = which_armor(mon, W_ARMU)) != 0) {
             if (vis) {
-                if (sliparm(mon->data))
+                /* sliparm checks whirly, noncorporeal, and small or under */
+                if (sliparm(mdat) && !(mdat->msize <= MZ_SMALL))
                     pline("%s seeps right through %s shirt!", Monnam(mon),
                           ppronoun);
                 else