From ce42ec3ebfa796ba601e46d27c7c4f5e01489970 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sun, 8 Nov 2009 16:20:49 +0300 Subject: Replace uses of player_AC with player::armour_class. --- crawl-ref/source/beam.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/beam.cc') 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 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)); -- cgit v1.2.3-54-g00ecf