summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-28 03:59:36 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-28 03:59:36 +0000
commit0d90fe40bb12d5ab66e7d1a2c4af950b3a697995 (patch)
tree25d98de93220ab897d08f6b587d14296bb8812fb /crawl-ref/source/spells1.cc
parent89c5e06b63803c892844cd96bc38db898c1d0b85 (diff)
downloadcrawl-ref-0d90fe40bb12d5ab66e7d1a2c4af950b3a697995.tar.gz
crawl-ref-0d90fe40bb12d5ab66e7d1a2c4af950b3a697995.zip
In Zin's Revitalisation, make the type of revitalization done a
parameter to cast_revitalisation(), instead of determining it randomly inside the function. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4730 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index a06c2e340c..377868f747 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -759,13 +759,13 @@ int cast_healing( int pow, int target_x, int target_y )
return (_healing_spell( pow + roll_dice( 2, pow ) - 2, target_x, target_y ));
}
-int cast_revitalisation(int pow)
+int cast_revitalisation(int pow, int type)
{
const int max_steps = std::min(pow, 6);
int steps = 0;
int loss_amt;
- switch (random2(3))
+ switch (type)
{
case 0:
// Restore HP.