diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-16 05:20:47 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-16 05:20:47 +0000 |
commit | 123b89f4285862a89c54d944b08c4ae43433000e (patch) | |
tree | d693eb6af0bbebd5cd03d527e6c80fad2a931afa /crawl-ref/source/spells1.cc | |
parent | 0d4f396c1c1b9a3aacbd5f2bb80c0ec00146e8c1 (diff) | |
download | crawl-ref-123b89f4285862a89c54d944b08c4ae43433000e.tar.gz crawl-ref-123b89f4285862a89c54d944b08c4ae43433000e.zip |
Make Elyvilon's Divine Vigour temporarily increase MP as well as HP.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9780 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index f7806536e6..968e034686 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -817,6 +817,7 @@ void remove_divine_vigour() you.duration[DUR_DIVINE_VIGOUR] = 0; you.attribute[ATTR_DIVINE_VIGOUR] = 0; calc_hp(); + calc_mp(); } bool cast_divine_vigour() @@ -830,11 +831,14 @@ bool cast_divine_vigour() const int vigour_amt = 1 + (you.skills[SK_INVOCATIONS]/6); const int old_hp_max = you.hp_max; + const int old_mp_max = you.max_magic_points; you.attribute[ATTR_DIVINE_VIGOUR] = vigour_amt; you.duration[DUR_DIVINE_VIGOUR] = 40 + (you.skills[SK_INVOCATIONS]*5)/2; calc_hp(); inc_hp(you.hp_max - old_hp_max, false); + calc_mp(); + inc_mp(you.max_magic_points - old_mp_max, false); success = true; } |