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

	<!-- ========== Astroflamer ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="LTS_Gun_Astroflamer"]/description</xpath>
		<value>
			<description>A heavy weapon that can spray a stream of astrofire into an area.\n\nThe weapon also comes equipped with a pressure control
				module, allowing the wielder to set a small area ablaze with a concentrated spray of fuel.</description>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="LTS_Gun_Astroflamer"]/statBases/RangedWeapon_Cooldown</xpath>
		<value>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>5.0</ShotSpread>
			<SwayFactor>1.38</SwayFactor>
			<Bulk>10</Bulk>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="LTS_Gun_Astroflamer"]/statBases/Mass</xpath>
		<value>
			<Mass>7</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="LTS_Gun_Astroflamer"]/weaponTags</xpath>
		<value>
			<li>GunHeavy</li>
			<li>CE_AI_AOE</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="LTS_Gun_Astroflamer"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>0.33</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_Astroflamer</defaultProjectile>
					<ai_AvoidFriendlyFireRadius>3</ai_AvoidFriendlyFireRadius>
					<warmupTime>0.6</warmupTime>
					<range>11</range>
					<minRange>3</minRange>
					<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
					<burstShotCount>20</burstShotCount>
					<soundCast>HissFlamethrower</soundCast>
					<muzzleFlashScale>0</muzzleFlashScale>
					<targetParams>
						<canTargetLocations>true</canTargetLocations>
					</targetParams>
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="LTS_Gun_Astroflamer"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>60</magazineSize>
				<reloadTime>5</reloadTime>
				<ammoSet>AmmoSet_Astroflamer</ammoSet>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aiUseBurstMode>true</aiUseBurstMode>
				<aimedBurstShotCount>10</aimedBurstShotCount>
				<aiAimMode>SuppressFire</aiAimMode>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="LTS_Gun_Astroflamer"]/comps/li[@Class="CompProperties_EquippableAbilityReloadable"]</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_UnderBarrel">
				<standardLabel>switch to standard pressure</standardLabel>
				<underBarrelLabel>switch to high pressure</underBarrelLabel>
				<oneAmmoHolder>True</oneAmmoHolder>
				<propsUnderBarrel>
					<magazineSize>60</magazineSize>
					<reloadTime>5</reloadTime>
					<ammoSet>AmmoSet_Astroflamer_Burst</ammoSet>
				</propsUnderBarrel>
				<verbPropsUnderBarrel>
					<recoilAmount>0.33</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_Astroflamer_Burst</defaultProjectile>
					<ai_AvoidFriendlyFireRadius>3</ai_AvoidFriendlyFireRadius>
					<warmupTime>0.6</warmupTime>
					<range>11</range>
					<minRange>3</minRange>
					<soundCast>HissFlamethrower</soundCast>
					<muzzleFlashScale>0</muzzleFlashScale>
					<ammoConsumedPerShotCount>20</ammoConsumedPerShotCount>
					<targetParams>
						<canTargetLocations>true</canTargetLocations>
					</targetParams>
				</verbPropsUnderBarrel>
				<propsFireModesUnderBarrel>
					<aiAimMode>AimedShot</aiAimMode>
					<noSingleShot>true</noSingleShot>
				</propsFireModesUnderBarrel>
			</li>
			<li>
				<compClass>CompEquippable</compClass>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="LTS_Gun_Astroflamer"]/graphicData</xpath>
		<value>
			<drawSize>(1.16,1.16)</drawSize>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="LTS_Gun_Astroflamer"]/tools</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>

</Patch>