diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-05-02 09:59:45 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-05-02 10:00:27 -0400 |
commit | 3e5c9f9a374e1857569ec5efac4b9ebc1e7ccbaf (patch) | |
tree | bbe087030c13e328d6f8eba9e15990d5b00a5d85 /crawl-ref/source/invent.cc | |
parent | 917d60b990a9afa5508c41db2afee85031d56919 (diff) | |
download | crawl-ref-3e5c9f9a374e1857569ec5efac4b9ebc1e7ccbaf.tar.gz crawl-ref-3e5c9f9a374e1857569ec5efac4b9ebc1e7ccbaf.zip |
Remove two unused object_selectors.
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r-- | crawl-ref/source/invent.cc | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index 9fd0fc371d..62d5793e0f 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -475,8 +475,6 @@ static string _no_selectables_message(int item_selector) { case OSEL_ANY: return "You aren't carrying anything."; - case OSEL_SCROLL_TARGET: - return "You aren't carrying anything you could use a scroll on."; case OSEL_WIELD: case OBJ_WEAPONS: return "You aren't carrying any weapons."; @@ -514,8 +512,6 @@ static string _no_selectables_message(int item_selector) return "You aren't carrying any pieces of jewellery."; case OSEL_THROWABLE: return "You aren't carrying any items that might be thrown or fired."; - case OSEL_BUTCHERY: - return "You aren't carrying any sharp implements."; case OSEL_EVOKABLE: if (_has_hand_evokable()) return "You aren't carrying any items that can be evoked without being wielded."; @@ -1159,19 +1155,6 @@ static bool _item_class_selected(const item_def &i, int selector) switch (selector) { - // Combined filter for valid unided scroll targets - // TODO: If the player already ided one of the scrolls then we - // could filter the list further. That results in the final scroll - // being effectively auto-ided as soon as you hit the menu. - case OSEL_SCROLL_TARGET: - return !item_is_melded(i) - // Any unidentified - && (!fully_identified(i) || (is_deck(i) && !top_card_is_known(i)) - // Rechargeable - || item_is_rechargeable(i, true) - // Armour - || is_enchantable_armour(i, true, true)); - case OBJ_ARMOUR: return itype == OBJ_ARMOUR && you_tran_can_wear(i); @@ -1206,9 +1189,6 @@ static bool _item_class_selected(const item_def &i, int selector) case OSEL_WIELD: return item_is_wieldable(i); - case OSEL_BUTCHERY: - return itype == OBJ_WEAPONS && can_cut_meat(i); - case OBJ_SCROLLS: return itype == OBJ_SCROLLS || (itype == OBJ_BOOKS && i.sub_type != BOOK_MANUAL); @@ -1902,8 +1882,7 @@ int prompt_invent_item(const char *prompt, } if (!any_items_to_select(type_expect, false, excluded_slot) - && type_expect != OSEL_WIELD - && type_expect != OSEL_BUTCHERY && mtype == MT_INVLIST) + && type_expect != OSEL_WIELD) { mprf(MSGCH_PROMPT, "%s", _no_selectables_message(type_expect).c_str()); |