summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-11-21 04:38:01 -0600
committerJesse Luehrs <doy@tozt.net>2009-11-21 04:38:29 -0600
commit2f4955f77e7de5349b7e7f889397949e64506f1d (patch)
tree89442f14149c68eb23b8ba19424dab6e3169db43 /crawl-ref/source/item_use.cc
parent0f564ac5ed46902bd3a7b733c01db8842643d3ad (diff)
downloadcrawl-ref-2f4955f77e7de5349b7e7f889397949e64506f1d.tar.gz
crawl-ref-2f4955f77e7de5349b7e7f889397949e64506f1d.zip
give the "passes through" message for penetration on initial hit
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index c69c63a7f2..2da1279d17 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -1747,11 +1747,6 @@ static bool _item_penetrates_victim(const bolt &beam, const actor *victim,
used = 0;
- if (!beam.is_tracer && you.can_see(victim))
- {
- mprf("The %s passes through %s!", beam.name.c_str(),
- victim->name(DESC_NOCAP_THE).c_str());
- }
return (true);
}
@@ -2123,8 +2118,10 @@ bool setup_missile_beam(const actor *agent, bolt &beam, item_def &item,
beam.damage_funcs.push_back(_silver_damages_victim);
if (poisoned)
beam.hit_funcs.push_back(_poison_hit_victim);
- if (penetrating)
+ if (penetrating) {
beam.range_funcs.push_back(_item_penetrates_victim);
+ beam.hit_verb = "passes through";
+ }
if (reaping)
beam.hit_funcs.push_back(_reaping_hit_victim);
if (disperses)