summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.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/debug.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/debug.cc')
-rw-r--r--crawl-ref/source/debug.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc
index 88f6540ab4..e2e369fd25 100644
--- a/crawl-ref/source/debug.cc
+++ b/crawl-ref/source/debug.cc
@@ -2116,7 +2116,7 @@ void debug_set_skills(void)
else
{
const int old_amount = you.skills[skill];
- const int points = (skill_exp_needed( amount + 1 )
+ const int points = (skill_exp_needed( amount )
* species_skills( skill, you.species )) / 100;
you.skill_points[skill] = points + 1;
@@ -2195,7 +2195,7 @@ void debug_set_all_skills(void)
continue;
}
- const int points = (skill_exp_needed( amount + 1 )
+ const int points = (skill_exp_needed( amount )
* species_skills( i, you.species )) / 100;
you.skill_points[i] = points + 1;