summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-22 15:25:16 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-22 16:23:34 +0100
commitc7d57b148659539690dc87c4cd9f88b5124165af (patch)
treeccc608c446700d2efec5a23ce0133faeb041d986 /crawl-ref/source/player.cc
parent32e689581d4179738318a058c070c96968e2796b (diff)
downloadcrawl-ref-c7d57b148659539690dc87c4cd9f88b5124165af.tar.gz
crawl-ref-c7d57b148659539690dc87c4cd9f88b5124165af.zip
Convert skill pool magic numbers to named constants.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 18d5fdcae3..cc00765afe 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -2481,8 +2481,8 @@ void gain_exp( unsigned int exp_gained, unsigned int* actual_gain,
mprf(MSGCH_DIAGNOSTICS, "gain_exp: %d", exp_gained );
#endif
- if (you.experience + exp_gained > 8999999)
- you.experience = 8999999;
+ if (you.experience + exp_gained > MAX_EXP_TOTAL)
+ you.experience = MAX_EXP_TOTAL;
else
you.experience += exp_gained;
@@ -2496,8 +2496,8 @@ void gain_exp( unsigned int exp_gained, unsigned int* actual_gain,
exp_gained /= 2;
}
- if (you.exp_available + exp_gained > 20000)
- you.exp_available = 20000;
+ if (you.exp_available + exp_gained > MAX_EXP_POOL)
+ you.exp_available = MAX_EXP_POOL;
else
you.exp_available += exp_gained;