From b8f3c183df87ee55833ab561fa12ed324da5a913 Mon Sep 17 00:00:00 2001 From: Johanna Ploog Date: Wed, 9 Dec 2009 21:31:02 +0100 Subject: Make Xom sometimes (< 5% chance) revive the player after death. The chance of this happening depends strongly on tension and mood, as well as type of death. I also tried the normal protection from harm but I figure it's more interesting this way. :D --- crawl-ref/source/xom.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/xom.h') diff --git a/crawl-ref/source/xom.h b/crawl-ref/source/xom.h index 25706fb1ab..7839987c9d 100644 --- a/crawl-ref/source/xom.h +++ b/crawl-ref/source/xom.h @@ -86,6 +86,10 @@ inline void xom_acts(int sever, int tension = -1) void xom_check_lost_item(const item_def& item); void xom_check_destroyed_item(const item_def& item, int cause = -1); void xom_death_message(const kill_method_type killed_by); +bool xom_saves_your_life(const int dam, const int death_source, + const kill_method_type death_type, const char *aux, + const bool see_source); + #ifdef WIZARD void debug_xom_effects(); #endif -- cgit v1.2.3-54-g00ecf