diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-05 17:03:47 -0700 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-06 09:58:17 -0700 |
commit | cc787a9b12ac36ad19dbca1b35a3f826a17761ab (patch) | |
tree | d76938a380bb5e71ff736fc6bb287ca71cac87c0 /crawl-ref/source/status.cc | |
parent | 0491d15626ac0e2d6da8e84dd648cf54759d4f4e (diff) | |
download | crawl-ref-cc787a9b12ac36ad19dbca1b35a3f826a17761ab.tar.gz crawl-ref-cc787a9b12ac36ad19dbca1b35a3f826a17761ab.zip |
Show lethal poisoning in dark red properly.
Diffstat (limited to 'crawl-ref/source/status.cc')
-rw-r--r-- | crawl-ref/source/status.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/status.cc b/crawl-ref/source/status.cc index e34d867de9..84d907ed72 100644 --- a/crawl-ref/source/status.cc +++ b/crawl-ref/source/status.cc @@ -206,9 +206,9 @@ static void _reset_status_info(status_info* inf) static int _bad_ench_colour(int lvl, int orange, int red) { - if (lvl > red) + if (lvl >= red) return RED; - else if (lvl > orange) + else if (lvl >= orange) return LIGHTRED; return YELLOW; @@ -751,7 +751,7 @@ static void _describe_glow(status_info* inf) { inf->light_colour = DARKGREY; if (cont > 1) - inf->light_colour = _bad_ench_colour(cont, 2, 3); + inf->light_colour = _bad_ench_colour(cont, 3, 4); if (cont > 1 #if TAG_MAJOR_VERSION == 34 || you.species != SP_DJINNI @@ -909,7 +909,7 @@ static void _describe_rotting(status_info* inf) { if (you.rotting) { - inf->light_colour = _bad_ench_colour(you.rotting, 4, 8); + inf->light_colour = _bad_ench_colour(you.rotting, 5, 9); inf->light_text = "Rot"; } |