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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Vanilla Factions Expanded - Pirates</li>
		</mods>
		<match Class="PatchOperationSequence">
			<operations>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="EW_WC_EltexGreatsword"]/statBases</xpath>
					<value>
						<Bulk>20</Bulk>
						<MeleeCounterParryBonus>1</MeleeCounterParryBonus>
						<ToughnessRating>24</ToughnessRating>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="EW_WC_EltexGreatsword"]/equippedStatOffsets</xpath>
					<value>
						<MeleeCritChance>0.02</MeleeCritChance>
						<MeleeParryChance>0.44</MeleeParryChance>
						<MeleeDodgeChance>0.22</MeleeDodgeChance>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="EW_WC_EltexGreatsword"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>point</label>
								<capacities>
									<li>Stab</li>
								</capacities>
								<power>46</power>
								<cooldownTime>2.6</cooldownTime>
								<armorPenetrationBlunt>9</armorPenetrationBlunt>
								<armorPenetrationSharp>38</armorPenetrationSharp>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>blade</label>
								<capacities>
									<li>Cut</li>
								</capacities>
								<power>52</power>
								<cooldownTime>2.6</cooldownTime>
								<armorPenetrationBlunt>17</armorPenetrationBlunt>
								<armorPenetrationSharp>28</armorPenetrationSharp>
							</li>
						</tools>
					</value>
				</li>

			</operations>
		</match>
	</Operation>
</Patch>