diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-07-07 14:33:37 +0000 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-07-07 21:55:59 +0200 |
commit | c473370b663a1ebd962905b514fc3ef507f5b1b0 (patch) | |
tree | 3bb8a38170eb9ed1e59905c8e7e19cda48696c7c /crawl-ref/source/exercise.cc | |
parent | 7de7d6522e2c36928cebef4269a599a3f2c43069 (diff) | |
download | crawl-ref-c473370b663a1ebd962905b514fc3ef507f5b1b0.tar.gz crawl-ref-c473370b663a1ebd962905b514fc3ef507f5b1b0.zip |
Increase the amount of spellcasting exercises when casting.
In auto mode, it should train at about half the speed of the magic school skill
for single school spells, and same speed for dual-school spells.
Diffstat (limited to 'crawl-ref/source/exercise.cc')
-rw-r--r-- | crawl-ref/source/exercise.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/exercise.cc b/crawl-ref/source/exercise.cc index 8143be3ce5..e26c398f07 100644 --- a/crawl-ref/source/exercise.cc +++ b/crawl-ref/source/exercise.cc @@ -240,8 +240,7 @@ static void _exercise_spell(spell_type spell, bool success) spellcasting had also been generally exercised at the same time ****************************************************************** */ - exercise(SK_SPELLCASTING, - one_chance_in(3) ? 1 : random2(1 + random2(diff))); + exercise(SK_SPELLCASTING, 1 + random2(1 + diff) / skillcount); } static bool _check_train_armour(int amount) |