diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-18 22:35:59 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-18 22:35:59 +0000 |
commit | bb2c2015d9341918a75216ad5cfe9915686a3004 (patch) | |
tree | d7bffe631744e78e8918e9145eea157cd8c38d93 /crawl-ref | |
parent | 333ecf9fdad3478a6ae7527837aea46c3a6cec11 (diff) | |
download | crawl-ref-bb2c2015d9341918a75216ad5cfe9915686a3004.tar.gz crawl-ref-bb2c2015d9341918a75216ad5cfe9915686a3004.zip |
Ensure that magical explosions have a minimum explosion size of 1.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8560 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/effects.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index aa5de103a6..3c71f0aa31 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -3240,12 +3240,11 @@ void handle_time(long time_delta) * (you.is_undead ? 4 : 2) / 4); beam.target = you.pos(); beam.name = "magical storm"; - beam.colour = BLACK; - beam.thrower = KILL_MISC; beam.beam_source = NON_MONSTER; beam.aux_source = "a magical explosion"; - beam.ex_size = std::min(9, you.magic_contamination / 15); - beam.ench_power = (you.magic_contamination * 5); + beam.ex_size = std::max(1, std::min(9, + you.magic_contamination / 15)); + beam.ench_power = you.magic_contamination * 5; beam.is_explosion = true; beam.explode(); |