Merge branch 'NetHack-3.6'
This commit is contained in:
20
src/trap.c
20
src/trap.c
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user