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

Function lspo_random_corridors

src/sp_lev.c:4557–4574  ·  view source on GitHub ↗

random_corridors(); */

Source from the content-addressed store, hash-verified

4555
4556/* random_corridors(); */
4557int
4558lspo_random_corridors(lua_State *L UNUSED)
4559{
4560 corridor tc;
4561
4562 create_des_coder();
4563
4564 tc.src.room = -1;
4565 tc.src.door = -1;
4566 tc.src.wall = -1;
4567 tc.dest.room = -1;
4568 tc.dest.door = -1;
4569 tc.dest.wall = -1;
4570
4571 create_corridor(&tc);
4572
4573 return 0;
4574}
4575
4576/* Choose a single random W_* direction. */
4577coordxy

Callers

nothing calls this directly

Calls 2

create_des_coderFunction · 0.85
create_corridorFunction · 0.85

Tested by

no test coverage detected