From a893b18e741d4c8b85731ff03b15d1ff4fdb9d76 Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 26 Feb 2009 22:17:15 +0000 Subject: 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 --- crawl-ref/source/player.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/player.cc') 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) -- cgit v1.2.3-54-g00ecf