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

Function Can_fall_thru

src/dungeon.c:1661–1665  ·  view source on GitHub ↗

* Like Can_dig_down (above), but also allows falling through on the * stronghold level. Normally, the bottom level of a dungeon resists * both digging and falling. */

Source from the content-addressed store, hash-verified

1659 * both digging and falling.
1660 */
1661boolean
1662Can_fall_thru(d_level *lev)
1663{
1664 return (boolean) (Can_dig_down(lev) || Is_stronghold(lev));
1665}
1666
1667/*
1668 * True if one can rise up a level (e.g. cursed gain level).

Callers 9

dodownFunction · 0.85
wizterrainwishFunction · 0.85
fall_throughFunction · 0.85
trapeffect_holeFunction · 0.85
float_downFunction · 0.85
find_defensiveFunction · 0.85
makenicheFunction · 0.85
mktrapFunction · 0.85
generate_way_out_methodFunction · 0.85

Calls 1

Can_dig_downFunction · 0.85

Tested by

no test coverage detected