diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-01 23:32:17 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-01 23:32:17 +0000 |
commit | 24be5339e3c697c6faf7038a7cbeddae0cf92314 (patch) | |
tree | 2c6c70307ecf9b9996737717fd4bfd852b6057e3 /crawl-ref/source/skills.cc | |
parent | a6935bcfb6948bdb6d366cfecda141093b8163f3 (diff) | |
download | crawl-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/skills.cc')
-rw-r--r-- | crawl-ref/source/skills.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc index 8aa0ba2b82..bc696f93d8 100644 --- a/crawl-ref/source/skills.cc +++ b/crawl-ref/source/skills.cc @@ -89,15 +89,11 @@ void calc_total_skill_points( void ) you.total_skill_points = 0; for (i = 0; i < NUM_SKILLS; i++) - { you.total_skill_points += you.skill_points[i]; - } for (i = 1; i <= 27; i++) - { if (you.total_skill_points < skill_cost_needed(i)) break; - } you.skill_cost_level = i - 1; @@ -403,7 +399,7 @@ static int _exercise2( int exsk ) */ if (you.skill_points[exsk] > - (skill_exp_needed(you.skills[exsk] + 2) + (skill_exp_needed(you.skills[exsk] + 1) * species_skills(exsk, you.species) / 100)) { |