summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-06-10 02:10:52 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-06-10 12:58:57 -0400
commit7e81480cda18144ff185f5248639a072b654deff (patch)
treeee96229a36d8ab5c00b5032093771796717857e8 /crawl-ref/source/mon-cast.cc
parent37dca8855d8c35d9f63bdafe54b967e7f831bb0b (diff)
downloadcrawl-ref-7e81480cda18144ff185f5248639a072b654deff.tar.gz
crawl-ref-7e81480cda18144ff185f5248639a072b654deff.zip
Make random_choose_weighted() end on -1 weight
For consistency with random_choose().
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r--crawl-ref/source/mon-cast.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc
index f2dbabef70..8e8911d738 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,
- 0);
+ -1);
}
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,
- 0),
+ -1),
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,
- 0);
+ -1);
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,
- 0);
+ -1);
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,
- 0);
+ -1);
range = spell_range(real_spell,
12 * mons->spell_hd(real_spell),
false);