summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-15 17:05:22 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-15 17:05:22 +0000
commit525ed47151b7129d1346518d6f74effc4e6f79ac (patch)
tree7e910096fcc61d801809ac7f233690dcd11ad48d /crawl-ref/source/spells4.cc
parent0c5e8ac3e5b8724f283c0b9662c9a35cbf600ada (diff)
downloadcrawl-ref-525ed47151b7129d1346518d6f74effc4e6f79ac.tar.gz
crawl-ref-525ed47151b7129d1346518d6f74effc4e6f79ac.zip
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
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc8
1 files changed, 8 insertions, 0 deletions
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