flint and hard gems break less often when thrown
hobbits getting a sling also get some ammo for it
elves and rangers get alignment penalty for cutting down trees
+casting a forgotten spell uses some random amount of power
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
return ECMD_OK; /* no time elapses */
}
+ /*
+ * Note: dotele() also calculates energy use and checks nutrition
+ * and strength requirements; it any of these change, update it too.
+ */
+ energy = (spellev(spell) * 5); /* 5 <= energy <= 35 */
+
/*
* Spell casting no longer affects knowledge of the spell. A
* decrement of spell knowledge is done every turn.
Your("knowledge of this spell is twisted.");
pline("It invokes nightmarish images in your mind...");
spell_backfire(spell);
+ u.uen -= rnd(energy);
+ if (u.uen < 0)
+ u.uen = 0;
+ g.context.botl = 1;
return ECMD_TIME;
} else if (spellknow(spell) <= KEEN / 200) { /* 100 turns left */
You("strain to recall the spell.");
} else if (spellknow(spell) <= KEEN / 10) { /* 2000 turns left */
Your("recall of this spell is gradually fading.");
}
- /*
- * Note: dotele() also calculates energy use and checks nutrition
- * and strength requirements; it any of these change, update it too.
- */
- energy = (spellev(spell) * 5); /* 5 <= energy <= 35 */
if (u.uhunger <= 10 && spellid(spell) != SPE_DETECT_FOOD) {
You("are too hungry to cast that spell.");