summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills2.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-08-03 20:49:16 -0400
committerNeil Moore <neil@s-z.org>2012-08-03 20:54:33 -0400
commit383b96f35e5d3cbe8b208cc13dac2ee163635f19 (patch)
tree29439bce5a2ffc4ce2ea5a5166f3c94c3a70806d /crawl-ref/source/skills2.cc
parentdaa519b60d1c3d341dfece4ea78e2cebeadb6359 (diff)
downloadcrawl-ref-383b96f35e5d3cbe8b208cc13dac2ee163635f19.tar.gz
crawl-ref-383b96f35e5d3cbe8b208cc13dac2ee163635f19.zip
Don't force Troglodytes to train magic skills.
Also, remove a few special cases that considered Spellcasting to be non-magic below level one for Troglodytes; this hasn't been necessary since scrolls stopped training Spellcasting in ee84c39. This reverts commit 1d240c20e937d950ff3de459d85665fcc06969ff.
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r--crawl-ref/source/skills2.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc
index 730958b36f..f523ff2f19 100644
--- a/crawl-ref/source/skills2.cc
+++ b/crawl-ref/source/skills2.cc
@@ -475,6 +475,11 @@ bool is_useless_skill(skill_type skill)
return species_apt(skill) == -99;
}
+bool is_harmful_skill(skill_type skill)
+{
+ return is_magic_skill(skill) && you.religion == GOD_TROG;
+}
+
int skill_bump(skill_type skill, int scale)
{
int sk = you.skill_rdiv(skill, scale);