summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-08 04:56:38 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-08 04:56:38 +0000
commitd5f262eb187ed2a96b0216103210c8ba8057d59c (patch)
tree09a1c4a988f7f515d2c35a1092ba427784b20cc6 /crawl-ref/source/fight.cc
parenteff7b910f0081718d468b2158cbc18f4ede83ddb (diff)
downloadcrawl-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/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index d9346d1c60..838dbc1465 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -377,7 +377,7 @@ void melee_attack::init_attack()
if (weapon && weapon->base_type == OBJ_WEAPONS
&& is_random_artefact( *weapon ))
{
- randart_wpn_properties( *weapon, art_props );
+ artefact_wpn_properties( *weapon, art_props );
}
wpn_skill = weapon ? weapon_skill( *weapon ) : SK_UNARMED_COMBAT;
@@ -529,8 +529,8 @@ bool melee_attack::is_water_attack(const actor *attk,
void melee_attack::check_autoberserk()
{
if (weapon
- && art_props[RAP_ANGRY] >= 1
- && !one_chance_in(1 + art_props[RAP_ANGRY]))
+ && art_props[ARTP_ANGRY] >= 1
+ && !one_chance_in(1 + art_props[ARTP_ANGRY]))
{
attacker->go_berserk(false);
}
@@ -2252,7 +2252,7 @@ bool melee_attack::distortion_affects_defender()
// the player goes to Abyss, while the weapon object is
// still in memory.
if (is_random_artefact(*weapon))
- randart_wpn_learn_prop(*weapon, RAP_BRAND);
+ artefact_wpn_learn_prop(*weapon, ARTP_BRAND);
else
set_ident_flags(*weapon, ISFLAG_KNOW_TYPE);
}
@@ -3008,7 +3008,7 @@ bool melee_attack::apply_damage_brand()
if (weapon)
{
if (is_random_artefact(*weapon))
- brand_was_known = randart_known_wpn_property(*weapon, RAP_BRAND);
+ brand_was_known = artefact_known_wpn_property(*weapon, ARTP_BRAND);
else
brand_was_known = item_type_known(*weapon);
}
@@ -3289,7 +3289,7 @@ bool melee_attack::apply_damage_brand()
&& !is_unrandom_artefact(*weapon) && !is_fixed_artefact(*weapon))
{
if (is_random_artefact(*weapon))
- randart_wpn_learn_prop(*weapon, RAP_BRAND);
+ artefact_wpn_learn_prop(*weapon, ARTP_BRAND);
else
set_ident_flags(*weapon, ISFLAG_KNOW_TYPE);
}