summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-31 17:59:01 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-31 17:59:01 +0000
commitd36cb397699f9d277e58d2f1d8b772f790497772 (patch)
tree513a011e7ff44e92f9c9e05844497846aff549d2 /crawl-ref/source/invent.cc
parent8d620e1509fe04db564a5f46e32046d0ed61d714 (diff)
downloadcrawl-ref-d36cb397699f9d277e58d2f1d8b772f790497772.tar.gz
crawl-ref-d36cb397699f9d277e58d2f1d8b772f790497772.zip
Remove commented out code, and document my changes.
Also change merfolk fighter -> merfolk in the database. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5374 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc39
1 files changed, 0 insertions, 39 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 9d8112ba93..9ed94b4425 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -67,43 +67,7 @@ std::string InvTitle::get_text() const
return titlefn? titlefn( m, MenuEntry::get_text() ) :
MenuEntry::get_text();
}
-/*
-static std::string _get_item_prefix(const item_def &item)
-{
- std::vector<std::string> prefixes;
- switch (item.base_type)
- {
- case OBJ_FOOD:
- if (!can_ingest(item.base_type, item.sub_type, true, true, false))
- prefixes.push_back("inedible");
-
- // intentional fall-through
- case OBJ_CORPSES:
- if (is_poisonous(item) && !player_res_poison())
- prefixes.push_back("poisonous");
-
- if (is_mutagenic(item))
- prefixes.push_back("mutagenic");
-
- if (is_snack(item))
- prefixes.push_back("snack");
- break;
- case OBJ_WEAPONS:
- case OBJ_ARMOUR:
- case OBJ_JEWELLERY:
- if (item_is_equipped(item))
- prefixes.push_back("equipped");
- if (is_artefact(item))
- prefixes.push_back("artefact");
- default:
- break;
- }
-
- return comma_separated_line(prefixes.begin(), prefixes.end(),
- ",", ",");
-}
-*/
InvEntry::InvEntry( const item_def &i ) : MenuEntry( "", MEL_ITEM ), item( &i )
{
data = const_cast<item_def *>( item );
@@ -118,9 +82,6 @@ InvEntry::InvEntry( const item_def &i ) : MenuEntry( "", MEL_ITEM ), item( &i )
else
text = i.name(DESC_NOCAP_A, false);
-// prefix = _get_item_prefix(i);
-// mpr(prefix.c_str());
-
if (i.base_type != OBJ_GOLD && in_inventory(i))
add_hotkey(index_to_letter( i.link ));
else