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

Function wd_message

sys/unix/unixmain.c:654–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654static void
655wd_message(void)
656{
657 if (iflags.wiz_error_flag) {
658 if (sysopt.wizards && sysopt.wizards[0]) {
659 char *tmp = build_english_list(sysopt.wizards);
660 pline("Only user%s %s may access debug (wizard) mode.",
661 strchr(sysopt.wizards, ' ') ? "s" : "", tmp);
662 free(tmp);
663 } else {
664 You("cannot access debug (wizard) mode.");
665 }
666 wizard = FALSE; /* (paranoia) */
667 if (!iflags.explore_error_flag)
668 pline("Entering explore/discovery mode instead.");
669 } else if (iflags.explore_error_flag) {
670 You("cannot access explore mode."); /* same as enter_explore_mode */
671 discover = iflags.deferred_X = FALSE; /* (more paranoia) */
672 } else if (discover)
673 You("are in non-scoring explore/discovery mode.");
674}
675
676/*
677 * Add a slash to any name not ending in /. There must

Callers 1

mainFunction · 0.70

Calls 3

build_english_listFunction · 0.85
YouFunction · 0.85
plineFunction · 0.50

Tested by

no test coverage detected