poly'd quantum mechanic feedback

From a bug report:  if swallowed and blind
and in quantum mechanic form, hitting the engulfer would yield "the <mon>
disappears" even though you were still swallowed by <mon>.  The pre-teleport
criteria for whether you knew the target was there were different from the
post-teleport ones.  Make them match; swallower will remain sensed by touch
and won't be described as disappearing.
This commit is contained in:
nethack.rankin
2006-12-03 03:05:46 +00:00
parent b99f8a0ebb
commit cbd61ce625
2 changed files with 5 additions and 2 deletions

View File

@@ -283,6 +283,8 @@ sinking into lava didn't track passage of time properly
sinking into lava eventually burns away slime; sitting in it always does
suppress corpse from bones data if death is due to being dissolved in lava
suppress "you rise from the dead" if game ends due to be turned into slime
don't give erroneous "<mon> disppears" message for hero poly'd into quantum
mechanic who hits engulfer while swallowed and blinded
Platform- and/or Interface-Specific Fixes

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)uhitm.c 3.5 2006/06/21 */
/* SCCS Id: @(#)uhitm.c 3.5 2006/12/02 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -1476,7 +1476,8 @@ register struct attack *mattk;
/* record the name before losing sight of monster */
Strcpy(nambuf, Monnam(mdef));
if (u_teleport_mon(mdef, FALSE) &&
u_saw_mon && !canseemon(mdef))
u_saw_mon && !(canseemon(mdef) ||
(u.uswallow && u.ustuck == mdef)))
pline("%s suddenly disappears!", nambuf);
}
break;