summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cloud.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-14 20:47:04 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-14 20:47:04 +0000
commitb6c69a86519c6bb8a69ca7074350cdc496968ac6 (patch)
treef4b2b9bd70c0691c9b37bb8235d6ff2987439f3f /crawl-ref/source/cloud.cc
parentf03320c66fd006bd233cdca9490adfa9179339d3 (diff)
downloadcrawl-ref-b6c69a86519c6bb8a69ca7074350cdc496968ac6.tar.gz
crawl-ref-b6c69a86519c6bb8a69ca7074350cdc496968ac6.zip
Consolidate beam and cloud handling routines a bit, and allow clouds to
destroy items on the floor where applicable. Also allow grey smoke as a random potion effect from Evaporate. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5040 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/cloud.cc')
-rw-r--r--crawl-ref/source/cloud.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc
index 182ce92ae1..885f9aaeae 100644
--- a/crawl-ref/source/cloud.cc
+++ b/crawl-ref/source/cloud.cc
@@ -22,6 +22,7 @@
#include "cloud.h"
#include "mapmark.h"
#include "misc.h"
+#include "ouch.h"
#include "place.h"
#include "stuff.h"
#include "terrain.h"
@@ -152,7 +153,10 @@ void manage_clouds(void)
dissipate *= 4;
}
- dissipate_cloud( cc, env.cloud[cc], dissipate );
+ expose_items_to_element(cloud2beam(env.cloud[cc].type),
+ env.cloud[cc].x, env.cloud[cc].y);
+
+ dissipate_cloud(cc, env.cloud[cc], dissipate);
}
return;
@@ -516,5 +520,5 @@ fog_machine_data fogs_lab_type(int level_number)
killer_type cloud_struct::beam_thrower() const
{
- return (whose == KC_YOU? KILL_YOU_MISSILE : KILL_MON_MISSILE);
+ return (whose == KC_YOU ? KILL_YOU_MISSILE : KILL_MON_MISSILE);
}