summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-16 03:29:31 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-16 03:29:31 +0000
commit01301efb3f166e5b9ce4d856b910f63493b56b08 (patch)
tree355fb08b70454e264554842e972a3e5a4e75c4f8 /crawl-ref/source/acr.cc
parentf3e9c1a0989f0c755360ec40d0ae642eedacf268 (diff)
downloadcrawl-ref-01301efb3f166e5b9ce4d856b910f63493b56b08.tar.gz
crawl-ref-01301efb3f166e5b9ce4d856b910f63493b56b08.zip
Implement TSO's halo. It applies backlight to the player and all
monsters within the (circular) halo, and then keeps the duration of that backlight from running out. You currently lose it if you go under penance. Also, there are no visual effects yet, other than the usual backlight effects. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3669 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index d5b40a209c..11512ecb80 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -2693,8 +2693,12 @@ static void decrement_durations()
Options.tutorial_events[TUT_YOU_ENCHANTED] = tut_slow;
}
- if (you.duration[DUR_BACKLIGHT] > 0 && !--you.duration[DUR_BACKLIGHT] && !you.backlit())
+ // players inside a halo don't lose backlight
+ if (you.duration[DUR_BACKLIGHT] > 0 && !halo_radius()
+ && !--you.duration[DUR_BACKLIGHT] && !you.backlit())
+ {
mpr("You are no longer glowing.", MSGCH_DURATION);
+ }
// Leak piety from the piety pool into actual piety.
// Note that changes of religious status without corresponding actions
@@ -2884,6 +2888,8 @@ static void world_reacts()
check_sanctuary();
+ manage_halo();
+
run_environment_effects();
if ( !you.cannot_act() && !you.mutation[MUT_BLURRY_VISION] &&