diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-06-24 10:25:04 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-06-24 13:20:45 +0200 |
commit | 5e95b695c9f610babf4fb86c8ba6c2307d5e6e1c (patch) | |
tree | 8175babc21d229a027645718c5d389b16265a808 /crawl-ref/source/skills2.cc | |
parent | 7ad623757878dd9db8797fb6b8785444f2e643d8 (diff) | |
download | crawl-ref-5e95b695c9f610babf4fb86c8ba6c2307d5e6e1c.tar.gz crawl-ref-5e95b695c9f610babf4fb86c8ba6c2307d5e6e1c.zip |
Don't allow wizmode to set skills above 27.
There's some special-casing strewn around the code, this commit doesn't
purge most such places yet.
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r-- | crawl-ref/source/skills2.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc index 8ed3dcb577..361fcde25b 100644 --- a/crawl-ref/source/skills2.cc +++ b/crawl-ref/source/skills2.cc @@ -546,9 +546,6 @@ unsigned int skill_exp_needed(int lev, skill_type sk, species_type sp) 15750, 17700, 19800, 22050, 24450, // 21-25 27000, 29750 }; - if (lev > 27 && you.wizard) - lev = 27; - ASSERT_RANGE(lev, 0, 27 + 1); return exp[lev] * species_apt_factor(sk, sp); |