summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2012-04-08 13:35:34 +0200
committerRaphael Langella <raphael.langella@gmail.com>2012-04-08 13:35:34 +0200
commitfd0a1caa87b0dd7aa33f540463c7ae7c2eba0cf6 (patch)
treea939663791ed362edf34e520e436ff719ba2080f /crawl-ref/source/skills.cc
parente312df1e4261897f9d63b557c9a1efc32d1bcd0c (diff)
downloadcrawl-ref-fd0a1caa87b0dd7aa33f540463c7ae7c2eba0cf6.tar.gz
crawl-ref-fd0a1caa87b0dd7aa33f540463c7ae7c2eba0cf6.zip
Remove restrictions on armour training.
Diffstat (limited to 'crawl-ref/source/skills.cc')
-rw-r--r--crawl-ref/source/skills.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc
index 8c027e4f15..2b79eaae82 100644
--- a/crawl-ref/source/skills.cc
+++ b/crawl-ref/source/skills.cc
@@ -298,12 +298,7 @@ static void _check_inventory_skills()
static void _check_equipment_skills()
{
- skill_set_iter it = you.stop_train.find(SK_ARMOUR);
- const item_def *armour = you.slot_item(EQ_BODY_ARMOUR, true);
- if (it != you.stop_train.end() && armour && property(*armour, PARM_EVASION))
- you.stop_train.erase(it);
-
- it = you.stop_train.find(SK_SHIELDS);
+ skill_set_iter it = you.stop_train.find(SK_SHIELDS);
if (it != you.stop_train.end() && you.slot_item(EQ_SHIELD, true))
you.stop_train.erase(it);
}
@@ -441,6 +436,7 @@ bool training_restricted(skill_type sk)
case SK_FIGHTING:
// Requiring missiles would mean disabling the skill when you run out.
case SK_THROWING:
+ case SK_ARMOUR:
case SK_DODGING:
case SK_STEALTH:
case SK_STABBING: