diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-07 12:46:51 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-07 12:46:51 +0100 |
commit | cf714fb898d9a640ac9d7fc7f90d9a81294b572b (patch) | |
tree | 3b16bc5c54d351629e336eb0919decfcbf344de0 /crawl-ref/source | |
parent | d6697da62b9cd881b23f3942b26bdf294b9f3515 (diff) | |
download | crawl-ref-cf714fb898d9a640ac9d7fc7f90d9a81294b572b.tar.gz crawl-ref-cf714fb898d9a640ac9d7fc7f90d9a81294b572b.zip |
Don't colour bad food (poisoned, mutagenic, ...) as "preferred".
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/food.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index d17a4a5371..b40b73b46d 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -2433,7 +2433,8 @@ bool is_preferred_food(const item_def &food) if (food.base_type != OBJ_FOOD) return (false); - if (is_poisonous(food)) + // Poisoned, mutagenic, etc. food should never be marked as "preferred". + if (_is_bad_food(food)) return (false); // Honeycombs are tasty for everyone. |