From c445c5a6f661d292563c4e7a45e712c4550499ad Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 18 Apr 2008 21:33:44 +0000 Subject: Improve halo-related output. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4345 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/player.cc') 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() -- cgit v1.2.3-54-g00ecf