From 2a6fe1009197349537396b5e9f208f1db4e48c8a Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 18 Nov 2009 13:23:41 -0600 Subject: Display rotting resistance in-game. --- crawl-ref/source/output.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/output.cc') diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index d498d043ef..1744cf8527 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -1825,6 +1825,7 @@ static std::vector _get_overview_resistances( const int rmuta = (wearing_amulet(AMU_RESIST_MUTATION, calc_unid) || player_mutation_level(MUT_MUTATION_RESISTANCE) == 3 || you.religion == GOD_ZIN && you.piety >= 150); + const int rrott = you.res_rotting(); const int rslow = wearing_amulet(AMU_RESIST_SLOW, calc_unid); snprintf(buf, sizeof buf, @@ -1836,6 +1837,7 @@ static std::vector _get_overview_resistances( "%sSpirit.Shd: %s\n" "%sSust.Abil.: %s\n" "%sRes.Mut. : %s\n" + "%sRes.Rott. : %s\n" "%sRes.Slow : %s\n", _determine_colour_string(rfire, 3), itosym3(rfire), _determine_colour_string(rcold, 3), itosym3(rcold), @@ -1845,6 +1847,7 @@ static std::vector _get_overview_resistances( _determine_colour_string(rspir, 1), itosym1(rspir), _determine_colour_string(rsust, 1), itosym1(rsust), _determine_colour_string(rmuta, 1), itosym1(rmuta), + _determine_colour_string(rrott, 1), itosym1(rrott), _determine_colour_string(rslow, 1), itosym1(rslow)); cols.add_formatted(0, buf, false); -- cgit v1.2.3-54-g00ecf