summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-15 09:15:01 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-15 09:15:01 -0500
commiteaac2ae8638569b9aefaa5a6ab9dfe7f3addee39 (patch)
tree36b8b261c1c1dcabdfa0dddfca629010bf586543
parent39eb1bb024270d8eca413c929eb9508a382fb113 (diff)
downloadcrawl-ref-eaac2ae8638569b9aefaa5a6ab9dfe7f3addee39.tar.gz
crawl-ref-eaac2ae8638569b9aefaa5a6ab9dfe7f3addee39.zip
Add minor cosmetic fixes.
-rw-r--r--crawl-ref/source/spells2.cc21
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);
- }
}