diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-07 12:29:28 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-07 12:30:33 -0700 |
commit | 903d200c734e7ea2f8c7e6769e83e4a0528afb06 (patch) | |
tree | a5e5e35e5ae34244a6663e5536b3b6e7d741488f /crawl-ref/source/mon-place.cc | |
parent | 1bbe59b729d032d3a7bddac4299d2f4e2c56efa1 (diff) | |
download | crawl-ref-903d200c734e7ea2f8c7e6769e83e4a0528afb06.tar.gz crawl-ref-903d200c734e7ea2f8c7e6769e83e4a0528afb06.zip |
Make Crawl a little bit more metal
Iron Trolls are back, by popular demand! Now only present
in deep troll shaman packs.
Diffstat (limited to 'crawl-ref/source/mon-place.cc')
-rw-r--r-- | crawl-ref/source/mon-place.cc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc index fb4c1b2896..c92d9c00c5 100644 --- a/crawl-ref/source/mon-place.cc +++ b/crawl-ref/source/mon-place.cc @@ -2394,11 +2394,15 @@ static band_type _choose_band(monster_type mon_type, int &band_size, break; case MONS_DEEP_TROLL_EARTH_MAGE: - case MONS_DEEP_TROLL_SHAMAN: band = BAND_DEEP_TROLLS; band_size = 3 + random2(3); break; + case MONS_DEEP_TROLL_SHAMAN: + band = BAND_DEEP_TROLL_SHAMAN; + band_size = 3 + random2(3); + break; + case MONS_HELL_HOG: band = BAND_HELL_HOGS; band_size = 1 + random2(3); @@ -2845,6 +2849,13 @@ static band_type _choose_band(monster_type mon_type, int &band_size, return band; } +/** + * Return the type of the nth monster in a band. + * + * @param band The type of band + * @param which The index of the monster (starting from 1) + * @return The type of monster to create + */ static monster_type _band_member(band_type band, int which) { if (band == BAND_NO_BAND) @@ -3066,6 +3077,10 @@ static monster_type _band_member(band_type band, int which) 3, MONS_NECROPHAGE, 2, MONS_BOG_BODY, 0); + case BAND_DEEP_TROLL_SHAMAN: + if (one_chance_in(4)) + return MONS_IRON_TROLL; + // intentional fallthrough case BAND_DEEP_TROLLS: if (one_chance_in(4)) { |