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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Royalty</li>
		</mods>

		<match Class="PatchOperationSequence">
			<operations>

			<!-- === Skimmer Pack === -->

			<li Class="PatchOperationAdd">
				<xpath>Defs/ThingDef[defName="RM_Apparel_SkimmerPack"]/statBases</xpath>
				<value>
					<Bulk>8</Bulk>
					<WornBulk>3</WornBulk>
				</value>
			</li>

			<!-- === Plasma Dagger === -->
			
			<li Class="PatchOperationReplace">
				<xpath>Defs/ThingDef[defName="RM_MeleeWeapon_PlasmaBane"]/tools</xpath>
				<value>
					<tools>
						<li Class="CombatExtended.ToolCE">
							<label>points</label>
							<capacities>
								<li>Stab</li>
							</capacities>
							<power>29</power>
							<cooldownTime>1.46</cooldownTime>
							<extraMeleeDamages>
								<li>
									<def>Flame</def>
									<amount>5</amount>
									<chance>0.5</chance>
								</li>
							</extraMeleeDamages>
							<chanceFactor>0.20</chanceFactor>
							<armorPenetrationBlunt>2.625</armorPenetrationBlunt>
							<armorPenetrationSharp>24</armorPenetrationSharp>
							<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
						</li>
						<li Class="CombatExtended.ToolCE">
							<label>left edge</label>
							<capacities>
								<li>Cut</li>
							</capacities>
							<power>28</power>
							<cooldownTime>1.59</cooldownTime>
							<extraMeleeDamages>
								<li>
									<def>Flame</def>
									<amount>5</amount>
									<chance>0.5</chance>
								</li>
							</extraMeleeDamages>
							<chanceFactor>0.40</chanceFactor>
							<armorPenetrationBlunt>3.0</armorPenetrationBlunt>
							<armorPenetrationSharp>18</armorPenetrationSharp>
							<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
						</li>
						<li Class="CombatExtended.ToolCE">
							<label>right edge</label>
							<capacities>
								<li>Cut</li>
							</capacities>
							<power>28</power>
							<cooldownTime>1.59</cooldownTime>
							<extraMeleeDamages>
								<li>
									<def>Flame</def>
									<amount>5</amount>
									<chance>0.5</chance>
								</li>
							</extraMeleeDamages>
							<chanceFactor>0.40</chanceFactor>
							<armorPenetrationBlunt>3.0</armorPenetrationBlunt>
							<armorPenetrationSharp>18</armorPenetrationSharp>
							<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
						</li>
					</tools>
				</value>
			</li>

			<li Class="PatchOperationAdd">
				<xpath>Defs/ThingDef[defName="RM_MeleeWeapon_PlasmaBane"]/statBases</xpath>
				<value>
					<Bulk>5</Bulk>
					<MeleeCounterParryBonus>0.3</MeleeCounterParryBonus>
				</value>
			</li>

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

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

			<!-- === Plasma Dual Sword === -->
			<li Class="PatchOperationReplace">
				<xpath>Defs/ThingDef[defName="RM_MeleeWeapon_PlasmaSword"]/tools</xpath>
				<value>
					<tools>
						<li Class="CombatExtended.ToolCE">
							<label>point</label>
							<capacities>
								<li>Stab</li>
							</capacities>
							<power>40</power>
							<extraMeleeDamages>
								<li>
									<def>Flame</def>
									<amount>10</amount>
									<chance>0.5</chance>
								</li>
							</extraMeleeDamages>
							<cooldownTime>1.25</cooldownTime>
							<armorPenetrationBlunt>1.848</armorPenetrationBlunt>
							<armorPenetrationSharp>28</armorPenetrationSharp>
						</li>
						<li Class="CombatExtended.ToolCE">
							<label>left edge</label>
							<capacities>
								<li>Cut</li>
							</capacities>
							<power>32</power>
							<extraMeleeDamages>
								<li>
									<def>Flame</def>
									<amount>8</amount>
									<chance>0.5</chance>
								</li>
							</extraMeleeDamages>
							<cooldownTime>1.57</cooldownTime>
							<armorPenetrationBlunt>3.76</armorPenetrationBlunt>
							<armorPenetrationSharp>22</armorPenetrationSharp>
							<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
						</li>
						<li Class="CombatExtended.ToolCE">
							<label>right edge</label>
							<capacities>
								<li>Cut</li>
							</capacities>
							<power>32</power>
							<extraMeleeDamages>
								<li>
									<def>Flame</def>
									<amount>8</amount>
									<chance>0.5</chance>
								</li>
							</extraMeleeDamages>
							<cooldownTime>1.57</cooldownTime>
							<armorPenetrationBlunt>3.76</armorPenetrationBlunt>
							<armorPenetrationSharp>22</armorPenetrationSharp>
							<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
						</li>
					</tools>
				</value>
			</li>

			<li Class="PatchOperationAdd">
				<xpath>Defs/ThingDef[defName="RM_MeleeWeapon_PlasmaSword"]/statBases</xpath>
				<value>
					<Bulk>8.5</Bulk>
					<MeleeCounterParryBonus>1.17</MeleeCounterParryBonus>
				</value>
			</li>

			<li Class="PatchOperationAdd">
				<xpath>Defs/ThingDef[defName="RM_MeleeWeapon_PlasmaSword"]</xpath>
				<value>
					<equippedStatOffsets>
						<MeleeCritChance>0.80</MeleeCritChance>
						<MeleeParryChance>0.60</MeleeParryChance>
						<MeleeDodgeChance>0.53</MeleeDodgeChance>
					</equippedStatOffsets>
				</value>
			</li>

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

</Patch>