diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-26 22:17:15 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-26 22:17:15 +0000 |
commit | a893b18e741d4c8b85731ff03b15d1ff4fdb9d76 (patch) | |
tree | 21fe53b5838df45ad800aac0bc00a0079c5128c9 /crawl-ref/source/player.cc | |
parent | 2d782466ff57f0296e3e0f7601bd47c38a55ef22 (diff) | |
download | crawl-ref-a893b18e741d4c8b85731ff03b15d1ff4fdb9d76.tar.gz crawl-ref-a893b18e741d4c8b85731ff03b15d1ff4fdb9d76.zip |
Mutations cleanup. Fixes [2641583]. Syncing between the various lists
is no longer necessary. However, holes in the mutation numbering will
cause a crash (random2(NUM_MUTATIONS) is used in a few places.)
Breaks saves badly, sorry.
I tested this somewhat but some bugs might have slipped in.
Fixes a few other bugs (e.g. draconians not having any messages
if their wings disappear) and highlights some unused code (e.g.
no way to get the stinger mutation.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9234 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 409869af51..04bc706d77 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -4761,9 +4761,9 @@ void modify_stat(stat_type which_stat, char amount, bool suppress_msg, if (ptr_stat == &you.strength) burden_change(); - - return; -} // end modify_stat() + if (ptr_stat == &you.dex) + you.redraw_evasion = true; +} void modify_stat(stat_type which_stat, char amount, bool suppress_msg, const std::string& cause, bool see_source) |