diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-20 18:07:51 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-20 18:07:51 +0000 |
commit | 3a83e92a99ce7a161f36e0bd2f1412580ef9bca0 (patch) | |
tree | fd7ccbbc3c039f7dac530a0822797913e6dbb7cc /crawl-ref/source/food.cc | |
parent | 0bcbd855b8b1b0a9291aa6b78f2785ffc9987dce (diff) | |
download | crawl-ref-3a83e92a99ce7a161f36e0bd2f1412580ef9bca0.tar.gz crawl-ref-3a83e92a99ce7a161f36e0bd2f1412580ef9bca0.zip |
Apply caotto's plant god patch, for now named "Feawn".
Also fix potions of porridge's menu colour being yellow for Mummies.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10355 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index e056390a20..c3f5e2bd27 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -2439,6 +2439,10 @@ static int _player_likes_food_type(int type) // be eaten (respecting species and mutations set). bool is_inedible(const item_def &item) { + // Mummies don't eat. + if (you.is_undead == US_UNDEAD) + return (true); + if (food_is_rotten(item) && !player_mutation_level(MUT_SAPROVOROUS)) { @@ -2466,6 +2470,10 @@ bool is_inedible(const item_def &item) // still be edible or even delicious. bool is_preferred_food(const item_def &food) { + // Mummies don't eat. + if (you.is_undead == US_UNDEAD) + return (false); + // Vampires don't really have a preferred food type, but they really // like blood potions. if (you.species == SP_VAMPIRE) |