summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-08 16:20:49 +0300
committerVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-08 16:20:49 +0300
commitce42ec3ebfa796ba601e46d27c7c4f5e01489970 (patch)
treef70efd5578acc84ef1f71b3eb975d0dbaa30f54a /crawl-ref/source/beam.cc
parent5562dfc2a3dd500be1a98a02703eb37496b5fb8e (diff)
downloadcrawl-ref-ce42ec3ebfa796ba601e46d27c7c4f5e01489970.tar.gz
crawl-ref-ce42ec3ebfa796ba601e46d27c7c4f5e01489970.zip
Replace uses of player_AC with player::armour_class.
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index e8b4cdceb8..3218c0ba30 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -4041,7 +4041,7 @@ void bolt::affect_player()
std::vector<std::string> messages;
apply_dmg_funcs(&you, hurted, messages);
- int armour_damage_reduction = random2( 1 + player_AC() );
+ int armour_damage_reduction = random2( 1 + you.armour_class() );
if (flavour == BEAM_ELECTRICITY)
armour_damage_reduction /= 2;
hurted -= armour_damage_reduction;
@@ -4049,8 +4049,8 @@ void bolt::affect_player()
// shrapnel has triple AC reduction
if (flavour == BEAM_FRAG && !player_light_armour())
{
- hurted -= random2( 1 + player_AC() );
- hurted -= random2( 1 + player_AC() );
+ hurted -= random2( 1 + you.armour_class() );
+ hurted -= random2( 1 + you.armour_class() );
}
#if DEBUG_DIAGNOSTICS
@@ -4111,7 +4111,7 @@ void bolt::affect_player()
}
else if (item->special == SPMSL_CURARE)
{
- if (x_chance_in_y(90 - 3 * player_AC(), 100))
+ if (x_chance_in_y(90 - 3 * you.armour_class(), 100))
{
curare_hits_player(actor_to_death_source(agent()),
1 + random2(3));