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/describe.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/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index ccb0a2e45d..2189bd4071 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -152,6 +152,7 @@ const char* jewellery_base_ability_string(int subtype) case AMU_CONSERVATION: return "Cons"; case AMU_CONTROLLED_FLIGHT: return "cFly"; case AMU_RESIST_MUTATION: return "rMut"; + case AMU_GUARDIAN_SPIRIT: return "Spirit"; } return ""; } @@ -202,6 +203,7 @@ static std::vector<std::string> _randart_propnames( const item_def& item ) { "rC", ARTP_COLD, 1 }, { "rN", ARTP_NEGATIVE_ENERGY, 1 }, { "MR", ARTP_MAGIC, 2 }, + { "Spirit", ARTP_SPIRIT_SHIELD, 2 }, // Quantitative attributes { "AC", ARTP_AC, 0 }, @@ -395,6 +397,7 @@ static std::string _randart_descrip( const item_def &item ) { ARTP_CAN_TELEPORT, "It lets you teleport.", false}, { ARTP_BERSERK, "It lets you go berserk.", false}, { ARTP_MAPPING, "It lets you sense your surroundings.", false}, + { ARTP_SPIRIT_SHIELD, "It shields you from harm at the cost of magical power.", false}, { ARTP_NOISES, "It makes noises.", false}, { ARTP_PREVENT_SPELLCASTING, "It prevents spellcasting.", false}, { ARTP_CAUSE_TELEPORTATION, "It causes teleportation.", false}, @@ -1261,6 +1264,11 @@ static std::string _describe_armour( const item_def &item, bool verbose ) description += "It reflects blocked things back in the " "direction they came from."; break; + + case SPARM_SPIRIT_SHIELD: + description += "It shields its wearer from harm at the cost " + "of magical power."; + break; } } |