diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-15 20:45:34 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-15 23:46:57 -0500 |
commit | e18e5ec63e4656efb3bfcf3d0dd56cba0d3084c7 (patch) | |
tree | 8719699a30a575c975b89dc0d144fe98496272fb /crawl-ref/source/spells1.cc | |
parent | af7a73027bddcff39a6ba1b08398a5310e5797ac (diff) | |
download | crawl-ref-e18e5ec63e4656efb3bfcf3d0dd56cba0d3084c7.tar.gz crawl-ref-e18e5ec63e4656efb3bfcf3d0dd56cba0d3084c7.zip |
Adjust durations for divine vigour and divine stamina
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index c571f12e32..370427be29 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -919,8 +919,9 @@ bool cast_divine_vigour() 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; + you.set_duration(DUR_DIVINE_VIGOUR, + 40 + (you.skills[SK_INVOCATIONS*5])/2); + calc_hp(); inc_hp(you.hp_max - old_hp_max, false); calc_mp(); @@ -1021,8 +1022,8 @@ bool cast_vitalisation() const int stamina_amt = 3; you.attribute[ATTR_DIVINE_STAMINA] = stamina_amt; - you.duration[DUR_DIVINE_STAMINA] - = 40 + (you.skills[SK_INVOCATIONS]*5)/2; + you.set_duration(DUR_DIVINE_STAMINA, + 40 + (you.skills[SK_INVOCATIONS]*5)/2); modify_stat(STAT_STRENGTH, stamina_amt, true, ""); modify_stat(STAT_INTELLIGENCE, stamina_amt, true, ""); |