summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.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/ouch.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/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 43b605bebc..dd2678b970 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -604,14 +604,6 @@ void drain_exp(bool announce_full)
{
int protection = player_prot_life();
- if (you.duration[DUR_PRAYER]
- && you.religion == GOD_SHINING_ONE
- && random2(150) < you.piety)
- {
- simple_god_message(" protects your life force!");
- return;
- }
-
if (protection >= 3)
{
if ( announce_full )