summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-02 18:45:25 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-02 18:45:25 +0000
commit606e14406ef0ae5f12dccad44b6f0f0b3433f013 (patch)
treed6be863eabf8d180145dafcc439f1753222966b0 /crawl-ref/source/item_use.cc
parent84a922b5d5d8ca1d70f1ecc74d489e34b7ef4b80 (diff)
downloadcrawl-ref-606e14406ef0ae5f12dccad44b6f0f0b3433f013.tar.gz
crawl-ref-606e14406ef0ae5f12dccad44b6f0f0b3433f013.zip
Restrictions during bat form. Disallowed a number of actions.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1958 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 980723139a..75e6ec034e 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2919,6 +2919,12 @@ void drink(void)
return;
}
+ if (you.attribute[ATTR_TRANSFORMATION] == TRAN_BAT)
+ {
+ canned_msg(MSG_PRESENT_FORM);
+ return;
+ }
+
item_slot = prompt_invent_item( "Drink which item?",
MT_INVLIST, OBJ_POTIONS,
true, true, true, 0, NULL,