summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-20 18:07:51 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-20 18:07:51 +0000
commit3a83e92a99ce7a161f36e0bd2f1412580ef9bca0 (patch)
treefd7ccbbc3c039f7dac530a0822797913e6dbb7cc /crawl-ref/source/invent.cc
parent0bcbd855b8b1b0a9291aa6b78f2785ffc9987dce (diff)
downloadcrawl-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/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index c7f4e9726f..ac3e7e8dd8 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -997,6 +997,16 @@ static bool _item_class_selected(const item_def &i, int selector)
case OBJ_ARMOUR:
return (itype == OBJ_ARMOUR && you_tran_can_wear(i));
+ case OSEL_FRUIT:
+ return is_fruit(i);
+
+ // This is really dumb. I don't want to talk about it. -cao
+ case OSEL_SOME_FRUIT:
+
+ return is_fruit(i) && i.quantity >= 2;
+
+
+
case OSEL_WORN_ARMOUR:
return (itype == OBJ_ARMOUR && item_is_equipped(i));