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

	<!-- Tribalwear -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gunmar_Apparel_Tribal"]/statBases</xpath>
		<value>
			<Bulk>1</Bulk>
			<WornBulk>1</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName= "Gunmar_Apparel_Tribal"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>3</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<!-- Thick Pelt Armor -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gunmar_Apparel_ThickPeltArmor"]/statBases</xpath>
		<value>
			<Bulk>5</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName= "Gunmar_Apparel_ThickPeltArmor"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor>
			<ArmorRating_Blunt>1</ArmorRating_Blunt>
			<ArmorRating_Sharp>0.30</ArmorRating_Sharp>
		</value>
	</Operation>

	<!-- Pelt Cap / Pelt Mantle -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gunmar_Apparel_PeltMantle" or defName="Gunmar_Apparel_SunshadePeltMantle" or defName="Gunmar_Apparel_WovenMantle"]/statBases</xpath>
		<value>
			<Bulk>3</Bulk>
			<WornBulk>1</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Gunmar_Apparel_PeltMantle" or defName="Gunmar_Apparel_SunshadePeltMantle"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>3</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<!-- Sunshade Pelt Cap -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName= "Gunmar_Apparel_PeltCap" or defName="Gunmar_Apparel_SunshadePeltCap" or defName="Gunmar_Apparel_WovenCap"]/statBases</xpath>
		<value>
			<Bulk>1</Bulk>
			<WornBulk>1</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName= "Gunmar_Apparel_PeltCap" or defName= "Gunmar_Apparel_SunshadePeltCap" or defName="Gunmar_Apparel_WovenCap"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>1.25</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<!-- Pelt Leggings -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gunmar_Apparel_PeltLeggings" or defName="Gunmar_Apparel_PeltBoots"]/statBases</xpath>
		<value>
			<Bulk>1</Bulk>
			<WornBulk>1</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName= "Gunmar_Apparel_PeltLeggings" or defName="Gunmar_Apparel_PeltBoots"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>3.5</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<!-- Wraps -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gunmar_Apparel_WovenHandWraps" or defName="Gunmar_Apparel_WovenLeggings" or defName="Gunmar_Apparel_WovenFootWraps"]/statBases</xpath>
		<value>
			<Bulk>1</Bulk>
			<WornBulk>1</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName= "Gunmar_Apparel_WovenHandWraps" or defName="Gunmar_Apparel_WovenLeggings" or defName="Gunmar_Apparel_WovenFootWraps"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>1.5</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<!-- War Bow -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gunmar_War_Bow</defName>
		<statBases>
			<SightsEfficiency>0.8</SightsEfficiency>
			<ShotSpread>1</ShotSpread>
			<SwayFactor>2</SwayFactor>
			<Bulk>5.00</Bulk>
			<RangedWeapon_Cooldown>1</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_GreatArrow_Stone</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>30</range>
			<soundCast>Bow_Large</soundCast>
		</Properties>
		<AmmoUser>
			<ammoSet>AmmoSet_GreatArrow</ammoSet>
			<AmmoGenPerMagOverride>5</AmmoGenPerMagOverride>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_Bow</li>
		</weaponTags>
		<researchPrerequisite>Greatbow</researchPrerequisite>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Gunmar_War_Bow"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>1.6</cooldownTime>
					<armorPenetrationBlunt>0.65</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

</Patch>