diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-08 04:56:38 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-08 04:56:38 +0000 |
commit | d5f262eb187ed2a96b0216103210c8ba8057d59c (patch) | |
tree | 09a1c4a988f7f515d2c35a1092ba427784b20cc6 /crawl-ref/source/itemprop.cc | |
parent | eff7b910f0081718d468b2158cbc18f4ede83ddb (diff) | |
download | crawl-ref-d5f262eb187ed2a96b0216103210c8ba8057d59c.tar.gz crawl-ref-d5f262eb187ed2a96b0216103210c8ba8057d59c.zip |
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
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 18 |
1 files changed, 12 insertions, 6 deletions
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<randart_prop_type>(rap) )) + for (int rap = ARTP_INVISIBLE; rap <= ARTP_MAPPING; rap++) + if (artefact_wpn_property( item, + static_cast<artefact_prop_type>(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<randart_prop_type>(rap) )) + if (artefact_wpn_property( item, + static_cast<artefact_prop_type>(rap) )) + { return (true); + } } return (false); |