diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-15 19:56:32 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-15 19:56:32 +0000 |
commit | f5824a2c7390e30a801ac8b1eaa9cea7a6d3afae (patch) | |
tree | d7a56bc32290a88fd15438cd5ffe00125a03f374 /crawl-ref/source/effects.cc | |
parent | c27083cc4fd8a776f61e2863f07eefa56b183ac5 (diff) | |
download | crawl-ref-f5824a2c7390e30a801ac8b1eaa9cea7a6d3afae.tar.gz crawl-ref-f5824a2c7390e30a801ac8b1eaa9cea7a6d3afae.zip |
Add more miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5860 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 98e887bafb..5b6174605b 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -2245,12 +2245,13 @@ static void _hell_effects() if (summon_instead) { create_monster( - mgen_data( which_beastie, BEH_HOSTILE, 0, you.pos(), MHITYOU )); + mgen_data::hostile_at(which_beastie, + you.pos(), 0, 0, true)); } else { - miscast_effect( which_miscast, 4 + random2(6), - random2avg(97, 3), 100, "the effects of Hell" ); + miscast_effect(which_miscast, 4 + random2(6), + random2avg(97, 3), 100, "the effects of Hell"); } } @@ -2267,9 +2268,11 @@ static void _hell_effects() mg.foe = MHITYOU; create_monster(mg); - for (int i = 0; i < 4; i++) + for (int i = 0; i < 4; ++i) + { if (one_chance_in(3)) create_monster(mg); + } } } |