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

Function schedule_goto

src/do.c:2056–2071  ·  view source on GitHub ↗

change levels at the end of this turn, after monsters finish moving */

Source from the content-addressed store, hash-verified

2054
2055/* change levels at the end of this turn, after monsters finish moving */
2056void
2057schedule_goto(
2058 d_level *tolev,
2059 int utotype_flags,
2060 const char *pre_msg, const char *post_msg)
2061{
2062 /* UTOTYPE_DEFERRED is used, so UTOTYPE_NONE can trigger deferred_goto() */
2063 u.utotype = utotype_flags | UTOTYPE_DEFERRED;
2064 /* destination level */
2065 assign_level(&u.utolev, tolev);
2066
2067 if (pre_msg)
2068 gd.dfr_pre_msg = dupstr(pre_msg);
2069 if (post_msg)
2070 gd.dfr_post_msg = dupstr(post_msg);
2071}
2072
2073/* handle something like portal ejection */
2074void

Callers 7

expulsionFunction · 0.85
done2Function · 0.85
maybe_do_tutorialFunction · 0.85
special_throne_effectFunction · 0.85
level_teleFunction · 0.85
domagicportalFunction · 0.85
fall_throughFunction · 0.85

Calls 2

assign_levelFunction · 0.85
dupstrFunction · 0.85

Tested by

no test coverage detected