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

	<!-- ======== BaseDragon (Dragon Base) ======== -->
	<!-- ====== ModExtension ====== -->
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[@Name="BaseDragon"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Birdlike</bodyShape>
			</li>
		</value>
	</Operation>

	<!-- ======== DragonRaceBase (Common Dragon Base) ======== -->
	<!-- ====== statBases ====== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="DragonRaceBase"]/statBases</xpath>
		<value>
			<MeleeCritChance>1.75</MeleeCritChance>
			<MeleeParryChance>0.54</MeleeParryChance>
			<AimingAccuracy>1.0</AimingAccuracy>
			<ShootingAccuracyPawn>1.5</ShootingAccuracyPawn>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="DragonRaceBase"]/statBases/MeleeDodgeChance</xpath>
		<value>
			<MeleeDodgeChance>0.13</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="DragonRaceBase"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>40</ArmorRating_Blunt>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="DragonRaceBase"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_ArmorDurability">
				<Durability>4250</Durability>
				<Regenerates>true</Regenerates>
				<RegenInterval>600</RegenInterval>
				<RegenValue>5</RegenValue>
				<MinArmorPct>0.25</MinArmorPct>
			</li>
		</value>
	</Operation>

	<!-- ======== RDragonRaceBase (Rare Dragon Base) ======== -->
	<!-- ====== statBases ====== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RDragonRaceBase"]/statBases</xpath>
		<value>
			<MeleeCritChance>1.96</MeleeCritChance>
			<MeleeParryChance>0.64</MeleeParryChance>
			<AimingAccuracy>1.0</AimingAccuracy>
			<ShootingAccuracyPawn>1.75</ShootingAccuracyPawn>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="RDragonRaceBase"]/statBases/MeleeDodgeChance</xpath>
		<value>
			<MeleeDodgeChance>0.13</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="RDragonRaceBase"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>48</ArmorRating_Blunt>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="RDragonRaceBase"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_ArmorDurability">
				<Durability>5075</Durability>
				<Regenerates>true</Regenerates>
				<RegenInterval>600</RegenInterval>
				<RegenValue>5</RegenValue>
				<MinArmorPct>0.25</MinArmorPct>
			</li>
		</value>
	</Operation>

</Patch>