diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-09 19:37:10 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-09 19:37:10 +0000 |
commit | e15cb03057e1f57801e01fdc3c6271e0736f4c79 (patch) | |
tree | c3834256e29774453a04233d853c66eb3f0960c4 /crawl-ref/source/spl-cast.cc | |
parent | 4515a730159654ea04151f11841bd47c60940b0e (diff) | |
download | crawl-ref-e15cb03057e1f57801e01fdc3c6271e0736f4c79.tar.gz crawl-ref-e15cb03057e1f57801e01fdc3c6271e0736f4c79.zip |
Convert the shadow- and spatial vortex-summoning routines to use power
values, in case they're ever used elsewhere.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5670 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 0f46d389f3..08de88d5a0 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -2369,7 +2369,7 @@ static void _miscast_translocation(int severity, const char* cause) ouch(4 + random2avg(7, 2), 0, KILLED_BY_WILD_MAGIC, cause); break; case 5: - summon_spatial_vortices(1); + summon_spatial_vortices(0); break; } break; @@ -2396,7 +2396,8 @@ static void _miscast_translocation(int severity, const char* cause) potion_effect(POT_CONFUSION, 40); break; case 5: - summon_spatial_vortices(2 + random2(3)); + // Summon 2-5 spatial vortices. + summon_spatial_vortices(75 + random2(151)); break; case 6: _send_abyss(cause); @@ -2483,7 +2484,7 @@ static void _miscast_summoning(int severity, const char* cause) ouch(5 + random2avg(9, 2), 0, KILLED_BY_WILD_MAGIC, cause); break; case 3: - summon_spatial_vortices(1); + summon_spatial_vortices(0); break; case 4: case 5: @@ -2501,7 +2502,8 @@ static void _miscast_summoning(int severity, const char* cause) switch (random2(6)) { case 0: - summon_spatial_vortices(2 + random2(3)); + // Summon 2-5 spatial vortices. + summon_spatial_vortices(75 + random2(151)); break; case 1: @@ -2790,7 +2792,8 @@ static void _miscast_necromancy(int severity, const char* cause) switch (random2(3)) { case 0: - summon_shadows(random2(3) + 1, false, true); + // Summon 1-3 shadows. + summon_shadows(random2(151), false, true); break; case 1: |