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

	<!-- ======= Amber Staff ======= -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Ogam_AmberStaff</defName>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>RF_MagicBolt_Amber</defaultProjectile>
			<warmupTime>1.25</warmupTime>
			<range>45</range>
			<recoilAmount>1.53</recoilAmount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<burstShotCount>3</burstShotCount>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>7</muzzleFlashScale>
		</Properties>
	</Operation>

	<!-- ======= Amber Grimoire ======= -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Ogam_AmberBook</defName>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>RF_MagicBolt_Ring_Amber</defaultProjectile>
			<warmupTime>1.15</warmupTime>
			<range>40</range>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>5</muzzleFlashScale>
		</Properties>
	</Operation>

	<!-- ======= Emerald Grimoire ======= -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Ogam_EmeraldBook</defName>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>RF_MagicBolt_Ring_Emerald</defaultProjectile>
			<warmupTime>1.15</warmupTime>
			<range>40</range>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>5</muzzleFlashScale>
		</Properties>
	</Operation>

	<!-- ======= Sapphire Grimoire ======= -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Ogam_SapphireBook</defName>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>RF_MagicBolt_Ring_Sapphire</defaultProjectile>
			<warmupTime>1.15</warmupTime>
			<range>40</range>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>5</muzzleFlashScale>
		</Properties>
	</Operation>

	<!-- ======= Ruby Grimoire ======= -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Ogam_RubyBook</defName>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>RF_MagicBolt_Ring_Ruby</defaultProjectile>
			<warmupTime>1.15</warmupTime>
			<range>40</range>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>5</muzzleFlashScale>
		</Properties>
	</Operation>

	<!-- ======= Rune Musket ======= -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Ogam_RuneMusket"]</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.55</cooldownTime>
					<chanceFactor>1.5</chanceFactor>
					<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>bayonet</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>18</power>
					<cooldownTime>1.49</cooldownTime>
					<armorPenetrationBlunt>2.16</armorPenetrationBlunt>
					<armorPenetrationSharp>1.44</armorPenetrationSharp>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Ogam_RuneMusket"]/weaponTags</xpath>
		<value>
			<li>NoSwitch</li>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Ogam_RuneMusket</defName>
		<costList>
			<WoodLog>40</WoodLog>
			<DankPyon_IronIngot>40</DankPyon_IronIngot>
			<DankPyon_Sapphire>55</DankPyon_Sapphire>
		</costList>
		<statBases>
			<Mass>5.2</Mass>
			<Bulk>15</Bulk>
			<SwayFactor>2.02</SwayFactor>
			<ShotSpread>0.10</ShotSpread>
			<SightsEfficiency>0.80</SightsEfficiency>
			<RangedWeapon_Cooldown>0.85</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>RF_SprayPylon_MagicBolt</defaultProjectile>
			<recoilAmount>2.53</recoilAmount>
			<warmupTime>1.3</warmupTime>
			<range>40</range>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<reloadTime>4</reloadTime>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- ======= Rune Pistol ======= -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Ogam_RunePistol"]</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>grip</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.54</cooldownTime>
					<chanceFactor>1.5</chanceFactor>
					<armorPenetrationBlunt>0.555</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Grip</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.54</cooldownTime>
					<armorPenetrationBlunt>0.555</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Ogam_RunePistol</defName>
		<costList>
			<WoodLog>50</WoodLog>
			<DankPyon_IronIngot>30</DankPyon_IronIngot>
			<DankPyon_Emerald>55</DankPyon_Emerald>
		</costList>
		<statBases>
			<Mass>1.25</Mass>
			<Bulk>3.50</Bulk>
			<ShotSpread>0.42</ShotSpread>
			<SwayFactor>1.58</SwayFactor>
			<SightsEfficiency>0.5</SightsEfficiency>
			<RangedWeapon_Cooldown>1.06</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>3.59</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>RF_LancePylon_MagicBolt</defaultProjectile>
			<warmupTime>0.9</warmupTime>
			<range>12</range>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<reloadTime>3</reloadTime>
		</AmmoUser>
		<FireModes>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- ======= Rune Hand Mortar ======= -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Ogam_RuneMortar"]</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.55</cooldownTime>
					<chanceFactor>1.5</chanceFactor>
					<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>2.02</cooldownTime>
					<armorPenetrationBlunt>1.630</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.55</cooldownTime>
					<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Ogam_RuneMortar</defName>
		<costList>
			<WoodLog>25</WoodLog>
			<DankPyon_IronIngot>60</DankPyon_IronIngot>
			<DankPyon_Ruby>55</DankPyon_Ruby>
		</costList>
		<statBases>
			<Mass>3.5</Mass>
			<Bulk>6.0</Bulk>
			<SightsEfficiency>0.8</SightsEfficiency>
			<ShotSpread>0.57</ShotSpread>
			<SwayFactor>0.95</SwayFactor>
			<RangedWeapon_Cooldown>1.06</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>3.34</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>RF_BombardPylon_MagicBolt</defaultProjectile>
			<ai_IsBuildingDestroyer>true</ai_IsBuildingDestroyer>
			<warmupTime>1.4</warmupTime>
			<range>40</range>
			<minRange>5</minRange>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>14</muzzleFlashScale>
			<ignorePartialLoSBlocker>true</ignorePartialLoSBlocker>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<reloadTime>6</reloadTime>
		</AmmoUser>
		<FireModes>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
	</Operation>

</Patch>
