From 12fa7099be089e42c8e1640eb9ac2c3c6afa97a2 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 26 Sep 2007 11:27:16 +0000 Subject: 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 --- crawl-ref/source/ouch.cc | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'crawl-ref/source/ouch.cc') 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); } -- cgit v1.2.3-54-g00ecf