<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- ======= Japanese Type 14 Nambu Pistol ======= -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2JapaneseServicePistol"]</xpath>
		<value>
			<statBases>
				<Mass>0.9</Mass>
				<RangedWeapon_Cooldown>0.38</RangedWeapon_Cooldown>
				<SightsEfficiency>0.7</SightsEfficiency>
				<ShotSpread>0.17</ShotSpread>
				<SwayFactor>1.07</SwayFactor>
				<Bulk>2</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_8x22mmNambu_FMJ</defaultProjectile>
					<warmupTime>0.6</warmupTime>
					<range>16</range>
					<soundCast>Shot_Autopistol</soundCast>
					<soundCastTail>GunTail_Light</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>8</magazineSize>
					<reloadTime>4</reloadTime>
					<ammoSet>AmmoSet_8x22mmNambu</ammoSet>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- ======= Japanese Type 26 Revolver ======= -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2JapaneseServiceRevolver"]</xpath>
		<value>
			<statBases>
				<Mass>0.95</Mass>
				<RangedWeapon_Cooldown>0.38</RangedWeapon_Cooldown>
				<SightsEfficiency>0.7</SightsEfficiency>
				<ShotSpread>0.17</ShotSpread>
				<SwayFactor>1.03</SwayFactor>
				<Bulk>2.22</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_38SW_FMJ</defaultProjectile>
					<warmupTime>0.6</warmupTime>
					<range>16</range>
					<soundCast>Shot_Revolver</soundCast>
					<soundCastTail>GunTail_Light</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>6</magazineSize>
					<reloadTime>4.6</reloadTime>
					<ammoSet>AmmoSet_38SW</ammoSet>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- ======= Japanese Type 99 Rifle ======= -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2JapaneseServiceRifle"]</xpath>
		<value>
			<statBases>
				<Mass>3.75</Mass>
				<RangedWeapon_Cooldown>1.17</RangedWeapon_Cooldown>
				<SightsEfficiency>1.00</SightsEfficiency>
				<ShotSpread>0.05</ShotSpread>
				<SwayFactor>1.63</SwayFactor>
				<Bulk>12.00</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.04</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_77x58mmArisaka_FMJ</defaultProjectile>
					<warmupTime>1.1</warmupTime>
					<range>55</range>
					<soundCast>Shot_BoltActionRifle</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>5</magazineSize>
					<reloadTime>4.3</reloadTime>
					<ammoSet>AmmoSet_77x58mmArisaka</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- ========== Japanese Type 99 Rifle (Bayonet)  ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2JapaneseServiceRifleBayonet"]</xpath>
		<value>
			<statBases>
				<Mass>4</Mass>
				<RangedWeapon_Cooldown>1.17</RangedWeapon_Cooldown>
				<SightsEfficiency>1.00</SightsEfficiency>
				<ShotSpread>0.05</ShotSpread>
				<SwayFactor>1.63</SwayFactor>
				<Bulk>12.00</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.04</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_77x58mmArisaka_FMJ</defaultProjectile>
					<warmupTime>1.1</warmupTime>
					<range>55</range>
					<soundCast>Shot_BoltActionRifle</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>5</magazineSize>
					<reloadTime>4.3</reloadTime>
					<ammoSet>AmmoSet_77x58mmArisaka</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- ======= Japanese Type 38 Carbine ======= -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2JapaneseServiceCarbine"]</xpath>
		<value>
			<statBases>
				<Mass>3.3</Mass>
				<RangedWeapon_Cooldown>0.97</RangedWeapon_Cooldown>
				<SightsEfficiency>1.00</SightsEfficiency>
				<ShotSpread>0.06</ShotSpread>
				<SwayFactor>1.4</SwayFactor>
				<Bulk>9.5</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.04</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_762x39mmSoviet_FMJ</defaultProjectile>
					<warmupTime>0.85</warmupTime>
					<range>48</range>
					<soundCast>Shot_BoltActionRifle</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>5</magazineSize>
					<reloadTime>4.3</reloadTime>
					<ammoSet>AmmoSet_762x39mmSoviet</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- ======= Japanese Type 100 SMG ======= -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2JapaneseServiceSMG"]</xpath>
		<value>
			<statBases>
				<Mass>4.3</Mass>
				<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
				<SightsEfficiency>1.00</SightsEfficiency>
				<ShotSpread>0.14</ShotSpread>
				<SwayFactor>1.21</SwayFactor>
				<Bulk>8.43</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>0.8</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_8x22mmNambu_FMJ</defaultProjectile>
					<warmupTime>0.6</warmupTime>
					<range>23</range>
					<burstShotCount>6</burstShotCount>
					<ticksBetweenBurstShots>8</ticksBetweenBurstShots>
					<soundCast>Shot_HeavySMG</soundCast>
					<soundCastTail>GunTail_Light</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>30</magazineSize>
					<reloadTime>4</reloadTime>
					<ammoSet>AmmoSet_8x22mmNambu</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiUseBurstMode>FALSE</aiUseBurstMode>
					<aiAimMode>Snapshot</aiAimMode>
					<aimedBurstShotCount>3</aimedBurstShotCount>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- ======= Japanese Type 99 LMG ======= -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2JapaneseServiceLMG"]</xpath>
		<value>
			<statBases>
				<Mass>10.4</Mass>
				<Bulk>16.56</Bulk>
				<ShotSpread>0.05</ShotSpread>
				<SwayFactor>1.42</SwayFactor>
				<SightsEfficiency>1.2</SightsEfficiency>
				<RangedWeapon_Cooldown>0.56</RangedWeapon_Cooldown>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>1.34</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_77x58mmArisaka_FMJ</defaultProjectile>
					<warmupTime>1.3</warmupTime>
					<range>62</range>
					<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
					<burstShotCount>10</burstShotCount>
					<soundCast>Shot_Minigun</soundCast>
					<soundCastTail>GunTail_Medium</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
					<targetParams>
						<canTargetLocations>true</canTargetLocations>
					</targetParams>
					<recoilPattern>Mounted</recoilPattern>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>30</magazineSize>
					<reloadTime>4</reloadTime>
					<ammoSet>AmmoSet_77x58mmArisaka</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aimedBurstShotCount>5</aimedBurstShotCount>
					<aiUseBurstMode>FALSE</aiUseBurstMode>
					<aiAimMode>SuppressFire</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

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

	<!-- ======= Japanese Type 99 Sniper Rifle ======= -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="K4G_Gun_WW2JapaneseServiceSniperRifle"]</xpath>
		<value>
			<statBases>
				<Mass>4</Mass>
				<RangedWeapon_Cooldown>1.17</RangedWeapon_Cooldown>
				<SightsEfficiency>2.21</SightsEfficiency>
				<ShotSpread>0.04</ShotSpread>
				<SwayFactor>1.63</SwayFactor>
				<Bulk>12.00</Bulk>
			</statBases>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.04</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_77x58mmArisaka_FMJ</defaultProjectile>
					<warmupTime>1.4</warmupTime>
					<range>75</range>
					<soundCast>Shot_BoltActionRifle</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
				</li>
			</verbs>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>5</magazineSize>
					<reloadOneAtATime>True</reloadOneAtATime>
					<reloadTime>0.85</reloadTime>
					<ammoSet>AmmoSet_77x58mmArisaka</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiUseBurstMode>FALSE</aiUseBurstMode>
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- ======= Japanese Type 4 Rocket Launcher ======= -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>K4G_Gun_WW2JapaneseServiceRocketLauncher</defName>
		<statBases>
			<Mass>7.20</Mass>
			<RangedWeapon_Cooldown>1.50</RangedWeapon_Cooldown>
			<SightsEfficiency>1.15</SightsEfficiency>
			<ShotSpread>0.2</ShotSpread>
			<SwayFactor>1.68</SwayFactor>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_K4GType74mm_HEAT</defaultProjectile>
			<ai_IsBuildingDestroyer>true</ai_IsBuildingDestroyer>
			<warmupTime>2.01</warmupTime>
			<range>40</range>
			<minRange>5</minRange>
			<soundCast>InfernoCannon_Fire</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>14</muzzleFlashScale>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<reloadTime>5.6</reloadTime>
			<ammoSet>AmmoSet_K4GType74mmRocket</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>
</Patch>