diff options
author | elliptic <hyperelliptical@gmail.com> | 2014-05-06 19:51:34 -0400 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-07 18:23:33 -0600 |
commit | 6190135a351f9fcf963ee8247132cecda12dd58b (patch) | |
tree | c9769758705fe2ef96205ac670acd03c9036e765 /crawl-ref/source/godpassive.cc | |
parent | 656b4adf42da07165d50591305f3d556d6530319 (diff) | |
download | crawl-ref-6190135a351f9fcf963ee8247132cecda12dd58b.tar.gz crawl-ref-6190135a351f9fcf963ee8247132cecda12dd58b.zip |
Clean up a div_rand_round in Qazlal cloud placement.
Diffstat (limited to 'crawl-ref/source/godpassive.cc')
-rw-r--r-- | crawl-ref/source/godpassive.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/godpassive.cc b/crawl-ref/source/godpassive.cc index 1ab50469a0..c1f296b3fb 100644 --- a/crawl-ref/source/godpassive.cc +++ b/crawl-ref/source/godpassive.cc @@ -727,12 +727,11 @@ void qazlal_storm_clouds() candidates.push_back(*ri); } const int count = - div_rand_round(LOS_RADIUS * - (min((int)you.piety, piety_breakpoint(5)) + div_rand_round((min((int)you.piety, piety_breakpoint(5)) - piety_breakpoint(0)) - * candidates.size() * you.time_taken - / (piety_breakpoint(5) - piety_breakpoint(0)), - 10 * LOS_RADIUS * BASELINE_DELAY); + * candidates.size() * you.time_taken, + (piety_breakpoint(5) - piety_breakpoint(0)) + * 10 * BASELINE_DELAY); if (count < 0) return; shuffle_array(candidates); |