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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_LightningWand" or
			defName="TM_IceWand" or
			defName="TM_DefenderStaff" or
			defName="TM_BlazingPowerStaff" or
			defName="TM_FireWand"
			]/tools </xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>wand</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>6</power>
					<cooldownTime>1.2</cooldownTime>
					<armorPenetrationBlunt>0.4</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="Seer_FireRing" or
			defName="Seer_IceRing" or
			defName="Seer_LightningRing"
			]/tools </xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>ring</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>0.5</cooldownTime>
					<armorPenetrationBlunt>0.2</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="Projectile_IceWand"]</xpath>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="Projectile_FireWand"]</xpath>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="Projectile_LightningWand"]</xpath>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>TM_IceWand</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.01</SwayFactor>
			<Bulk>1</Bulk>
			<Mass>1</Mass>
			<RangedWeapon_Cooldown>0.6</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.53</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_CE_IceWand</defaultProjectile>
			<warmupTime>0.5</warmupTime>
			<range>40</range>
			<soundCast>TM_Woosh</soundCast>
			<muzzleFlashScale>5</muzzleFlashScale>
			<soundCastTail>GunTail_Light</soundCastTail>
		</Properties>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Seer_IceRing</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>0.10</SwayFactor>
			<Bulk>0.5</Bulk>
			<Mass>1</Mass>
			<RangedWeapon_Cooldown>0.3</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_CE_IceWand</defaultProjectile>
			<warmupTime>0.25</warmupTime>
			<range>40</range>
			<soundCast>Shot_ChargeRifle</soundCast>
			<muzzleFlashScale>5</muzzleFlashScale>
			<soundCastTail>GunTail_Light</soundCastTail>
		</Properties>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>TM_LightningWand</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.01</SwayFactor>
			<Bulk>1</Bulk>
			<Mass>1</Mass>
			<RangedWeapon_Cooldown>1.6</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.53</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_CE_LightningWand</defaultProjectile>
			<warmupTime>2.8</warmupTime>
			<range>32</range>
			<soundCast>TM_Thunder_OnMap</soundCast>
			<muzzleFlashScale>5</muzzleFlashScale>
			<soundCastTail>GunTail_Light</soundCastTail>
		</Properties>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Seer_LightningRing</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>0.10</SwayFactor>
			<Bulk>0.5</Bulk>
			<Mass>1</Mass>
			<RangedWeapon_Cooldown>0.8</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_CE_LightningWand</defaultProjectile>
			<warmupTime>1.4</warmupTime>
			<range>32</range>
			<soundCast>TM_Thunder_OnMap</soundCast>
			<muzzleFlashScale>5</muzzleFlashScale>
			<soundCastTail>GunTail_Light</soundCastTail>
		</Properties>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>TM_FireWand</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.01</SwayFactor>
			<Bulk>1</Bulk>
			<Mass>1</Mass>
			<RangedWeapon_Cooldown>1.9</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.53</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_CE_FireWand</defaultProjectile>
			<warmupTime>1.5</warmupTime>
			<range>32</range>
			<burstShotCount>3</burstShotCount>
			<ticksBetweenBurstShots>9</ticksBetweenBurstShots>
			<soundCast>TM_Woosh</soundCast>
			<muzzleFlashScale>5</muzzleFlashScale>
			<soundCastTail>GunTail_Light</soundCastTail>
		</Properties>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Seer_FireRing</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>0.10</SwayFactor>
			<Bulk>0.5</Bulk>
			<Mass>1</Mass>
			<RangedWeapon_Cooldown>0.95</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_CE_FireWand</defaultProjectile>
			<warmupTime>0.75</warmupTime>
			<range>32</range>
			<burstShotCount>3</burstShotCount>
			<ticksBetweenBurstShots>9</ticksBetweenBurstShots>
			<soundCast>DropPod_Leaving</soundCast>
			<muzzleFlashScale>5</muzzleFlashScale>
			<soundCastTail>GunTail_Light</soundCastTail>
		</Properties>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="Projectile_BlazingPower"]</xpath>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="TM_DefenderStaff" or defName="TM_BlazingPowerStaff"]/verbs/li[verbClass="TorannMagic.Weapon.Verb_BlazingPower"]</xpath>
	</Operation>

  <Operation Class="PatchOperationReplace">
	<xpath>Defs/ThingDef[defName= "TM_Ruunbled" or defName="TM_BlazingPowerStaff" or defName="TM_DefenderStaff"]/comps/li[@Class="CompDeflector.CompProperties_Deflector"]/DeflectVerb/defaultProjectile</xpath>
	<value>
		<defaultProjectile>Projectile_CE_BlazingPower</defaultProjectile>
	</value>
  </Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>TM_DefenderStaff</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.01</SwayFactor>
			<Bulk>2</Bulk>
			<Mass>2</Mass>
			<RangedWeapon_Cooldown>2.6</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.53</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_CE_BlazingPower</defaultProjectile>
			<warmupTime>0.5</warmupTime>
			<range>40</range>
			<soundCast>TM_Woosh</soundCast>
			<burstShotCount>5</burstShotCount>
			<muzzleFlashScale>7</muzzleFlashScale>
			<soundCastTail>GunTail_Light</soundCastTail>
		</Properties>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>TM_BlazingPowerStaff</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.01</SwayFactor>
			<Bulk>2</Bulk>
			<Mass>2</Mass>
			<RangedWeapon_Cooldown>3.5</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.53</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_CE_BlazingPower</defaultProjectile>
			<warmupTime>1</warmupTime>
			<range>40</range>
			<soundCast>TM_Woosh</soundCast>
			<burstShotCount>7</burstShotCount>
			<muzzleFlashScale>8</muzzleFlashScale>
			<soundCastTail>GunTail_Light</soundCastTail>
		</Properties>
		<FireModes>
			<aimedBurstShotCount>4</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>TM_ElephantBow</defName>
		<statBases>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.5</ShotSpread>
			<SwayFactor>1</SwayFactor>
			<Bulk>4.00</Bulk>
			<RangedWeapon_Cooldown>0.5</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_StreamlinedArrow_Stone</defaultProjectile>
			<warmupTime>1.2</warmupTime>
			<range>34</range>
			<soundCast>TM_ThrumBow</soundCast>
			<soundCastTail>TM_Woosh</soundCastTail>
			<muzzleFlashScale>1</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<ammoSet>AmmoSet_StreamlinedArrow</ammoSet>
			<AmmoGenPerMagOverride>5</AmmoGenPerMagOverride>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_Bow</li>
		</weaponTags>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TM_ElephantBow"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>1.6</cooldownTime>
					<armorPenetrationBlunt>0.65</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>TM_ThrumBow</defName>
		<statBases>
			<SightsEfficiency>1.4</SightsEfficiency>
			<ShotSpread>0.3</ShotSpread>
			<SwayFactor>0.7</SwayFactor>
			<Bulk>4.00</Bulk>
			<RangedWeapon_Cooldown>0.5</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_StreamlinedArrow_Stone</defaultProjectile>
			<warmupTime>1</warmupTime>
			<range>40</range>
			<soundCast>TM_ThrumBow</soundCast>
		</Properties>
		<AmmoUser>
			<ammoSet>AmmoSet_GreatArrowRoMThrumbo</ammoSet>
			<AmmoGenPerMagOverride>5</AmmoGenPerMagOverride>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_Bow</li>
		</weaponTags>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TM_ThrumBow"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>1.6</cooldownTime>
					<armorPenetrationBlunt>0.65</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

</Patch>