summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills2.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2012-08-27 15:07:42 +0200
committerRaphael Langella <raphael.langella@gmail.com>2012-08-27 15:07:42 +0200
commitcb5881f43b3eec4e902b8f961c4045209aa9ef4b (patch)
tree28c2bdc51216fa4b9a041a07b2b5b082f2d1ed52 /crawl-ref/source/skills2.cc
parent52d8903b50677c9dc21e725fa6a395d4bc167d88 (diff)
downloadcrawl-ref-cb5881f43b3eec4e902b8f961c4045209aa9ef4b.tar.gz
crawl-ref-cb5881f43b3eec4e902b8f961c4045209aa9ef4b.zip
Remove the hidden special cost of some skills, adjust aptitudes.
Spellcasting was cost 130%, Stealth, Evocations and Invocations 80%. All species had their aptitudes adjusted to compensate (-1 Spc, +1 Sth, +1 Inv, +1 Evo). The only significant balance change is Naga staying at +5 Sth.
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r--crawl-ref/source/skills2.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc
index d7107c4cd5..32abca398b 100644
--- a/crawl-ref/source/skills2.cc
+++ b/crawl-ref/source/skills2.cc
@@ -495,22 +495,6 @@ static float _apt_to_factor(int apt)
return (1 / exp(log(2) * apt / APT_DOUBLE));
}
-// Base skill cost, i.e. old-style human aptitudes.
-static int _base_cost(skill_type sk)
-{
- switch (sk)
- {
- case SK_SPELLCASTING:
- return 130;
- case SK_STEALTH:
- case SK_INVOCATIONS:
- case SK_EVOCATIONS:
- return 80;
- default:
- return 100;
- }
-}
-
unsigned int skill_exp_needed(int lev, skill_type sk, species_type sp)
{
const int exp[28] = { 0, 50, 150, 300, 500, 750, // 0-5
@@ -522,7 +506,7 @@ unsigned int skill_exp_needed(int lev, skill_type sk, species_type sp)
ASSERT(lev >= 0);
ASSERT(lev <= 27);
- return exp[lev] * species_apt_factor(sk, sp) * _base_cost(sk) / 100;
+ return exp[lev] * species_apt_factor(sk, sp);
}
int species_apt(skill_type skill, species_type species)