summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-act.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2009-12-29 17:56:26 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2009-12-29 17:56:38 +0530
commitcfdb6e14f51f38e104444acf22e17706fcda104d (patch)
treecc5b352f27be1e10bf258f72910ecbc8f9744bda /crawl-ref/source/mon-act.cc
parentfe97e90bb05bca87d2df81bf3a2d7ded964fd42c (diff)
downloadcrawl-ref-cfdb6e14f51f38e104444acf22e17706fcda104d.tar.gz
crawl-ref-cfdb6e14f51f38e104444acf22e17706fcda104d.zip
Add merfolk javelineers to the Shoals, add descriptions for the three new merfolk types.
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r--crawl-ref/source/mon-act.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc
index 3fc1cea5a0..31d1c990a7 100644
--- a/crawl-ref/source/mon-act.cc
+++ b/crawl-ref/source/mon-act.cc
@@ -1139,7 +1139,12 @@ static bool _mons_throw(struct monsters *monster, struct bolt &pbolt,
{
const mon_attack_def attk = mons_attack_spec(monster, 0);
if (attk.type == AT_SHOOT)
- ammoDamBonus += random2avg(attk.damage, 2);
+ {
+ if (projected == LRET_THROWN && wepClass == OBJ_MISSILES)
+ ammoHitBonus += random2avg(attk.damage, 2);
+ else
+ ammoDamBonus += random2avg(attk.damage, 2);
+ }
}
if (projected == LRET_THROWN)