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

	<CombatExtended.AmmoCategoryDef>
		<defName>IronArrow</defName>
		<label>iron arrow</label>
		<labelShort>iron</labelShort>
		<description>The arrow head is made from iron to enhance armor penetration.</description>
		<advanced>true</advanced>
	</CombatExtended.AmmoCategoryDef>
	
	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoArrowBase">
		<defName>Ammo_Arrow_Iron</defName>
		<label>arrow (iron)</label>
		<graphicData>
			<texPath>Things/Ammo/Neolithic/Arrow/Iron</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.019</Mass>
		</statBases>
		<ammoClass>IronArrow</ammoClass>
	</ThingDef>			
						
	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoGreatArrowBase">
		<defName>Ammo_GreatArrow_Iron</defName>
		<label>great arrow (iron)</label>
		<graphicData>
			<texPath>Things/Ammo/Neolithic/GreatArrow/Iron</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.055</Mass>
		</statBases>
		<ammoClass>IronArrow</ammoClass>
	</ThingDef>

	<ThingDef ParentName="BaseArrowProjectile">
		<defName>Projectile_Arrow_Iron</defName>
		<label>arrow (iron)</label>
		<graphicData>
			<texPath>Things/Projectile/Arrows/Arrow_Iron</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>7</damageAmountBase>
			<armorPenetrationSharp>0.45</armorPenetrationSharp>
			<armorPenetrationBlunt>3.02</armorPenetrationBlunt>
			<preExplosionSpawnChance>0.666</preExplosionSpawnChance><!-- 29.94 arrows per resource -->
			<preExplosionSpawnThingDef>Ammo_Arrow_Iron</preExplosionSpawnThingDef>
		</projectile>
		<modExtensions>
			<li Class="ProjectileImpactFX.EffectProjectileExtension">
				<AutoAssign>false</AutoAssign>
				<CreateTerrainEffects>true</CreateTerrainEffects>
				<StuckProjectileFleckDef>Fleck_CELandedArrow_Iron</StuckProjectileFleckDef>
				<StuckProjectileFleckSize>0.65</StuckProjectileFleckSize>
			</li>
		</modExtensions>
	</ThingDef>
	
	<ThingDef ParentName="BaseStreamlinedArrowProjectile">
		<defName>Projectile_StreamlinedArrow_Iron</defName>
		<label>streamlined arrow (iron)</label>
		<graphicData>
			<texPath>Things/Projectile/Arrows/Arrow_Iron</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>9</damageAmountBase>
			<armorPenetrationSharp>0.9</armorPenetrationSharp>
			<armorPenetrationBlunt>5.3</armorPenetrationBlunt>
			<preExplosionSpawnChance>0.6</preExplosionSpawnChance>
			<preExplosionSpawnThingDef>Ammo_Arrow_Iron</preExplosionSpawnThingDef>
		</projectile>
		<modExtensions>
			<li Class="ProjectileImpactFX.EffectProjectileExtension">
				<AutoAssign>false</AutoAssign>
				<CreateTerrainEffects>true</CreateTerrainEffects>
				<StuckProjectileFleckDef>Fleck_CELandedArrow_Iron</StuckProjectileFleckDef>
				<StuckProjectileFleckSize>0.65</StuckProjectileFleckSize>
			</li>
		</modExtensions>
	</ThingDef>
	
	<ThingDef ParentName="BaseGreatArrowProjectile">
		<defName>Projectile_GreatArrow_Iron</defName>
		<label>great arrow (iron)</label>
		<graphicData>
			<texPath>Things/Projectile/Arrows/Arrow_Iron</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>10</damageAmountBase>
			<armorPenetrationBlunt>3.18</armorPenetrationBlunt>
			<armorPenetrationSharp>1.8</armorPenetrationSharp>
			<preExplosionSpawnChance>0.6</preExplosionSpawnChance><!-- 25 arrows per resource -->
			<preExplosionSpawnThingDef>Ammo_GreatArrow_Iron</preExplosionSpawnThingDef>
		</projectile>
		<modExtensions>
			<li Class="ProjectileImpactFX.EffectProjectileExtension">
				<AutoAssign>false</AutoAssign>
				<CreateTerrainEffects>true</CreateTerrainEffects>
				<StuckProjectileFleckDef>Fleck_CELandedArrow_Iron</StuckProjectileFleckDef>
				<StuckProjectileFleckSize>0.75</StuckProjectileFleckSize>
			</li>
		</modExtensions>
	</ThingDef>

	<!-- Recipes -->

	<RecipeDef ParentName="AmmoRecipeNeolithicBase">
		<defName>MakeAmmo_Arrow_Iron</defName>
		<label>make iron arrows x10</label>
		<description>Craft 10 iron arrows.</description>
		<jobString>Making iron arrows.</jobString>
		<workAmount>300</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>WoodLog</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>DankPyon_IronIngot</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>WoodLog</li>
				<li>DankPyon_IronIngot</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Arrow_Iron>10</Ammo_Arrow_Iron>
		</products>
	</RecipeDef>
						
	<RecipeDef ParentName="AmmoRecipeNeolithicBase">
		<defName>MakeAmmo_GreatArrow_Iron</defName>
		<label>make iron great arrows x10</label>
		<description>Craft 10 iron great arrows.</description>
		<jobString>Making iron great arrows.</jobString>
		<workAmount>400</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>WoodLog</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>DankPyon_IronIngot</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>WoodLog</li>
				<li>DankPyon_IronIngot</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_GreatArrow_Iron>10</Ammo_GreatArrow_Iron>
		</products>
	</RecipeDef>

</Defs>