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

Function show_spells

src/spell.c:2055–2069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2053}
2054
2055DISABLE_WARNING_FORMAT_NONLITERAL
2056
2057/* lists spells for endgame dumplog purposes */
2058void
2059show_spells(void)
2060{
2061 int unused = SPELLMENU_DUMP;
2062 if (spellid(0) == NO_SPELL) {
2063 pline("You didn't know any spells.");
2064 pline("%s", "");
2065 } else {
2066 pline("Spells:");
2067 nhUse(dospellmenu("", SPELLMENU_DUMP, &unused));
2068 }
2069}
2070
2071/* shows menu of known spells, with options to sort them.
2072 return FALSE on cancel, TRUE otherwise.

Callers 1

dump_everythingFunction · 0.85

Calls 2

dospellmenuFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected