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

Function ok_to_quest

src/quest.c:139–144  ·  view source on GitHub ↗

external hook for do.c (level change check) */

Source from the content-addressed store, hash-verified

137
138/* external hook for do.c (level change check) */
139boolean
140ok_to_quest(void)
141{
142 return (boolean) (((Qstat(got_quest) || Qstat(got_thanks))
143 && is_pure(FALSE) > 0) || Qstat(killed_leader));
144}
145
146staticfn boolean
147not_capable(void)

Callers 4

goto_levelFunction · 0.85
zap_updownFunction · 0.85
down_gateFunction · 0.85
do_screen_descriptionFunction · 0.85

Calls 1

is_pureFunction · 0.85

Tested by

no test coverage detected