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

	<!-- === Spear === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Spear" or defName="DevDesigner_HighElves_Spear" or defName="DevDesigner_WoodElves_Spear"]</xpath>
		<value>
			<statBases>
				<Bulk>4</Bulk>
				<MeleeCounterParryBonus>0.5</MeleeCounterParryBonus>
			</statBases>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Spear" or defName="DevDesigner_HighElves_Spear" or defName="DevDesigner_WoodElves_Spear"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.17</MeleeCritChance>
				<MeleeParryChance>0.5</MeleeParryChance>
				<MeleeDodgeChance>0.2</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Spear" or defName="DevDesigner_HighElves_Spear" or defName="DevDesigner_WoodElves_Spear"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Spear" or defName="DevDesigner_HighElves_Spear" or defName="DevDesigner_WoodElves_Spear"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>shaft</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>3</power>
					<cooldownTime>1.50</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>0.55</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>shaft</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1.6</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>0.55</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1.6</cooldownTime>
					<chanceFactor>0.90</chanceFactor>
					<armorPenetrationBlunt>2.5</armorPenetrationBlunt>
					<armorPenetrationSharp>1.75</armorPenetrationSharp>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Greatsword === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Greatsword" or defName="DevDesigner_HighElves_Greatsword" or defName="DevDesigner_WoodElves_Greatsword"]</xpath>
		<value>
			<statBases>
				<Bulk>12</Bulk>
				<MeleeCounterParryBonus>0.70</MeleeCounterParryBonus>
			</statBases>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Greatsword" or defName="DevDesigner_HighElves_Greatsword" or defName="DevDesigner_WoodElves_Greatsword"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.30</MeleeCritChance>
				<MeleeParryChance>1.20</MeleeParryChance>
				<MeleeDodgeChance>0.50</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Greatsword" or defName="DevDesigner_HighElves_Greatsword" or defName="DevDesigner_WoodElves_Greatsword"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.69</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>0.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>24</power>
					<cooldownTime>1.98</cooldownTime>
					<chanceFactor>0.50</chanceFactor>
					<armorPenetrationBlunt>0.8</armorPenetrationBlunt>
					<armorPenetrationSharp>1.90</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>48</power>
					<cooldownTime>2.86</cooldownTime>
					<chanceFactor>0.45</chanceFactor>
					<armorPenetrationBlunt>3.592</armorPenetrationBlunt>
					<armorPenetrationSharp>0.58</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Halberd === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Halberd"]</xpath>
		<value>
			<statBases>
				<Bulk>10</Bulk>
				<MeleeCounterParryBonus>1.08</MeleeCounterParryBonus>
			</statBases>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Halberd"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.22</MeleeCritChance>
				<MeleeParryChance>1.53</MeleeParryChance>
				<MeleeDodgeChance>0.67</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Halberd"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>shaft</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>6</power>
					<cooldownTime>1.31</cooldownTime>
					<armorPenetrationBlunt>2.025</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>47</power>
					<cooldownTime>2.9</cooldownTime>
					<chanceFactor>1.165</chanceFactor>
					<armorPenetrationBlunt>8.1</armorPenetrationBlunt>
					<armorPenetrationSharp>1.62</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>40</power>
					<cooldownTime>1.16</cooldownTime>
					<chanceFactor>1.165</chanceFactor>
					<armorPenetrationBlunt>2.025</armorPenetrationBlunt>
					<armorPenetrationSharp>2.03</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Longsword === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_HighElves_Longsword"]/statBases</xpath>
		<value>
			<Bulk>8</Bulk>
			<MeleeCounterParryBonus>1</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_HighElves_Longsword"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.63</MeleeCritChance>
				<MeleeParryChance>0.75</MeleeParryChance>
				<MeleeDodgeChance>0.40</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DevDesigner_HighElves_Longsword"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.69</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>0.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>18</power>
					<cooldownTime>1.59</cooldownTime>
					<chanceFactor>0.60</chanceFactor>
					<armorPenetrationBlunt>0.8</armorPenetrationBlunt>
					<armorPenetrationSharp>1.60</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>36</power>
					<cooldownTime>1.56</cooldownTime>
					<chanceFactor>0.35</chanceFactor>
					<armorPenetrationBlunt>2.592</armorPenetrationBlunt>
					<armorPenetrationSharp>0.58</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Sword === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Sword" or defName="DevDesigner_HighElves_Sword" or defName="DevDesigner_WoodElves_Sword"]/statBases</xpath>
		<value>
			<Bulk>6</Bulk>
			<MeleeCounterParryBonus>0.6</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Sword" or defName="DevDesigner_HighElves_Sword" or defName="DevDesigner_WoodElves_Sword"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.40</MeleeCritChance>
				<MeleeParryChance>0.60</MeleeParryChance>
				<MeleeDodgeChance>0.30</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Sword" or defName="DevDesigner_HighElves_Sword" or defName="DevDesigner_WoodElves_Sword"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Sword" or defName="DevDesigner_HighElves_Sword" or defName="DevDesigner_WoodElves_Sword"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>3</power>
					<cooldownTime>1.59</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>0.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>22</power>
					<cooldownTime>1.46</cooldownTime>
					<chanceFactor>0.50</chanceFactor>
					<armorPenetrationBlunt>0.6</armorPenetrationBlunt>
					<armorPenetrationSharp>1.40</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>25</power>
					<cooldownTime>1.59</cooldownTime>
					<chanceFactor>0.45</chanceFactor>
					<armorPenetrationBlunt>1.1</armorPenetrationBlunt>
					<armorPenetrationSharp>0.58</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Dagger === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Dagger"]/statBases</xpath>
		<value>
			<Bulk>5</Bulk>
			<MeleeCounterParryBonus>0.3</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Dagger"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.40</MeleeCritChance>
				<MeleeParryChance>0.60</MeleeParryChance>
				<MeleeDodgeChance>0.30</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Dagger"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DevDesigner_DarkElves_Dagger"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1.59</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>1.0</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>16</power>
					<cooldownTime>1.46</cooldownTime>
					<chanceFactor>0.50</chanceFactor>
					<armorPenetrationBlunt>0.685</armorPenetrationBlunt>
					<armorPenetrationSharp>1.75</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>14</power>
					<cooldownTime>1.59</cooldownTime>
					<chanceFactor>0.45</chanceFactor>
					<armorPenetrationBlunt>1.25</armorPenetrationBlunt>
					<armorPenetrationSharp>0.725</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Axe === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_WoodElves_Axe"]/statBases</xpath>
		<value>
			<Bulk>3</Bulk>
			<MeleeCounterParryBonus>0.22</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_WoodElves_Axe"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.31</MeleeCritChance>
				<MeleeParryChance>0.22</MeleeParryChance>
				<MeleeDodgeChance>0.22</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_WoodElves_Axe"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DevDesigner_WoodElves_Axe"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>shaft</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>3</power>
					<cooldownTime>0.95</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>0.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>15</power>
					<cooldownTime>1.59</cooldownTime>
					<chanceFactor>0.25</chanceFactor>
					<armorPenetrationBlunt>3.6</armorPenetrationBlunt>
					<armorPenetrationSharp>2.32</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>23</power>
					<cooldownTime>1.58</cooldownTime>
					<chanceFactor>0.70</chanceFactor>
					<armorPenetrationBlunt>3.6</armorPenetrationBlunt>
					<armorPenetrationSharp>0.75</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Greataxe === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_HighElves_Greataxe" or defName="DevDesigner_WoodElves_Greataxe"]/statBases</xpath>
		<value>
			<Bulk>7</Bulk>
			<MeleeCounterParryBonus>0.35</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_HighElves_Greataxe" or defName="DevDesigner_WoodElves_Greataxe"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.30</MeleeCritChance>
				<MeleeParryChance>0.40</MeleeParryChance>
				<MeleeDodgeChance>0.23</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DevDesigner_HighElves_Greataxe" or defName="DevDesigner_WoodElves_Greataxe"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>shaft</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>3</power>
					<cooldownTime>1.3</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>0.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>15</power>
					<cooldownTime>2.18</cooldownTime>
					<chanceFactor>0.25</chanceFactor>
					<armorPenetrationBlunt>9.6</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>37</power>
					<cooldownTime>2.18</cooldownTime>
					<chanceFactor>0.70</chanceFactor>
					<armorPenetrationBlunt>9.6</armorPenetrationBlunt>
					<armorPenetrationSharp>0.95</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Staff === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_WoodElves_AlarielleStaff" or defName="DevDesigner_WoodElves_ShamanStaff"]/statBases</xpath>
		<value>
			<Bulk>6</Bulk>
			<MeleeCounterParryBonus>1.56</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_WoodElves_AlarielleStaff" or defName="DevDesigner_WoodElves_ShamanStaff"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.6</MeleeCritChance>
				<MeleeParryChance>1.17</MeleeParryChance>
				<MeleeDodgeChance>0.47</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="DevDesigner_WoodElves_AlarielleStaff" or defName="DevDesigner_WoodElves_ShamanStaff"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="DevDesigner_WoodElves_AlarielleStaff" or defName="DevDesigner_WoodElves_ShamanStaff"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>shaft</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.3</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>0.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>shaft</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.3</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>0.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>18</power>
					<cooldownTime>1.84</cooldownTime>
					<armorPenetrationBlunt>4.28</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

</Patch>