summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-16 21:59:38 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-16 21:59:38 +0000
commit2d16881d3392336c49f388c500749613899852df (patch)
tree0290308cdd1c772e941e145ef87f653ecaa4faf9 /crawl-ref/source/describe.cc
parentb9231c6613788ace1d7adfde1a0e028b21fae993 (diff)
downloadcrawl-ref-2d16881d3392336c49f388c500749613899852df.tar.gz
crawl-ref-2d16881d3392336c49f388c500749613899852df.zip
As brought up during the good god overhaul discussion a few months ago,
adjust TSO's life protection to work as follows: put it in player_prot_life() so it's displayed just as Zin's mutation protection is; give one, two, or three levels of it depending on piety (the values are 50, 100, and 150 for now); and add a description of it to the religion screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3284 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index dd0b4928b4..dd8ee451f4 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -2520,10 +2520,23 @@ void describe_god( god_type which_god, bool give_title )
(you.piety >= 100) ? "often" :
(you.piety >= 50) ? "sometimes" :
"occasionally";
-
+
cprintf("%s %s shields you from mutagenic effects." EOL,
god_name(which_god).c_str(), how);
}
+ else if (which_god == GOD_SHINING_ONE)
+ {
+ have_any = true;
+ if (you.piety >= 50)
+ {
+ const char *how = (you.piety >= 150) ? "carefully" : // l.p. 3
+ (you.piety >= 100) ? "often" :
+ "sometimes";
+
+ cprintf("%s %s protects your life force." EOL,
+ god_name(which_god).c_str(), how);
+ }
+ }
else if (which_god == GOD_TROG)
{
have_any = true;