summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-15 19:00:18 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-15 23:46:54 -0500
commite2e53f867209b1ae9d9923b9e042796d91677363 (patch)
tree126873d4aad5dcff299719c42b9462ee1c6d807e /crawl-ref/source/output.cc
parentec62dd87b6bbe338aa50dc503db2f999c2d352c3 (diff)
downloadcrawl-ref-e2e53f867209b1ae9d9923b9e042796d91677363.tar.gz
crawl-ref-e2e53f867209b1ae9d9923b9e042796d91677363.zip
Delay adjustment for sickness
Store total time to recovery instead of turns in you.disease, change you.disease to an integer, update tags and bump TAG_MINOR_VERSION accordingly.
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index 82e4fbaecc..d498d043ef 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -744,7 +744,8 @@ static void _get_status_lights(std::vector<status_light>& out)
if (you.disease)
{
- int color = _bad_ench_colour( you.disease, 40, 120 );
+ int color = _bad_ench_colour( you.disease, 40 * BASELINE_DELAY,
+ 120 * BASELINE_DELAY);
out.push_back(status_light(color, "Sick"));
}
@@ -2204,8 +2205,10 @@ std::string _status_mut_abilities()
if (you.disease)
{
- std::string help = (you.disease > 120) ? "badly " :
- (you.disease > 40) ? ""
+ int high = 120 * BASELINE_DELAY;
+ int low = 40 * BASELINE_DELAY;
+ std::string help = (you.disease > high) ? "badly " :
+ (you.disease > low) ? ""
: "mildly ";
help += "diseased";