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

Function spelltypemnemonic

src/spell.c:831–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

829}
830
831staticfn const char *
832spelltypemnemonic(int skill)
833{
834 switch (skill) {
835 case P_ATTACK_SPELL:
836 return "attack";
837 case P_HEALING_SPELL:
838 return "healing";
839 case P_DIVINATION_SPELL:
840 return "divination";
841 case P_ENCHANTMENT_SPELL:
842 return "enchantment";
843 case P_CLERIC_SPELL:
844 return "clerical";
845 case P_ESCAPE_SPELL:
846 return "escape";
847 case P_MATTER_SPELL:
848 return "matter";
849 default:
850 impossible("Unknown spell skill, %d;", skill);
851 return "";
852 }
853}
854
855int
856spell_skilltype(int booktype)

Callers 1

dospellmenuFunction · 0.85

Calls 1

impossibleFunction · 0.70

Tested by

no test coverage detected