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

  <!--========== Hempoline Generator ==========-->

	<ThingDef ParentName="MSI_BuildingBase">
		<defName>HempolineGenerator</defName>
		<label>hempoline generator</label>
		<description>Produces power by burning hempoline. Must be fueled by hand.</description>
		<thingClass>Building</thingClass>
		<graphicData>
		  <texPath>Things/Buildings/MSI_hempolineGenerator</texPath>
		  <graphicClass>Graphic_Single</graphicClass>
		  <drawSize>(2,2)</drawSize>
		</graphicData>
		<uiIconPath>UI/Icons/MSI_hGenerator_icon</uiIconPath>
		<altitudeLayer>Building</altitudeLayer>
		<passability>PassThroughOnly</passability>
		<pathCost>150</pathCost>
		<blockWind>true</blockWind>
		<fillPercent>1.0</fillPercent>
		<castEdgeShadows>false</castEdgeShadows>
		<rotatable>false</rotatable>
		<statBases>
		  <MaxHitPoints>350</MaxHitPoints>
		  <WorkToBuild>3000</WorkToBuild>
		  <Flammability>1.0</Flammability>
		</statBases>
		<tickerType>Normal</tickerType>
		<canOverlapZones>false</canOverlapZones>
		<size>(2,2)</size>
		<costList>
		  <Steel>150</Steel>
		  <Component>3</Component>
		</costList>
		<comps>
		  <li Class="CompProperties_Power">
			<compClass>CompPowerPlant</compClass>
			<basePowerConsumption>-2000</basePowerConsumption>
			<transmitsPower>true</transmitsPower>
		  </li>
		  <li Class="CompProperties_Flickable" />
		  <li Class="CompProperties_Refuelable">
			<fuelConsumptionRate>18</fuelConsumptionRate>
			<fuelCapacity>150.0</fuelCapacity>
			<fuelFilter>
			  <thingDefs>
				<li>Hempoline</li>
			  </thingDefs>
			</fuelFilter>
		  </li>
		  <li Class="CompProperties_Glower">
			<glowRadius>4</glowRadius>
			<glowColor>(165,170,50,0)</glowColor>
		  </li>
		  <li Class="CompProperties_HeatPusher">
			<compClass>CompHeatPusherPowered</compClass>
			<heatPerSecond>2</heatPerSecond>
		  </li>
		  <li Class="CompProperties_Breakdownable"/>
		</comps>
		<terrainAffordanceNeeded>Heavy</terrainAffordanceNeeded>
		<staticSunShadowHeight>0.5</staticSunShadowHeight>
		<constructEffect>ConstructMetal</constructEffect>
		<researchPrerequisites>
		  <li>IndustrialSmokeleafProcessing</li>
		</researchPrerequisites>
		<designationCategory>MSI</designationCategory>
	</ThingDef>

  <!--========== Hempene Conduit ==========-->

	<ThingDef ParentName="MSI_BuildingBase">
	    <defName>HempPowerConduit</defName>
	    <label>hempene power conduit</label>
	    <thingClass>Building</thingClass>
	    <category>Building</category>
	    <graphicData>
	      	<texPath>Things/Buildings/MSI_hempeneConduit_atlas</texPath>
	      	<graphicClass>Graphic_Single</graphicClass>
	      	<linkType>Transmitter</linkType>
	      	<linkFlags>
	        	<li>PowerConduit</li>
	      	</linkFlags>
	      	<damageData>
	        	<rect>(0,0.35,1,0.3)</rect>
	      	</damageData>
	    </graphicData>
	    <blueprintGraphicData>
	      <texPath>Things/Building/Linked/PowerConduit_Blueprint_Atlas</texPath>
	    </blueprintGraphicData>
	    <uiIconPath>UI/Icons/MSI_hempeneConduit_icon</uiIconPath>
	    <building>
			<ai_chillDestination>false</ai_chillDestination>
			<isInert>true</isInert>
	        <isEdifice>false</isEdifice>
	    </building>
	    <altitudeLayer>FloorEmplacement</altitudeLayer>
	    <passability>Standable</passability>
	    <leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
	    <statBases>
	      <MaxHitPoints>80</MaxHitPoints>
	      <WorkToBuild>35</WorkToBuild>
	      <Flammability>1.0</Flammability>
	      <Beauty>1</Beauty>
	    </statBases>
	    <description>A hempene Glittertech power conduit. Casts a nice green light around it, making it less of an eyesore. Can be placed under walls, other buildings and connects to regular conduits.</description>
	    <placingDraggableDimensions>1</placingDraggableDimensions>
	    <costList>
	      <HempNanosheet>1</HempNanosheet>
	    </costList>
	    <comps>
	      <li Class="CompProperties_Power">
	        <compClass>CompPowerTransmitter</compClass>
	        <transmitsPower>true</transmitsPower>
	      </li>
		  <li Class="CompProperties_Glower">
			<glowRadius>1</glowRadius>
			<glowColor>(72,74,1,0)</glowColor>
		  </li>
	    </comps>
	    <placeWorkers>
	      <li>PlaceWorker_Conduit</li>
	    </placeWorkers>
	    <rotatable>false</rotatable>
	    <selectable>true</selectable>
	    <neverMultiSelect>true</neverMultiSelect>
	    <soundImpactDefault>BulletImpactMetal</soundImpactDefault>
	    <terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
	    <designationCategory>MSI</designationCategory>
	    <clearBuildingArea>false</clearBuildingArea>
	    <researchPrerequisites>
	      <li>SmokeleafGlittertech</li>
	    </researchPrerequisites>
  	</ThingDef>

  <!--========== Hemp Battery ==========-->

	<ThingDef ParentName="MSI_BuildingBase">
	    <defName>HempBattery</defName>
	    <label>hempene battery</label>
	    <thingClass>Building_Battery</thingClass>
	    <graphicData>
	      <texPath>Things/Buildings/MSI_hempBattery</texPath>
	      <graphicClass>Graphic_Multi</graphicClass>
	      <shaderType>CutoutComplex</shaderType>
	      <drawSize>(2,3)</drawSize>
	      <damageData>
	        <cornerTL>Damage/Corner</cornerTL>
	        <cornerTR>Damage/Corner</cornerTR>
	        <cornerBL>Damage/Corner</cornerBL>
	        <cornerBR>Damage/Corner</cornerBR>
	      </damageData>
	    </graphicData>
	    <uiIconPath>UI/Icons/MSI_hBattery_icon</uiIconPath>
	    <altitudeLayer>Building</altitudeLayer>
	    <passability>PassThroughOnly</passability>
	    <pathCost>70</pathCost>
	    <blockWind>true</blockWind>
	    <castEdgeShadows>true</castEdgeShadows>
	    <fillPercent>0.40</fillPercent>
	    <tickerType>Normal</tickerType>
	    <minifiedDef>MinifiedFurniture</minifiedDef>
	    <statBases>
	      <MaxHitPoints>250</MaxHitPoints>
	      <WorkToBuild>1000</WorkToBuild>
	      <Mass>20</Mass>
	      <Flammability>1.0</Flammability>
	      <Beauty>-10</Beauty>
	    </statBases>
	    <description>A Glittertech battery made from superconductive hemp nanosheets, capable of storing more power than normal battery. Warning - charged batteries tend to explode when exposed to rain or fire.</description>
	    <size>(1,2)</size>
    	<costStuffCount>50</costStuffCount>
	    <costList>
	      <HempNanosheet>50</HempNanosheet>
	      <Component>2</Component>
	    </costList>
	    <stuffCategories>
	      <li>Metallic</li>
	    </stuffCategories>
	    <comps>
	      <li Class="CompProperties_Battery">
	        <storedEnergyMax>2500</storedEnergyMax>
	        <efficiency>0.75</efficiency>
	        <startElectricalFires>true</startElectricalFires>
	        <transmitsPower>true</transmitsPower>
	      </li>
		  <li Class="CompProperties_Glower">
			<glowRadius>2</glowRadius>
			<glowColor>(72,74,1,0)</glowColor>
		  </li>
	      <li Class="CompProperties_Breakdownable"/>
	    </comps>
	    <terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
	    <designationCategory>MSI</designationCategory>
	    <staticSunShadowHeight>0.5</staticSunShadowHeight>
	    <canOverlapZones>false</canOverlapZones>
	    <researchPrerequisites>
	      <li>SmokeleafGlittertech</li>
	    </researchPrerequisites>
  	</ThingDef>

  <!--========== Hemp Solar Panel ==========-->

  	<ThingDef ParentName="MSI_BuildingBase">
	    <defName>HempSolarGenerator</defName>
	    <label>hempene solar generator</label>
	    <thingClass>Building</thingClass>
	    <graphicData>
	      <texPath>Things/Buildings/MSI_solarPanel</texPath>
	      <graphicClass>Graphic_Single</graphicClass>
	      <shaderType>Cutout</shaderType>
	      <drawSize>(5,5)</drawSize>
	      <damageData>
	        <rect>(0,0.6,4,2.8)</rect>
	      </damageData>
	    </graphicData>
	    <uiIconPath>UI/Icons/MSI_hSolar_icon</uiIconPath>
	    <altitudeLayer>Building</altitudeLayer>
	    <passability>PassThroughOnly</passability>
	    <pathCost>70</pathCost>
	    <fillPercent>0.5</fillPercent>
	    <castEdgeShadows>true</castEdgeShadows>
	    <canOverlapZones>false</canOverlapZones>
	    <statBases>
	      <MaxHitPoints>500</MaxHitPoints>
	      <WorkToBuild>3500</WorkToBuild>
	      <Flammability>0.5</Flammability>
	    </statBases>
	    <tickerType>Normal</tickerType>
	    <description>A Glittertech solar generator, made with superconductive hempene, that produces more electricity from sunlight than a standard solar generator. Does not work in the dark.</description>
	    <size>(5,5)</size>
    	<costStuffCount>50</costStuffCount>
	    <costList>
	      <HempNanosheet>25</HempNanosheet>
	      <Component>3</Component>
	    </costList>
	    <stuffCategories>
	      <li>Metallic</li>
	    </stuffCategories>
	    <comps>
	      <li Class="CompProperties_Power">
	        <compClass>CompPowerPlantSolar</compClass>
	        <basePowerConsumption>-10</basePowerConsumption>
	        <transmitsPower>true</transmitsPower>
	      </li>
	      <li Class="CompProperties_Breakdownable"/>
	    </comps>
	    <terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
	    <designationCategory>MSI</designationCategory>
	    <staticSunShadowHeight>0.20</staticSunShadowHeight>
	    <researchPrerequisites>
	      <li>SmokeleafGlittertech</li>
	    </researchPrerequisites>
	    <constructionSkillPrerequisite>6</constructionSkillPrerequisite>
  	</ThingDef>
  
 </Defs>