summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-23 10:30:25 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-23 10:30:25 +0000
commit4f849c43a3add816fd41f0e3c89e387558015419 (patch)
tree87c575e2d83b323e28883aea2e06b63d69ed090e /crawl-ref/source/spl-book.cc
parent3c5f4948b8420f34873c9750bc0bb6db4be3a052 (diff)
downloadcrawl-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/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index f35903dfdb..65052132b5 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -2098,11 +2098,10 @@ static bool _get_weighted_discs(bool completely_random, god_type god,
for (int i = 0; i < num_discs; i++)
{
int skill = skills[i];
- int weight = you.skills[skill]
- * 200 / species_skills(skill, you.species) + 1;
+ int weight = 2 * you.skills[skill] + 1;
- if (spellcount[i] < 5)
- weight -= 5 - spellcount[i];
+ if (spellcount[i] < 3)
+ weight *= spellcount[i]/3;
skill_weights[i] = std::max(0, weight);
total_skills += skill_weights[i];