diff options
author | Jude Brown <bookofjude@users.sourceforge.com> | 2009-10-11 16:50:36 +1000 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-11 09:34:54 +0200 |
commit | 10489c8d5065beff0d5d2f40fe14f854c59fb185 (patch) | |
tree | 1ab85dac16b6bc1e997f7f13014326f99d2b7971 /crawl-ref/source/it_use3.cc | |
parent | bdb4df70e835b9991b6ddfff03377db2dde7b6d3 (diff) | |
download | crawl-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.cc | 9 |
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); |