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>2009-04-11 10:49:36 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-11 10:49:36 +0000
commit294794073634d4aa598858ba8f577b95f606356d (patch)
tree7e27e63b134741eba35c7b125f7ffe1f4ff23ff4 /crawl-ref/source/item_use.cc
parent6f24f856327baae51e8f95ccbbd485bca3d81104 (diff)
downloadcrawl-ref-294794073634d4aa598858ba8f577b95f606356d.tar.gz
crawl-ref-294794073634d4aa598858ba8f577b95f606356d.zip
* Allow viewing known items from "Use on what item?" scroll prompt.
* Default use_fake_cursor to true on Unix, else false. * Tweak some descriptions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9594 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index ac34457c8c..619598edc3 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -4282,14 +4282,14 @@ bool _drink_fountain()
static bool _vorpalise_weapon()
{
if (!you.weapon())
- return false;
+ return (false);
// Check if you're wielding a brandable weapon.
item_def& wpn = *you.weapon();
if (wpn.base_type != OBJ_WEAPONS || wpn.sub_type == WPN_BLOWGUN
|| is_artefact(wpn))
{
- return false;
+ return (false);
}
you.wield_change = true;
@@ -4301,12 +4301,12 @@ static bool _vorpalise_weapon()
mprf("%s emits a brilliant flash of light!",
wpn.name(DESC_CAP_YOUR).c_str());
set_item_ego_type(wpn, OBJ_WEAPONS, SPWPN_VORPAL);
- return true;
+ return (true);
}
// If there's a permanent brand, fail.
if (you.duration[DUR_WEAPON_BRAND] == 0)
- return false;
+ return (false);
// There's a temporary brand, attempt to make it permanent.
const std::string itname = wpn.name(DESC_CAP_YOUR);
@@ -4655,8 +4655,9 @@ static bool _scroll_modify_item(item_def scroll)
// Get the slot of the item the scroll is to be used on.
// Ban the scroll's own slot from the prompt to avoid the stupid situation
// where you use identify on itself.
- item_slot = prompt_invent_item("Use on which item?", MT_INVLIST,
- OSEL_ANY, true, true, false, 0, item_slot);
+ item_slot = prompt_invent_item("Use on which item? (\\ to view known items)",
+ MT_INVLIST, OSEL_ANY, true, true, false, 0,
+ item_slot, NULL, OPER_ANY, true);
if (prompt_failed(item_slot))
return (false);