From 06c5d3d75459c2f78297095550311e8aac37af80 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 8 Feb 2009 19:13:30 +0000 Subject: Clean up nutrition-related functions a bit, and handle non-vampires' nutrition from blood potions more consistently. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8983 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 7da768afee..57f1809db3 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -412,9 +412,9 @@ bool player_likes_water(bool permanently) return (player_can_swim() || (!permanently && beogh_water_walk())); } -bool player_is_swimming(void) +bool player_is_swimming() { - return you.swimming(); + return (you.swimming()); } bool player_under_penance(void) @@ -1289,6 +1289,11 @@ bool player_can_smell() return (you.species != SP_MUMMY); } +bool player_likes_chunks() +{ + return (you.omnivorous() || player_mutation_level(MUT_CARNIVOROUS) > 0); +} + // If temp is set to false, temporary sources or resistance won't be counted. int player_res_fire(bool calc_unid, bool temp, bool items) { @@ -4415,7 +4420,7 @@ bool extrinsic_amulet_effect(jewellery_type amulet) bool wearing_amulet(jewellery_type amulet, bool calc_unid) { - if ( extrinsic_amulet_effect(amulet) ) + if (extrinsic_amulet_effect(amulet)) return (true); if (you.equip[EQ_AMULET] == -1) -- cgit v1.2.3-54-g00ecf