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/spells2.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/spells2.cc')
-rw-r--r-- | crawl-ref/source/spells2.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 2d404b801d..0d0b71872b 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -971,12 +971,15 @@ char burn_freeze(int pow, beam_type flavour) return 1; } -bool summon_spatial_vortices(int how_many, bool god_gift) +bool summon_spatial_vortices(int pow, bool god_gift) { bool success = false; mpr("Space twists in upon itself!"); + // Maximum power is 300. + const int how_many = (pow / 75 + 1); + for (int i = 0; i < how_many; ++i) { if (create_monster( |