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

	<!-- Fae Blade -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RBSFE_FaeBlade"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1.78</cooldownTime>
					<chanceFactor>0.10</chanceFactor>
					<armorPenetrationBlunt>1.0</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>18</power>
					<cooldownTime>1.78</cooldownTime>
					<armorPenetrationBlunt>1.0</armorPenetrationBlunt>
					<armorPenetrationSharp>2.0</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>40</power>
					<cooldownTime>1.64</cooldownTime>
					<armorPenetrationBlunt>3.24</armorPenetrationBlunt>
					<armorPenetrationSharp>0.72</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RBSFE_FaeBlade"]/statBases</xpath>
		<value>
			<Bulk>8</Bulk>
			<MeleeCounterParryBonus>0.8</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RBSFE_FaeBlade"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.5</MeleeCritChance>
				<MeleeParryChance>0.6</MeleeParryChance>
				<MeleeDodgeChance>0.4</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- Fae Staff -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RBSFE_FaeStaff"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.84</cooldownTime>
					<armorPenetrationBlunt>1.54</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RBSFE_FaeStaff"]/statBases</xpath>
		<value>
			<Bulk>6</Bulk>
			<MeleeCounterParryBonus>1.56</MeleeCounterParryBonus>
		</value>
	</Operation>

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

	<!-- Fae Whip -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RBSFE_FaeWhip"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>whip</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>14.0</power>
					<extraMeleeDamages>
						<li>
							<def>RBSFE_VineWhip</def>
							<amount>3</amount>
						</li>
					</extraMeleeDamages>
					<cooldownTime>2.0</cooldownTime>
					<chanceFactor>1.33</chanceFactor>
					<armorPenetrationBlunt>0.06</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RBSFE_FaeWhip"]/statBases</xpath>
		<value>
			<Bulk>6</Bulk>
			<MeleeCounterParryBonus>1.4</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="RBSFE_FaeWhip"]/equippedStatOffsets</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="RBSFE_FaeWhip"]</xpath>
			<value>
				<equippedStatOffsets/>
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RBSFE_FaeWhip"]/equippedStatOffsets</xpath>
		<value>
			<MeleeCritChance>0.60</MeleeCritChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RBSFE_FaeWhip"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>
	
	<!-- Fae Greatsword -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RBSFE_Faemore</defName>
		<statBases>
			<Bulk>12</Bulk>
			<SwayFactor>0</SwayFactor>
			<ShotSpread>0.0</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0</RangedWeapon_Cooldown>
			<MeleeCounterParryBonus>0.70</MeleeCounterParryBonus>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>RBSFE_FaemoreBullet</defaultProjectile>
			<warmupTime>2.2</warmupTime>
			<range>12</range>
			<burstShotCount>1</burstShotCount>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
				<canTargetPawns>true</canTargetPawns>
			</targetParams>
			<soundCast>RBSFE_FaemoreFire</soundCast>
			<minRange>0</minRange>
		</Properties>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RBSFE_Faemore"]</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="RBSFE_Faemore"]/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>
					<extraMeleeDamages>
						<li>
							<def>RBSFE_FaeDamage</def>
							<amount>1</amount>
						</li>
					</extraMeleeDamages>
					<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>

</Patch>