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

	<!-- === Item Bulk === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CarbonWeave" or defName="CarbonFiber" or defName="CarbonDiamond"]/statBases</xpath>
		<value>
			<Bulk>0.3</Bulk>
		</value>
	</Operation>

	<!-- === Carbon Weave === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CarbonWeave"]/stuffProps</xpath>
		<value>
			<statOffsets>
				<Mass>0.325</Mass>
				<WornBulk>0.25</WornBulk>
			</statOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CarbonWeave"]/stuffProps/statFactors</xpath>
		<value>
			<Mass>1.65</Mass>
			<WornBulk>1.65</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CarbonWeave"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.6</StuffPower_Armor_Sharp>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CarbonWeave"]/stuffProps/categories</xpath>
		<value>
			<li>SoftArmor</li>
		</value>
	</Operation>

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

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

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

	<!-- === Carbon Diamond === -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CarbonDiamond"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>2.2</StuffPower_Armor_Sharp>
		</value>
	</Operation>

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

</Patch>