diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-06 00:32:15 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-06 00:32:15 -0600 |
commit | f459b1b8e21346874ef3f82b0a7043c75c335e79 (patch) | |
tree | 78b58d1da23cca27aaf8149326788f2329651520 | |
parent | f9a255f2e18e956980beecabd919d58729b5aba6 (diff) | |
download | crawl-ref-f459b1b8e21346874ef3f82b0a7043c75c335e79.tar.gz crawl-ref-f459b1b8e21346874ef3f82b0a7043c75c335e79.zip |
Simplify.
-rw-r--r-- | crawl-ref/source/mon-util.cc | 9 |
1 files 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) |