From: nhmall Date: Wed, 7 Oct 2020 13:23:41 +0000 (-0400) Subject: follow-up to previous X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b0a9f8e31be620c98634ebd62c580ae9ba0e255;p=nethack follow-up to previous --- diff --git a/src/worn.c b/src/worn.c index 24dfdd998..ad52e2474 100644 --- a/src/worn.c +++ b/src/worn.c @@ -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