summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-18 13:23:41 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-18 13:23:41 -0600
commit2a6fe1009197349537396b5e9f208f1db4e48c8a (patch)
tree78580e72e55b1c464354b3f03f81291734ad1e2b /crawl-ref/source/output.cc
parent29dcbc0ab970bffbd82aa0bb97ad4d1618cd240e (diff)
downloadcrawl-ref-2a6fe1009197349537396b5e9f208f1db4e48c8a.tar.gz
crawl-ref-2a6fe1009197349537396b5e9f208f1db4e48c8a.zip
Display rotting resistance in-game.
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc3
1 files changed, 3 insertions, 0 deletions
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<formatted_string> _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<formatted_string> _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<formatted_string> _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);