diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-02-02 14:51:52 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-02-02 17:21:14 +0100 |
commit | 5d81417deefa0dfb904f29520241224ee9e29368 (patch) | |
tree | b45496750fe551bcedb6c41c5fc9ca32bf649a8a /crawl-ref/source/skills.h | |
parent | dde76948a4650b47ed43420ff4ebd4abefd44df2 (diff) | |
download | crawl-ref-5d81417deefa0dfb904f29520241224ee9e29368.tar.gz crawl-ref-5d81417deefa0dfb904f29520241224ee9e29368.zip |
Calculate skill cost based on experience instead of skill points.
So it's not influenced by cross/anti training and manuals anymore. Early game
cost will raise at the same rate for all backgrounds too. The ones with low
skill levels used to have a low cost for a longer time, allowing them to
catch up more quickly to the others.
Globally, early game cost will raise a bit faster, so this might need to
be balanced a bit (although I'm not sure how).
On the other hand, the new system is cleaner and simpler.
Also, in wizmode, changing skill levels don't have any effect on skill cost
anymore, however, changing XL does.
Diffstat (limited to 'crawl-ref/source/skills.h')
-rw-r--r-- | crawl-ref/source/skills.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/skills.h b/crawl-ref/source/skills.h index 7bd4bd761a..802cbe063a 100644 --- a/crawl-ref/source/skills.h +++ b/crawl-ref/source/skills.h @@ -12,8 +12,7 @@ typedef std::set<skill_type> skill_set; typedef std::set<skill_type>::iterator skill_set_iter; -int skill_cost_needed(int level); -void calc_total_skill_points(void); +unsigned int skill_cost_needed(int level); int calc_skill_cost(int skill_cost_level); void check_skill_cost_change(); |