From f3181091e894c233e5490366233acab45ab6144b Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sun, 15 Nov 2009 15:13:08 -0500 Subject: Convert several more durations Change over durations for magic shield (this is from the helm card), TSO's divine shield, paralysis, and petrification. --- crawl-ref/source/spells4.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spells4.cc') diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 47eda3c4ab..5b965b3d72 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -1944,8 +1944,8 @@ void cast_divine_shield() you.redraw_armour_class = true; // duration of complete shield bonus from 35 to 80 turns - you.duration[DUR_DIVINE_SHIELD] = - 35 + (you.skills[SK_SHIELDS] + you.skills[SK_INVOCATIONS]*4)/3; + you.set_duration(DUR_DIVINE_SHIELD, + 35 + (you.skills[SK_INVOCATIONS] * 4) / 3); // shield bonus up to 8 you.attribute[ATTR_DIVINE_SHIELD] = 3 + you.skills[SK_SHIELDS]/5; -- cgit v1.2.3-54-g00ecf