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

Function good_stair_loc

src/sp_lev.c:4138–4144  ·  view source on GitHub ↗

callback for is_ok_location. stairs generated at random location shouldn't overwrite special terrain */

Source from the content-addressed store, hash-verified

4136/* callback for is_ok_location.
4137 stairs generated at random location shouldn't overwrite special terrain */
4138staticfn boolean
4139good_stair_loc(coordxy x, coordxy y)
4140{
4141 schar typ = levl[x][y].typ;
4142
4143 return (typ == ROOM || typ == CORR || typ == ICE);
4144}
4145
4146staticfn int
4147l_create_stairway(lua_State *L, boolean using_ladder)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected