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

Function wiz_wish

src/wizcmds.c:28–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26staticfn void list_migrating_mons(d_level *);
27
28DISABLE_WARNING_FORMAT_NONLITERAL
29
30/* #wizwish command - wish for something */
31int
32wiz_wish(void) /* Unlimited wishes for debug mode by Paul Polderman */
33{
34 if (wizard) {
35 boolean save_verbose = flags.verbose;
36
37 flags.verbose = FALSE;
38 makewish();
39 flags.verbose = save_verbose;
40 encumber_msg();
41 } else
42 pline(unavailcmd, ecname_from_fn(wiz_wish));
43 return ECMD_OK;
44}
45
46DISABLE_WARNING_FORMAT_NONLITERAL
47

Callers

nothing calls this directly

Calls 4

makewishFunction · 0.85
encumber_msgFunction · 0.85
ecname_from_fnFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected