summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-20 23:07:05 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-20 23:07:05 +0000
commiteb8c3ef518567bc8ae5f87a99cd16f2c22262607 (patch)
tree28049d913ede7e7809d9db33b1b8dc7953458032 /crawl-ref/source/spells1.cc
parentd9e7e6a02141f3c9a99aa96a2c818d4c8fbb3786 (diff)
downloadcrawl-ref-eb8c3ef518567bc8ae5f87a99cd16f2c22262607.tar.gz
crawl-ref-eb8c3ef518567bc8ae5f87a99cd16f2c22262607.zip
And clean it up yet again.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4424 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 1d6cdc4682..26e16a7fbd 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -766,9 +766,9 @@ bool cast_revitalisation(int pow)
}
// Use the formula for minor healing for HP, and the formula divided
- // by two for MP.
+ // roughly in half for MP.
int hp_amount = pow + roll_dice(2, pow) - 2;
- int mp_amount = (pow + roll_dice(2, pow) - 2) / 2;
+ int mp_amount = (pow + roll_dice(2, pow) - 2) / 2 + 1;
inc_hp(hp_amount, false);
inc_mp(mp_amount, false);