summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 9b3515fa0f..e306963512 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2046,6 +2046,21 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
// Javelins train throwing quickly.
exercise(SK_RANGED_COMBAT, 1 + coinflip());
break;
+ case MI_THROWING_NET:
+ // Nets use throwing and T&D skills
+ // They don't do any damage!
+ baseDam = 0;
+ exDamBonus = 0;
+
+ // but accuracy is important for this one
+ baseHit = 1;
+ exHitBonus += (skill_bump(SK_RANGED_COMBAT) * 7 / 2);
+ // Adjust for strength and dex.
+ exHitBonus = dex_adjust_thrown_tohit(exHitBonus);
+
+ // Nets train throwing
+ exercise(SK_RANGED_COMBAT, 1);
+ break;
}
}
@@ -2083,6 +2098,10 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
pbolt.rangeMax = pbolt.range;
}
+ else if (wepType == MI_THROWING_NET)
+ {
+ pbolt.rangeMax = pbolt.range = 2 + player_size(PSIZE_BODY);
+ }
else
{
pbolt.range = 12;