| 829 | } |
| 830 | |
| 831 | staticfn const char * |
| 832 | spelltypemnemonic(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 | |
| 855 | int |
| 856 | spell_skilltype(int booktype) |
no test coverage detected