summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/throw.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-16 19:54:16 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-04-27 17:02:32 -0600
commitec5b00754ba4caf6cd637a454de3f9989dd7ea0f (patch)
tree60226f3aad2146ebcb59d04fc8a079ad2a1a63c2 /crawl-ref/source/throw.cc
parentdcc5a8e748736d31d67d54582a96f8b88ec2dd54 (diff)
downloadcrawl-ref-ec5b00754ba4caf6cd637a454de3f9989dd7ea0f.tar.gz
crawl-ref-ec5b00754ba4caf6cd637a454de3f9989dd7ea0f.zip
Basic ranged attack functionality.
Moves a lot of code from melee_attack to attack to be shared with ranged weapons. Handles the entire basic attack process - checks to-hit, calculates damage, prints messages as necessary. TODO: attack delay, brands.
Diffstat (limited to 'crawl-ref/source/throw.cc')
-rw-r--r--crawl-ref/source/throw.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/crawl-ref/source/throw.cc b/crawl-ref/source/throw.cc
index 29c1c0cc06..f1489991ce 100644
--- a/crawl-ref/source/throw.cc
+++ b/crawl-ref/source/throw.cc
@@ -1053,21 +1053,6 @@ bool mons_throw(monster* mons, bolt &beam, int msl, bool teleport)
_throw_noise(mons, beam, item);
- // [dshaligram] When changing bolt names here, you must edit
- // hiscores.cc (scorefile_entry::terse_missile_cause()) to match.
- if (projected == LRET_LAUNCHED)
- {
- beam.aux_source = make_stringf("Shot with a%s %s by %s",
- (is_vowel(beam.name[0]) ? "n" : ""), beam.name.c_str(),
- mons->name(DESC_A).c_str());
- }
- else
- {
- beam.aux_source = make_stringf("Hit by a%s %s thrown by %s",
- (is_vowel(beam.name[0]) ? "n" : ""), beam.name.c_str(),
- mons->name(DESC_A).c_str());
- }
-
// decrease inventory
bool really_returns;
if (returning && !one_chance_in(mons_power(mons->type) + 3))