diff options
author | elliptic <hyperelliptical@gmail.com> | 2012-09-20 00:08:21 -0400 |
---|---|---|
committer | elliptic <hyperelliptical@gmail.com> | 2012-09-20 00:10:56 -0400 |
commit | 5d399064b6427ae31d3ce39e44d9526da9d71a68 (patch) | |
tree | 0d3025581a57ff615a603907d0dcd941c6fc5290 /crawl-ref/source/dbg-asrt.cc | |
parent | ad5ac8db5d51f284ba5a119c9e8da08bae042386 (diff) | |
download | crawl-ref-5d399064b6427ae31d3ce39e44d9526da9d71a68.tar.gz crawl-ref-5d399064b6427ae31d3ce39e44d9526da9d71a68.zip |
Fix stats being capped below at zero in situations where they shouldn't be.
Specifically, for checking whether a stat is drained and for output.
You can now get the uncapped stats with you.strength(false), you.intel(false),
and you.dex(false).
Diffstat (limited to 'crawl-ref/source/dbg-asrt.cc')
-rw-r--r-- | crawl-ref/source/dbg-asrt.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/dbg-asrt.cc b/crawl-ref/source/dbg-asrt.cc index a25ebd86a8..8645cd507e 100644 --- a/crawl-ref/source/dbg-asrt.cc +++ b/crawl-ref/source/dbg-asrt.cc @@ -139,8 +139,9 @@ static void _dump_player(FILE *file) you.magic_points, you.max_magic_points, you.hp_max_temp, you.mp_max_perm); fprintf(file, "Stats: %d (%d) %d (%d) %d (%d)\n", - you.strength(), you.max_strength(), you.intel(), you.max_intel(), - you.dex(), you.max_dex()); + you.strength(false), you.max_strength(), + you.intel(false), you.max_intel(), + you.dex(false), you.max_dex()); fprintf(file, "Position: %s, god:%s (%d), turn_is_over: %d, " "banished: %d\n", debug_coord_str(you.pos()).c_str(), |