a penalty similar to the one when wearing a buckler and accuracy is lowered. I'm not sure about the numbers - they'll have to be tweaked a bit, I guess. Also fix possibility to drift out of net.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2756 c06c8d41-db1a-0410-9941-cceddc491573
YPALSPBPRHBZ6AA7Q2JVYWM53XIPB536EJGHUMESY4GKF4XFILZQC
ZCRK2DJ5VKECRQXZTWT4NUDL2VT5ZHUK7NT6NQPLRJ56TDX5PJSAC
4GFCF6N3MZSCHUB77Z3SQYJ3FYR5N3VBW2CGWANLJ74O5FEQH3CQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
BRGAZR5AXWC2IALBVXO5SB354IRQEIRHSK55RZPGFI4AGIOD4LUQC
X76YXE6RFL7QY5WL6MSSS44WHVA5FQMDQY3XTYP2UL6UZB4E6XMQC
speed_base = speed_base * speed_adjust / 100;
speed_min = speed_min * speed_adjust / 100;
}
// do the same when trying to shoot while held in a net
if (you.attribute[ATTR_HELD]) // only for blowguns
{
int speed_adjust = 105; // analogous to buckler and one-handed weapon
speed_adjust -= ((speed_adjust - 100) * 5 / 10)
* you.skills[SK_THROWING] / 27;
// also reduce the speed cap.
mpr("You cannot shoot anything while held in a net!");
break;
const item_def *weapon = you.weapon();
if (!weapon || !is_range_weapon(*weapon))
{
mpr("You cannot throw anything while held in a net!");
break;
}
else if (weapon->sub_type != WPN_BLOWGUN)
{
mprf("You cannot shoot with your %s while held in a net!",
weapon->name(DESC_BASENAME).c_str());
break;
}
// else shooting is possible