From 95b32e8537f724d38594b06473a966229c708999 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 13 Jul 2007 19:51:13 +0000 Subject: [1731587] Kenku get claw-kick and a small speed boost when flying unladen. Swiftness speed boost is now given only if flying, not levitating. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1857 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells1.cc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/spells1.cc') diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 8d952972d6..d850fe9692 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -974,10 +974,7 @@ void cast_fly(int power) { int dur_change = 25 + random2(power) + random2(power); - if (!player_is_levitating()) - mpr("You fly up into the air."); - else - mpr("You feel more buoyant."); + const bool was_levitating = player_is_levitating(); if (you.duration[DUR_LEVITATION] + dur_change > 100) you.duration[DUR_LEVITATION] = 100; @@ -990,6 +987,16 @@ void cast_fly(int power) you.duration[DUR_CONTROLLED_FLIGHT] += dur_change; burden_change(); + + if (!was_levitating) + { + if (you.light_flight()) + mpr("You swoop lightly up into the air."); + else + mpr("You fly up into the air."); + } + else + mpr("You feel more buoyant."); } void cast_insulation(int power) -- cgit v1.2.3-54-g00ecf