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

	<!-- Shield Base -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="VFEV_BaseShieldCrypto"]/thingClass</xpath>
		<value>
			<thingClass>CombatExtended.Apparel_Shield</thingClass>
		</value>
	</Operation>
	
	<!-- Crypto Shield -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VFEV_Shield_Crypto"]</xpath>
		<value>

			<ThingDef ParentName="ShieldBase">
				<defName>VFEV_Shield_Crypto</defName>
				<label>crypto shield</label>
				<description>A stabilized crypto-tech field wrapped around an advanced frame, capable of slowing the speed of the atoms of incoming projectiles to a halt. Does nothing to protect against heat and blunt trauma.</description>
				<techLevel>Ultra</techLevel>
				<graphicData>
					<texPath>Weapon/Shield/CryptoShield</texPath>
					<graphicClass>Graphic_Single</graphicClass>
					<drawSize>0.8</drawSize>
				</graphicData>
				<thingClass>CombatExtended.Apparel_Shield</thingClass>
				<recipeMaker Inherit="False"/>
				<costList>
					<Plasteel>120</Plasteel>
					<ComponentSpacer>6</ComponentSpacer>
				</costList>
				<statBases>
					<MaxHitPoints>160</MaxHitPoints>
					<Flammability>0</Flammability>
					<ArmorRating_Sharp>75</ArmorRating_Sharp>
					<ArmorRating_Blunt>0.5</ArmorRating_Blunt>
					<ArmorRating_Heat>0</ArmorRating_Heat>
					<WorkToMake>2600</WorkToMake>
					<Mass>2</Mass>
					<Bulk>6</Bulk>
					<WornBulk>5</WornBulk>
				</statBases>
				<equippedStatOffsets>
					<ReloadSpeed>-0.1</ReloadSpeed>
					<MeleeHitChance>-1</MeleeHitChance>
					<ShootingAccuracyPawn>-0.2</ShootingAccuracyPawn>
					<AimingAccuracy>-0.05</AimingAccuracy>
					<Suppressability>-0.25</Suppressability>
					<MeleeCritChance>-0.08</MeleeCritChance>
					<MeleeParryChance>1.0</MeleeParryChance>
				</equippedStatOffsets>
				<comps>
					<li>
						<compClass>CompColorable</compClass>
					</li>
				</comps>
				<apparel>
					<tags>
						<li>VikingShield_Basic</li>
					</tags>				
					<renderNodeProperties>
						<li>
							<nodeClass>CombatExtended.PawnRenderNode_Apparel</nodeClass>
							<workerClass>CombatExtended.PawnRenderNodeWorker_Drafted</workerClass>
							<texPath>Weapon/Shield/CryptoShield</texPath>
							<shaderTypeDef>CutoutComplex</shaderTypeDef>
							<parentTagDef>ApparelBody</parentTagDef>
							<drawData>
								<scale>0.55</scale>
								<defaultData>
									<layer>85</layer>
								</defaultData>
								<dataEast>
									<layer>-5</layer>
									<offset>(0, 0, -0.15)</offset>
									<rotationOffset>30</rotationOffset>
								</dataEast>
								<dataWest>
									<rotationOffset>-30</rotationOffset>
								</dataWest>
								<dataNorth>
									<layer>-5</layer>
									<offset>(0.15, 0, -0.15)</offset>
								</dataNorth>
								<dataSouth>
									<offset>(0.15, 0, -0.15)</offset>
								</dataSouth>
							</drawData>
						</li>
					</renderNodeProperties>
				</apparel>				
				<modExtensions>
					<li Class="CombatExtended.ShieldDefExtension">
						<shieldCoverage>
							<li>Hands</li>
							<li>Arms</li>
							<li>Shoulders</li>
							<li>Torso</li>
							<li>Neck</li>
						</shieldCoverage>
						<crouchCoverage>
							<li>Legs</li>
						</crouchCoverage>
					</li>
				</modExtensions>
			</ThingDef>

		</value>
	</Operation>

</Patch>