From b7dee52a419fd5470a063b2e34b3d2bfb7a04e5f Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Sun, 4 Oct 2009 18:15:56 +0200 Subject: Amulet of guardian spirit, it comes as an amulet or a cap. When worn, all non-poison damage will drain mana instead, hurting hp only after mana is depleted. The cap brand is intended only for a fixedart, but per dpeg's request, it will be generated on ordinary caps for now, as a test. --- crawl-ref/source/delay.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/delay.cc') diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 7ebb5a8b82..0dcf44a472 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -1597,6 +1597,14 @@ void armour_wear_effects(const int item_slot) else mpr("You feel extremely powerful."); break; + + case SPARM_SPIRIT_SHIELD: + if (player_spirit_shield()<2) + { + set_mp(0, false); + mpr("You feel spirits watching over you."); + } + break; } } -- cgit v1.2.3-54-g00ecf