diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-20 19:56:19 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-20 19:56:19 +0000 |
commit | 741f3db05f169b784e130a11e87f4485d6a679e4 (patch) | |
tree | 8d6004441e49d4158cd5ecf1a004944abc5b92d6 /crawl-ref/source/food.cc | |
parent | 131216891cbe3539a153395c83f74ac52c216d0a (diff) | |
download | crawl-ref-741f3db05f169b784e130a11e87f4485d6a679e4.tar.gz crawl-ref-741f3db05f169b784e130a11e87f4485d6a679e4.zip |
Expand restore_stat() to allow for more fine-grained constrol of stat
restoration; the amount to be restored can now be specified. Use this
where necessary.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4417 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index fa28e1f4de..eb8b08c58f 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -1286,7 +1286,7 @@ static void eating(unsigned char item_class, int item_type) break; case FOOD_ROYAL_JELLY: mpr("That royal jelly was delicious!"); - restore_stat(STAT_ALL, false); + restore_stat(STAT_ALL, 0, false); break; case FOOD_PIZZA: if (!SysEnv.crawl_pizza.empty() && !one_chance_in(3)) @@ -1793,12 +1793,7 @@ static void heal_from_food(int hp_amt, int mp_amt, bool unrot, } if (restore_str && you.strength < you.max_strength) - { - mpr("You feel your strength returning."); - you.strength++; - you.redraw_strength = true; - burden_change(); - } + restore_stat(STAT_STRENGTH, 1, false); calc_hp(); calc_mp(); |