From 420044b3c16c778b37fde736c26a7e4863b69a48 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 15 Jul 2008 20:15:55 +0000 Subject: Fix bad potions not counting as useless and thus being auto-picked up. Fix bad message when using 'W' with no armour and crash when attempting to enchant armour with no enchantable armour in inventory. Tweak '{' to only prompt if at least one of autoinscription or clearing an existing inscription apply. (FR 2017541) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6567 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/invent.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/invent.cc') diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index f4279e30cd..16643193fb 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -335,6 +335,8 @@ static std::string _no_selectables_message(int item_selector) case OSEL_WIELD: case OBJ_WEAPONS: return("You aren't carrying any weapons."); + case OBJ_ARMOUR: + return("You aren't carrying any armour."); case OSEL_UNIDENT: return("You don't have any unidentified items."); case OSEL_MEMORISE: @@ -342,7 +344,6 @@ static std::string _no_selectables_message(int item_selector) case OSEL_RECHARGE: return("You aren't carrying any rechargable items."); case OSEL_ENCH_ARM: - case OBJ_ARMOUR: return("You aren't carrying any armour which can be enchanted " "further."); case OBJ_CORPSES: -- cgit v1.2.3-54-g00ecf