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

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Miho_Ebony_SilkCloth"]/statBases/StuffPower_Armor_Heat</xpath>
		<value>
			<StuffPower_Armor_Heat>0.15</StuffPower_Armor_Heat>
			<StuffPower_Armor_Electric>0.10</StuffPower_Armor_Electric>
		</value>
	</Operation>

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

	<!-- ==========  Military Ceramics  =========== -->

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Miho_MilitaryGradeBalisticCeramics"]/statBases/StuffPower_Armor_Heat</xpath>
		<value>
			<StuffPower_Armor_Heat>0.05</StuffPower_Armor_Heat>
			<StuffPower_Armor_Electric>0.05</StuffPower_Armor_Electric>
		</value>
	</Operation>

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

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

	<!-- ==========  Celestial Scale  =========== -->

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Miho_CelestialScale"]/statBases/StuffPower_Armor_Heat</xpath>
		<value>
			<StuffPower_Armor_Heat>0.10</StuffPower_Armor_Heat>
			<StuffPower_Armor_Electric>0.15</StuffPower_Armor_Electric>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Miho_CelestialScale"]/stuffProps/statFactors</xpath>
		<value>
			<Mass>0.5</Mass>
			<MeleePenetrationFactor>1.5</MeleePenetrationFactor>
		</value>
	</Operation>

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

	<!-- ==========  Ceramics  =========== -->

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

	<!-- ==========  Bulk  =========== -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="Miho_Ceramics" or
			defName="Miho_MilitaryGradeBalisticCeramics" or
			defName="Miho_CelestialScale"
			]/statBases </xpath>
		<value>
			<Bulk>0.03</Bulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="Miho_Ebony_SilkCloth"
			]/statBases </xpath>
		<value>
			<Bulk>0.04</Bulk>
			<WornBulk>0.4</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Miho_Missile"] </xpath>
		<value>
			<ThingDef Class="CombatExtended.AmmoDef" ParentName="MMAT_Base">
				<defName>Miho_Missile</defName>
				<label>Armor Piercing Incendiary Missile</label>
				<graphicData>
					<texPath>Things/Items/MihoMechLeg</texPath>
					<graphicClass>Graphic_StackCount</graphicClass>
				</graphicData>
				<statBases>
					<Mass>4</Mass>
					<Bulk>12</Bulk>
				</statBases>
				<ammoClass>GrenadeHE</ammoClass>
				<detonateProjectile>Bullet_MihoMMAT</detonateProjectile>
			</ThingDef>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Miho_MissilePlasma"] </xpath>
		<value>
			<ThingDef Class="CombatExtended.AmmoDef" ParentName="MMAT_Base">
				<defName>Miho_MissilePlasma</defName>
				<label>Anti-Mech Plasma Missile</label>
				<graphicData>
					<texPath>Things/Items/MihoPlasma</texPath>
					<graphicClass>Graphic_StackCount</graphicClass>
				</graphicData>
				<statBases>
					<Mass>5</Mass>
					<Bulk>13</Bulk>
				</statBases>
				<ammoClass>Plasma</ammoClass>
				<detonateProjectile>Bullet_MihoMPLA</detonateProjectile>
			</ThingDef>
		</value>
	</Operation>
</Patch>