summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-10 01:39:32 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-10 01:39:32 +0000
commitea2080f990499c78e46fa023d2dbdbba9ac5eac6 (patch)
tree095b995ac4f74a49e5a119a8c26d185cf095e7aa /crawl-ref/source/describe.cc
parent1b5cb7207f6d4d2b7e4eb51e3baf39824da14b70 (diff)
downloadcrawl-ref-ea2080f990499c78e46fa023d2dbdbba9ac5eac6.tar.gz
crawl-ref-ea2080f990499c78e46fa023d2dbdbba9ac5eac6.zip
Add TSO halo description to the "^" screen.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4980 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc29
1 files changed, 24 insertions, 5 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 91ad931466..56268ec341 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -54,6 +54,7 @@
#include "randart.h"
#include "religion.h"
#include "skills2.h"
+#include "spells3.h"
#include "spl-book.h"
#include "stuff.h"
#include "spl-util.h"
@@ -2436,12 +2437,28 @@ static std::string religion_help( god_type god )
break;
case GOD_SHINING_ONE:
+ if (you.haloed())
+ {
+ int halo_size = halo_radius();
+ result += "You radiate a ";
+
+ if (halo_size > 6)
+ result += "large ";
+ else if (halo_size > 3)
+ result += "";
+ else
+ result += "small ";
+
+ result += "righteous aura, and all beings within it are "
+ "easier to hit. ";
+ }
+ // deliberate fall through
case GOD_LUGONU:
if (!player_under_penance() && you.piety > 160
&& !you.num_gifts[god])
{
result += "You can pray at an altar to ask " + god_name(god)
- + " to bless your weapon." EOL;
+ + " to bless your weapon.";
}
break;
@@ -2507,7 +2524,7 @@ void describe_god( god_type which_god, bool give_title )
if (you.religion == which_god)
{
//mv: print title based on piety
- cprintf( EOL EOL "Title - " );
+ cprintf( EOL "Title - " );
textcolor(colour);
// mv: if your piety is high enough you get title
@@ -2714,10 +2731,12 @@ void describe_god( god_type which_god, bool give_title )
// only give this additional information for worshippers
if ( which_god == you.religion )
{
- if (you.religion == GOD_ZIN || you.religion == GOD_SHINING_ONE)
- cgotoxy(1, get_number_of_lines(), GOTO_CRT);
- else if (you.religion == GOD_BEOGH)
+ if (you.religion == GOD_ZIN
+ || you.religion == GOD_SHINING_ONE
+ || you.religion == GOD_ELYVILON)
+ {
cgotoxy(1, get_number_of_lines() - 1, GOTO_CRT);
+ }
else
cgotoxy(1, get_number_of_lines() - 2, GOTO_CRT);