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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="MoyoPressurePod_Race"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Quadruped</bodyShape>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="MoyoPressurePod_Race"]/statBases</xpath>
		<value>
			<MeleeCritChance>1.50</MeleeCritChance>
			<MeleeParryChance>1.50</MeleeParryChance>
			<NightVisionEfficiency>0.80</NightVisionEfficiency>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="MoyoPressurePod_Race"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>40.5</ArmorRating_Blunt>
			<ArmorRating_Heat>0.25</ArmorRating_Heat>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="MoyoPressurePod_Race"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left club</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>56</power>
					<cooldownTime>3.1</cooldownTime>
					<linkedBodyPartsGroup>LeftClub</linkedBodyPartsGroup>
					<armorPenetrationBlunt>25.6</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right club</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>56</power>
					<cooldownTime>3.1</cooldownTime>
					<linkedBodyPartsGroup>RightClub</linkedBodyPartsGroup>
					<armorPenetrationBlunt>25.6</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>35</power>
					<cooldownTime>3.51</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>15</armorPenetrationBlunt>
					<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Hexapod -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[@Name="Moyo_HexapodBase"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Birdlike</bodyShape>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="Moyo_HexapodBase"]/statBases</xpath>
		<value>
			<MeleeCritChance>1</MeleeCritChance>
			<MeleeParryChance>2.50</MeleeParryChance>
			<NightVisionEfficiency>0.80</NightVisionEfficiency>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="Moyo_HexapodBase"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>10</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="Moyo_HexapodBase"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>22.5</ArmorRating_Blunt>
			<ArmorRating_Heat>0.75</ArmorRating_Heat>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="Moyo_HexapodBase"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>tentacle</label>
					<capacities>
						<li>HexapodTentacle</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1.24</cooldownTime>
					<linkedBodyPartsGroup>Tentacle1</linkedBodyPartsGroup>
					<armorPenetrationBlunt>50</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>tentacle</label>
					<capacities>
						<li>HexapodTentacle</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1.24</cooldownTime>
					<linkedBodyPartsGroup>Tentacle2</linkedBodyPartsGroup>
					<armorPenetrationBlunt>50</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>tentacle</label>
					<capacities>
						<li>HexapodTentacle</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1.24</cooldownTime>
					<linkedBodyPartsGroup>Tentacle3</linkedBodyPartsGroup>
					<armorPenetrationBlunt>50</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>tentacle</label>
					<capacities>
						<li>HexapodTentacle</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1.24</cooldownTime>
					<linkedBodyPartsGroup>Tentacle4</linkedBodyPartsGroup>
					<armorPenetrationBlunt>50</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>tentacle</label>
					<capacities>
						<li>HexapodTentacle</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1.24</cooldownTime>
					<linkedBodyPartsGroup>Tentacle5</linkedBodyPartsGroup>
					<armorPenetrationBlunt>50</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>tentacle</label>
					<capacities>
						<li>HexapodTentacle</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1.24</cooldownTime>
					<linkedBodyPartsGroup>Tentacle6</linkedBodyPartsGroup>
					<armorPenetrationBlunt>50</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>35</power>
					<cooldownTime>3.51</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>15</armorPenetrationBlunt>
					<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="MoyoCryopod_Kind"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>20</min>
					<max>20</max>
				</primaryMagazineCount>
			</li>
		</value>
	</Operation>
</Patch>