summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-26 10:39:39 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-26 10:39:39 +0000
commit61cae4a761c2f72cda44ae269c7007b37a0c14a7 (patch)
treefec8ec71ca7ca6eebd9d48881bc5ee3fe27d04c1 /crawl-ref/source/itemname.cc
parentd4acdf4a6a4b73607d58714a66efd372674adb56 (diff)
downloadcrawl-ref-61cae4a761c2f72cda44ae269c7007b37a0c14a7.tar.gz
crawl-ref-61cae4a761c2f72cda44ae269c7007b37a0c14a7.zip
Misc. minor cleanups. (Yes, a huge amount of them but still...)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc25
1 files changed, 6 insertions, 19 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index e420d368ec..a7e2b459e4 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -1689,7 +1689,7 @@ bool item_type_known( const item_def& item )
// Artefacts have different descriptions from other items,
// so we can't use general item knowledge for them.
if (is_artefact(item))
- return false;
+ return (false);
// Poisoned missiles are always identified.
if (item.base_type == OBJ_MISSILES)
@@ -1701,32 +1701,19 @@ bool item_type_known( const item_def& item )
const item_type_id_type idt = objtype_to_idtype(item.base_type);
if ( idt != NUM_IDTYPE && item.sub_type < 50 )
- return ( type_ids[idt][item.sub_type] == ID_KNOWN_TYPE );
+ return (type_ids[idt][item.sub_type] == ID_KNOWN_TYPE);
else
- return false;
+ return (false);
}
bool item_type_known(const object_class_type base_type, const int sub_type)
{
const item_type_id_type idt = objtype_to_idtype(base_type);
if ( idt != NUM_IDTYPE && sub_type < 50 )
- return ( type_ids[idt][sub_type] == ID_KNOWN_TYPE );
+ return (type_ids[idt][sub_type] == ID_KNOWN_TYPE);
else
- return false;
-}
-
-// [ds] Will the owner of this unused function step up and end its
-// suffering? :P
-#if 0
-static bool _randart_has_known_property(const item_def &item)
-{
- for (int rap = 0; rap < RAP_NUM_PROPERTIES; rap++)
- if (randart_wpn_known_prop( item, static_cast<randart_prop_type>(rap) ))
- return true;
-
- return false;
+ return (false);
}
-#endif
bool item_type_tried( const item_def& item )
{
@@ -2470,7 +2457,7 @@ bool is_useless_item(const item_def &item, bool temp)
return (false);
if (is_artefact(item))
- return false;
+ return (false);
if (is_bad_item(item, temp))
return (true);