From c52e267a7c4023d9ec765ebbf6ce0a44f811a636 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Mon, 20 Jul 2009 02:35:00 +0000 Subject: Bug 2820876: don't do a big cloud miscast in non-lethal mode if two player turns in the cloud could kill the player. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10344 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/cloud.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/cloud.h') diff --git a/crawl-ref/source/cloud.h b/crawl-ref/source/cloud.h index 679798e48b..240ef74e77 100644 --- a/crawl-ref/source/cloud.h +++ b/crawl-ref/source/cloud.h @@ -55,10 +55,12 @@ void manage_clouds(void); bool is_opaque_cloud(unsigned char cloud_idx); int steam_cloud_damage(const cloud_struct &cloud); +int steam_cloud_damage(int decay); cloud_type beam2cloud(beam_type flavour); beam_type cloud2beam(cloud_type flavour); +int max_cloud_damage(cloud_type cl_type, int power = -1); void in_a_cloud(void); std::string cloud_name(cloud_type type); -- cgit v1.2.3-54-g00ecf