From 512696e788bbd4172853b8a1d7cca95497c98a6a Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 10 Apr 2007 16:04:14 +0000 Subject: Allow player ghosts to use corona. Breaks save compatibility, upped save major version. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1282 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/player.cc') 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); +} -- cgit v1.2.3-54-g00ecf