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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Royalty</li>
		</mods>
		<match Class="PatchOperationFindMod">
			<mods>
				<li>Big and Small - Enable All Optional Content</li>
				<li>Big and Small - Races</li>
				<li>Big and Small - Slimes</li>
				<li>Big and Small - Heaven and Hell</li>
				<li>Big and Small - Xeno Insectoid Hive</li>
				<li>Big and Small - Vampires and the Undead</li>
				<li>Big and Small - Lamias and other Snake-People</li>
				<li>Big and Small - More Xenotypes</li>
				<li>Big and Small - Weapons</li>
				<li>Big and Small - Sapient Animals</li>
				<li>Big and Small - Yokai</li>
				<li>Randy Random's Rayguns - Ordinary Spacer Weapons</li>
			</mods>
			<match Class="PatchOperationSequence">
				<operations>

					<!-- ====== Persona Surtr Sword ====== -->
					<li Class="PatchOperationAdd">
						<xpath>Defs/ThingDef[defName="BS_SurtrSword_Persona"]/statBases</xpath>
						<value>
							<Bulk>30</Bulk>
							<MeleeCounterParryBonus>0.4</MeleeCounterParryBonus>
						</value>
					</li>

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

					<li Class="PatchOperationReplace">
						<xpath>Defs/ThingDef[defName="BS_SurtrSword_Persona"]/tools</xpath>
						<value>
							<tools>
								<li Class="CombatExtended.ToolCE">
									<label>handle</label>
									<capacities>
										<li>Poke</li>
									</capacities>
									<power>16</power>
									<cooldownTime>2.51</cooldownTime>
									<chanceFactor>0.05</chanceFactor>
									<armorPenetrationBlunt>7.26</armorPenetrationBlunt>
									<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
								</li>
								<li Class="CombatExtended.ToolCE">
									<label>point</label>
									<capacities>
										<li>Stab</li>
									</capacities>
									<power>76</power>
									<cooldownTime>2.10</cooldownTime>
									<chanceFactor>0.50</chanceFactor>
									<armorPenetrationBlunt>10.45</armorPenetrationBlunt>
									<armorPenetrationSharp>203.28</armorPenetrationSharp>
									<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
									<extraMeleeDamages>
										<li>
											<def>Flame</def>
											<amount>20</amount>
											<chance>0.75</chance>
										</li>
									</extraMeleeDamages>
								</li>
								<li Class="CombatExtended.ToolCE">
									<label>edge</label>
									<capacities>
										<li>Cut</li>
									</capacities>
									<power>87</power>
									<cooldownTime>1.86</cooldownTime>
									<chanceFactor>0.45</chanceFactor>
									<armorPenetrationBlunt>23.52</armorPenetrationBlunt>
									<armorPenetrationSharp>147.01</armorPenetrationSharp>
									<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
									<extraMeleeDamages>
										<li>
											<def>Flame</def>
											<amount>20</amount>
											<chance>0.75</chance>
										</li>
									</extraMeleeDamages>
								</li>
							</tools>
						</value>
					</li>

					<!-- ====== Persona Skrymir Hammer ====== -->
					<li Class="PatchOperationAdd">
						<xpath>Defs/ThingDef[defName="BS_SkrymirHammer_Persona"]/statBases</xpath>
						<value>
							<Bulk>60</Bulk>
							<MeleeCounterParryBonus>0.6</MeleeCounterParryBonus>
						</value>
					</li>

					<li Class="PatchOperationAdd">
						<xpath>Defs/ThingDef[defName="BS_SkrymirHammer_Persona"]</xpath>
						<value>
							<equippedStatOffsets>
								<MeleeCritChance>1</MeleeCritChance>
								<MeleeParryChance>0.45</MeleeParryChance>
								<MeleeDodgeChance>0.3</MeleeDodgeChance>
							</equippedStatOffsets>
						</value>
					</li>

					<li Class="PatchOperationReplace">
						<xpath>Defs/ThingDef[defName="BS_SkrymirHammer_Persona"]/tools</xpath>
						<value>
							<tools>
								<li Class="CombatExtended.ToolCE">
									<label>handle</label>
									<capacities>
										<li>Poke</li>
									</capacities>
									<power>22</power>
									<cooldownTime>2.78</cooldownTime>
									<chanceFactor>0.10</chanceFactor>
									<armorPenetrationBlunt>18.15</armorPenetrationBlunt>
									<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
								</li>
								<li Class="CombatExtended.ToolCE">
									<label>head</label>
									<capacities>
										<li>Demolish</li>
									</capacities>
									<power>77</power>
									<extraMeleeDamages>
										<li>
											<def>Frostbite</def>
											<amount>9</amount>
											<chance>0.75</chance>
										</li>
										<li>
											<def>EMP</def>
											<amount>9</amount>
										</li>
										<li>
											<def>Stun</def>
											<amount>9</amount>
											<chance>0.25</chance>
										</li>
									</extraMeleeDamages>
									<cooldownTime>2.59</cooldownTime>
									<chanceFactor>0.90</chanceFactor>
									<armorPenetrationBlunt>242</armorPenetrationBlunt>
									<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
								</li>
							</tools>
						</value>
					</li>

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