MCPcopy Create free account
hub / github.com/crawl/crawl / no_selectables_message

Function no_selectables_message

crawl-ref/source/invent.cc:563–632  ·  view source on GitHub ↗

* What message should the player be given when they look for items matching * the given selector and don't find any? * * @param selector The given type of object_selector. * @return A message such as "You aren't carrying any weapons." * "Your armour is currently melded into you.", etc. */

Source from the content-addressed store, hash-verified

561 * "Your armour is currently melded into you.", etc.
562 */
563string no_selectables_message(int item_selector)
564{
565 switch (item_selector)
566 {
567 case OSEL_ANY:
568 return "You aren't carrying anything.";
569 case OSEL_WIELD:
570 case OBJ_WEAPONS:
571 return "You aren't carrying any weapons.";
572 case OSEL_BLESSABLE_WEAPON:
573 return "You aren't carrying any weapons that can be blessed.";
574 case OBJ_ARMOUR:
575 {
576 if (_has_temp_unwearable_armour())
577 return "You aren't carrying any currently wearable armour.";
578 else
579 return "You aren't carrying any wearable armour.";
580 }
581 case OSEL_UNIDENT:
582 return "You don't currently have any unidentified items.";
583 case OSEL_ENCHANTABLE_ARMOUR:
584 return "You aren't carrying any armour which can be enchanted further.";
585 case OBJ_CORPSES:
586 return "You don't have any corpses.";
587 case OBJ_POTIONS:
588 return "You aren't carrying any potions.";
589 case OBJ_SCROLLS:
590 return "You aren't carrying any scrolls.";
591 case OBJ_BOOKS:
592 return "You don't have any books.";
593 case OBJ_WANDS:
594 return "You aren't carrying any wands.";
595 case OBJ_JEWELLERY:
596 return "You aren't carrying any pieces of jewellery.";
597 case OSEL_AMULET:
598 return "You aren't carrying any amulets.";
599 case OSEL_JEWELLERY_OR_TALISMAN:
600 return "You aren't carrying any jewellery or talismans.";
601 case OSEL_LAUNCHING:
602 return "You aren't carrying any items that might be thrown or fired.";
603 case OSEL_EVOKABLE:
604 if (you.get_mutation_level(MUT_NO_ARTIFICE)) // iffy
605 return "You cannot evoke magical items.";
606 return "You aren't carrying any items that you can evoke.";
607 case OSEL_CURSED_WORN:
608 return "None of your equipped items are cursed.";
609 case OSEL_WORN_ARMOUR:
610 return "You aren't wearing any pieces of armour.";
611 case OSEL_WORN_JEWELLERY_OR_TALISMAN:
612 return "You aren't wearing any rings, amulets, or talismans.";
613 case OSEL_WORN_EQUIPABLE:
614 return "You aren't wearing anything.";
615 case OSEL_EQUIPABLE:
616 return "You aren't carrying anything that can be equipped.";
617 case OSEL_BRANDABLE_WEAPON:
618 return "You aren't carrying any weapons that can be branded.";
619 case OSEL_ENCHANTABLE_WEAPON:
620 return "You aren't carrying any weapons that can be enchanted.";

Callers 4

load_inv_itemsMethod · 0.85
prompt_invent_itemFunction · 0.85
_no_items_reasonFunction · 0.85
empty_checkMethod · 0.85

Calls 2

get_mutation_levelMethod · 0.80

Tested by

no test coverage detected