diff options
author | elliptic <hyperelliptical@gmail.com> | 2014-04-07 13:55:04 -0400 |
---|---|---|
committer | elliptic <hyperelliptical@gmail.com> | 2014-04-07 13:56:46 -0400 |
commit | da4a0999e32825c045062dfcbb2887e6dd0bc3e3 (patch) | |
tree | fae492efd30f8394c1be5955a218928bf33c4205 /crawl-ref/source/output.cc | |
parent | d827497410ed5daaedc76ef5a7811998f3c3b6e1 (diff) | |
download | crawl-ref-da4a0999e32825c045062dfcbb2887e6dd0bc3e3.tar.gz crawl-ref-da4a0999e32825c045062dfcbb2887e6dd0bc3e3.zip |
Let @ (and lua) display negative values for poison_survival().
So that players have a way of guessing whether heal wounds might be enough
to survive.
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index da0e4c117c..1eaf30be46 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -701,7 +701,7 @@ static void _print_stats_hp(int x, int y) EP_Bar.draw(19, y, you.hp, you.hp_max); else #endif - HP_Bar.draw(19, y, you.hp, you.hp_max, false, you.hp - poison_survival()); + HP_Bar.draw(19, y, you.hp, you.hp_max, false, you.hp - max(0, poison_survival())); } static short _get_stat_colour(stat_type stat) |