summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-25 16:41:51 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-25 16:41:51 +0000
commit67f77bb507d0f27b169f53258bcc94a24d7f8894 (patch)
tree849b5a021717cdda8dfbb2b0e6339f8a2a89bfe2 /crawl-ref/source/describe.cc
parent7da71d18a7403dcd95b2e57370dc26bf1274f436 (diff)
downloadcrawl-ref-67f77bb507d0f27b169f53258bcc94a24d7f8894.tar.gz
crawl-ref-67f77bb507d0f27b169f53258bcc94a24d7f8894.zip
Replace Yred's life saving with injury mirroring, based on the old "pain
mirror" FR with some suggestions from dploog. A monster affected by this will briefly flash blood-red, and each mirroring costs the square root of the damage in piety. It will not damage a monster if the damage kills you first, but that should only have an effect on gameplay in wizard mode if you use it to avoid death, in which case you don't really need it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6983 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 139baab67e..10232ec6dc 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -3144,6 +3144,15 @@ void describe_god( god_type which_god, bool give_title )
cprintf("You can call upon %s to destroy weapons "
"lying on the ground." EOL, god_name(which_god).c_str());
}
+ else if (which_god == GOD_YREDELEMNUL)
+ {
+ have_any = true;
+ if (!player_under_penance() && you.piety >= piety_breakpoint(0))
+ {
+ cprintf("%s mirrors your injuries on your foes "
+ "during prayer." EOL, god_name(which_god).c_str());
+ }
+ }
// mv: No abilities (except divine protection) under penance
if (!player_under_penance())