From 4caf249f71150e9e083e9c3e5b0f0f046c5ef64f Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sun, 21 Dec 2008 07:04:54 +0000 Subject: You can now request that a spell miscast effect not directly kill the player and leave him/her with at least N hp (it can still indirectly kill the player by causing the death of a mummy, giant spore or ball lightning). Doesn't cover the case of a level 3 transmigration miscast deleting the robust mutation or giving the frail mutation before causing hp damage. The Xom bad effects code now requests (unless Xom is being nasty) that spell miscasts not directly kill the player, rather than avoiding miscasts alltogether if the player has low HP (which didn't cover things like miscasts leading to death via XP drain or stat loss, in addition to it avoiding spell miscasts much too often). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7894 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/mutation.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/mutation.h') diff --git a/crawl-ref/source/mutation.h b/crawl-ref/source/mutation.h index fb28c16378..cd6fb9d624 100644 --- a/crawl-ref/source/mutation.h +++ b/crawl-ref/source/mutation.h @@ -66,7 +66,8 @@ const char *mutation_name(mutation_type which_mutat, int level = -1); /* *********************************************************************** * called from: items - spells * *********************************************************************** */ -bool give_bad_mutation(bool failMsg = true, bool force_mutation = false); +bool give_bad_mutation(bool failMsg = true, bool force_mutation = false, + bool non_fatal = false); // last updated 12may2000 {dlb} /* *********************************************************************** -- cgit v1.2.3-54-g00ecf