<?xml version="1.0" encoding="utf-8"?>
<Patch>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_1Tier"]</xpath>
		<value>
			<thingClass>CombatExtended.Building_TurretGunCE</thingClass>
			<!-- Makes the turret a CE turret. -->
		</value>
	</Operation>

	<!--===================================T1 Turret======================================-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_1Tier"]/statBases</xpath>
		<value>
			<AimingAccuracy>0.25</AimingAccuracy>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_1Tier"]/statBases/ShootingAccuracyTurret</xpath>
		<value>
			<ShootingAccuracyTurret>0.5</ShootingAccuracyTurret>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_1Tier"]</xpath>
		<value>
			<fillPercent>1.5</fillPercent>
			<!-- In CE, this controls how tall the building is. Turrets shorter than 0.7 won't be able to fire out through embrasures. -->
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_1Tier"]/building/turretBurstCooldownTime</xpath>
		<value>
			<turretBurstCooldownTime>1.0</turretBurstCooldownTime>
		</value>
	</Operation>

	<!--===================================T2 Turret======================================-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_2Tier"]/statBases</xpath>
		<value>
			<AimingAccuracy>0.25</AimingAccuracy>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_2Tier"]/statBases/ShootingAccuracyTurret</xpath>
		<value>
			<ShootingAccuracyTurret>0.5</ShootingAccuracyTurret>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_2Tier"]</xpath>
		<value>
			<fillPercent>1.5</fillPercent>
			<!-- In CE, this controls how tall the building is. Turrets shorter than 0.7 won't be able to fire out through embrasures. -->
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_2Tier"]/building/turretBurstCooldownTime</xpath>
		<value>
			<turretBurstCooldownTime>1.0</turretBurstCooldownTime>
		</value>
	</Operation>

	<!--===================================T3 Turret======================================-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_3Tier"]/statBases</xpath>
		<value>
			<AimingAccuracy>0.25</AimingAccuracy>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_3Tier"]/statBases/ShootingAccuracyTurret</xpath>
		<value>
			<ShootingAccuracyTurret>0.5</ShootingAccuracyTurret>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_3Tier"]</xpath>
		<value>
			<fillPercent>1.5</fillPercent>
			<!-- In CE, this controls how tall the building is. Turrets shorter than 0.7 won't be able to fire out through embrasures. -->
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_3Tier"]/building/turretBurstCooldownTime</xpath>
		<value>
			<turretBurstCooldownTime>1.0</turretBurstCooldownTime>
		</value>
	</Operation>

	<!--===================================T4 Turret======================================-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_4Tier"]/statBases</xpath>
		<value>
			<AimingAccuracy>0.25</AimingAccuracy>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_4Tier"]/statBases/ShootingAccuracyTurret</xpath>
		<value>
			<ShootingAccuracyTurret>0.5</ShootingAccuracyTurret>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_4Tier"]</xpath>
		<value>
			<fillPercent>1.5</fillPercent>
			<!-- In CE, this controls how tall the building is. Turrets shorter than 0.7 won't be able to fire out through embrasures. -->
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_4Tier"]/building/turretBurstCooldownTime</xpath>
		<value>
			<turretBurstCooldownTime>1.0</turretBurstCooldownTime>
		</value>
	</Operation>

	<!--===================================T5 Turret======================================-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_5Tier"]/statBases</xpath>
		<value>
			<AimingAccuracy>0.25</AimingAccuracy>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_5Tier"]/statBases/ShootingAccuracyTurret</xpath>
		<value>
			<ShootingAccuracyTurret>0.5</ShootingAccuracyTurret>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_5Tier"]</xpath>
		<value>
			<fillPercent>1.5</fillPercent>
			<!-- In CE, this controls how tall the building is. Turrets shorter than 0.7 won't be able to fire out through embrasures. -->
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VPER_Turret_Monolith_5Tier"]/building/turretBurstCooldownTime</xpath>
		<value>
			<turretBurstCooldownTime>1.0</turretBurstCooldownTime>
		</value>
	</Operation>

</Patch>