message fix for sewer rat from sink

> Getting a sewer rat from a sink when not blind, but can't see it
> (because of boulders, etc.) gives "Eek! There's it in the sink!"
> [<email deleted>]
This commit is contained in:
nethack.allison
2003-08-17 14:35:04 +00:00
parent c654b2fc02
commit 95e4443c11
2 changed files with 5 additions and 2 deletions

View File

@@ -127,6 +127,8 @@ hero's appearance should change immediately after mimicing completes
avoid some uses of "it" in killer messages
avoid "singular of null?" warning for info lookup of obscure user input
there was no check for iron bars in dokick() so it defaulted to "empty space"
if you couldn't see the rat created in a sink for some reason other than
blindness, you would get "Eek there's it in the sink."
Platform- and/or Interface-Specific Fixes

View File

@@ -530,8 +530,9 @@ drinksink()
else {
mtmp = makemon(&mons[PM_SEWER_RAT],
u.ux, u.uy, NO_MM_FLAGS);
pline("Eek! There's %s in the sink!",
Blind ? "something squirmy" :
if (mtmp) pline("Eek! There's %s in the sink!",
(Blind || !canspotmon(mtmp)) ?
"something squirmy" :
a_monnam(mtmp));
}
break;