summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-06-03 14:11:01 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-06-03 14:11:01 -0400
commit9c3079238cf3df88a7676a79011d5922bc161d61 (patch)
tree70da6a5ee3967b63d3cdd2d670dc3d0e866c6259 /crawl-ref/source/player.cc
parent9865e3c832263d3fb70204a628d0f0498866dcad (diff)
downloadcrawl-ref-9c3079238cf3df88a7676a79011d5922bc161d61.tar.gz
crawl-ref-9c3079238cf3df88a7676a79011d5922bc161d61.zip
Revert "Replace some you.mutaiton[] calls with player_mutation_level()"
This reverts commit 51bfb8de72b7fe848c31fa6ce10e2c94b959eb64. It turns out player_mutation_level() is not just a wrapper for you.mutation, so this could cause some odd bugs like being transformed influencing acquirement or not properly updating saves, it's probably best to just reapply places where we know the usage is correct.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index fc5d14e973..e052c6df1a 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -152,7 +152,7 @@ bool check_moveto_cloud(const coord_def& p, const string &move_verb,
threshold = threshold * 3 / 2;
threshold = threshold * you.time_taken / BASELINE_DELAY;
// Do prompt if we'd lose icemail, though.
- if (you.hp > threshold && !player_mutation_level(MUT_ICEMAIL))
+ if (you.hp > threshold && !you.mutation[MUT_ICEMAIL])
return true;
}
@@ -6325,7 +6325,7 @@ int player::skill(skill_type sk, int scale, bool real, bool drained) const
int player_icemail_armour_class()
{
- if (!player_mutation_level(MUT_ICEMAIL))
+ if (!you.mutation[MUT_ICEMAIL])
return 0;
return you.duration[DUR_ICEMAIL_DEPLETED] ? 0 : ICEMAIL_MAX;