summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-26 10:39:39 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-26 10:39:39 +0000
commit61cae4a761c2f72cda44ae269c7007b37a0c14a7 (patch)
treefec8ec71ca7ca6eebd9d48881bc5ee3fe27d04c1 /crawl-ref/source/food.cc
parentd4acdf4a6a4b73607d58714a66efd372674adb56 (diff)
downloadcrawl-ref-61cae4a761c2f72cda44ae269c7007b37a0c14a7.tar.gz
crawl-ref-61cae4a761c2f72cda44ae269c7007b37a0c14a7.zip
Misc. minor cleanups. (Yes, a huge amount of them but still...)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r--crawl-ref/source/food.cc37
1 files changed, 19 insertions, 18 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc
index 81c2d16a18..07e8740533 100644
--- a/crawl-ref/source/food.cc
+++ b/crawl-ref/source/food.cc
@@ -220,12 +220,12 @@ static bool _find_butchering_implement( bool fallback )
{
mpr("Switching to a butchering implement.");
wield_weapon( true, i, false );
- return true;
+ return (true);
}
}
if (!fallback)
- return false;
+ return (false);
// If we didn't swap above, then we still can't cut...let's call
// wield_weapon() in the "prompt the user" way...
@@ -327,7 +327,7 @@ static bool _butcher_corpse(int corpse_id, bool force_butcher = false)
}
you.turn_is_over = true;
- return true;
+ return (true);
}
static void _terminate_butchery(bool wpn_switch, bool removed_gloves,
@@ -685,9 +685,10 @@ static bool _userdef_eat_food()
bool ret = clua.callfn("c_eat", 2, 0);
if (!ret && clua.error.length())
mpr(clua.error.c_str());
- return ret;
+
+ return (ret);
#else
- return false;
+ return (false);
#endif
}
@@ -2024,7 +2025,7 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg, bool reqid,
{
if (!suppress_msg)
mpr("Blech - you need blood!");
- return false;
+ return (false);
}
int vorous = _player_likes_food_type(kindof_thing);
@@ -2105,37 +2106,37 @@ bool can_ingest(int what_isit, int kindof_thing, bool suppress_msg, bool reqid,
{
if (!suppress_msg)
mpr("Urks, you're a herbivore!");
- return false;
+ return (false);
}
- return true;
+ return (true);
case POT_WATER:
if (you.species == SP_VAMPIRE)
{
if (!suppress_msg)
mpr("Blech - you need blood!");
- return false;
+ return (false);
}
- return true;
+ return (true);
case POT_PORRIDGE:
if (you.species == SP_VAMPIRE)
{
if (!suppress_msg)
mpr("Blech - you need blood!");
- return false;
+ return (false);
}
else if (ur_carnivorous)
{
if (!suppress_msg)
mpr("Sorry, you're a carnivore.");
- return false;
+ return (false);
}
default:
- return true;
+ return (true);
}
- // other object types are set to return false for now until
+ // Other object types are set to return false for now until
// someone wants to recode the eating code to permit consumption
- // of things other than just food
+ // of things other than just food.
default:
return (false);
}
@@ -2263,13 +2264,13 @@ static bool _vampire_consume_corpse(const int slot, bool invent)
if (!mons_has_blood(corpse.plus))
{
mpr( "There is no blood in this body!" );
- return false;
+ return (false);
}
if (food_is_rotten(corpse))
{
mpr("It's not fresh enough.");
- return false;
+ return (false);
}
// The delay for eating a chunk (mass 1000) is 2
@@ -2282,7 +2283,7 @@ static bool _vampire_consume_corpse(const int slot, bool invent)
start_delay( DELAY_FEED_VAMPIRE, 1 + chunk_amount/2,
(int) invent, slot );
- return true;
+ return (true);
}
static void _heal_from_food(int hp_amt, int mp_amt, bool unrot,