From de162132f702a4723cc9390d8c83baa012844161 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Thu, 5 Nov 2009 19:42:01 +0300 Subject: Replace uses of player_is_swimming with you.swimming. Signed-off-by: Robert Vollmert --- crawl-ref/source/fight.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/fight.cc') diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 77b954b513..3d88c58563 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -239,7 +239,7 @@ int calc_heavy_armour_penalty( bool random_factor ) // Wearing heavy armour in water is particularly cumbersome. if (you.species == SP_MERFOLK && grd(you.pos()) == DNGN_DEEP_WATER - && player_is_swimming()) + && you.swimming()) { ev_pen *= 2; } @@ -985,7 +985,7 @@ bool melee_attack::player_aux_unarmed() if ((you.attribute[ATTR_TRANSFORMATION] == TRAN_DRAGON || player_genus(GENPC_DRACONIAN) - || (you.species == SP_MERFOLK && player_is_swimming()) + || (you.species == SP_MERFOLK && you.swimming()) || player_mutation_level(MUT_STINGER)) && one_chance_in(3)) { @@ -1098,7 +1098,7 @@ bool melee_attack::player_aux_unarmed() { // not draconian, and not wet merfolk if (!player_genus(GENPC_DRACONIAN) - && !(you.species == SP_MERFOLK && player_is_swimming()) + && !(you.species == SP_MERFOLK && you.swimming()) && !player_mutation_level(MUT_STINGER) || (!one_chance_in(4))) -- cgit v1.2.3-54-g00ecf