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

Function quest_info

src/questpgr.c:30–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28staticfn boolean com_pager_core(const char *, const char *, boolean, char **);
29
30short
31quest_info(int typ)
32{
33 switch (typ) {
34 case 0:
35 return gu.urole.questarti;
36 case MS_LEADER:
37 return gu.urole.ldrnum;
38 case MS_NEMESIS:
39 return gu.urole.neminum;
40 case MS_GUARDIAN:
41 return gu.urole.guardnum;
42 default:
43 impossible("quest_info(%d)", typ);
44 }
45 return 0;
46}
47
48/* return your role leader's name */
49const char *

Callers 6

qst_guardians_respondFunction · 0.85
peacefuls_respondFunction · 0.85
setmangryFunction · 0.85
animate_statueFunction · 0.85
makemonFunction · 0.85
do_class_genocideFunction · 0.85

Calls 1

impossibleFunction · 0.70

Tested by

no test coverage detected