diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-04 17:40:20 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-04 17:40:20 +0000 |
commit | c6ed3e66570d031de512373ffc336234ce004b95 (patch) | |
tree | 26752170fa097760b6c24dc827a6419c5b06d0ec /crawl-ref/source/itemprop.cc | |
parent | 4b78d5ee2bdfcc69c14759de3b970e2372e74d4f (diff) | |
download | crawl-ref-c6ed3e66570d031de512373ffc336234ce004b95.tar.gz crawl-ref-c6ed3e66570d031de512373ffc336234ce004b95.zip |
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
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 |