summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.h
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-09-28 22:36:47 +0200
committerRaphael Langella <raphael.langella@gmail.com>2011-09-28 22:36:47 +0200
commit905850ebe841b0ede173604a9c618c0ac22faf3f (patch)
treeb590e4f1b299ba7d5c54d98351b8df1a6e9c1511 /crawl-ref/source/invent.h
parent54ef91c99c830f6b3b75cf517cdbe0d1d0c3c722 (diff)
downloadcrawl-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/invent.h')
-rw-r--r--crawl-ref/source/invent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h
index d9d1128da6..cd1fe59236 100644
--- a/crawl-ref/source/invent.h
+++ b/crawl-ref/source/invent.h
@@ -250,6 +250,6 @@ bool prompt_failed(int retval, std::string msg = "");
bool item_is_wieldable(const item_def &item);
bool item_is_evokable(const item_def &item, bool reach = true,
bool known = false, bool all_wands = false,
- bool msg = false);
+ bool msg = false, bool equip = true);
bool needs_handle_warning(const item_def &item, operation_types oper);
#endif