summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-place.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-04-20 10:06:30 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-04-26 04:43:57 +0100
commit3045f11ac30c42a7a4a2b3aecc96139a3d227c78 (patch)
treefb7f06ce2c609d4b527404f2b8f4e154d8854fcf /crawl-ref/source/mon-place.cc
parentf351d1dcca3f993fb5b15a0781e7c3d83665956f (diff)
downloadcrawl-ref-3045f11ac30c42a7a4a2b3aecc96139a3d227c78.tar.gz
crawl-ref-3045f11ac30c42a7a4a2b3aecc96139a3d227c78.zip
Reduce the sizes of plain demonspawn bands
Diffstat (limited to 'crawl-ref/source/mon-place.cc')
-rw-r--r--crawl-ref/source/mon-place.cc45
1 files changed, 30 insertions, 15 deletions
diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc
index 8480a3cc1a..bd6ea805e6 100644
--- a/crawl-ref/source/mon-place.cc
+++ b/crawl-ref/source/mon-place.cc
@@ -2746,28 +2746,43 @@ static band_type _choose_band(monster_type mon_type, int &band_size,
// Horrible hack for wizlab_wucad_mu.
if (player_in_branch(BRANCH_WIZLAB))
break;
- band = BAND_MONSTROUS_DEMONSPAWN;
- band_size = random2(4);
+ if (coinflip())
+ {
+ band = BAND_MONSTROUS_DEMONSPAWN;
+ band_size = random_range(1, 2);
+ }
break;
case MONS_GELID_DEMONSPAWN:
- band = BAND_GELID_DEMONSPAWN;
- band_size = random2(4);
+ if (coinflip())
+ {
+ band = BAND_GELID_DEMONSPAWN;
+ band_size = random_range(1, 2);
+ }
break;
case MONS_INFERNAL_DEMONSPAWN:
- band = BAND_INFERNAL_DEMONSPAWN;
- band_size = random2(4);
+ if (coinflip())
+ {
+ band = BAND_INFERNAL_DEMONSPAWN;
+ band_size = random_range(1, 2);
+ }
break;
case MONS_PUTRID_DEMONSPAWN:
- band = BAND_PUTRID_DEMONSPAWN;
- band_size = random2(4);
+ if (coinflip())
+ {
+ band = BAND_PUTRID_DEMONSPAWN;
+ band_size = random_range(1, 2);
+ }
break;
case MONS_TORTUROUS_DEMONSPAWN:
- band = BAND_TORTUROUS_DEMONSPAWN;
- band_size = random2(4);
+ if (coinflip())
+ {
+ band = BAND_TORTUROUS_DEMONSPAWN;
+ band_size = random_range(1, 2);
+ }
break;
case MONS_BLOOD_SAINT:
@@ -3244,7 +3259,7 @@ static monster_type _band_member(band_type band, int which)
return MONS_SALAMANDER;
case BAND_MONSTROUS_DEMONSPAWN:
- if (which == 1 || which == 2 && one_chance_in(5))
+ if (which == 1 || one_chance_in(5))
{
return random_choose_weighted( 2, MONS_DEMONIC_CRAWLER,
2, MONS_SIXFIRHY,
@@ -3254,7 +3269,7 @@ static monster_type _band_member(band_type band, int which)
return random_demonspawn_monster_species();
case BAND_GELID_DEMONSPAWN:
- if (which == 1 || which == 2 && one_chance_in(5))
+ if (which == 1 || one_chance_in(5))
{
return random_choose_weighted( 2, MONS_BLUE_DEVIL,
2, MONS_ICE_DEVIL,
@@ -3264,7 +3279,7 @@ static monster_type _band_member(band_type band, int which)
return random_demonspawn_monster_species();
case BAND_INFERNAL_DEMONSPAWN:
- if (which == 1 || which == 2 && one_chance_in(5))
+ if (which == 1 || one_chance_in(5))
{
return random_choose_weighted( 2, MONS_RED_DEVIL,
2, MONS_SUN_DEMON,
@@ -3274,7 +3289,7 @@ static monster_type _band_member(band_type band, int which)
return random_demonspawn_monster_species();
case BAND_PUTRID_DEMONSPAWN:
- if (which == 1 || which == 2 && one_chance_in(5))
+ if (which == 1 || one_chance_in(5))
return random_choose_weighted( 2, MONS_HELLWING,
2, MONS_ORANGE_DEMON,
3, MONS_PUTRID_DEMONSPAWN,
@@ -3282,7 +3297,7 @@ static monster_type _band_member(band_type band, int which)
return random_demonspawn_monster_species();
case BAND_TORTUROUS_DEMONSPAWN:
- if (which == 1 || which == 2 && one_chance_in(5))
+ if (which == 1 || one_chance_in(5))
{
return random_choose_weighted( 2, MONS_ORANGE_DEMON,
2, MONS_SIXFIRHY,