diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-18 13:23:41 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-18 13:23:41 -0600 |
commit | 2a6fe1009197349537396b5e9f208f1db4e48c8a (patch) | |
tree | 78580e72e55b1c464354b3f03f81291734ad1e2b /crawl-ref/source/describe.cc | |
parent | 29dcbc0ab970bffbd82aa0bb97ad4d1618cd240e (diff) | |
download | crawl-ref-2a6fe1009197349537396b5e9f208f1db4e48c8a.tar.gz crawl-ref-2a6fe1009197349537396b5e9f208f1db4e48c8a.zip |
Display rotting resistance in-game.
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index c2495e71f9..05ca6958d1 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -2622,6 +2622,8 @@ static const char* _get_resist_name(mon_resist_flags res_type) return "cold"; case MR_RES_ACID: return "acid"; + case MR_RES_ROTTING: + return "rotting"; default: return "buggy resistance"; } @@ -2642,8 +2644,9 @@ static std::string _monster_stat_description(const monsters& mon) ? get_mons_class_resists(mon.type) : get_mons_resists(&mon); const mon_resist_flags resists[] = { - MR_RES_ELEC, MR_RES_POISON, MR_RES_FIRE, - MR_RES_STEAM, MR_RES_COLD, MR_RES_ACID + MR_RES_ELEC, MR_RES_POISON, MR_RES_FIRE, + MR_RES_STEAM, MR_RES_COLD, MR_RES_ACID, + MR_RES_ROTTING }; std::vector<std::string> extreme_resists; @@ -3635,7 +3638,7 @@ void describe_god( god_type which_god, bool give_title ) _print_final_god_abil_desc(which_god, buf, ABIL_ZIN_SUSTENANCE); } - const char *how = (you.piety >= 150) ? "carefully" : // res mut. 3 + const char *how = (you.piety >= 150) ? "carefully" : (you.piety >= 100) ? "often" : (you.piety >= 50) ? "sometimes" : "occasionally"; @@ -3646,7 +3649,7 @@ void describe_god( god_type which_god, bool give_title ) else if (which_god == GOD_SHINING_ONE) { have_any = true; - const char *how = (you.piety >= 150) ? "carefully" : // l.p. 3 + const char *how = (you.piety >= 150) ? "carefully" : (you.piety >= 100) ? "often" : (you.piety >= 50) ? "sometimes" : "occasionally"; |