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

	<!-- === Padded Surcoat, Gambeson === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Padded_Surcoat" or defName="Dankpyon_Apparel_Gambeson"]/statBases</xpath>
		<value>
			<Bulk>10</Bulk>
			<WornBulk>3</WornBulk>
			<ArmorRating_Sharp>0.24</ArmorRating_Sharp>
			<ArmorRating_Blunt>0.36</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Padded_Surcoat"]/statBases/Mass</xpath>
		<value>
			<Mass>2</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Dankpyon_Apparel_Gambeson"]/statBases/Mass</xpath>
		<value>
			<Mass>2.3</Mass>
		</value>
	</Operation>

	<!-- Added extra coverage -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Dankpyon_Apparel_Gambeson"]/apparel/bodyPartGroups</xpath>
		<value>
			<li>Arms</li>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Dankpyon_Apparel_Gambeson"]/costStuffCount</xpath>
		<value>
			<costStuffCount>80</costStuffCount>
		</value>
	</Operation>

	<!-- === Padded Leather === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Padded_Leather"]/statBases</xpath>
		<value>
			<Bulk>18</Bulk>
			<WornBulk>4</WornBulk>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Padded_Leather"]/costStuffCount</xpath>
		<value>
			<costStuffCount>60</costStuffCount>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace"><!-- Ensure layering is correct -->
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Padded_Leather"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Shell</li>
			</layers>
		</value>
	</Operation>

	<!-- === Lamellar === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Light_Lamellar"]/statBases</xpath>
		<value>
			<Bulk>20</Bulk>
			<WornBulk>5</WornBulk>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace"><!-- Ensure layering is correct -->
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Light_Lamellar"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Shell</li>
			</layers>
		</value>
	</Operation>

	<!-- === Hauberk, Heavy Hauberk, Heraldic Hauberk === -->
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_Hauberk" or
			defName="DankPyon_Apparel_Heavy_Hauberk" or
			@Name="DankPyon_HeraldicHauberkBase" or
			defName="DankPyon_Apparel_AdornedMailShirt"
			]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Hauberk"]/statBases/Mass</xpath>
		<value>
			<Mass>4</Mass>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Hauberk"]/costStuffCount</xpath>
		<value>
			<costStuffCount>50</costStuffCount>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Hauberk"]/statBases/WorkToMake</xpath>
		<value>
			<WorkToMake>9000</WorkToMake>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Hauberk"]/statBases/MaxHitPoints</xpath>
		<value>
			<MaxHitPoints>170</MaxHitPoints>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Hauberk"]/equippedStatOffsets</xpath>
		<value>
			<MeleeDodgeChance>-0.05</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace"><!-- Ensure layering is correct -->
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Hauberk"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Middle</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Hauberk"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>Torso</li>
				<li>Shoulders</li>
				<li>Arms</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_Heavy_Hauberk" or
			@Name="DankPyon_HeraldicHauberkBase" or
			defName="DankPyon_Apparel_AdornedMailShirt"
			]/statBases</xpath>
		<value>
			<Bulk>60</Bulk>
			<WornBulk>10</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_Heavy_Hauberk" or
			@Name="DankPyon_HeraldicHauberkBase" or
			defName="DankPyon_Apparel_AdornedMailShirt"
			]/statBases/Mass</xpath>
		<value>
			<Mass>10</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_Heavy_Hauberk" or
			@Name="DankPyon_HeraldicHauberkBase" or
			defName="DankPyon_Apparel_AdornedMailShirt"
			]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>2.5</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_Heavy_Hauberk" or
			@Name="DankPyon_HeraldicHauberkBase" or
			defName="DankPyon_Apparel_AdornedMailShirt"
			]/equippedStatOffsets</xpath>
		<value>
			<MeleeDodgeChance>-0.15</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_Heavy_Hauberk" or
			@Name="DankPyon_HeraldicHauberkBase" or
			defName="DankPyon_Apparel_AdornedMailShirt"
			]/costStuffCount</xpath>
		<value>
			<costStuffCount>120</costStuffCount>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace"><!-- Ensure layering is correct -->
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_Heavy_Hauberk" or
			@Name="DankPyon_HeraldicHauberkBase" or
			defName="DankPyon_Apparel_AdornedMailShirt"
			]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Shell</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_Heavy_Hauberk" or
			@Name="DankPyon_HeraldicHauberkBase" or
			defName="DankPyon_Apparel_AdornedMailShirt"
			]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>Neck</li>
				<li>Torso</li>
				<li>Shoulders</li>
				<li>Arms</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_Heavy_Hauberk" or
			@Name="DankPyon_HeraldicHauberkBase" or
			defName="DankPyon_Apparel_AdornedMailShirt"
			]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.60</ArmorRating_Sharp>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.60</ArmorRating_Blunt>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!-- === Brigandine (Normal + Adorned) === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Brigandine" or defName="DankPyon_Apparel_AdornedWarriorArmor"]/statBases</xpath>
		<value>
			<Bulk>50</Bulk>
			<WornBulk>8</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Brigandine" or defName="DankPyon_Apparel_AdornedWarriorArmor"]/statBases/Mass</xpath>
		<value>
			<Mass>12</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Brigandine" or defName="DankPyon_Apparel_AdornedWarriorArmor"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>2.75</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Brigandine" or defName="DankPyon_Apparel_AdornedWarriorArmor"]/costStuffCount</xpath>
		<value>
			<costStuffCount>140</costStuffCount>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Brigandine" or defName="DankPyon_Apparel_AdornedWarriorArmor"]/equippedStatOffsets/MoveSpeed</xpath>
		<value>
			<MeleeDodgeChance>-0.15</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace"><!-- Ensure layering is correct -->
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Brigandine" or defName="DankPyon_Apparel_AdornedWarriorArmor"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Shell</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Brigandine" or defName="DankPyon_Apparel_AdornedWarriorArmor"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.60</ArmorRating_Sharp>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.60</ArmorRating_Blunt>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!-- === Breast Plate === -->
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Breast_Plate"]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Breast_Plate"]/statBases</xpath>
		<value>
			<Bulk>40</Bulk>
			<WornBulk>6</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Breast_Plate"]/statBases/Mass</xpath>
		<value>
			<Mass>6</Mass>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Breast_Plate"]/costStuffCount</xpath>
		<value>
			<costStuffCount>60</costStuffCount>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Breast_Plate"]/statBases/WorkToMake</xpath>
		<value>
			<WorkToMake>15000</WorkToMake>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace"><!-- Ensure layering is correct -->
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Breast_Plate"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Shell</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Breast_Plate"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.60</ArmorRating_Sharp>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.60</ArmorRating_Blunt>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.80</ArmorRating_Sharp>
						<parts>
							<li>Shoulder</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Shoulder</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!-- === Zweihander Cuirass === -->
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Zweihanders_Cuirass"]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Zweihanders_Cuirass"]/statBases</xpath>
		<value>
			<Bulk>50</Bulk>
			<WornBulk>7</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Zweihanders_Cuirass"]/statBases/Mass</xpath>
		<value>
			<Mass>6</Mass>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Zweihanders_Cuirass"]/costStuffCount</xpath>
		<value>
			<costStuffCount>70</costStuffCount>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Zweihanders_Cuirass"]/statBases/WorkToMake</xpath>
		<value>
			<WorkToMake>17000</WorkToMake>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace"><!-- Ensure layering is correct -->
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Zweihanders_Cuirass"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Shell</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Zweihanders_Cuirass"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.60</ArmorRating_Sharp>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.60</ArmorRating_Blunt>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.80</ArmorRating_Sharp>
						<parts>
							<li>Shoulder</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Shoulder</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!-- === Full Plate (Normal + Gilded + Adorned) === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_FullPlate" or
			defName="DankPyon_Apparel_FullPlateGilded" or
			defName="DankPyon_Apparel_AdornedHeavyPlate"
			]/statBases</xpath>
		<value>
			<Bulk>100</Bulk>
			<WornBulk>12</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_FullPlate" or
			defName="DankPyon_Apparel_FullPlateGilded" or
			defName="DankPyon_Apparel_AdornedHeavyPlate"
			]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>3.25</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_FullPlate" or
			defName="DankPyon_Apparel_FullPlateGilded" or
			defName="DankPyon_Apparel_AdornedHeavyPlate"
			]/statBases/Mass</xpath>
		<value>
			<Mass>16</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_FullPlate" or
			defName="DankPyon_Apparel_FullPlateGilded" or
			defName="DankPyon_Apparel_AdornedHeavyPlate"
			]/equippedStatOffsets/MoveSpeed</xpath>
		<value>
			<MeleeDodgeChance>-0.15</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_FullPlate" or
			defName="DankPyon_Apparel_FullPlateGilded" or
			defName="DankPyon_Apparel_AdornedHeavyPlate"
			]/costStuffCount</xpath>
		<value>
			<costStuffCount>200</costStuffCount>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace"><!-- Ensure layering is correct -->
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_FullPlate" or
			defName="DankPyon_Apparel_FullPlateGilded" or
			defName="DankPyon_Apparel_AdornedHeavyPlate"
			]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Shell</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_FullPlate" or
			defName="DankPyon_Apparel_FullPlateGilded" or
			defName="DankPyon_Apparel_AdornedHeavyPlate"
			]/apparel/bodyPartGroups</xpath>
		<value>
			<li>Hands</li>
			<li>Feet</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[
			defName="DankPyon_Apparel_FullPlate" or
			defName="DankPyon_Apparel_FullPlateGilded" or
			defName="DankPyon_Apparel_AdornedHeavyPlate"
			]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.70</ArmorRating_Sharp>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.70</ArmorRating_Blunt>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.90</ArmorRating_Sharp>
						<parts>
							<li>Leg</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.90</ArmorRating_Blunt>
						<parts>
							<li>Leg</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.80</ArmorRating_Sharp>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.60</ArmorRating_Sharp>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.60</ArmorRating_Blunt>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!-- Full Plate - Named -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_FullPlateNamed"]/statBases</xpath>
		<value>
			<Bulk>100</Bulk>
			<WornBulk>12</WornBulk>
		</value>
	</Operation>

	<!-- Assume thickness of 3.75mm in plasteel -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_FullPlateNamed"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>7.5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_FullPlateNamed"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>11.25</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_FullPlateNamed"]/statBases/ArmorRating_Heat</xpath>
		<value>
			<ArmorRating_Heat>0.05</ArmorRating_Heat>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_FullPlateNamed"]/statBases/Mass</xpath>
		<value>
			<Mass>16</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_FullPlateNamed"]/equippedStatOffsets/MoveSpeed</xpath>
		<value>
			<MeleeDodgeChance>-0.15</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace"><!-- Ensure layering is correct -->
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_FullPlateNamed"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Shell</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_FullPlateNamed"]/apparel/bodyPartGroups</xpath>
		<value>
			<li>Hands</li>
			<li>Feet</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_FullPlateNamed"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.70</ArmorRating_Sharp>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.70</ArmorRating_Blunt>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.90</ArmorRating_Sharp>
						<parts>
							<li>Leg</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.90</ArmorRating_Blunt>
						<parts>
							<li>Leg</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.80</ArmorRating_Sharp>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.60</ArmorRating_Sharp>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.60</ArmorRating_Blunt>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!-- Lindwurm Armor -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Lindwurm"]/statBases</xpath>
		<value>
			<Bulk>100</Bulk>
			<WornBulk>12</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Lindwurm"]/statBases/Mass</xpath>
		<value>
			<Mass>16</Mass>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Lindwurm"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>0.4</ArmorRating_Blunt>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Lindwurm"]/equippedStatOffsets/MoveSpeed</xpath>
		<value>
			<MeleeDodgeChance>-0.15</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Lindwurm"]/costStuffCount</xpath>
		<value>
			<costStuffCount>70</costStuffCount>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace"><!-- Ensure layering is correct -->
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Lindwurm"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Middle</li>
				<li>Shell</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Lindwurm"]/apparel/bodyPartGroups</xpath>
		<value>
			<li>Hands</li>
			<li>Feet</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_Lindwurm"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.70</ArmorRating_Sharp>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.70</ArmorRating_Blunt>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.90</ArmorRating_Sharp>
						<parts>
							<li>Leg</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.90</ArmorRating_Blunt>
						<parts>
							<li>Leg</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.80</ArmorRating_Sharp>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.60</ArmorRating_Sharp>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.60</ArmorRating_Blunt>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!-- ==== Pants ==== -->
	<!-- Padded Chausses -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_ChaussesPadded"]/statBases</xpath>
		<value>
			<Bulk>15</Bulk>
			<WornBulk>3</WornBulk>
			<ArmorRating_Sharp>0.24</ArmorRating_Sharp>
			<ArmorRating_Blunt>0.36</ArmorRating_Blunt>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_ChaussesPadded"]/costStuffCount</xpath>
		<value>
			<costStuffCount>60</costStuffCount>
		</value>
	</Operation>

	<!-- Splinted Chausses -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_ChaussesSplinted"]/statBases</xpath>
		<value>
			<Bulk>17.5</Bulk>
			<WornBulk>3.5</WornBulk>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_ChaussesSplinted"]/statBases/Mass</xpath>
		<value>
			<Mass>3</Mass>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_ChaussesSplinted"]/costStuffCount</xpath>
		<value>
			<costStuffCount>50</costStuffCount>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_ChaussesSplinted"]/statBases/WorkToMake</xpath>
		<value>
			<WorkToMake>9000</WorkToMake>
		</value>
	</Operation>

	<!-- Plated Chausses -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_ChaussesPlate"]/statBases</xpath>
		<value>
			<Bulk>20</Bulk>
			<WornBulk>4</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_ChaussesPlate"]/statBases/Mass</xpath>
		<value>
			<Mass>3.5</Mass>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_ChaussesPlate"]/costStuffCount</xpath>
		<value>
			<costStuffCount>70</costStuffCount>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DankPyon_Apparel_ChaussesPlate"]/statBases/WorkToMake</xpath>
		<value>
			<WorkToMake>12000</WorkToMake>
		</value>
	</Operation>

</Patch>