summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use3.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.com>2009-10-11 16:50:36 +1000
committerRobert Vollmert <rvollmert@gmx.net>2009-10-11 09:34:54 +0200
commit10489c8d5065beff0d5d2f40fe14f854c59fb185 (patch)
tree1ab85dac16b6bc1e997f7f13014326f99d2b7971 /crawl-ref/source/it_use3.cc
parentbdb4df70e835b9991b6ddfff03377db2dde7b6d3 (diff)
downloadcrawl-ref-10489c8d5065beff0d5d2f40fe14f854c59fb185.tar.gz
crawl-ref-10489c8d5065beff0d5d2f40fe14f854c59fb185.zip
Allow disc of storms to place rain clouds.
Power is dependant on evocations skill; chance of leaving a cloud per-grid is 1 in 60-evocations skill. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
Diffstat (limited to 'crawl-ref/source/it_use3.cc')
-rw-r--r--crawl-ref/source/it_use3.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc
index 92f3c4a9ff..b144dc89c7 100644
--- a/crawl-ref/source/it_use3.cc
+++ b/crawl-ref/source/it_use3.cc
@@ -439,6 +439,15 @@ static bool _disc_of_storms(void)
zapping(which_zap, 30 + you.skills[SK_EVOCATIONS] * 2, beam);
}
+
+ for (radius_iterator ri(you.pos(), LOS_RADIUS, false); ri; ++ri)
+ {
+ if (grd(*ri) < DNGN_MAXWALL)
+ continue;
+
+ if (one_chance_in(60 - you.skills[SK_EVOCATIONS]))
+ place_cloud(CLOUD_RAIN, *ri, random2(you.skills[SK_EVOCATIONS]), KC_YOU);
+ }
}
return (rc);