summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-22 15:58:36 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-22 15:58:36 +0000
commit13abff271666dcc566102311c3b9d237ea04f933 (patch)
tree499b2bb9a9f91a7b201f8e0102dc2befa5bcb057 /crawl-ref/source/ouch.cc
parent5c8009179acad07659f28a6995438b72a7a6c183 (diff)
downloadcrawl-ref-13abff271666dcc566102311c3b9d237ea04f933.tar.gz
crawl-ref-13abff271666dcc566102311c3b9d237ea04f933.zip
* Tweak Xom's ideas about what makes a funny or boring death.
* Add another option (*sigh*) covering whether W=T and P=R. (Defaults to false.) * Various spacing and comment fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9675 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 86dda18464..0a071ee46c 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -443,12 +443,14 @@ static bool _expose_invent_to_element(beam_type flavour, int strength)
|| target_class == OBJ_FOOD
&& you.inv[i].base_type == OBJ_CORPSES)
{
+ // Conservation doesn't help against harpies stealing food.
if (flavour != BEAM_STEAL_FOOD
&& player_item_conserve() && !one_chance_in(10))
{
continue;
}
+ // Loop through all items in the stack.
for (int j = 0; j < you.inv[i].quantity; ++j)
{
if (x_chance_in_y(strength, 100))
@@ -470,6 +472,7 @@ static bool _expose_invent_to_element(beam_type flavour, int strength)
if (!num_dest)
return (false);
+ // Message handled elsewhere.
if (flavour == BEAM_STEAL_FOOD)
return (true);