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/it_use2.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'crawl-ref/source/it_use2.cc') diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc index a9cbc99bd3..c39b92b9ca 100644 --- a/crawl-ref/source/it_use2.cc +++ b/crawl-ref/source/it_use2.cc @@ -632,6 +632,22 @@ void unwear_armour(int slot) mpr("You feel strangely numb."); break; + case SPARM_SPIRIT_SHIELD: + if (!player_spirit_shield()) + mpr("You feel strangely alone."); + else if (player_equip(EQ_AMULET, AMU_GUARDIAN_SPIRIT, true)) + { + item_def& amu(you.inv[you.equip[EQ_AMULET]]); + if (!item_type_known(amu)) + { + set_ident_type(amu.base_type, amu.sub_type, ID_KNOWN_TYPE); + set_ident_flags(amu, ISFLAG_KNOW_PROPERTIES); + mprf("You are wearing: %s", + amu.name(DESC_INVENTORY_EQUIP).c_str()); + } + } + break; + default: break; } -- cgit v1.2.3-54-g00ecf