diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-10-15 09:15:01 -0500 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-10-15 09:15:01 -0500 |
commit | eaac2ae8638569b9aefaa5a6ab9dfe7f3addee39 (patch) | |
tree | 36b8b261c1c1dcabdfa0dddfca629010bf586543 /crawl-ref/source | |
parent | 39eb1bb024270d8eca413c929eb9508a382fb113 (diff) | |
download | crawl-ref-eaac2ae8638569b9aefaa5a6ab9dfe7f3addee39.tar.gz crawl-ref-eaac2ae8638569b9aefaa5a6ab9dfe7f3addee39.zip |
Add minor cosmetic fixes.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/spells2.cc | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 8fa13a1247..cec9e6ce30 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -2300,21 +2300,20 @@ int rain(coord_def & target) mon->del_ench(ENCH_AQUATIC_LAND); } - if(ftype >= DNGN_MINMOVE) + if (ftype >= DNGN_MINMOVE) { - // Maybe place a raincloud - // The rainfall area is 20 (5*5 - 4 (corners) -1 (center)) - // the expected number of clouds generated by a fixed chance per - // tile is 20 * p = expected. - // Say an invo of 27 gives expected 5 clouds + // Maybe place a raincloud. + // + // The rainfall area is 20 (5*5 - 4 (corners) - 1 (center)); + // the expected number of clouds generated by a fixed chance + // per tile is 20 * p = expected. Say an Invocations skill + // of 27 gives expected 5 clouds. int max_expected = 5; - int expected = div_rand_round(max_expected * - you.skills[SK_INVOCATIONS], 27); + int expected = div_rand_round(max_expected + * you.skills[SK_INVOCATIONS], 27); - if(x_chance_in_y(expected, 20)) - { + if (x_chance_in_y(expected, 20)) place_cloud(CLOUD_RAIN, *rad, 10, KC_YOU); - } } |