diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-06-03 14:11:01 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-06-03 14:11:01 -0400 |
commit | 9c3079238cf3df88a7676a79011d5922bc161d61 (patch) | |
tree | 70da6a5ee3967b63d3cdd2d670dc3d0e866c6259 /crawl-ref/source/wiz-you.cc | |
parent | 9865e3c832263d3fb70204a628d0f0498866dcad (diff) | |
download | crawl-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/wiz-you.cc')
-rw-r--r-- | crawl-ref/source/wiz-you.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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?"; |