From d5f262eb187ed2a96b0216103210c8ba8057d59c Mon Sep 17 00:00:00 2001 From: zelgadis Date: Mon, 8 Jun 2009 04:56:38 +0000 Subject: Since fixed artefacts are going to be folded into unrandarts, and unrandarts have already become almost identical to randarts, change "randart" to "artefact" everywhere except for things that deal exclusively with randarts. Artefact related files will be renamed later. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9921 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemprop.cc | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/itemprop.cc') diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 387fd72b18..7c54b7fd4c 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -918,7 +918,7 @@ int get_weapon_brand( const item_def &item ) } else if (is_random_artefact( item )) { - return (randart_wpn_property( item, RAP_BRAND )); + return (artefact_wpn_property( item, ARTP_BRAND )); } return (item.special); @@ -2467,9 +2467,12 @@ bool gives_ability(const item_def &item) return (false); // Check for evokable randart properties. - for (int rap = RAP_INVISIBLE; rap <= RAP_MAPPING; rap++) - if (randart_wpn_property( item, static_cast(rap) )) + for (int rap = ARTP_INVISIBLE; rap <= ARTP_MAPPING; rap++) + if (artefact_wpn_property( item, + static_cast(rap) )) + { return (true); + } return (false); } @@ -2531,13 +2534,16 @@ bool gives_resistance(const item_def &item) return (false); // Check for randart resistances. - for (int rap = RAP_FIRE; rap <= RAP_CAN_TELEPORT; rap++) + for (int rap = ARTP_FIRE; rap <= ARTP_CAN_TELEPORT; rap++) { - if (rap == RAP_MAGIC || rap >= RAP_INVISIBLE && rap != RAP_CAN_TELEPORT) + if (rap == ARTP_MAGIC || rap >= ARTP_INVISIBLE && rap != ARTP_CAN_TELEPORT) continue; - if (randart_wpn_property( item, static_cast(rap) )) + if (artefact_wpn_property( item, + static_cast(rap) )) + { return (true); + } } return (false); -- cgit v1.2.3-54-g00ecf