summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-damage.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-02-25 19:01:57 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-02-25 19:04:43 -0700
commit592f38b70a32cd0447f03c382504d24cd9c5f34a (patch)
treeae3395c81e06564a251c8c8418ac2986d2699c83 /crawl-ref/source/spl-damage.cc
parenta46dc13d87b046c20fa7607551b80095b85e7cc6 (diff)
downloadcrawl-ref-592f38b70a32cd0447f03c382504d24cd9c5f34a.tar.gz
crawl-ref-592f38b70a32cd0447f03c382504d24cd9c5f34a.zip
Adjust Thunderbolt flash delay properly in arena mode.
As with all other beams. Perhaps a function to do this should exist somewhere? (If I can figure out *where*, that's easy enough.)
Diffstat (limited to 'crawl-ref/source/spl-damage.cc')
-rw-r--r--crawl-ref/source/spl-damage.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-damage.cc b/crawl-ref/source/spl-damage.cc
index 1c9e00d807..6342ab2ad6 100644
--- a/crawl-ref/source/spl-damage.cc
+++ b/crawl-ref/source/spl-damage.cc
@@ -34,11 +34,13 @@
#include "misc.h"
#include "mon-behv.h"
#include "mon-stuff.h"
+#include "options.h"
#include "ouch.h"
#include "player-equip.h"
#include "shout.h"
#include "spl-summoning.h"
#include "spl-util.h"
+#include "state.h"
#include "stuff.h"
#include "target.h"
#include "terrain.h"
@@ -2441,7 +2443,13 @@ spret_type cast_thunderbolt(actor *caster, int pow, coord_def aim, bool fail)
beam.draw(p->first);
}
- delay(200);
+ int flash_delay = 200;
+ if (crawl_state.game_is_arena())
+ {
+ flash_delay *= Options.arena_delay;
+ flash_delay /= 600;
+ }
+ delay(flash_delay);
beam.glyph = 0; // FIXME: a hack to avoid "appears out of thin air"