summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-22 18:43:00 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-22 20:36:05 +0100
commitc652cbec1739a628f87aedc4874c782429f8d7ce (patch)
tree181fa692ff6cd5e22bc2f49faa44f8a07c7ed027 /crawl-ref/source/decks.cc
parent1b497b95a98e15058beba1a4304f7dfd9832930b (diff)
downloadcrawl-ref-c652cbec1739a628f87aedc4874c782429f8d7ce.tar.gz
crawl-ref-c652cbec1739a628f87aedc4874c782429f8d7ce.zip
Remove hard skill pool cutoff.
There's now a soft cutoff at player::exp_pool_cutoff() that scales with you.total_skill_points. Above that, you.exp_available is stepped down. It currently starts at ~800 skill points for a new character. A human melee fighter (weapon skill 27, fighting 15, traps 8, armour 15, invo 12) gets around 18000 points (skill level 21). The cutoff is not currently limited. Side-effects are a nerf to the experience card -- it could easily be changed to still give the usual 20000 points.
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index 5bb742abcb..7444df5068 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -2079,9 +2079,11 @@ static void _experience_card(int power, deck_rarity_type rarity)
mpr("You feel knowledgeable.");
// Put some free XP into pool; power_level 2 means fill pool
- you.exp_available += power * 50;
- if (power_level >= 2 || you.exp_available > FULL_EXP_POOL)
- you.exp_available = FULL_EXP_POOL;
+ if (power_level >= 2)
+ you.exp_available = you.exp_pool_cutoff();
+ else
+ you.exp_available += power * 50;
+ you.step_down_exp_pool();
level_change();
}