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/describe.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/describe.cc') 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 _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; } } -- cgit v1.2.3-54-g00ecf