<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- ======== Rare Dragons ======== -->
	<!-- ====== Tools ====== -->
	<!-- ==== Base Tools ==== -->
	<Operation Class="PatchOperationReplace">
		<xpath>
			Defs/ThingDef[
			defName="Gold_Dragon" or
			defName="Silver_Dragon" or
			defName="Jade_Dragon" or
			defName="True_Dragon"]/tools
		</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>DD_Knockback</label>
					<capacities>
						<li>DD_Knockback</li>
					</capacities>
					<power>110</power>
					<armorPenetrationBlunt>115.115</armorPenetrationBlunt>
					<chanceFactor>0.2</chanceFactor>
					<cooldownTime>4.0</cooldownTime>
					<linkedBodyPartsGroup>Tail</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>
			Defs/ThingDef[
			defName="Gold_Dragon" or
			defName="Silver_Dragon" or
			defName="True_Dragon"]/tools
		</xpath>
		<value>
			<li Class="CombatExtended.ToolCE">
				<label>left claw</label>
				<capacities>
					<li>Scratch</li>
					<li>Cut</li>
					<li>Stab</li>
				</capacities>
				<power>100</power>
				<cooldownTime>3.01</cooldownTime>
				<chanceFactor>0.3</chanceFactor>
				<armorPenetrationSharp>22.11</armorPenetrationSharp>
				<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
				<armorPenetrationBlunt>150.521</armorPenetrationBlunt>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>right claw</label>
				<capacities>
					<li>Scratch</li>
					<li>Cut</li>
					<li>Stab</li>
				</capacities>
				<power>100</power>
				<cooldownTime>3.01</cooldownTime>
				<chanceFactor>0.3</chanceFactor>
				<armorPenetrationSharp>22.11</armorPenetrationSharp>
				<armorPenetrationBlunt>150.521</armorPenetrationBlunt>
				<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>
			Defs/ThingDef[
			defName="Gold_Dragon" or
			defName="Silver_Dragon"]/tools
		</xpath>
		<value>
			<li Class="CombatExtended.ToolCE">
				<cooldownTime>5.64</cooldownTime>
				<power>100</power>
				<capacities>
					<li>Blunt</li>
				</capacities>
				<surpriseAttack>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>20</amount>
						</li>
					</extraMeleeDamages>
				</surpriseAttack>
				<linkedBodyPartsGroup>Tail</linkedBodyPartsGroup>
				<label>tail</label>
				<armorPenetrationBlunt>62.365</armorPenetrationBlunt>
				<chanceFactor>0.1</chanceFactor>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>horn</label>
				<capacities>
					<li>Cut</li>
				</capacities>
				<surpriseAttack>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>30</amount>
						</li>
					</extraMeleeDamages>
				</surpriseAttack>
				<power>100</power>
				<cooldownTime>5.75</cooldownTime>
				<chanceFactor>0.1</chanceFactor>
				<armorPenetrationSharp>13.162</armorPenetrationSharp>
				<armorPenetrationBlunt>26.345</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Horns</linkedBodyPartsGroup>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>horn</label>
				<capacities>
					<li>Stab</li>
				</capacities>
				<surpriseAttack>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>30</amount>
						</li>
					</extraMeleeDamages>
				</surpriseAttack>
				<power>65</power>
				<cooldownTime>5.75</cooldownTime>
				<chanceFactor>0.1</chanceFactor>
				<armorPenetrationSharp>22.869</armorPenetrationSharp>
				<armorPenetrationBlunt>22.795</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Horns</linkedBodyPartsGroup>
			</li>
		</value>
	</Operation>
	<!-- ==== Common Verbs ==== -->
	<!-- In game only one projectile gets chosen for the dragons when tamed deselect/select options -->
	<Operation Class="PatchOperationReplace">
		<xpath>
			Defs/ThingDef[
			defName="Gold_Dragon" or
			defName="Silver_Dragon" or
			defName="Jade_Dragon" or
			defName="True_Dragon"]/verbs
		</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Projectile_RedDragonBreath_Fire_CE</defaultProjectile>
					<warmupTime>1.2</warmupTime>
					<burstShotCount>10</burstShotCount>
					<minRange>4</minRange>
					<range>24</range>
					<soundCast>DragonBreathShot</soundCast>
					<muzzleFlashScale>2</muzzleFlashScale>
					<label>Fire Breath</label>
					<commonality>0.2</commonality>
					<ticksBetweenBurstShots>10</ticksBetweenBurstShots>
				</li>
				<li Class="CombatExtended.VerbPropertiesCE">
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>DD_Projectile_DragonSpitBlunt</defaultProjectile>
					<warmupTime>2.0</warmupTime>
					<minRange>5</minRange>
					<range>34</range>
					<burstShotCount>2</burstShotCount>
					<ticksBetweenBurstShots>15</ticksBetweenBurstShots>
					<soundCast>DragonBreathFire</soundCast>
					<muzzleFlashScale>1</muzzleFlashScale>
					<label>Dragon Spit</label>
					<commonality>0.3</commonality>
				</li>
			</verbs>
		</value>
	</Operation>
	<!-- ==== Unique Tools ==== -->
	<!-- == Gold Dragon == -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gold_Dragon"]/tools</xpath>
		<value>
			<li Class="CombatExtended.ToolCE">
				<cooldownTime>2.84</cooldownTime>
				<power>122</power>
				<capacities>
					<li>Pyro_Bite</li>
				</capacities>
				<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
				<label>teeth</label>
				<armorPenetrationSharp>31.08</armorPenetrationSharp>
				<armorPenetrationBlunt>576.213</armorPenetrationBlunt>
				<chanceFactor>0.1</chanceFactor>
			</li>
		</value>
	</Operation>
	<!-- == Silver Dragon == -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Silver_Dragon"]/tools</xpath>
		<value>
			<li Class="CombatExtended.ToolCE">
				<cooldownTime>2.84</cooldownTime>
				<power>122</power>
				<capacities>
					<li>Frost_Bite</li>
				</capacities>
				<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
				<label>teeth</label>
				<armorPenetrationSharp>24.08</armorPenetrationSharp>
				<armorPenetrationBlunt>576.213</armorPenetrationBlunt>
				<chanceFactor>0.1</chanceFactor>
			</li>
		</value>
	</Operation>
	<!-- == Jade Dragon == -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Jade_Dragon"]/tools</xpath>
		<value>
			<li Class="CombatExtended.ToolCE">
				<label>left claw</label>
				<capacities>
					<li>Scratch</li>
				</capacities>
				<power>98</power>
				<cooldownTime>3.01</cooldownTime>
				<chanceFactor>0.3</chanceFactor>
				<armorPenetrationSharp>26.50</armorPenetrationSharp>
				<armorPenetrationBlunt>150.496</armorPenetrationBlunt>
				<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>right claw</label>
				<capacities>
					<li>Scratch</li>
				</capacities>
				<power>98</power>
				<cooldownTime>3.01</cooldownTime>
				<chanceFactor>0.3</chanceFactor>
				<armorPenetrationSharp>26.50</armorPenetrationSharp>
				<armorPenetrationBlunt>150.496</armorPenetrationBlunt>
				<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>teeth</label>
				<capacities>
					<li>ToxicBite</li>
				</capacities>
				<power>122</power>
				<cooldownTime>2.84</cooldownTime>
				<chanceFactor>0.1</chanceFactor>
				<armorPenetrationSharp>24.08</armorPenetrationSharp>
				<armorPenetrationBlunt>576.213</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>horn</label>
				<capacities>
					<li>Cut</li>
				</capacities>
				<surpriseAttack>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>30</amount>
						</li>
					</extraMeleeDamages>
				</surpriseAttack>
				<power>72</power>
				<cooldownTime>5.75</cooldownTime>
				<chanceFactor>0.1</chanceFactor>
				<armorPenetrationSharp>9.356</armorPenetrationSharp>
				<armorPenetrationBlunt>19.867</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Horns</linkedBodyPartsGroup>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>horn</label>
				<capacities>
					<li>Stab</li>
				</capacities>
				<surpriseAttack>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>30</amount>
						</li>
					</extraMeleeDamages>
				</surpriseAttack>
				<power>38</power>
				<cooldownTime>5.75</cooldownTime>
				<chanceFactor>0.1</chanceFactor>
				<armorPenetrationSharp>18.265</armorPenetrationSharp>
				<armorPenetrationBlunt>18.186</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Horns</linkedBodyPartsGroup>
			</li>
		</value>
	</Operation>

	<!-- ======== True Dragon ======== -->
	<!-- ====== statBases ====== -->
	<!-- <li Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="True_Dragon"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.14</MeleeDodgeChance>
			<MeleeCritChance>2.34</MeleeCritChance>
			<MeleeParryChance>0.64</MeleeParryChance>
			<AimingAccuracy>1.0</AimingAccuracy>
			<ShootingAccuracyPawn>2.0</ShootingAccuracyPawn>
		</value>
	</li>

	<li Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="True_Dragon"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>57.5</ArmorRating_Blunt>
		</value>
	</li>
	<li Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="True_Dragon"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>23</ArmorRating_Sharp>
		</value>
	</li> -->

	<!-- ====== Tools ====== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="True_Dragon"]/tools</xpath>
		<value>
			<li Class="CombatExtended.ToolCE">
				<label>teeth</label>
				<capacities>
					<li>Pyro_Bite</li>
				</capacities>
				<power>128</power>
				<cooldownTime>3.0</cooldownTime>
				<chanceFactor>0.2</chanceFactor>
				<armorPenetrationSharp>36.18</armorPenetrationSharp>
				<armorPenetrationBlunt>645.996</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>teeth</label>
				<capacities>
					<li>ToxicBite</li>
				</capacities>
				<power>128</power>
				<cooldownTime>3.0</cooldownTime>
				<chanceFactor>0.2</chanceFactor>
				<armorPenetrationSharp>36.18</armorPenetrationSharp>
				<armorPenetrationBlunt>645.996</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>horn</label>
				<capacities>
					<li>Cut</li>
				</capacities>
				<surpriseAttack>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>30</amount>
						</li>
					</extraMeleeDamages>
				</surpriseAttack>
				<power>80</power>
				<cooldownTime>5.1</cooldownTime>
				<chanceFactor>0.05</chanceFactor>
				<armorPenetrationSharp>16.18</armorPenetrationSharp>
				<armorPenetrationBlunt>30.438</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Horns</linkedBodyPartsGroup>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>horn</label>
				<capacities>
					<li>Stab</li>
				</capacities>
				<surpriseAttack>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>30</amount>
						</li>
					</extraMeleeDamages>
				</surpriseAttack>
				<power>43</power>
				<cooldownTime>5.1</cooldownTime>
				<chanceFactor>0.1</chanceFactor>
				<armorPenetrationSharp>24.35</armorPenetrationSharp>
				<armorPenetrationBlunt>23.438</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Horns</linkedBodyPartsGroup>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>skull bash</label>
				<capacities>
					<li>Skull_Bash</li>
				</capacities>
				<surpriseAttack>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>20</amount>
						</li>
					</extraMeleeDamages>
				</surpriseAttack>
				<power>148</power>
				<cooldownTime>7.8</cooldownTime>
				<chanceFactor>0.05</chanceFactor>
				<armorPenetrationBlunt>105.469</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Horns</linkedBodyPartsGroup>
			</li>
			<li Class="CombatExtended.ToolCE">
				<label>tail</label>
				<capacities>
					<li>Blunt</li>
				</capacities>
				<surpriseAttack>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>20</amount>
						</li>
					</extraMeleeDamages>
				</surpriseAttack>
				<power>124</power>
				<cooldownTime>5.65</cooldownTime>
				<chanceFactor>0.1</chanceFactor>
				<armorPenetrationBlunt>76.531</armorPenetrationBlunt>
				<linkedBodyPartsGroup>Tail</linkedBodyPartsGroup>
			</li>
		</value>
	</Operation>
</Patch>