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

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[
			defName="CAT_PlasmaAxe" or
			defName="CAT_PlasmaHalberd" or
			defName="CAT_PlasmaKhopesh" or
			defName="CAT_PlasmaScythe" or
			defName="CAT_PlasmaTwinBlades" or
			defName="CAT_PlasmaGreatsword" or
			defName="CAT_PlasmaCleaver" or
			defName="CAT_PlasmaSaw"
			]/equippedStatOffsets</xpath>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/DamageDef[defName="CAT_SplitDamage"]</xpath>
		<value>
			<harmAllLayersUntilOutside>true</harmAllLayersUntilOutside>
		</value>
	</Operation>

	<!--======== Rong =============-->
	<Operation Class="PatchOperationReplace">
		<xpath>/Defs/ThingDef[defName="CAT_PlasmaAxe"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>12</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
					<chanceFactor>0.1</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>CAT_Split</li>
					</capacities>
					<power>18</power>
					<cooldownTime>2.4</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<armorPenetrationSharp>24</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>10</amount>
							<chance>0.5</chance>
						</li>
					</extraMeleeDamages>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>21</power>
					<cooldownTime>1.34</cooldownTime>
					<chanceFactor>1.66</chanceFactor>
					<armorPenetrationBlunt>6</armorPenetrationBlunt>
					<armorPenetrationSharp>18</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>10</amount>
							<chance>0.5</chance>
						</li>
					</extraMeleeDamages>
				</li>
			</tools>
		</value>
	</Operation>

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaAxe"]/equippedStatOffsets</xpath>
		<value>
			<MeleeCritChance>0.67</MeleeCritChance>
			<MeleeParryChance>0.60</MeleeParryChance>
			<MeleeDodgeChance>0.27</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>/Defs/ThingDef[defName="CAT_PlasmaHalberd"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>12</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
					<chanceFactor>0.1</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>26</power>
					<cooldownTime>2.8</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<armorPenetrationSharp>22</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>10</amount>
							<chance>0.5</chance>
						</li>
					</extraMeleeDamages>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>26</power>
					<cooldownTime>3.0</cooldownTime>
					<chanceFactor>1.33</chanceFactor>
					<armorPenetrationBlunt>6</armorPenetrationBlunt>
					<armorPenetrationSharp>28</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>10</amount>
							<chance>0.5</chance>
						</li>
					</extraMeleeDamages>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaHalberd"]/statBases</xpath>
		<value>
			<Bulk>10</Bulk>
			<MeleeCounterParryBonus>1.71</MeleeCounterParryBonus>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaHalberd"]/equippedStatOffsets</xpath>
		<value>
			<MeleeCritChance>0.19</MeleeCritChance>
			<MeleeParryChance>1.5</MeleeParryChance>
			<MeleeDodgeChance>0.83</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>/Defs/ThingDef[defName="CAT_PlasmaKhopesh"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>12</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
					<chanceFactor>0.1</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>24</power>
					<cooldownTime>2.4</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<armorPenetrationSharp>22</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>12</amount>
							<chance>0.7</chance>
						</li>
					</extraMeleeDamages>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>36</power>
					<cooldownTime>1.2</cooldownTime>
					<chanceFactor>1.33</chanceFactor>
					<armorPenetrationBlunt>6</armorPenetrationBlunt>
					<armorPenetrationSharp>24</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>12</amount>
							<chance>0.7</chance>
						</li>
					</extraMeleeDamages>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaKhopesh"]/statBases</xpath>
		<value>
			<Bulk>7</Bulk>
			<MeleeCounterParryBonus>0.90</MeleeCounterParryBonus>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaKhopesh"]/equippedStatOffsets</xpath>
		<value>
			<MeleeCritChance>0.50</MeleeCritChance>
			<MeleeParryChance>0.68</MeleeParryChance>
			<MeleeDodgeChance>0.45</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>/Defs/ThingDef[defName="CAT_PlasmaScythe"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>12</power>
					<cooldownTime>1.6</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
					<chanceFactor>0.1</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>CAT_PlasmaScytheHead</li>
					</capacities>
					<power>31</power>
					<cooldownTime>3.0</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<armorPenetrationSharp>28</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<chanceFactor>1.33</chanceFactor>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>10</amount>
							<chance>0.45</chance>
						</li>
					</extraMeleeDamages>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaScythe"]/statBases</xpath>
		<value>
			<Bulk>12</Bulk>
			<MeleeCounterParryBonus>0.30</MeleeCounterParryBonus>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaScythe"]/equippedStatOffsets</xpath>
		<value>
			<MeleeCritChance>0.67</MeleeCritChance>
			<MeleeParryChance>0.50</MeleeParryChance>
			<MeleeDodgeChance>0.33</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>/Defs/ThingDef[defName="CAT_PlasmaGreatsword"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>12</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
					<chanceFactor>0.1</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>30</power>
					<cooldownTime>2.2</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<armorPenetrationSharp>24</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>10</amount>
							<chance>0.5</chance>
						</li>
					</extraMeleeDamages>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>30</power>
					<cooldownTime>2.6</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<armorPenetrationSharp>26</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<chanceFactor>1.33</chanceFactor>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>10</amount>
							<chance>0.5</chance>
						</li>
					</extraMeleeDamages>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaGreatsword"]/statBases</xpath>
		<value>
			<Bulk>12</Bulk>
			<MeleeCounterParryBonus>0.67</MeleeCounterParryBonus>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaGreatsword"]/equippedStatOffsets</xpath>
		<value>
			<MeleeCritChance>0.16</MeleeCritChance>
			<MeleeParryChance>0.5</MeleeParryChance>
			<MeleeDodgeChance>0.53</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>/Defs/ThingDef[defName="CAT_PlasmaCleaver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>12</power>
					<cooldownTime>1.4</cooldownTime>
					<armorPenetrationBlunt>10</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
					<chanceFactor>0.1</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>36</power>
					<cooldownTime>1.8</cooldownTime>
					<armorPenetrationBlunt>16</armorPenetrationBlunt>
					<armorPenetrationSharp>24</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>12</amount>
							<chance>0.75</chance>
						</li>
					</extraMeleeDamages>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>cleave</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>54</power>
					<cooldownTime>2.8</cooldownTime>
					<armorPenetrationBlunt>12</armorPenetrationBlunt>
					<armorPenetrationSharp>48</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>15</amount>
							<chance>0.95</chance>
						</li>
					</extraMeleeDamages>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaCleaver"]/statBases</xpath>
		<value>
			<Bulk>12</Bulk>
			<MeleeCounterParryBonus>1.42</MeleeCounterParryBonus>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaCleaver"]/equippedStatOffsets</xpath>
		<value>
			<MeleeCritChance>1.53</MeleeCritChance>
			<MeleeParryChance>1.06</MeleeParryChance>
			<MeleeDodgeChance>0.29</MeleeDodgeChance>
		</value>
	</Operation>

	<!-- ========== PlasmaSaw ========== -->
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaSaw"]/comps/li[@Class="MVCF.Comps.CompProperties_VerbProps"]</xpath>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CAT_PlasmaSaw</defName>
		<statBases>
			<RangedWeapon_Cooldown>0.45</RangedWeapon_Cooldown>
			<SightsEfficiency>1.25</SightsEfficiency>
			<ShotSpread>0.01</ShotSpread>
			<SwayFactor>0.88</SwayFactor>
			<Bulk>13.00</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>0.92</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_Sawblades_Heat</defaultProjectile>
			<warmupTime>1.5</warmupTime>
			<range>30</range>
			<soundCast>Interact_PlasmaSword</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<reloadTime>2.05</reloadTime>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags />
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaSaw"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>Sawblades</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>10</power>
					<cooldownTime>0.15</cooldownTime>
					<armorPenetrationBlunt>2.5</armorPenetrationBlunt>
					<armorPenetrationSharp>5.5</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>5</amount>
							<chance>0.75</chance>
						</li>
					</extraMeleeDamages>
				</li>
			</tools>
		</value>
	</Operation>

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PlasmaSaw"]/equippedStatOffsets</xpath>
		<value>
			<MeleeCritChance>0.10</MeleeCritChance>
			<MeleeParryChance>0.85</MeleeParryChance>
			<MeleeDodgeChance>0.55</MeleeDodgeChance>
		</value>
	</Operation>

</Patch>