summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godabil.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-10-22 22:19:45 +0200
committerAdam Borowski <kilobyte@angband.pl>2009-10-22 22:52:16 +0200
commit9b4674477db54f4d807bc0c0a2525fd987e1d7f5 (patch)
tree8f25140401c9ae5180395627d46a814f4d526a22 /crawl-ref/source/godabil.cc
parente9c4ad3ff54b7cf9f7f05c5cd58c03cd605663b5 (diff)
downloadcrawl-ref-9b4674477db54f4d807bc0c0a2525fd987e1d7f5.tar.gz
crawl-ref-9b4674477db54f4d807bc0c0a2525fd987e1d7f5.zip
Make Time Bend use Invocations for power.
Diffstat (limited to 'crawl-ref/source/godabil.cc')
-rw-r--r--crawl-ref/source/godabil.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/crawl-ref/source/godabil.cc b/crawl-ref/source/godabil.cc
index a6218eedc1..32b50f7359 100644
--- a/crawl-ref/source/godabil.cc
+++ b/crawl-ref/source/godabil.cc
@@ -23,6 +23,7 @@
#include "shopping.h"
#include "spells1.h"
#include "spells3.h"
+#include "spells4.h"
#include "spl-book.h"
#include "spl-util.h"
#include "stuff.h"
@@ -561,6 +562,31 @@ void lugonu_bends_space()
////////////////////////////////////////////////////////////////////////
+void chronos_time_bend(int pow)
+{
+ mpr("The flow of time bends around you.");
+
+ for (adjacent_iterator ai; ai; ++ai)
+ {
+ monsters* mon = monster_at(*ai);
+ if (mon != NULL)
+ {
+ if (roll_dice(mon->hit_dice, 3) > random2avg(pow, 2))
+ {
+ mprf("%s %s.",
+ mon->name(DESC_CAP_THE).c_str(), mons_resist_string(mon));
+ continue;
+ }
+
+ simple_god_message(
+ make_stringf(" rebukes %s.",
+ mon->name(DESC_NOCAP_THE).c_str()).c_str(),
+ GOD_CHRONOS);
+ do_slow_monster(mon, KC_YOU);
+ }
+ }
+}
+
void chronos_time_step(int pow) // pow is the number of turns to skip
{
coord_def old_pos = you.pos();