summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills2.cc
diff options
context:
space:
mode:
authorBrendan Hickey <brendan@bhickey.net>2014-06-11 02:26:14 +0000
committerBrendan Hickey <brendan@bhickey.net>2014-06-11 02:26:14 +0000
commitadd05a9ee7f9bae9260e7ed66badba0528f32be4 (patch)
treee47c99a088068f578d34ed4beef3029e695c8e67 /crawl-ref/source/skills2.cc
parent2cecdf434401f754e5e8ac3cb8a587116bb51302 (diff)
downloadcrawl-ref-add05a9ee7f9bae9260e7ed66badba0528f32be4.tar.gz
crawl-ref-add05a9ee7f9bae9260e7ed66badba0528f32be4.zip
Remove Anti-training
We made the decision a while ago to remove anti-training. This had come up in discussions about changing crosstraining and it seemed that no one actually likes anti-training. Rather than blocking on cross-training, let's just put this in.
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r--crawl-ref/source/skills2.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc
index 2880c0b738..529df95248 100644
--- a/crawl-ref/source/skills2.cc
+++ b/crawl-ref/source/skills2.cc
@@ -669,15 +669,6 @@ bool compare_skills(skill_type sk1, skill_type sk2)
&& you.skill_order[sk1] < you.skill_order[sk2];
}
-bool is_antitrained(skill_type sk)
-{
- skill_type opposite = opposite_skill(sk);
- if (opposite == SK_NONE || you.skills[sk] >= 27)
- return false;
-
- return compare_skills(opposite, sk) && you.skills[opposite];
-}
-
void dump_skills(string &text)
{
for (uint8_t i = 0; i < NUM_SKILLS; i++)
@@ -748,8 +739,6 @@ int transfer_skill_points(skill_type fsk, skill_type tsk, int skp_max,
skp_gained *= ct_bonus;
you.ct_skill_points[tsk] += (1 - 1 / ct_bonus) * skp_gained;
}
- else if (is_antitrained(tsk))
- skp_gained /= ANTITRAIN_PENALTY;
ASSERT(you.skill_points[fsk] > you.ct_skill_points[fsk]);