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-05-27 11:12:31 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-27 11:12:31 +0000
commit612b5c431864991b19105694131ba1314012e631 (patch)
treed5603abb33e3d28c6af8091e6e44cc328f374535 /crawl-ref/source/food.cc
parentddb3328fdce3844daff10045995f8ee2c097fff0 (diff)
downloadcrawl-ref-612b5c431864991b19105694131ba1314012e631.tar.gz
crawl-ref-612b5c431864991b19105694131ba1314012e631.zip
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
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r--crawl-ref/source/food.cc14
1 files changed, 11 insertions, 3 deletions
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)