summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godwrath.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 13:28:25 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 13:28:25 -0600
commitb3cefaa00ebfaaa3ed11a642326a4aaebf908cf6 (patch)
treed5451c277a42669eb87caeeda0d8ce72fd0b1920 /crawl-ref/source/godwrath.cc
parent626505ac84f09909b7bc74ba2a74a2f93ad091ff (diff)
downloadcrawl-ref-b3cefaa00ebfaaa3ed11a642326a4aaebf908cf6.tar.gz
crawl-ref-b3cefaa00ebfaaa3ed11a642326a4aaebf908cf6.zip
Simplify Yred's and Okawaru's sending of random servants.
Diffstat (limited to 'crawl-ref/source/godwrath.cc')
-rw-r--r--crawl-ref/source/godwrath.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/crawl-ref/source/godwrath.cc b/crawl-ref/source/godwrath.cc
index 371dfc2b45..d896de98c3 100644
--- a/crawl-ref/source/godwrath.cc
+++ b/crawl-ref/source/godwrath.cc
@@ -67,23 +67,23 @@ static bool _yred_random_zombified_hostile()
static bool _okawaru_random_servant()
{
- monster_type mon = MONS_PROGRAM_BUG;
+ monster_type mon_type;
const int temp_rand = random2(100);
// warriors
- 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%
+ mon_type = ((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%
return (create_monster(
- mgen_data::hostile_at(mon,
+ mgen_data::hostile_at(mon_type,
true, 0, 0, you.pos(), 0, GOD_OKAWARU)) != -1);
}