diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-23 10:30:25 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-23 10:30:25 +0000 |
commit | 4f849c43a3add816fd41f0e3c89e387558015419 (patch) | |
tree | 87c575e2d83b323e28883aea2e06b63d69ed090e /crawl-ref/source/effects.cc | |
parent | 3c5f4948b8420f34873c9750bc0bb6db4be3a052 (diff) | |
download | crawl-ref-4f849c43a3add816fd41f0e3c89e387558015419.tar.gz crawl-ref-4f849c43a3add816fd41f0e3c89e387558015419.zip |
Remove aptitude multipliers when picking skills for randart books since
they're also not used for other acquirements.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9172 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 3c4e77a854..9220fb12b5 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1319,8 +1319,7 @@ static int _spell_weight(spell_type spell) int disc = 1 << i; if (disciplines & disc) { - int skill = you.skills[spell_type2skill(disc)] - * 100 / species_skills(i, you.species); + int skill = you.skills[spell_type2skill(disc)]; weight += skill + 1; count++; @@ -1405,7 +1404,7 @@ static void _do_book_acquirement(item_def &book, int agent) if (is_invalid_skill(i)) continue; - int weight = you.skills[i] * 100 / species_skills(i, you.species); + int weight = you.skills[i]; // Anyone can get Spellcasting 1. Doesn't prove anything. if (i == SK_SPELLCASTING && weight >= 1) @@ -1497,9 +1496,7 @@ static void _do_book_acquirement(item_def &book, int agent) continue; } - int skill = you.skills[i] - * 100 / species_skills(i, you.species); - + int skill = you.skills[i]; int w = (skill < 12) ? skill + 3 : std::max(0, 25 - skill); |