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

Function wiz_genesis

src/wizcmds.c:202–214  ·  view source on GitHub ↗

#wizgenesis - generate monster(s); a count prefix will be honored */

Source from the content-addressed store, hash-verified

200
201/* #wizgenesis - generate monster(s); a count prefix will be honored */
202int
203wiz_genesis(void)
204{
205 if (wizard) {
206 boolean mongen_saved = iflags.debug_mongen;
207
208 iflags.debug_mongen = FALSE;
209 (void) create_particular();
210 iflags.debug_mongen = mongen_saved;
211 } else
212 pline(unavailcmd, ecname_from_fn(wiz_genesis));
213 return ECMD_OK;
214}
215
216/* #wizwhere command - display dungeon layout */
217int

Callers

nothing calls this directly

Calls 3

create_particularFunction · 0.85
ecname_from_fnFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected