summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills2.cc
diff options
context:
space:
mode:
authorBrendan Hickey <brendan@bhickey.net>2014-06-12 01:19:39 +0000
committerBrendan Hickey <brendan@bhickey.net>2014-06-12 01:21:04 +0000
commit7c1a5597fd584d7b42c61b9cbf5a88e1c8f43a0b (patch)
treec180d82d5dd89e1025bbcc0b2cb00a772fc9a85e /crawl-ref/source/skills2.cc
parent2e5c74cbc0fdefbc508c83c0693159720cbe6fc8 (diff)
downloadcrawl-ref-7c1a5597fd584d7b42c61b9cbf5a88e1c8f43a0b.tar.gz
crawl-ref-7c1a5597fd584d7b42c61b9cbf5a88e1c8f43a0b.zip
Convert crosstraining into an enhancer bonus
Remove traditional crosstraining. Replace it with a 20% skillpoint enhancer bonus.
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r--crawl-ref/source/skills2.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc
index 0a814016c8..f5b804eb40 100644
--- a/crawl-ref/source/skills2.cc
+++ b/crawl-ref/source/skills2.cc
@@ -602,22 +602,6 @@ vector<skill_type> get_crosstrain_skills(skill_type sk)
}
}
-float crosstrain_bonus(skill_type sk)
-{
- int bonus = 1;
-
- vector<skill_type> crosstrain_skills = get_crosstrain_skills(sk);
-
- for (unsigned int i = 0; i < crosstrain_skills.size(); ++i)
- if (you.skill(crosstrain_skills[i], 10, true)
- >= you.skill(sk, 10, true) + CROSSTRAIN_THRESHOLD)
- {
- bonus *= 2;
- }
-
- return bonus;
-}
-
skill_type opposite_skill(skill_type sk)
{
switch (sk)
@@ -733,13 +717,6 @@ int transfer_skill_points(skill_type fsk, skill_type tsk, int skp_max,
int skp_lost = min(20, skp_max - total_skp_lost);
int skp_gained = skp_lost * penalty / 100;
- float ct_bonus = crosstrain_bonus(tsk);
- if (ct_bonus > 1 && fsk != tsk)
- {
- skp_gained *= ct_bonus;
- you.ct_skill_points[tsk] += (1 - 1 / ct_bonus) * skp_gained;
- }
-
ASSERT(you.skill_points[fsk] > you.ct_skill_points[fsk]);
int ct_penalty = skp_lost * you.ct_skill_points[fsk]