number of spells hero knows */
| 2414 | |
| 2415 | /* number of spells hero knows */ |
| 2416 | int |
| 2417 | num_spells(void) |
| 2418 | { |
| 2419 | int i; |
| 2420 | |
| 2421 | for (i = 0; i < MAXSPELL; i++) |
| 2422 | if (spellid(i) == NO_SPELL) |
| 2423 | break; |
| 2424 | return i; |
| 2425 | } |
| 2426 | |
| 2427 | /*spell.c*/ |
no outgoing calls
no test coverage detected