summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ghost.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-12-30 00:34:30 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-12-30 01:36:15 +0100
commit1d962ef99c5e0dfdcd8731349618404feef9eb1b (patch)
treeb1f618c274ad50a4a0d7b22461ada139c64a370b /crawl-ref/source/ghost.cc
parent3564cdc4e8790eb604a0c2c4987af18c7eb626e6 (diff)
downloadcrawl-ref-1d962ef99c5e0dfdcd8731349618404feef9eb1b.tar.gz
crawl-ref-1d962ef99c5e0dfdcd8731349618404feef9eb1b.zip
Drop MUT_SLOW and MUT_FAST as random mutations.
Too bad/good to give randomly. Also, a blocker for time-based scoring.
Diffstat (limited to 'crawl-ref/source/ghost.cc')
-rw-r--r--crawl-ref/source/ghost.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc
index 222ea2ee72..c9fef4463d 100644
--- a/crawl-ref/source/ghost.cc
+++ b/crawl-ref/source/ghost.cc
@@ -355,10 +355,10 @@ static int _player_ghost_base_movement_speed()
{
int speed = 10;
- if (player_mutation_level(MUT_FAST, false))
- speed += player_mutation_level(MUT_FAST, false) + 1;
- if (player_mutation_level(MUT_SLOW, false))
- speed -= player_mutation_level(MUT_SLOW, false) + 1;
+ if (int fast = player_mutation_level(MUT_FAST, false))
+ speed += fast + 1;
+ if (int slow = player_mutation_level(MUT_SLOW, false))
+ speed -= slow + 1;
if (you.wearing_ego(EQ_BOOTS, SPARM_RUNNING))
speed += 2;