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/l_you.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/l_you.cc')
-rw-r--r-- | crawl-ref/source/l_you.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/l_you.cc b/crawl-ref/source/l_you.cc index b8396e101d..dae39c55ce 100644 --- a/crawl-ref/source/l_you.cc +++ b/crawl-ref/source/l_you.cc @@ -95,9 +95,9 @@ LUARET2(you_hp, number, you.hp, you.hp_max) LUARET2(you_mp, number, you.magic_points, you.max_magic_points) LUARET1(you_hunger, number, you.hunger_state) LUARET1(you_hunger_name, string, hunger_level()) -LUARET2(you_strength, number, you.strength(), you.max_strength()) -LUARET2(you_intelligence, number, you.intel(), you.max_intel()) -LUARET2(you_dexterity, number, you.dex(), you.max_dex()) +LUARET2(you_strength, number, you.strength(false), you.max_strength()) +LUARET2(you_intelligence, number, you.intel(false), you.max_intel()) +LUARET2(you_dexterity, number, you.dex(false), you.max_dex()) LUARET1(you_xl, number, you.experience_level) LUARET1(you_xl_progress, number, get_exp_progress()) LUARET1(you_skill_progress, number, |