<?xml version="1.0" encoding="utf-8"?>
<Patch>

	<!-- ========== Poison Dart ========== -->

	<Operation Class="PatchOperationAttributeSet">
		<xpath>Defs/ThingDef[defName="AB_WeaponPoisonDart"]</xpath>
		<attribute>ParentName</attribute>
		<value>BaseWeaponAndAmmoNeolithic</value>
	</Operation>

	<Operation Class="PatchOperationAttributeSet">
		<xpath>Defs/ThingDef[defName="AB_WeaponPoisonDart"]</xpath>
		<attribute>Class</attribute>
		<value>CombatExtended.AmmoDef</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="AB_WeaponPoisonDart"]/statBases/Mass</xpath>
		<value>
			<Mass>0.014</Mass>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>1.5</ShotSpread>
			<SwayFactor>2.5</SwayFactor>
			<Bulk>0.04</Bulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="AB_WeaponPoisonDart"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<verbClass>CombatExtended.Verb_ShootCEOneUse</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Projectile_Dart_Venom_AB</defaultProjectile>
					<warmupTime>0.8</warmupTime>
					<range>10</range>
					<!--<soundCast>Interact_BeatFire</soundCast>-->
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AB_WeaponPoisonDart"]</xpath>
		<value>
			<ammoClass>VenomArrow</ammoClass>
			<equippedAngleOffset>60</equippedAngleOffset>
			<stackLimit>50</stackLimit>			
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AB_WeaponPoisonDart"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>

</Patch>