From 10489c8d5065beff0d5d2f40fe14f854c59fb185 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Sun, 11 Oct 2009 16:50:36 +1000 Subject: 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 --- crawl-ref/source/it_use3.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crawl-ref/source') 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); -- cgit v1.2.3-54-g00ecf