<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- Change gas colors to better fit gaz type/texture colors... -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="MechanoidVirusGas"]/graphicData/color</xpath>
		<value>
			<color>(0.6,0.7,0.7,0.3)</color>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="AntiBugGas"]/graphicData/color</xpath>
		<value>
			<color>(0.7,0.6,0.0,0.3)</color>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ToxicGas"]/graphicData/color</xpath>
		<value>
			<color>(0.2,0.4,0.2,0.3)</color>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="SleepGas"]/graphicData/color</xpath>
		<value>
			<color>(0.4,0.3,0.9,0.3)</color>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RageGas"]/graphicData/color</xpath>
		<value>
			<color>(1.0,0.3,0.4,0.3)</color>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="AcidGas"]/graphicData/color</xpath>
		<value>
			<color>(0.6,0.8,0.1,0.3)</color>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="FearGas"]/graphicData/color</xpath>
		<value>
			<color>(0.7,0.3,0.3,0.3)</color>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TearGas"]/graphicData/color</xpath>
		<value>
			<color>(0.6,0.2,0.9,0.3)</color>
		</value>
	</Operation>

	<!-- Change damage type of certain shells, to be used in sieges -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Bullet_Shell_GasToxic"]/projectile/damageDef</xpath>
		<value>
			<damageDef>Bomb</damageDef>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Bullet_Shell_GasAcid"]/projectile/damageDef</xpath>
		<value>
			<damageDef>Bomb</damageDef>
		</value>
	</Operation>

	<!-- Change shell textures -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasToxic"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/Mortar</texPath>
				<graphicClass>Graphic_StackCount</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(70,183,79)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasRage"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/Mortar</texPath>
				<graphicClass>Graphic_StackCount</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(200,112,112)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasTear"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/Mortar</texPath>
				<graphicClass>Graphic_StackCount</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(181,151,185)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasFear"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/Mortar</texPath>
				<graphicClass>Graphic_StackCount</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(185,142,132)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasSleep"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/Mortar</texPath>
				<graphicClass>Graphic_StackCount</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(113,154,208)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasAcid"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/Mortar</texPath>
				<graphicClass>Graphic_StackCount</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(179,178,119)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_MechVirus"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/Mortar</texPath>
				<graphicClass>Graphic_StackCount</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(220,220,220)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasAntiBug"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/Mortar</texPath>
				<graphicClass>Graphic_StackCount</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(70,183,79)</color>
			</graphicData>
		</value>
	</Operation>

	<!-- Change projectile textures -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Bullet_Shell_GasToxic"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/gas_mortar_projectile</texPath>
				<graphicClass>Graphic_Single</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(70,183,79)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Bullet_Shell_GasRage"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/gas_mortar_projectile</texPath>
				<graphicClass>Graphic_Single</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(200,112,112)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Bullet_Shell_GasTear"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/gas_mortar_projectile</texPath>
				<graphicClass>Graphic_Single</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(181,151,185)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Bullet_Shell_GasFear"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/gas_mortar_projectile</texPath>
				<graphicClass>Graphic_Single</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(185,142,132)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Bullet_Shell_GasSleep"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/gas_mortar_projectile</texPath>
				<graphicClass>Graphic_Single</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(113,154,208)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Bullet_Shell_GasAcid"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/gas_mortar_projectile</texPath>
				<graphicClass>Graphic_Single</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(179,178,119)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Bullet_Shell_MechVirus"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/gas_mortar_projectile</texPath>
				<graphicClass>Graphic_Single</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(220,220,220)</color>
			</graphicData>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Bullet_Shell_GasAntiBug"]/graphicData</xpath>
		<value>
			<graphicData>
				<texPath>ThirdParty/GasTraps/gas_mortar_projectile</texPath>
				<graphicClass>Graphic_Single</graphicClass>
				<shaderType>CutoutComplex</shaderType>
				<color>(70,183,79)</color>
			</graphicData>
		</value>
	</Operation>

	<!-- Change shell names to better fit Combat Extended -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasToxic"]/label</xpath>
		<value>
			<label>81mm mortar shell (Toxic)</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasRage"]/label</xpath>
		<value>
			<label>81mm mortar shell (Rage)</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasTear"]/label</xpath>
		<value>
			<label>81mm mortar shell (Tear gas)</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasSleep"]/label</xpath>
		<value>
			<label>81mm mortar shell (Sleep)</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasFear"]/label</xpath>
		<value>
			<label>81mm mortar shell (Fear)</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasAcid"]/label</xpath>
		<value>
			<label>81mm mortar shell (Acid)</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_MechVirus"]/label</xpath>
		<value>
			<label>81mm mortar shell (Nanomachines)</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Shell_GasAntiBug"]/label</xpath>
		<value>
			<label>81mm mortar shell (Insecticide)</label>
		</value>
	</Operation>
</Patch>