From 24be5339e3c697c6faf7038a7cbeddae0cf92314 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 1 Jun 2008 23:32:17 +0000 Subject: 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 --- crawl-ref/source/newgame.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/newgame.cc') 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; } } -- cgit v1.2.3-54-g00ecf