summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-19 05:05:08 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-19 05:05:08 +0000
commit9c825029344d1ab8e5e85987a375cbae9109e2ce (patch)
treee91919f2187d78c1e703b837b642a6cf2eeb6216 /crawl-ref/source/itemname.h
parent587b2392103a4d9bcaa9cda91f945e874216d232 (diff)
downloadcrawl-ref-9c825029344d1ab8e5e85987a375cbae9109e2ce.tar.gz
crawl-ref-9c825029344d1ab8e5e85987a375cbae9109e2ce.zip
For jewellery with pluses and wands, only make an ident note when the
first item of the type is identified, not when the charges/pluses of any item of the type is identified. Make sure that artefacts have nothing to do with the identification level of jewellery by making versions of set_ident_type() and get_ident_type() which accept a full item_def as a parameter. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5973 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.h')
-rw-r--r--crawl-ref/source/itemname.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/itemname.h b/crawl-ref/source/itemname.h
index 3b4a674044..d60058faef 100644
--- a/crawl-ref/source/itemname.h
+++ b/crawl-ref/source/itemname.h
@@ -127,8 +127,11 @@ void init_properties();
typedef FixedArray < item_type_id_state_type, NUM_IDTYPE, 50 > id_arr;
id_arr& get_typeid_array();
+item_type_id_state_type get_ident_type(const item_def &item);
item_type_id_state_type get_ident_type(object_class_type basetype,
int subtype);
+void set_ident_type( item_def &item, item_type_id_state_type setting,
+ bool force = false);
void set_ident_type( object_class_type basetype, int subtype,
item_type_id_state_type setting, bool force = false);