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

	<!-- Add CompStabilize to all injury and missing part hediffs -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="MissingBodyPart"]/comps</xpath>
		<value>
			<li Class="CombatExtended.HediffCompProperties_Stabilize" />
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[@Name="InjuryBase"]</xpath>
		<value>
			<comps>
				<li Class="CombatExtended.HediffCompProperties_Stabilize" />
			</comps>
		</value>
	</Operation>

	<!-- Missing body part -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="MissingBodyPart"]/injuryProps/bleedRate</xpath>
		<value>
			<bleedRate>0.08</bleedRate>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="MissingBodyPart"]/injuryProps/painPerSeverity</xpath>
		<value>
			<painPerSeverity>0.025</painPerSeverity>
		</value>
	</Operation>

	<!-- Burn -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[@Name="BurnBase"]/injuryProps/painPerSeverity</xpath>
		<value>
			<painPerSeverity>0.025</painPerSeverity>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[@Name="BurnBase"]/comps/li[@Class="HediffCompProperties_Infecter"]</xpath>
		<value>
			<li Class="CombatExtended.HediffCompProperties_InfecterCE">
				<infectionChancePerHourUntended>0.07</infectionChancePerHourUntended>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="Burn"]/comps/li[@Class="HediffCompProperties_GetsPermanent"]</xpath>
		<value>
			<becomePermanentChanceFactor>1.5</becomePermanentChanceFactor>
		</value>
	</Operation>

	<Operation Class="PatchOperationAttributeSet">
		<xpath>Defs/HediffDef[defName="Burn"]</xpath>
		<attribute>Name</attribute>
		<value>Burn</value>
	</Operation>

	<!-- Crush -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Crush"]/injuryProps/bleedRate</xpath>
		<value>
			<bleedRate>0.015</bleedRate>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Crush"]/injuryProps/painPerSeverity</xpath>
		<value>
			<painPerSeverity>0.0175</painPerSeverity>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Crush"]/comps/li[@Class="HediffCompProperties_Infecter"]</xpath>
		<value>
			<li Class="CombatExtended.HediffCompProperties_InfecterCE">
				<infectionChancePerHourUntended>0.04</infectionChancePerHourUntended>
			</li>
		</value>
	</Operation>

	<!-- Beanbag / Taser inheritance -->

	<Operation Class="PatchOperationAttributeSet">
		<xpath>Defs/HediffDef[defName="Bruise"]</xpath>
		<attribute>Name</attribute>
		<value>Bruise</value>
	</Operation>

	<Operation Class="PatchOperationAttributeSet">
		<xpath>Defs/HediffDef[defName="Stab"]</xpath>
		<attribute>Name</attribute>
		<value>Stab</value>
	</Operation>

	<Operation Class="PatchOperationAttributeSet">
		<xpath>Defs/HediffDef[defName="Crack"]</xpath>
		<attribute>Name</attribute>
		<value>Crack</value>
	</Operation>

	<!-- Crack -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Crack"]/injuryProps/painPerSeverity</xpath>
		<value>
			<painPerSeverity>0.0175</painPerSeverity>
		</value>
	</Operation>

	<!-- Cut -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Cut"]/comps/li[@Class="HediffCompProperties_Infecter"]</xpath>
		<value>
			<li Class="CombatExtended.HediffCompProperties_InfecterCE">
				<infectionChancePerHourUntended>0.015</infectionChancePerHourUntended>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="Cut"]/comps/li[@Class="HediffCompProperties_GetsPermanent"]</xpath>
		<value>
			<becomePermanentChanceFactor>0.75</becomePermanentChanceFactor>
		</value>
	</Operation>

	<Operation Class="PatchOperationAttributeSet">
		<xpath>Defs/HediffDef[defName="Cut"]</xpath>
		<attribute>Name</attribute>
		<value>Cut</value>
	</Operation>

	<!-- Scratch -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Scratch"]/comps/li[@Class="HediffCompProperties_Infecter"]</xpath>
		<value>
			<li Class="CombatExtended.HediffCompProperties_InfecterCE">
				<infectionChancePerHourUntended>0.015</infectionChancePerHourUntended>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="Scratch"]/comps/li[@Class="HediffCompProperties_GetsPermanent"]</xpath>
		<value>
			<becomePermanentChanceFactor>0.5</becomePermanentChanceFactor>
		</value>
	</Operation>

	<!-- Bite -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Bite"]/comps/li[@Class="HediffCompProperties_Infecter"]</xpath>
		<value>
			<li Class="CombatExtended.HediffCompProperties_InfecterCE">
				<infectionChancePerHourUntended>0.06</infectionChancePerHourUntended>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAttributeSet">
		<xpath>Defs/HediffDef[defName="Bite"]</xpath>
		<attribute>Name</attribute>
		<value>HediffBite</value>
	</Operation>

	<!-- Stab -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Stab"]/injuryProps/painPerSeverity</xpath>
		<value>
			<painPerSeverity>0.0175</painPerSeverity>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Stab"]/comps/li[@Class="HediffCompProperties_Infecter"]</xpath>
		<value>
			<li Class="CombatExtended.HediffCompProperties_InfecterCE">
				<infectionChancePerHourUntended>0.03</infectionChancePerHourUntended>
			</li>
		</value>
	</Operation>

	<!-- Gunshot -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Gunshot"]/injuryProps/painPerSeverity</xpath>
		<value>
			<painPerSeverity>0.0175</painPerSeverity>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Gunshot"]/comps/li[@Class="HediffCompProperties_Infecter"]</xpath>
		<value>
			<li Class="CombatExtended.HediffCompProperties_InfecterCE">
				<infectionChancePerHourUntended>0.03</infectionChancePerHourUntended>
			</li>
		</value>
	</Operation>

	<!-- Shredded -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Shredded"]/injuryProps/bleedRate</xpath>
		<value>
			<bleedRate>0.015</bleedRate>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Shredded"]/injuryProps/painPerSeverity</xpath>
		<value>
			<painPerSeverity>0.0175</painPerSeverity>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Shredded"]/comps/li[@Class="HediffCompProperties_Infecter"]</xpath>
		<value>
			<li Class="CombatExtended.HediffCompProperties_InfecterCE">
				<infectionChancePerHourUntended>0.05</infectionChancePerHourUntended>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Shredded"]/comps/li[@Class="HediffCompProperties_GetsPermanent"]/permanentLabel</xpath>
		<value>
			<permanentLabel>shrapnel scar</permanentLabel>
		</value>
	</Operation>

	<!-- Bruise -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="Bruise"]/injuryProps/painPerSeverity</xpath>
		<value>
			<painPerSeverity>0.0175</painPerSeverity>
		</value>
	</Operation>

</Patch>