summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-15 20:15:24 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-15 20:15:24 +0000
commitaa62dae1b9dd17223afd1b47784b43c4b7df664e (patch)
treef88d93b2997687516ba004ab3840e133e33211fa /crawl-ref/source/player.cc
parentd1f97f2a9509e17c323f538e6695be3c889b7d9e (diff)
downloadcrawl-ref-aa62dae1b9dd17223afd1b47784b43c4b7df664e.tar.gz
crawl-ref-aa62dae1b9dd17223afd1b47784b43c4b7df664e.zip
Apply castamir's antiscum patch. Except for Wanderers, starting stats,
skills and equipment enchantment are now fixed, as are hp gains when leveling. (Stat gains during level up are still random.) Thank you! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10683 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 049302d608..66610c33dd 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3122,11 +3122,11 @@ void level_change(bool skip_attribute_increase)
int brek = 0;
if (new_exp > 21)
- brek = (coinflip() ? 3 : 2);
+ brek = 2 + new_exp % 2;
else if (new_exp > 12)
- brek = 3 + random2(3); // up from 2 + rand(3) -- bwr
+ brek = 4; // up from 2 + rand(3) -- bwr
else
- brek = 4 + random2(4); // up from 3 + rand(4) -- bwr
+ brek = 5 + new_exp % 2; // up from 3 + rand(4) -- bwr
you.experience_level = new_exp;
inc_hp(brek, true);