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

Function final_level

src/do.c:2042–2053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2040}
2041
2042staticfn void
2043final_level(void)
2044{
2045 /* reset monster hostility relative to player */
2046 iter_mons(reset_hostility);
2047
2048 /* create some player-monsters */
2049 create_mplayers(rn1(4, 3), TRUE);
2050
2051 /* create a guardian angel next to player, if worthy */
2052 gain_guardian_angel();
2053}
2054
2055/* change levels at the end of this turn, after monsters finish moving */
2056void

Callers 1

goto_levelFunction · 0.85

Calls 3

iter_monsFunction · 0.85
create_mplayersFunction · 0.85
gain_guardian_angelFunction · 0.85

Tested by

no test coverage detected