<?xml version="1.0" encoding="UTF-8"?>
<Defs>

	<!-- Pilum-specific base (both ammo and weapon) -->
	<ThingDef ParentName="AmmoBase" Name="BaseWeaponAndAmmoNeolithic" Abstract="True">
		<equipmentType>Primary</equipmentType>
		<pathCost>10</pathCost>
		<graphicData>
			<onGroundRandomRotateAngle>35</onGroundRandomRotateAngle>
		</graphicData>
		<statBases>
			<MaxHitPoints>100</MaxHitPoints>
			<Flammability>1.0</Flammability>
			<DeteriorationRate>2</DeteriorationRate>
			<SellPriceFactor>0.5</SellPriceFactor>
		</statBases>
		<techLevel>Neolithic</techLevel>
		<menuHidden>False</menuHidden>
		<destroyOnDrop>False</destroyOnDrop>
		<weaponTags>
			<li>Neolithic</li>
		</weaponTags>
		<tradeTags>
			<li>WeaponRanged</li>
		</tradeTags>
		<weaponClasses>
			<li>Neolithic</li>
		</weaponClasses>
		<thingCategories>
			<li>WeaponsRanged</li>
		</thingCategories>
		<comps>
			<li>
				<compClass>CompEquippable</compClass>
			</li>
		</comps>
	</ThingDef>

	<!-- ========================== SPECIFICS ============================== -->

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="BaseWeaponAndAmmoNeolithic">
		<defName>Pila</defName>
		<label>javelins</label>
		<description>A throwing spear which may be thrown on its own or using an atlatl.</description>
		<graphicData>
			<texPath>Things/Ammo/Neolithic/Pilum</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
			<onGroundRandomRotateAngle>0</onGroundRandomRotateAngle>
		</graphicData>
		<soundInteract>Interact_BeatFire</soundInteract>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>1.5</ShotSpread>
			<SwayFactor>2.5</SwayFactor>
			<Bulk>4.25</Bulk>
			<Mass>2.00</Mass>
			<RangedWeapon_Cooldown>1</RangedWeapon_Cooldown>
			<MeleeCounterParryBonus>0.36</MeleeCounterParryBonus>
		</statBases>
		<equippedStatOffsets>
			<MeleeCritChance>0.17</MeleeCritChance>
			<MeleeParryChance>0.5</MeleeParryChance>
			<MeleeDodgeChance>0.57</MeleeDodgeChance>
		</equippedStatOffsets>
		<equippedAngleOffset>30</equippedAngleOffset>
		<stackLimit>25</stackLimit>
		<weaponTags>
			<li>NeolithicRangedHeavy</li>
			<li>CE_Pila</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
		<weaponClasses>
			<li>Ranged</li>
		</weaponClasses>
		<tradeability>All</tradeability>
		<verbs>
			<li Class="CombatExtended.VerbPropertiesCE">
				<verbClass>CombatExtended.Verb_ShootCEOneUse</verbClass>
				<hasStandardCommand>true</hasStandardCommand>
				<defaultProjectile>Pilum_Thrown</defaultProjectile>
				<warmupTime>0.8</warmupTime>
				<range>9</range>
				<!--<soundCast>Interact_BeatFire</soundCast>-->
			</li>
		</verbs>
		<tools>
			<li Class="CombatExtended.ToolCE">
				<label>shaft</label>
				<capacities>
					<li>Blunt</li>
				</capacities>
				<power>5</power>
				<cooldownTime>1.73</cooldownTime>
				<armorPenetrationBlunt>1.44</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>point</label>
				<capacities>
					<li>Stab</li>
				</capacities>
				<power>12</power>
				<cooldownTime>1.49</cooldownTime>
				<chanceFactor>1.5</chanceFactor>
				<armorPenetrationBlunt>1.44</armorPenetrationBlunt>
				<armorPenetrationSharp>0.58</armorPenetrationSharp>
				<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
			</li>
		</tools>
		<ammoClass>Javelin</ammoClass>
	</ThingDef>

</Defs>