summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-13 19:51:13 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-13 19:51:13 +0000
commit95b32e8537f724d38594b06473a966229c708999 (patch)
tree3cf71a307afa618c6c3f011144a66d3cfeeed8e9 /crawl-ref/source/spells1.cc
parent3600271e4eacec0160f88dba0c76a72467e84a07 (diff)
downloadcrawl-ref-95b32e8537f724d38594b06473a966229c708999.tar.gz
crawl-ref-95b32e8537f724d38594b06473a966229c708999.zip
[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
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc15
1 files changed, 11 insertions, 4 deletions
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)