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


	<ThingDef Name="BuildingBase" Abstract="True">
		<category>Building</category>
		<soundImpactDefault>BulletImpactMetal</soundImpactDefault>
		<selectable>true</selectable>
		<drawerType>MapMeshAndRealTime</drawerType>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<repairEffect>Repair</repairEffect>
	</ThingDef>

	<ThingDef ParentName="BuildingBase">
		<defName>EMPCharge</defName>
		<label>EMPD-1 charge</label>
		<thingClass>Building_BlastingCharge</thingClass>
		<graphicData>
			<texPath>Things/Building/Terraforming/ImpactionCharge</texPath>
			<graphicClass>Graphic_Single</graphicClass>
			<drawSize>(1,1)</drawSize>
		</graphicData>
		<altitudeLayer>Waist</altitudeLayer>
		<passability>PassThroughOnly</passability>
		<statBases>
			<MaxHitPoints>50</MaxHitPoints>
			<WorkToMake>800</WorkToMake>
			<Flammability>1.0</Flammability>
		</statBases>
		<tickerType>Normal</tickerType>
		<description>EMP Defense charge that detonates on command. Creates a powerful blast of electromagnetic enery, which blankets a large radius. Used for defense against robotic threats, and sometimes makes humans run in terror.</description>
		<comps>
			<li>
				<compClass>CompExplosive</compClass>
				<explosiveRadius>50.9</explosiveRadius>
				<explosiveDamageType>EMP</explosiveDamageType>
			</li>
			<li>
				<compClass>CompGlower</compClass>
				<glowRadius>4</glowRadius>
				<glowColor>(0,255,255,0)</glowColor>
			</li>
		</comps>
		<size>(1,1)</size>
		<costList>
			<Titanium>15</Titanium>
			<MagneticCoil>1</MagneticCoil>
			<ComputerComp>5</ComputerComp>			
		</costList>
		<killedLeavings>
			<DepletedEMPCharge>1</DepletedEMPCharge>
		</killedLeavings>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<designationCategory>Security</designationCategory>
		<researchPrerequisite>ElectroPlasmatics</researchPrerequisite>
	</ThingDef>

	<ThingDef ParentName="BuildingBase">
		<defName>DepletedEMPCharge</defName>
		<label>Depleted EMPD-1 charge</label>
		<thingClass>Building_BlastingCharge</thingClass>
		<graphicData>
			<texPath>Things/Building/Terraforming/ImpactionCharge</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<altitudeLayer>Waist</altitudeLayer>
		<passability>PassThroughOnly</passability>
		<statBases>
			<MaxHitPoints>50</MaxHitPoints>
			<WorkToMake>800</WorkToMake>
			<Flammability>1.0</Flammability>
		</statBases>
		<tickerType>Normal</tickerType>
		<description>A depleted EMPD-1 charge.</description>
		<comps>
			<li>
				<compClass>CompGlower</compClass>
				<glowRadius>1</glowRadius>
				<glowColor>(255,0,0,0)</glowColor>
			</li>
		</comps>
		<size>(1,1)</size>
		<costList>
			<Titanium>15</Titanium>
			<MagneticCoil>1</MagneticCoil>
			<ComputerComp>5</ComputerComp>			
		</costList>
		<filthLeaving>BuildingRubble</filthLeaving>
		<leaveResourcesWhenKilled>true</leaveResourcesWhenKilled>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<!--<designationCategory>Security</designationCategory>-->
		<researchPrerequisite>ElectroPlasmatics</researchPrerequisite>
	</ThingDef>

	<ThingDef ParentName="BuildingBase">
		<defName>FissionBomb</defName>
		<label>EMPD-1 charge</label>
		<thingClass>Building_BlastingCharge</thingClass>
		<graphicData>
			<texPath>Things/Building/Terraforming/ImpactionCharge</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<altitudeLayer>Waist</altitudeLayer>
		<passability>PassThroughOnly</passability>
		<statBases>
			<MaxHitPoints>50</MaxHitPoints>
			<WorkToMake>800</WorkToMake>
			<Flammability>1.0</Flammability>
		</statBases>
		<tickerType>Normal</tickerType>
		<description>EMP Defense charge that detonates on command. Creates a powerful blast of electromagnetic enery, which blankets a large radius. Used for defense against robotic threats, and sometimes makes humans run in terror.</description>
		<comps>
			<li>
				<compClass>CompExplosive</compClass>
				<explosiveRadius>56</explosiveRadius>
				<explosiveDamageType>Bomb</explosiveDamageType>
			</li>
			<li>
				<compClass>CompGlower</compClass>
				<glowRadius>4</glowRadius>
				<glowColor>(0,255,255,0)</glowColor>
			</li>
		</comps>
		<size>(1,1)</size>
		<costList>
			<Titanium>15</Titanium>
			<MagneticCoil>1</MagneticCoil>
			<ComputerComp>5</ComputerComp>			
		</costList>
		<killedLeavings>
			<DepletedEMPCharge>1</DepletedEMPCharge>
		</killedLeavings>
		<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
		<designationCategory>Security</designationCategory>
		<researchPrerequisite>ElectroPlasmatics</researchPrerequisite>
	</ThingDef>


</Buildings>