"You mime throwwing something.")
using 'D' to drop when not carrying anything finished (after doing nothing)
without giving any feedback for menustyles "full" and "partial"
+"you hear a distant <musical note> squeak" might actually be nearby
Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository
-/* NetHack 3.6 trap.c $NHDT-Date: 1464138044 2016/05/25 01:00:44 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.272 $ */
+/* NetHack 3.6 trap.c $NHDT-Date: 1473665044 2016/09/12 07:24:04 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.274 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
pline("%s stops momentarily and appears to cringe.",
Monnam(mtmp));
}
- } else
- You_hear("a distant %s squeak.", trapnote(trap, 1));
+ } else {
+ /* same near/far threshold as mzapmsg() */
+ int range = couldsee(mtmp->mx, mtmp->my) /* 9 or 5 */
+ ? (BOLT_LIM + 1) : (BOLT_LIM - 3);
+
+ You_hear("a %s squeak %s.", trapnote(trap, 1),
+ (distu(mtmp->mx, mtmp->my) <= range * range)
+ ? "nearby" : "in the distance");
+ }
/* wake up nearby monsters */
wake_nearto(mtmp->mx, mtmp->my, 40);
break;