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

Function age_spells

src/spell.c:668–682  ·  view source on GitHub ↗

called from moveloop() */

Source from the content-addressed store, hash-verified

666
667/* called from moveloop() */
668void
669age_spells(void)
670{
671 int i;
672 /*
673 * The time relative to the hero (a pass through move
674 * loop) causes all spell knowledge to be decremented.
675 * The hero's speed, rest status, conscious status etc.
676 * does not alter the loss of memory.
677 */
678 for (i = 0; i < MAXSPELL && spellid(i) != NO_SPELL; i++)
679 if (spellknow(i))
680 decrnknow(i);
681 return;
682}
683
684/* return True if spellcasting is inhibited;
685 only covers a small subset of reasons why casting won't work */

Callers 1

allmain.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected