From c7d57b148659539690dc87c4cd9f88b5124165af Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 22 Nov 2009 15:25:16 +0100 Subject: Convert skill pool magic numbers to named constants. --- crawl-ref/source/player.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/player.cc') 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; -- cgit v1.2.3-54-g00ecf