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 | |
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')
-rw-r--r-- | crawl-ref/source/main.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/spells1.cc | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc index 559d377f74..f23df365f4 100644 --- a/crawl-ref/source/main.cc +++ b/crawl-ref/source/main.cc @@ -2671,8 +2671,8 @@ static void _decrement_durations() if (_decrement_a_duration(DUR_DIVINE_STAMINA, delay)) remove_divine_stamina(); - _decrement_a_duration(DUR_REPEL_STAIRS_MOVE, delay); - _decrement_a_duration(DUR_REPEL_STAIRS_CLIMB, delay); + _decrement_a_duration(DUR_REPEL_STAIRS_MOVE, 1); + _decrement_a_duration(DUR_REPEL_STAIRS_CLIMB, 1); } static void _check_banished() 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, ""); |