diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-10-06 19:38:14 -0500 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-10-06 19:38:14 -0500 |
commit | 700ebc8adcd32370d5cc06beab433210b04e8060 (patch) | |
tree | 167aab25a1e298d0689ecf50258e60dff58c18a6 /crawl-ref/source/describe.cc | |
parent | 55ba0f6e4d8fd62ea1011426df0499606401006b (diff) | |
download | crawl-ref-700ebc8adcd32370d5cc06beab433210b04e8060.tar.gz crawl-ref-700ebc8adcd32370d5cc06beab433210b04e8060.zip |
Simplify and display resistances for (very) ugly things.
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 7c52658f6f..fc76e812e2 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -2598,10 +2598,12 @@ static std::string _monster_stat_description(const monsters& mon) std::ostringstream result; // Don't leak or duplicate resistance information for ghost demon - // monsters. + // monsters, except for (very) ugly things. const mon_resist_def resist = - mons_is_ghost_demon(mon.type) ? get_mons_class_resists(mon.type) - : get_mons_resists(&mon); + (mons_is_ghost_demon(mon.type) + && mon.type != MONS_UGLY_THING + && mon.type != MONS_VERY_UGLY_THING) + ? get_mons_class_resists(mon.type) : get_mons_resists(&mon); const mon_resist_flags resists[] = { MR_RES_ELEC, MR_RES_POISON, MR_RES_FIRE, |