MCPcopy Create free account
hub / github.com/NetHack/NetHack / m_easy_escape_pit

Function m_easy_escape_pit

src/trap.c:3725–3730  ·  view source on GitHub ↗

can monster escape from a pit easily */

Source from the content-addressed store, hash-verified

3723
3724/* can monster escape from a pit easily */
3725staticfn boolean
3726m_easy_escape_pit(struct monst *mtmp)
3727{
3728 return (mtmp->data == &mons[PM_PIT_FIEND]
3729 || mtmp->data->msize >= MZ_HUGE);
3730}
3731
3732int
3733mintrap(struct monst *mtmp, unsigned mintrapflags)

Callers 2

mintrapFunction · 0.85
climb_pitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected