diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-10 16:04:14 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-10 16:04:14 +0000 |
commit | 512696e788bbd4172853b8a1d7cca95497c98a6a (patch) | |
tree | d6477f6a71ab70118cc8126711557eafdb979e03 /crawl-ref/source/player.cc | |
parent | 684f80b554daadb08cf2c40b8e905737e8655530 (diff) | |
download | crawl-ref-512696e788bbd4172853b8a1d7cca95497c98a6a.tar.gz crawl-ref-512696e788bbd4172853b8a1d7cca95497c98a6a.zip |
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
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 8 |
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); +} |