diff options
author | elliptic <hyperelliptical@gmail.com> | 2012-09-20 00:18:48 -0400 |
---|---|---|
committer | elliptic <hyperelliptical@gmail.com> | 2012-09-20 00:18:48 -0400 |
commit | 1db80bed25a1ffbad97862f6a5f576aca6d34df7 (patch) | |
tree | c8fedc2910de4bbd730d65b042f2b641c0a51af4 /crawl-ref/source/skills.cc | |
parent | 5d399064b6427ae31d3ce39e44d9526da9d71a68 (diff) | |
download | crawl-ref-1db80bed25a1ffbad97862f6a5f576aca6d34df7.tar.gz crawl-ref-1db80bed25a1ffbad97862f6a5f576aca6d34df7.zip |
Remove the effect of stats on the cost of raising skills to 1.
It was a remnant of the old system in which raising skills to 1 meant
something special, and it was insignificant anyway.
Diffstat (limited to 'crawl-ref/source/skills.cc')
-rw-r--r-- | crawl-ref/source/skills.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc index 1138d425ef..e5a675e90e 100644 --- a/crawl-ref/source/skills.cc +++ b/crawl-ref/source/skills.cc @@ -901,30 +901,6 @@ void train_skill(skill_type skill, int exp) dprf("Trained %s by %d.", skill_name(skill), gain); } -static int _stat_mult(skill_type exsk, int skill_inc) -{ - int stat = 10; - - if ((exsk >= SK_FIGHTING && exsk <= SK_STAVES) || exsk == SK_ARMOUR) - { - // These skills are easier for the strong. - stat = you.strength(); - } - else if (exsk >= SK_SLINGS && exsk <= SK_UNARMED_COMBAT) - { - // These skills are easier for the dexterous. - // Note: Armour is handled above. - stat = you.dex(); - } - else if (exsk >= SK_SPELLCASTING && exsk <= SK_LAST_MAGIC) - { - // These skills are easier for the smart. - stat = you.intel(); - } - - return (skill_inc * max<int>(5, stat) / 10); -} - void check_skill_cost_change() { while (you.skill_cost_level < 27 @@ -961,11 +937,6 @@ static int _train(skill_type exsk, int &max_exp, bool simu) if (exsk < SK_ARMOUR) skill_inc *= crosstrain_bonus(exsk); - // Starting to learn skills is easier if the appropriate stat is high. - // We check skill points in case skill level hasn't been updated yet. - if (you.skill_points[exsk] < skill_exp_needed(1, exsk)) - skill_inc = _stat_mult(exsk, skill_inc); - if (is_antitrained(exsk)) cost *= ANTITRAIN_PENALTY; |