From f459b1b8e21346874ef3f82b0a7043c75c335e79 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 6 Nov 2009 00:32:15 -0600 Subject: Simplify. --- crawl-ref/source/mon-util.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 53f1a11e94..b1e54bbfc3 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1380,7 +1380,6 @@ void define_monster(int index) // Generate a shiny new and unscarred monster. void define_monster(monsters &mons) { - int temp_rand = 0; // probability determination {dlb} int mcls = mons.type; int hd, hp, hp_max, ac, ev, speed; int monnumber = mons.number; @@ -1471,8 +1470,8 @@ void define_monster(monsters &mons) break; case MONS_DEEP_ELF_CONJURER: - spells = - (coinflip() ? MST_DEEP_ELF_CONJURER_I : MST_DEEP_ELF_CONJURER_II); + spells = (coinflip() ? MST_DEEP_ELF_CONJURER_I + : MST_DEEP_ELF_CONJURER_II); break; case MONS_GILA_MONSTER: @@ -1507,8 +1506,8 @@ void define_monster(monsters &mons) case MONS_DRACONIAN_KNIGHT: { - temp_rand = random2(10); - // hell knight, death knight, chaos knight... + int temp_rand = random2(10); + // Hell knight, death knight, or chaos knight. if (temp_rand < 6) spells = (coinflip() ? MST_HELL_KNIGHT_I : MST_HELL_KNIGHT_II); else if (temp_rand < 9) -- cgit v1.2.3-54-g00ecf