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

	<!-- Partial Plasteel Material Cost 1mm -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BotchJob_AncientPlateArmor"]/statBases</xpath>
		<value>
			<Bulk>100</Bulk>
			<WornBulk>10</WornBulk>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BotchJob_AncientPlateArmor"]/statBases</xpath>
		<value>
			<ArmorRating_Sharp>2</ArmorRating_Sharp>
			<ArmorRating_Blunt>3</ArmorRating_Blunt>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BotchJob_AncientPlateArmor"]/equippedStatOffsets/MoveSpeed</xpath>
		<value>
			<MeleeDodgeChance>-0.15</MeleeDodgeChance>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BotchJob_AncientPlateArmor"]/apparel/bodyPartGroups</xpath>
		<value>
			<li>Hands</li>
			<li>Feet</li>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="BotchJob_AncientPlateArmor"]</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>
	
	<!-- Leather Jerkin -->
	<!-- Description calls it studded leather which is brigandine -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BotchJob_AncientJerkin"]/statBases</xpath>
		<value>
			<Bulk>50</Bulk>
			<WornBulk>8</WornBulk>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BotchJob_AncientJerkin"]/statBases</xpath>
		<value>
			<ArmorRating_Sharp>1.5</ArmorRating_Sharp>
			<ArmorRating_Blunt>2.25</ArmorRating_Blunt>
		</value>
	</Operation>

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

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

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

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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="BotchJob_AncientJerkin"]</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>
	
	<!-- Robe -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BotchJob_AncientAcolyteRobe"]/statBases</xpath>
		<value>
			<Bulk>4</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

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

</Patch>