From: nhmall Date: Wed, 7 Oct 2020 13:09:51 +0000 (-0400) Subject: small monsters seeping through their shirt X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0e71f68bc107aeb218df3726c05c5654958a34a;p=nethack small monsters seeping through their shirt The code is slightly different than in the PR which left out the noncorporeal case. Closes #397 --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 0246efc53..6b92c5b02 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -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 diff --git a/src/worn.c b/src/worn.c index de97f2b7f..24dfdd998 100644 --- a/src/worn.c +++ b/src/worn.c @@ -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