summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acquire.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/acquire.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/acquire.cc')
-rw-r--r--crawl-ref/source/acquire.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/acquire.cc b/crawl-ref/source/acquire.cc
index fbc0a5a1b4..cd4d9ba8ca 100644
--- a/crawl-ref/source/acquire.cc
+++ b/crawl-ref/source/acquire.cc
@@ -157,11 +157,8 @@ static armour_type _pick_wearable_armour(const armour_type arm)
{
// Check for Horns 3 & Antennae 3 - Don't give a cap if those mutation
// levels have been reached.
- if (player_mutation_level(MUT_HORNS) <= 2
- || player_mutation_level(MUT_ANTENNAE) <= 2)
- {
+ if (you.mutation[MUT_HORNS] <= 2 || you.mutation[MUT_ANTENNAE] <= 2)
result = ARM_HAT;
- }
else
result = NUM_ARMOURS;
}