summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 3944b077c7..9ee2493df7 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -4513,6 +4513,9 @@ void player::init()
sure_blade = 0;
synch_time = 0;
+ magic_contamination = 0;
+ backlight = 0;
+
base_hp = 5000;
base_hp2 = 5000;
base_magic_points = 5000;
@@ -5258,3 +5261,8 @@ bool player::invisible() const
{
return (invis);
}
+
+bool player::backlit() const
+{
+ return (magic_contamination >= 5 || backlight);
+}