summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/newgame.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-01 23:32:17 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-01 23:32:17 +0000
commit24be5339e3c697c6faf7038a7cbeddae0cf92314 (patch)
tree2c6c70307ecf9b9996737717fd4bfd852b6057e3 /crawl-ref/source/newgame.cc
parenta6935bcfb6948bdb6d366cfecda141093b8163f3 (diff)
downloadcrawl-ref-24be5339e3c697c6faf7038a7cbeddae0cf92314.tar.gz
crawl-ref-24be5339e3c697c6faf7038a7cbeddae0cf92314.zip
Commit a few changes, mostly clean-up.
* Modify tile_show_items setting in tutorial to (hopefully) show corpses again. * Change skill_exp_needed to use the level input rather than decreasing the passed in parameter, esp. when it was mostly called in the form skill_exp_needed(x + 1) anyway. I was trying to find out what went wrong in BR 1929156 but I can't work out the formula. :( git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5421 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r--crawl-ref/source/newgame.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc
index b65f2f774c..42a3623a76 100644
--- a/crawl-ref/source/newgame.cc
+++ b/crawl-ref/source/newgame.cc
@@ -939,8 +939,8 @@ static void _reassess_starting_skills()
if (!you.skills[i])
continue;
- // Grant the amount of skill points required for a human
- const int points = skill_exp_needed( you.skills[i] + 1 );
+ // Grant the amount of skill points required for a human.
+ const int points = skill_exp_needed( you.skills[i] );
you.skill_points[i] = (points * species_skills(i, SP_HUMAN))/100 + 1;
// Find out what level that earns this character.
@@ -949,7 +949,7 @@ static void _reassess_starting_skills()
for (int lvl = 1; lvl <= 8; lvl++)
{
- if (you.skill_points[i] > (skill_exp_needed(lvl+1) * sp_diff)/100)
+ if (you.skill_points[i] > (skill_exp_needed(lvl) * sp_diff)/100)
you.skills[i] = lvl;
else
break;
@@ -958,7 +958,7 @@ static void _reassess_starting_skills()
// Spellcasters should always have Spellcasting skill.
if ( i == SK_SPELLCASTING && you.skills[i] == 0 )
{
- you.skill_points[i] = (skill_exp_needed(2) * sp_diff) / 100;
+ you.skill_points[i] = (skill_exp_needed(1) * sp_diff) / 100;
you.skills[i] = 1;
}
}