summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cloud.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-31 19:09:19 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-31 19:09:19 +0000
commit3846460d200480f3af4c345c4137f9bbee818b24 (patch)
treeeb6b79180b45751bc973523a2c6b76235bcf15d0 /crawl-ref/source/cloud.cc
parent900c6efcaf6fb292d518249ffe65abf92a01afc2 (diff)
downloadcrawl-ref-3846460d200480f3af4c345c4137f9bbee818b24.tar.gz
crawl-ref-3846460d200480f3af4c345c4137f9bbee818b24.zip
Give monsters better natural regeneration increasing with HD. Monsters will still never heal more than 1 hp per turn.
Increase royal jelly movement speed, hp and attack damage. The royal jelly now spits out high-level jellies when it takes a high-damage hit of any kind. No experience for the expelled jellies, given that they're technically part of the royal jelly, and the royal jelly already gives a heap of xp. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3985 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/cloud.cc')
-rw-r--r--crawl-ref/source/cloud.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc
index 351f1a3773..3aa74613df 100644
--- a/crawl-ref/source/cloud.cc
+++ b/crawl-ref/source/cloud.cc
@@ -297,6 +297,12 @@ bool is_opaque_cloud(unsigned char cloud_idx)
(ctype >= CLOUD_GREY_SMOKE && ctype <= CLOUD_STEAM) );
}
+cloud_type cloud_type_at(const coord_def &c)
+{
+ const int cloudno = env.cgrid(c);
+ return (cloudno == EMPTY_CLOUD? CLOUD_NONE : env.cloud[cloudno].type);
+}
+
cloud_type random_smoke_type()
{
// excludes black (reproducing existing behaviour)