summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-26 11:27:16 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-26 11:27:16 +0000
commit12fa7099be089e42c8e1640eb9ac2c3c6afa97a2 (patch)
treeb472b93a2035f3911289478d7577716d7492990a /crawl-ref/source/ouch.cc
parent32e72edca686ce0f32d70c6418055fe14d5bd248 (diff)
downloadcrawl-ref-12fa7099be089e42c8e1640eb9ac2c3c6afa97a2.tar.gz
crawl-ref-12fa7099be089e42c8e1640eb9ac2c3c6afa97a2.zip
Removed hard tabs.
Corrected sling bullet description. Targeting forward wrap-around was broken, fixed. Dropped damage bonus for kenku clawed-kick. Don't show {tried} for equipped items. Removed Elyvilon's protection from high-damage hits even when not praying. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2207 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc19
1 files changed, 5 insertions, 14 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index b388b4e500..ebfb0d2b7a 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -760,7 +760,7 @@ void ouch( int dam, int death_source, kill_method_type death_type,
case GOD_ELYVILON:
case GOD_YREDELEMNUL:
if (dam >= you.hp && you.duration[DUR_PRAYER]
- && random2(you.piety) >= 30)
+ && random2(you.piety) >= 30)
{
simple_god_message( " protects you from harm!" );
return;
@@ -771,22 +771,12 @@ void ouch( int dam, int death_source, kill_method_type death_type,
}
+ dec_hp( dam, true );
+
// Even if we have low HP messages off, we'll still give a
// big hit warning (in this case, a hit for half our HPs) -- bwr
if (dam > 0 && you.hp_max <= dam * 2)
- {
- if (you.religion == GOD_ELYVILON && one_chance_in(3))
- {
- simple_god_message( " shields you from harm!" );
- return;
- }
- // Damage applied here:
- dec_hp( dam, true );
mpr( "Ouch! That really hurt!", MSGCH_DANGER );
- }
- else
- dec_hp( dam, true );
-
if (you.hp > 0)
{
@@ -807,7 +797,8 @@ void ouch( int dam, int death_source, kill_method_type death_type,
}
else
{
- damage_desc = scorefile_entry(dam, death_source, death_type, aux, true)
+ damage_desc = scorefile_entry(dam, death_source,
+ death_type, aux, true)
.death_description(scorefile_entry::DDV_TERSE);
}