Merge branch 'NetHack-3.6'

This commit is contained in:
nhmall
2019-11-29 16:57:23 -05:00
9 changed files with 32 additions and 16 deletions

View File

@@ -5083,11 +5083,21 @@ boolean
uteetering_at_seen_pit(trap)
struct trap *trap;
{
if (trap && trap->tseen && (!u.utrap || u.utraptype != TT_PIT)
&& is_pit(trap->ttyp))
return TRUE;
else
return FALSE;
return (trap && is_pit(trap->ttyp) && trap->tseen
&& trap->tx == u.ux && trap->ty == u.uy
&& !(u.utrap && u.utraptype == TT_PIT));
}
/*
* Returns TRUE if you didn't fall through a hole or didn't
* release a trap door
*/
boolean
uescaped_shaft(trap)
struct trap *trap;
{
return (trap && is_hole(trap->ttyp) && trap->tseen
&& trap->tx == u.ux && trap->ty == u.uy);
}
/* Destroy a trap that emanates from the floor. */