diff options
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 8a06b6357e..96f806bbfc 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -456,6 +456,21 @@ static bool _expose_invent_to_element(beam_type flavour, int strength) continue; } + // These stack with conservation; they're supposed to be good. + if (target_class == OBJ_SCROLLS + && you.mutation[MUT_CONSERVE_SCROLLS] + && !one_chance_in(10)) + { + continue; + } + + if (target_class == OBJ_POTIONS + && you.mutation[MUT_CONSERVE_POTIONS] + && !one_chance_in(10)) + { + continue; + } + // Loop through all items in the stack. for (int j = 0; j < you.inv[i].quantity; ++j) { |