From 8e6aed77dcf612ec06f14c8ad8f79d83d813ac5b Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 20 Jan 2009 22:53:13 +0000 Subject: Clean up rotting in melee attacks to not kill the target directly and to use special_damage_msg, as with draining. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8636 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 71635c8c13..086782330c 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6995,10 +6995,10 @@ void player::drain_stat(int stat, int amount, actor *attacker) lose_stat(stat, amount, false, ""); } -void player::rot(actor *who, int amount, int immediate) +bool player::rot(actor *who, int amount, int immediate, bool quiet) { if (res_rotting() > 0 || amount <= 0) - return; + return (false); if (immediate > 0) rot_hp(immediate); @@ -7007,6 +7007,8 @@ void player::rot(actor *who, int amount, int immediate) if (one_chance_in(4)) disease_player(50 + random2(100)); + + return (true); } bool player::drain_exp(actor *who, bool quiet) -- cgit v1.2.3-54-g00ecf