From c6ed3e66570d031de512373ffc336234ce004b95 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 4 Jan 2007 17:40:20 +0000 Subject: item_ident(x, ISFLAG_KNOW_TYPE) is now deprecated in favour of item_type_known(x). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@786 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemprop.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/itemprop.cc') diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index aa875d9757..34ce306f2a 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -1445,7 +1445,7 @@ int weapon_ev_bonus( const item_def &wpn, int skill, size_type body, int dex, ret = 2 + (dex / 5); // weapons of reaching are naturally a bit longer/flexier - if (!hide_hidden || item_ident( wpn, ISFLAG_KNOW_TYPE )) + if (!hide_hidden || item_type_known( wpn )) { if (get_weapon_brand( wpn ) == SPWPN_REACHING) ret += 1; @@ -1543,7 +1543,7 @@ bool check_weapon_shape( const item_def &item, bool quiet, bool check_id ) { const int brand = get_weapon_brand( item ); - if ((!check_id || item_ident( item, ISFLAG_KNOW_TYPE )) + if ((!check_id || item_type_known( item )) && ((item.base_type == OBJ_WEAPONS && item.sub_type == WPN_BLESSED_BLADE) || brand == SPWPN_HOLY_WRATH -- cgit v1.2.3-54-g00ecf