From 612b5c431864991b19105694131ba1314012e631 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 27 May 2008 11:12:31 +0000 Subject: Some spacing clean-up in the tutorial code (thanks for the additions, Matthew!) and fix BR 1974056 (wrong colouring of tutorial skills information). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5293 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/food.cc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/food.cc') diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index b759a82cd8..ab16de1dc8 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -341,7 +341,7 @@ static bool _have_corpses_in_pack(bool remind) } if (num == 0) - return false; + return (false); std::string verb = (you.species == SP_VAMPIRE && you.experience_level > 5) ? "bottle" : "butcher"; @@ -361,16 +361,20 @@ static bool _have_corpses_in_pack(bool remind) std::ostringstream text; if (remind) + { text << "You might want to also " << verb << " the " << noun << " in your pack."; + } else + { text << "If you dropped the " << noun << " in your pack on solid " << "ground or into shallow water then you could " << verb << " " << pronoun << "."; + } mpr(text.str().c_str()); - return true; + return (true); } @@ -443,9 +447,11 @@ bool butchery(int which_corpse) if (num_corpses == 0) { if (!_have_corpses_in_pack(false)) + { mprf("There isn't anything to %s here.", (you.species == SP_VAMPIRE && you.experience_level > 5) ? "bottle" : "butcher"); + } return (false); } @@ -580,11 +586,13 @@ bool butchery(int which_corpse) if (success) + { // Remind player of corpses in pack that could be butchered or // bottled. _have_corpses_in_pack(true); + } - return success; + return (success); } // end butchery() void lua_push_items(lua_State *ls, int link) -- cgit v1.2.3-54-g00ecf