diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-06-10 13:47:28 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-06-10 13:47:28 -0400 |
commit | 2cecdf434401f754e5e8ac3cb8a587116bb51302 (patch) | |
tree | 590132bde39d1ad18b295e80cbf2730fc0e22347 /crawl-ref/source/mon-cast.cc | |
parent | 7e81480cda18144ff185f5248639a072b654deff (diff) | |
download | crawl-ref-2cecdf434401f754e5e8ac3cb8a587116bb51302.tar.gz crawl-ref-2cecdf434401f754e5e8ac3cb8a587116bb51302.zip |
Revert "Make random_choose_weighted() end on -1 weight"
This reverts commit 7e81480cda18144ff185f5248639a072b654deff.
Turns out I missed some calls to random_choose_weighted(), this change
might not even be worth doing.
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r-- | crawl-ref/source/mon-cast.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc index 8e8911d738..f2dbabef70 100644 --- a/crawl-ref/source/mon-cast.cc +++ b/crawl-ref/source/mon-cast.cc @@ -3626,7 +3626,7 @@ static monster_type _pick_vermin() 2, MONS_TARANTELLA, 2, MONS_JUMPING_SPIDER, 3, MONS_DEMONIC_CRAWLER, - -1); + 0); } static void _do_high_level_summon(monster* mons, bool monsterNearby, @@ -4973,7 +4973,7 @@ void mons_cast(monster* mons, bolt &pbolt, spell_type spell_cast, 2, MONS_SHADOW_IMP, 2, MONS_WHITE_IMP, 4, MONS_CRIMSON_IMP, - -1), + 0), SAME_ATTITUDE(mons), mons, duration, spell_cast, mons->pos(), mons->foe, 0, god)); @@ -5524,7 +5524,7 @@ void mons_cast(monster* mons, bolt &pbolt, spell_type spell_cast, 40, MONS_SHINING_EYE, 20, MONS_GREAT_ORB_OF_EYES, 10, MONS_EYE_OF_DEVASTATION, - -1); + 0); create_monster( mgen_data(mon, SAME_ATTITUDE(mons), mons, duration, @@ -5601,7 +5601,7 @@ void mons_cast(monster* mons, bolt &pbolt, spell_type spell_cast, 3, MONS_BALRUG, 2, MONS_HELLION, 1, MONS_BRIMSTONE_FIEND, - -1); + 0); create_monster( mgen_data(mon, SAME_ATTITUDE(mons), mons, duration, @@ -5818,7 +5818,7 @@ void mons_cast(monster* mons, bolt &pbolt, spell_type spell_cast, 5, SPELL_GHOSTLY_FIREBALL, 10, SPELL_FIREBALL, 10, SPELL_FLASH_FREEZE, - -1); + 0); range = spell_range(real_spell, 12 * mons->spell_hd(real_spell), false); |