diff options
author | Neil Moore <neil@s-z.org> | 2014-07-05 14:19:07 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-05 15:07:13 -0400 |
commit | ea682fd60d41980d04af1c0640a5f8a9a558d1ba (patch) | |
tree | 49cd720409dd4d97e227c3830b3cf527aaa52382 /crawl-ref/source/food.cc | |
parent | a413f1dc8091eb8e8fa15e68c9addb3b2b680968 (diff) | |
download | crawl-ref-ea682fd60d41980d04af1c0640a5f8a9a558d1ba.tar.gz crawl-ref-ea682fd60d41980d04af1c0640a5f8a9a558d1ba.zip |
Track eating in action counts.
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index cc32342999..4d249b3f5a 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -831,6 +831,7 @@ bool eat_item(item_def &food) if (_vampire_consume_corpse(link, in_inventory(food))) { + count_action(CACT_EAT, -1); you.turn_is_over = true; return true; } @@ -849,6 +850,7 @@ bool eat_item(item_def &food) you.turn_is_over = true; + count_action(CACT_EAT, food.sub_type); if (in_inventory(food)) dec_inv_item_quantity(link, 1); else |