<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- Copied Values from Expanded Materials - Plastics patch -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="PRF_Carbon" or defName="PRF_CarbonFiber" or defName="PRF_CarbonKevlarComposite" or
			defName="PRF_CarbonPlate" or defName="PRF_RawDiamond" or defName="PRF_SyntheticDiamond"]/statBases </xpath>
		<value>
			<Bulk>0.02</Bulk>
		</value>
	</Operation>

	<!-- Carbon Fiber -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="PRF_CarbonFiber"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.95</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="PRF_CarbonFiber"]/statBases/StuffPower_Armor_Blunt</xpath>
		<value>
			<StuffPower_Armor_Blunt>1.4</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="PRF_CarbonFiber"]/statBases/StuffPower_Armor_Heat</xpath>
		<value>
			<StuffPower_Armor_Heat>0.08</StuffPower_Armor_Heat>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="PRF_CarbonFiber"]/stuffProps/statFactors</xpath>
		<value>
			<Mass>0.4</Mass>
			<MeleePenetrationFactor>0.8</MeleePenetrationFactor>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="PRF_CarbonFiber"]/stuffProps/categories</xpath>
		<value>
			<li>Metallic_Weapon</li>
			<li>Steeled</li>
		</value>
	</Operation>

	<!-- carbon-kevlar composite -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="PRF_CarbonKevlarComposite"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.9</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="PRF_CarbonKevlarComposite"]/statBases/StuffPower_Armor_Blunt</xpath>
		<value>
			<StuffPower_Armor_Blunt>1.55</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<!-- Carbon fiber plate -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="PRF_CarbonPlate"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.5</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="PRF_CarbonPlate"]/statBases/StuffPower_Armor_Blunt</xpath>
		<value>
			<StuffPower_Armor_Blunt>1.6</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<!-- Synthetic Diamond -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="PRF_CarbonPlate"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.45</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="PRF_CarbonPlate"]/statBases/StuffPower_Armor_Blunt</xpath>
		<value>
			<StuffPower_Armor_Blunt>1.8</StuffPower_Armor_Blunt>
		</value>
	</Operation>
</Patch>