Use macro for spell pw cost per spell level

This commit is contained in:
Pasi Kallinen
2022-02-28 22:21:37 +02:00
parent 3cf1b87914
commit b172957831
3 changed files with 7 additions and 4 deletions

View File

@@ -924,7 +924,7 @@ spelleffects(int spell_otyp, boolean atme)
* Note: dotele() also calculates energy use and checks nutrition
* and strength requirements; if any of these change, update it too.
*/
energy = (spellev(spell) * 5); /* 5 <= energy <= 35 */
energy = SPELL_LEV_PW(spellev(spell)); /* 5 <= energy <= 35 */
/*
* Spell casting no longer affects knowledge of the spell. A