diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-18 21:33:44 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-18 21:33:44 +0000 |
commit | c445c5a6f661d292563c4e7a45e712c4550499ad (patch) | |
tree | faeba186b3a22309b6872e977c62d8464f92b48a /crawl-ref/source/player.cc | |
parent | a3f58f3faa8a742b5898ed939eaa751ed48a76c5 (diff) | |
download | crawl-ref-c445c5a6f661d292563c4e7a45e712c4550499ad.tar.gz crawl-ref-c445c5a6f661d292563c4e7a45e712c4550499ad.zip |
Improve halo-related output.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4345 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 5ada2330b3..66a7fab67f 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -3659,6 +3659,9 @@ void display_char_status() else mpr( "You are alive." ); + if (you.haloed()) + mpr( "You are illuminated by a halo." ); + if (you.species == SP_VAMPIRE) { std::string msg = "At your current hunger state you "; @@ -6425,10 +6428,15 @@ bool player::can_see(const actor *target) const return (mons_near(mon) && target->visible_to(this)); } -bool player::backlit(bool check_halo) const +bool player::backlit(bool check_haloed) const { return (magic_contamination >= 5 || duration[DUR_BACKLIGHT] - || ((check_halo) ? halo_radius() : false)); + || ((check_haloed) ? haloed() : false)); +} + +bool player::haloed() const +{ + return (halo_radius()); } void player::mutate() |