diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-19 05:05:08 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-19 05:05:08 +0000 |
commit | 9c825029344d1ab8e5e85987a375cbae9109e2ce (patch) | |
tree | e91919f2187d78c1e703b837b642a6cf2eeb6216 /crawl-ref/source/acr.cc | |
parent | 587b2392103a4d9bcaa9cda91f945e874216d232 (diff) | |
download | crawl-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/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 6015225761..067db5d042 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -871,8 +871,7 @@ static void _handle_wizard_command( void ) { if (is_valid_item( you.inv[i] )) { - set_ident_type( you.inv[i].base_type, you.inv[i].sub_type, - ID_KNOWN_TYPE ); + set_ident_type( you.inv[i], ID_KNOWN_TYPE ); set_ident_flags( you.inv[i], ISFLAG_IDENT_MASK ); } @@ -889,8 +888,7 @@ static void _handle_wizard_command( void ) { if (is_valid_item( you.inv[i] )) { - set_ident_type( you.inv[i].base_type, you.inv[i].sub_type, - ID_UNKNOWN_TYPE ); + set_ident_type( you.inv[i], ID_UNKNOWN_TYPE ); unset_ident_flags( you.inv[i], ISFLAG_IDENT_MASK ); } @@ -917,8 +915,7 @@ static void _handle_wizard_command( void ) if (!is_valid_item(item)) continue; - set_ident_type( item.base_type, item.sub_type, - ID_UNKNOWN_TYPE ); + set_ident_type( item, ID_UNKNOWN_TYPE ); unset_ident_flags( item, ISFLAG_IDENT_MASK ); } |