From 9c3079238cf3df88a7676a79011d5922bc161d61 Mon Sep 17 00:00:00 2001 From: reaverb Date: Tue, 3 Jun 2014 14:11:01 -0400 Subject: 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. --- crawl-ref/source/wiz-you.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/wiz-you.cc') diff --git a/crawl-ref/source/wiz-you.cc b/crawl-ref/source/wiz-you.cc index d96aec19b8..e810a8ae15 100644 --- a/crawl-ref/source/wiz-you.cc +++ b/crawl-ref/source/wiz-you.cc @@ -543,7 +543,7 @@ bool wizard_add_mutation() { const char* msg; - if (player_mutation_level(MUT_MUTATION_RESISTANCE) == 3) + if (you.mutation[MUT_MUTATION_RESISTANCE] == 3) msg = "You are immune to mutations; remove immunity?"; else msg = "You are resistant to mutations; remove resistance?"; -- cgit v1.2.3-54-g00ecf