diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-15 12:42:37 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-15 12:42:37 +0000 |
commit | 94ecb28d87ead9a3d77f2bbecc59eb8cc978d95c (patch) | |
tree | 772de64bfd8b558a1ee04307191c5fa8a9177001 /crawl-ref/source/food.cc | |
parent | 78db5db504f491e368f4fdef6dff4976cb003951 (diff) | |
download | crawl-ref-94ecb28d87ead9a3d77f2bbecc59eb8cc978d95c.tar.gz crawl-ref-94ecb28d87ead9a3d77f2bbecc59eb8cc978d95c.zip |
Fix tutorial message about gaining a skill being shown outside tutorial.
Move damage reduction for petrified monsters out of the stab check and
into the general damage calculation. Still 1/3.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5846 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index 779faab8c9..5f69c4f1ec 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -786,10 +786,10 @@ bool eat_food(bool run_hook, int slot) if (igrd[you.x_pos][you.y_pos] != NON_ITEM && slot == -1) { const int res = eat_from_floor(); - if ( res == 1 ) - return true; - if ( res == -1 ) - return false; + if (res == 1) + return (true); + if (res == -1) + return (false); } return (prompt_eat_from_inventory(slot)); |