diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-09-28 22:36:47 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-09-28 22:36:47 +0200 |
commit | 905850ebe841b0ede173604a9c618c0ac22faf3f (patch) | |
tree | b590e4f1b299ba7d5c54d98351b8df1a6e9c1511 /crawl-ref/source/exercise.h | |
parent | 54ef91c99c830f6b3b75cf517cdbe0d1d0c3c722 (diff) | |
download | crawl-ref-905850ebe841b0ede173604a9c618c0ac22faf3f.tar.gz crawl-ref-905850ebe841b0ede173604a9c618c0ac22faf3f.zip |
Replace the unknown skill dance by skill training restrictions.
There's no more restriction on training unknown skills. By default, they are
disabled in manual mode and enabled in auto mode, but they can be freely
toggled if restrictions are met.
A skill can be trained if there's any available mean of exercising it.
Fighting, throwing, dodging, stealth, stabbing, T&D, UC and spellcasting can
always be trained.
Weapon skills require carrying a weapon of the type.
Armour requires wearing an armour with an evasion penalty.
Shields needs either wearing a shield, knowing condensation shield or being able
to cast it from a rod of warding or having the divine shield ability.
Evocations requires carrying an evocable item, or having a Nemelex ability.
Spell schools require knowing a spell of the school (Necromancy can be trained
with having a Kiku ability).
Invocations requires having any divine ability that exercises it.
For edge cases, requirements are a bit loose. No need to carry missiles to
train throwing (or it disables itself when you run out), no minimum spell
success, no cap on skill level with buckler and leather for example.
Diffstat (limited to 'crawl-ref/source/exercise.h')
-rw-r--r-- | crawl-ref/source/exercise.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/exercise.h b/crawl-ref/source/exercise.h index 6935225a54..400f1c041d 100644 --- a/crawl-ref/source/exercise.h +++ b/crawl-ref/source/exercise.h @@ -46,5 +46,6 @@ enum exer_type }; void practise(exer_type ex, int param1 = 0); +skill_type abil_skill(ability_type abil); #endif |