summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/status.cc
diff options
context:
space:
mode:
authorelliptic <hyperelliptical@gmail.com>2014-03-29 05:04:18 -0400
committerelliptic <hyperelliptical@gmail.com>2014-03-29 05:14:12 -0400
commite5bc28c969f94bf86bcb1e9584b34d3e0d6a30b3 (patch)
tree9127e278ff713c08d25cd3bb2e87b4f6dc6665e1 /crawl-ref/source/status.cc
parent969c5a3fad38b1fcece47d660772a495439330d3 (diff)
downloadcrawl-ref-e5bc28c969f94bf86bcb1e9584b34d3e0d6a30b3.tar.gz
crawl-ref-e5bc28c969f94bf86bcb1e9584b34d3e0d6a30b3.zip
Give players the exact poison survival prediction value, through @ or lua.
This addresses issues with different sizes of HP bars giving this value to different amounts of accuracy (mainly a console vs webtiles thing, I believe). The extra accuracy is barely useful at all (especially as it is sometimes off by 1 anyway), but giving it to the player doesn't seem like a problem - we just don't want to waste space in the main display. Displays as "You are seriously poisoned (50 -> 19)." in the @ status display. Also replaced you.poisoning() with you.poison_survival() in the player lua, since that is the value we are displaying everywhere else.
Diffstat (limited to 'crawl-ref/source/status.cc')
-rw-r--r--crawl-ref/source/status.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/status.cc b/crawl-ref/source/status.cc
index 7fee1f5d36..1f9703bdc5 100644
--- a/crawl-ref/source/status.cc
+++ b/crawl-ref/source/status.cc
@@ -841,7 +841,7 @@ static void _describe_poison(status_info* inf)
(pois_perc > 35) ? "quite"
: "mildly";
inf->short_text = adj + " poisoned";
- inf->long_text = "You are " + inf->short_text + ".";
+ inf->long_text = "You are " + inf->short_text + make_stringf(" (%d -> %d).", you.hp, poison_survival());
}
static void _describe_speed(status_info* inf)