summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mutation.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-21 07:04:54 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-21 07:04:54 +0000
commit4caf249f71150e9e083e9c3e5b0f0f046c5ef64f (patch)
tree6fc6b9b5bd50d0cc432af4e89051a19c52630ed6 /crawl-ref/source/mutation.h
parentcf72d214ea56a4198e4fd9817cde7c7bef45622f (diff)
downloadcrawl-ref-4caf249f71150e9e083e9c3e5b0f0f046c5ef64f.tar.gz
crawl-ref-4caf249f71150e9e083e9c3e5b0f0f046c5ef64f.zip
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
Diffstat (limited to 'crawl-ref/source/mutation.h')
-rw-r--r--crawl-ref/source/mutation.h3
1 files changed, 2 insertions, 1 deletions
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}
/* ***********************************************************************