summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-17 20:30:35 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-17 20:30:35 +0000
commit14500f51c17633c4ca44910b16a8f407a211236d (patch)
treed68898ff209daf55c53df092b5ac397edf06ac47 /crawl-ref
parente0bca022df90441309daa879dd8649cdb531ce06 (diff)
downloadcrawl-ref-14500f51c17633c4ca44910b16a8f407a211236d.tar.gz
crawl-ref-14500f51c17633c4ca44910b16a8f407a211236d.zip
Rearrange the routine for Okawaru's retribution-spawned servants, and
correct the percentages in the comments. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7274 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/religion.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index fe72361830..94aa8900a2 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -925,16 +925,16 @@ static bool _okawaru_random_servant()
int temp_rand = random2(100);
// warriors
- mon = ((temp_rand > 84) ? MONS_ORC_WARRIOR : // 15%
- (temp_rand > 69) ? MONS_ORC_KNIGHT : // 14%
- (temp_rand > 59) ? MONS_NAGA_WARRIOR : // 9%
- (temp_rand > 49) ? MONS_CENTAUR_WARRIOR : // 9%
- (temp_rand > 39) ? MONS_STONE_GIANT : // 9%
- (temp_rand > 29) ? MONS_FIRE_GIANT : // 9%
- (temp_rand > 19) ? MONS_FROST_GIANT : // 9%
- (temp_rand > 9) ? MONS_CYCLOPS : // 9%
- (temp_rand > 4) ? MONS_HILL_GIANT // 4%
- : MONS_TITAN); // 4%
+ mon = ((temp_rand < 15) ? MONS_ORC_WARRIOR : // 15%
+ (temp_rand < 30) ? MONS_ORC_KNIGHT : // 15%
+ (temp_rand < 40) ? MONS_NAGA_WARRIOR : // 10%
+ (temp_rand < 50) ? MONS_CENTAUR_WARRIOR : // 10%
+ (temp_rand < 60) ? MONS_STONE_GIANT : // 10%
+ (temp_rand < 70) ? MONS_FIRE_GIANT : // 10%
+ (temp_rand < 80) ? MONS_FROST_GIANT : // 10%
+ (temp_rand < 90) ? MONS_CYCLOPS : // 10%
+ (temp_rand < 95) ? MONS_HILL_GIANT // 5%
+ : MONS_TITAN); // 5%
bool success = false;