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/artefact.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/artefact.cc') diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc index 5c8a1dafc0..94f0dc4a6b 100644 --- a/crawl-ref/source/artefact.cc +++ b/crawl-ref/source/artefact.cc @@ -1058,6 +1058,13 @@ void static _get_randart_properties(const item_def &item, power_level++; } + if (!done_powers && one_chance_in(10) && aclass == OBJ_ARMOUR + && (atype == ARM_CAP || atype == ARM_SHIELD)) + { + proprt[ARTP_SPIRIT_SHIELD] = 1; + power_level++; + } + // Armours get fewer powers, and are also less likely to be // cursed than weapons if (aclass == OBJ_ARMOUR) -- cgit v1.2.3-54-g00ecf