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

Function depth

src/dungeon.c:1430–1434  ·  view source on GitHub ↗

returns the depth of a level, in floors below the surface (note levels in different dungeons can have the same depth) */

Source from the content-addressed store, hash-verified

1428/* returns the depth of a level, in floors below the surface
1429 (note levels in different dungeons can have the same depth) */
1430schar
1431depth(d_level *lev)
1432{
1433 return (schar) (svd.dungeons[lev->dnum].depth_start + lev->dlevel - 1);
1434}
1435#endif /* !SFCTOOL */
1436
1437/* are "lev1" and "lev2" actually the same? */

Callers 15

updateStatsMethod · 0.85
update_valFunction · 0.85
can_make_bonesFunction · 0.85
really_doneFunction · 0.85
maybe_generate_rnd_monFunction · 0.85
peffect_gain_levelFunction · 0.85
level_distanceFunction · 0.85
level_teleFunction · 0.85
mlevel_tele_trapFunction · 0.85
random_teleport_levelFunction · 0.85
goto_levelFunction · 0.85
nhl_meta_u_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected