looking at a trapped monster
would describe it as trapped if you could see its location, but if the trap was unseen that trap would remain unseen, at least in some circumstances. Mark the trap as seen.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 pager.c $NHDT-Date: 1558045586 2019/05/16 22:26:26 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.153 $ */
|
||||
/* NetHack 3.6 pager.c $NHDT-Date: 1562632673 2019/07/09 00:37:53 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.154 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2018. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -297,9 +297,11 @@ int x, y;
|
||||
int tt = t ? t->ttyp : NO_TRAP;
|
||||
|
||||
/* newsym lets you know of the trap, so mention it here */
|
||||
if (tt == BEAR_TRAP || is_pit(tt) || tt == WEB)
|
||||
if (tt == BEAR_TRAP || is_pit(tt) || tt == WEB) {
|
||||
Sprintf(eos(buf), ", trapped in %s",
|
||||
an(defsyms[trap_to_defsym(tt)].explanation));
|
||||
t->tseen = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* we know the hero sees a monster at this location, but if it's shown
|
||||
|
||||
Reference in New Issue
Block a user