From e18e5ec63e4656efb3bfcf3d0dd56cba0d3084c7 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sun, 15 Nov 2009 20:45:34 -0500 Subject: Adjust durations for divine vigour and divine stamina --- crawl-ref/source/main.cc | 4 ++-- crawl-ref/source/spells1.cc | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source') 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, ""); -- cgit v1.2.3-54-g00ecf