From 525ed47151b7129d1346518d6f74effc4e6f79ac Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 15 May 2008 17:05:22 +0000 Subject: When placed under penance or excommunicated by Zin, remove divine stamina. Also, consolidate the routines for removing Zin's divine robustness, Zin's divine stamina, and TSO's divine shield. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5059 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells4.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/spells4.cc') diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 3cf98afe3b..9860f45ecf 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -2680,6 +2680,14 @@ void cast_condensation_shield(int pow) return; } // end cast_condensation_shield() +void remove_divine_shield() +{ + mpr("Your divine shield disappears!"); + you.duration[DUR_DIVINE_SHIELD] = 0; + you.attribute[ATTR_DIVINE_SHIELD] = 0; + you.redraw_armour_class = true; +} + // shield bonus = attribute for duration turns, then decreasing by 1 // every two out of three turns // overall shield duration = duration + attribute -- cgit v1.2.3-54-g00ecf