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

Function ledger_no

src/dungeon.c:1375–1379  ·  view source on GitHub ↗

return a bookkeeping level number for purpose of comparisons and save/restore */

Source from the content-addressed store, hash-verified

1373/* return a bookkeeping level number for purpose of comparisons and
1374 save/restore */
1375xint16
1376ledger_no(d_level *lev)
1377{
1378 return (xint16) (lev->dlevel + svd.dungeons[lev->dnum].ledger_start);
1379}
1380
1381/*
1382 * The last level in the bookkeeping list of level is the bottom of the last

Callers 15

no_bones_levelFunction · 0.85
can_make_bonesFunction · 0.85
savebonesFunction · 0.85
setgemprobsFunction · 0.85
peffect_gain_levelFunction · 0.85
mlevel_tele_trapFunction · 0.85
doupFunction · 0.85
currentlevel_rewriteFunction · 0.85
save_currentstateFunction · 0.85
goto_levelFunction · 0.85
invoke_banishFunction · 0.85
dorecoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected