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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ROMV_BatRace"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.18</MeleeDodgeChance>
			<MeleeCritChance>0.0</MeleeCritChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="ROMV_BatRace"]/verbs</xpath>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ROMV_BatRace"]</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>Teeth</label>
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>4</power>
					<cooldownTime>0.88</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.675</armorPenetrationBlunt>
					<armorPenetrationSharp>0.28</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>1</power>
					<cooldownTime>3.00</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>0.125</armorPenetrationBlunt>
					<armorPenetrationSharp>0</armorPenetrationSharp>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ROMV_BatSpectralRace"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.18</MeleeDodgeChance>
			<MeleeCritChance>0.2</MeleeCritChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ROMV_BatSpectralRace"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>11</power>
					<cooldownTime>1.67</cooldownTime>
					<linkedBodyPartsGroup>Feet</linkedBodyPartsGroup>
					<armorPenetrationBlunt>4</armorPenetrationBlunt>
					<armorPenetrationSharp>2.5</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>11</power>
					<cooldownTime>1.67</cooldownTime>
					<linkedBodyPartsGroup>Feet</linkedBodyPartsGroup>
					<armorPenetrationBlunt>4</armorPenetrationBlunt>
					<armorPenetrationSharp>2.5</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>fangs</label>
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>16</power>
					<cooldownTime>0.88</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>2.5</armorPenetrationBlunt>
					<armorPenetrationSharp>1.5</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>6</power>
					<cooldownTime>3.00</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>0.125</armorPenetrationBlunt>
					<armorPenetrationSharp>0</armorPenetrationSharp>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="ROMV_ThingBaseWolf"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.21</MeleeDodgeChance>
			<MeleeCritChance>0.20</MeleeCritChance>
			<MeleeParryChance>0.09</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[@Name="ROMV_ThingBaseWolf"]/verbs</xpath>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="ROMV_ThingBaseWolf"]</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>11</power>
					<cooldownTime>1.19</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationSharp>12.5</armorPenetrationSharp>
					<armorPenetrationBlunt>18.5</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>11</power>
					<cooldownTime>1.19</cooldownTime>
					<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationSharp>12.5</armorPenetrationSharp>
					<armorPenetrationBlunt>18.5</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>24</power>
					<cooldownTime>1.46</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<chanceFactor>2</chanceFactor>
					<armorPenetrationSharp>1.5</armorPenetrationSharp>
					<armorPenetrationBlunt>7.5</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>4</power>
					<cooldownTime>3.2</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>1.225</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="ROMV_ThingBaseMonstrosity"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.06</MeleeDodgeChance>
			<MeleeCritChance>0.41</MeleeCritChance>
			<MeleeParryChance>0.48</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="ROMV_ThingBaseMonstrosity"]/tools</xpath>
		<value>
			<tools>

				<li Class="CombatExtended.ToolCE">
					<label>Monstrous Arm</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>9</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
					<armorPenetrationSharp>17.5</armorPenetrationSharp>
					<armorPenetrationBlunt>33.5</armorPenetrationBlunt>
				</li>

				<li Class="CombatExtended.ToolCE">
					<label>Monstrous Arm</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>9</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
					<armorPenetrationSharp>17.5</armorPenetrationSharp>
					<armorPenetrationBlunt>33.5</armorPenetrationBlunt>
				</li>

				<li Class="CombatExtended.ToolCE">
					<label>Monstrous Teeth</label>
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>14</power>
					<cooldownTime>1.3</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationSharp>18</armorPenetrationSharp>
					<armorPenetrationBlunt>15</armorPenetrationBlunt>
				</li>

				<li Class="CombatExtended.ToolCE">
					<label>Head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>3</power>
					<cooldownTime>1.1</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>20</armorPenetrationBlunt>
				</li>

			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="ROMV_ThingBaseAbyssalArm"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.06</MeleeDodgeChance>
			<MeleeCritChance>0.41</MeleeCritChance>
			<MeleeParryChance>0.48</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="ROMV_ThingBaseAbyssalArm"]/tools</xpath>
		<value>
			<tools>

				<li Class="CombatExtended.ToolCE">
					<label>Tentacle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>23</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationBlunt>36</armorPenetrationBlunt>
					<armorPenetrationSharp>0</armorPenetrationSharp>
				</li>

			</tools>
		</value>
	</Operation>

</Patch>