diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-10-04 18:15:56 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-10-05 22:02:25 +0200 |
commit | b7dee52a419fd5470a063b2e34b3d2bfb7a04e5f (patch) | |
tree | fef93966a3726abaac7e3045f869bd15ec941092 /crawl-ref/source/makeitem.cc | |
parent | ef6ad2cc032c461e2acea1f53dc01710b8dd2305 (diff) | |
download | crawl-ref-b7dee52a419fd5470a063b2e34b3d2bfb7a04e5f.tar.gz crawl-ref-b7dee52a419fd5470a063b2e34b3d2bfb7a04e5f.zip |
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.
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index 10dc28ff7c..45e2ce8f87 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -2033,8 +2033,13 @@ static special_armour_type _determine_armour_ego(const item_def& item, } break; - case ARM_HELMET: case ARM_CAP: + if (one_chance_in(10)) + { + rc = SPARM_SPIRIT_SHIELD; + break; + } + case ARM_HELMET: rc = coinflip() ? SPARM_SEE_INVISIBLE : SPARM_INTELLIGENCE; break; |