diff options
author | Chris Oelmueller <chris.oelmueller@gmail.com> | 2014-01-24 14:52:31 +0100 |
---|---|---|
committer | Pekka Lampila <pekka.lampila@iki.fi> | 2014-01-25 01:00:40 +0200 |
commit | 8ed35d27c8f0300baa3c8bb8e7f49154e6d2e817 (patch) | |
tree | 1e7d5a83719fdf116779dcc8b13daf3f428eb45e /crawl-ref/source/food.cc | |
parent | 23562a0c5d124e0e90ec04926f1fe565ac149fde (diff) | |
download | crawl-ref-8ed35d27c8f0300baa3c8bb8e7f49154e6d2e817.tar.gz crawl-ref-8ed35d27c8f0300baa3c8bb8e7f49154e6d2e817.zip |
Check for harmful monsters or clouds before easy-eating (wheals)
Now prompt in those cases even if `easy_eat = true`.
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index 1df7be82cc..a4e24e9d8e 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -1485,7 +1485,7 @@ int prompt_eat_chunks(bool only_auto) const bool bad = is_bad_food(*item); - if (easy_eat && !bad) + if (easy_eat && !bad && i_feel_safe()) { // If this chunk is safe to eat, just do so without prompting. autoeat = true; |