diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-30 15:44:43 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-30 15:44:43 +0000 |
commit | 29c92e989d47c6e35366e01f9e1e0bd09755d056 (patch) | |
tree | 1d1bf4711ff943f95a7c3407bb18b8fd7110e4bd /crawl-ref/source/food.cc | |
parent | 97fcdb95c6bd42341a089e69745d67a943d3e8db (diff) | |
download | crawl-ref-29c92e989d47c6e35366e01f9e1e0bd09755d056.tar.gz crawl-ref-29c92e989d47c6e35366e01f9e1e0bd09755d056.zip |
When reading a "modification scroll" (prompt: Use on which item?)
don't list the scroll you just read as one to use it on. This fixes the
ugly issue where the player, forgetting the slot of the scroll just
read, uses identify on itself, thereby wasting the scroll.
For enchant armour and recharging it's a moot point as they don't work
on scrolls anyway, but this way you can't figure out the subtype.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6251 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index 7a20b95fbe..776ae2dbb2 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -708,7 +708,7 @@ bool prompt_eat_from_inventory(int slot) prompt_invent_item( "Eat which item?", MT_INVLIST, OBJ_FOOD, - true, true, true, 0, NULL, + true, true, true, 0, -1, NULL, OPER_EAT ); } else @@ -717,7 +717,7 @@ bool prompt_eat_from_inventory(int slot) prompt_invent_item( "Drain what?", MT_INVLIST, OSEL_VAMP_EAT, - true, true, true, 0, NULL, + true, true, true, 0, -1, NULL, OPER_EAT ); } |