From 14500f51c17633c4ca44910b16a8f407a211236d Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 17 Oct 2008 20:30:35 +0000 Subject: 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 --- crawl-ref/source/religion.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'crawl-ref') 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; -- cgit v1.2.3-54-g00ecf