diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-06-03 01:28:39 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-06-03 01:55:17 -0400 |
commit | 51bfb8de72b7fe848c31fa6ce10e2c94b959eb64 (patch) | |
tree | 0489dd7dd6fee1707b7188e776f79ba8f81b6a6e /crawl-ref/source/food.cc | |
parent | 4e31f848abaaeb808b4209e9437f320d755b01c0 (diff) | |
download | crawl-ref-51bfb8de72b7fe848c31fa6ce10e2c94b959eb64.tar.gz crawl-ref-51bfb8de72b7fe848c31fa6ce10e2c94b959eb64.zip |
Replace some you.mutaiton[] calls with player_mutation_level()
It's still inconsistant, but at least some more non setting uses are now
using player_mutation_level().
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index b1dc318f2d..f497fe6837 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -307,7 +307,7 @@ static int _corpse_badness(corpse_effect_type ce, const item_def &item, // themself. int contam = _contamination_ratio(ce); - if (you.mutation[MUT_SAPROVOROUS] == 3) + if (player_mutation_level(MUT_SAPROVOROUS) == 3) contam = -contam; // Arbitrarily lower the value of poisonous chunks: swapping resistances @@ -2447,7 +2447,7 @@ bool drop_spoiled_chunks() } bool rotten = food_is_rotten(item); - if (rotten && !you.mutation[MUT_SAPROVOROUS] && !wants_any) + if (rotten && !player_mutation_level(MUT_SAPROVOROUS) && !wants_any) return drop_item(slot, item.quantity); corpse_effect_type ce = _determine_chunk_effect(mons_corpse_effect( |