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/output.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/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index da8a9fc8da..ea936a3c29 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -2108,6 +2108,7 @@ static std::vector<formatted_string> _get_overview_resistances( const int rlife = player_prot_life(calc_unid); const int rpois = player_res_poison(calc_unid); const int relec = player_res_electricity(calc_unid); + const int rspir = player_spirit_shield(calc_unid); const int rsust = player_sust_abil(calc_unid); const int rmuta = (wearing_amulet(AMU_RESIST_MUTATION, calc_unid) || player_mutation_level(MUT_MUTATION_RESISTANCE) == 3 @@ -2120,7 +2121,7 @@ static std::vector<formatted_string> _get_overview_resistances( "%sLife Prot.: %s\n" "%sRes.Poison: %s\n" "%sRes.Elec. : %s\n" - "\n" + "%sSpirit.Shd: %s\n" "%sSust.Abil.: %s\n" "%sRes.Mut. : %s\n" "%sRes.Slow : %s\n", @@ -2129,6 +2130,7 @@ static std::vector<formatted_string> _get_overview_resistances( _determine_colour_string(rlife, 3), itosym3(rlife), _determine_colour_string(rpois, 1), itosym1(rpois), _determine_colour_string(relec, 1), itosym1(relec), + _determine_colour_string(rspir, 1), itosym1(rspir), _determine_colour_string(rsust, 1), itosym1(rsust), _determine_colour_string(rmuta, 1), itosym1(rmuta), _determine_colour_string(rslow, 1), itosym1(rslow)); |