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

  <!--========== Bases ==========-->

  <ThingDef Abstract="True" Name="MSI_LampBase" ParentName="MSI_BuildingBase">
    <category>Building</category>
    <passability>PassThroughOnly</passability>
    <selectable>true</selectable>
    <fillPercent>0.20</fillPercent>
    <pathCost>8</pathCost>
    <leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
    <soundImpactDefault>BulletImpactMetal</soundImpactDefault>
    <designationCategory>Furniture</designationCategory>
    <rotatable>false</rotatable>
    <graphicData>
      <graphicClass>Graphic_Single</graphicClass>
      <shadowData>
        <volume>(0.3, 0.6, 0.3)</volume>
        <offset>(0,0,-0.1)</offset>
      </shadowData>
      <damageData>
        <rect>(0.2,0.2,0.6,0.6)</rect>
      </damageData>
    </graphicData>
    <comps>
	  <li Class="CompProperties_Breakdownable"/>
      <li Class="CompProperties_Flickable"/>
    </comps>
    <statBases>
      <MaxHitPoints>50</MaxHitPoints>
      <Flammability>1.0</Flammability>
    </statBases>
  </ThingDef>

  <!--========== Grow Lights ==========-->
  
	<!--========== Grow Lamp ==========-->
  
  <ThingDef ParentName="MSI_LampBase">
    <defName>GrowLamp</defName>
    <label>grow lamp</label>
    <thingClass>Building_SunLamp</thingClass>
    <description>A power efficient grow light designed for indoor use, with a built-in timer.</description>
    <graphicData>
      <texPath>Things/Buildings/MSI_growLamp</texPath>
    </graphicData>
    <size>(1,1)</size>
	  <uiIconPath>UI/Icons/MSI_growLamp_icon</uiIconPath>
    <altitudeLayer>Building</altitudeLayer>
    <blockWind>false</blockWind>
    <tickerType>Rare</tickerType>
    <statBases>
	  <MaxHitPoints>150</MaxHitPoints>
      <Flammability>1.0</Flammability>
      <WorkToBuild>350</WorkToBuild>
      <Mass>3.5</Mass>
    </statBases>
    <costList>
      <Steel>50</Steel>
	    <Component>1</Component>
    </costList>
    <comps>
      <li Class="CompProperties_Glower">
        <overlightRadius>7.0</overlightRadius>
        <glowRadius>14</glowRadius>
        <glowColor>(225,235,250,0)</glowColor>
      </li>
      <li Class="CompProperties_Power">
        <compClass>CompPowerTrader</compClass>
        <startElectricalFires>true</startElectricalFires>
		    <shortCircuitInRain>true</shortCircuitInRain>
        <basePowerConsumption>1000</basePowerConsumption>
      </li>
      <li Class="CompProperties_Schedule">
        <!-- Match plant growing times -->
        <startTime>0.25</startTime>
        <endTime>0.8</endTime>
        <offMessage>Timer set for optimal growing.</offMessage>
      </li>
    </comps>
	<fertility>2.0</fertility>
	<researchPrerequisites>
	  <li>IndustrialSmokeleafCultivation</li>
    </researchPrerequisites>
    <specialDisplayRadius>5.8</specialDisplayRadius>
	<designationCategory>MSI</designationCategory>
  </ThingDef>
  
  <!--========== Ceiling Lamp ==========-->
  
  <ThingDef ParentName="MSI_LampBase">
    <defName>MSI_CeilingGrowLamp</defName>
    <label>ceiling grow lamp</label>
    <thingClass>Building_SunLamp</thingClass>
    <description>A ceiling lamp designed for growing plants, with a built-in timer. Hang near growing plants.</description>
    <graphicData>
      <texPath>Things/Buildings/MSI_ceilingLamp</texPath>
    </graphicData>
    <size>(1,1)</size>
    <uiIconPath>UI/Icons/MSI_ceilingLamp_icon</uiIconPath>
    <altitudeLayer>Blueprint</altitudeLayer>
    <passability>Standable</passability>
    <building>
      <isEdifice>false</isEdifice>
    </building>
    <blockWind>false</blockWind>
    <tickerType>Rare</tickerType>
    <statBases>
      <MaxHitPoints>150</MaxHitPoints>
      <Flammability>1.0</Flammability>
      <WorkToBuild>250</WorkToBuild>
      <Mass>3.5</Mass>
    </statBases>
    <costList>
      <Steel>35</Steel>
      <Component>1</Component>
    </costList>
    <comps>
      <li Class="CompProperties_Glower">
        <overlightRadius>4.5</overlightRadius>
        <glowRadius>9</glowRadius>
        <glowColor>(225,235,250,0)</glowColor>
      </li>
      <li Class="CompProperties_Power">
        <compClass>CompPowerTrader</compClass>
        <startElectricalFires>true</startElectricalFires>
        <shortCircuitInRain>true</shortCircuitInRain>
        <basePowerConsumption>300</basePowerConsumption>
      </li>
      <li Class="CompProperties_Schedule">
        <!-- Match plant growing times -->
        <startTime>0.25</startTime>
        <endTime>0.8</endTime>
        <offMessage>Timer set for optimal growing.</offMessage>
      </li>
    </comps>
    <fertility>1.5</fertility>
    <researchPrerequisites>
      <li>IndustrialSmokeleafCultivation</li>
    </researchPrerequisites>
    <specialDisplayRadius>3.5</specialDisplayRadius>
    <designationCategory>MSI</designationCategory>
  </ThingDef>
  
  <!--========== Tube Lights ==========-->
  
  <ThingDef ParentName="MSI_LampBase">
    <defName>MSI_TubeGrowLights</defName>
    <label>grow light fixture</label>
    <thingClass>Building_SunLamp</thingClass>
    <description>A tube light system designed for growing plants, but, is cost effective enough, that it works well in other areas too. Stays lit 24 hours a day.</description>
    <graphicData>
      <texPath>Things/Buildings/MSI_lightBanks</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <shaderType>Cutout</shaderType>
      <linkType>Basic</linkType>
      <linkFlags>
        <li>Custom3</li>
      </linkFlags>
      <damageData>
        <cornerTL>Damage/Corner</cornerTL>
        <cornerTR>Damage/Corner</cornerTR>
        <cornerBL>Damage/Corner</cornerBL>
        <cornerBR>Damage/Corner</cornerBR>
        <edgeTop>Damage/Edge</edgeTop>
        <edgeBot>Damage/Edge</edgeBot>
        <edgeLeft>Damage/Edge</edgeLeft>
        <edgeRight>Damage/Edge</edgeRight>
      </damageData>
    </graphicData>
    <uiIconPath>UI/Icons/MSI_lightBanks_icon</uiIconPath>
    <altitudeLayer>Blueprint</altitudeLayer>
    <passability>Standable</passability>
    <building>
      <isEdifice>false</isEdifice>
    </building>
    <placingDraggableDimensions>1</placingDraggableDimensions>
    <blockWind>false</blockWind>
    <tickerType>Rare</tickerType>
    <costStuffCount>5</costStuffCount>
    <costList>
      <Steel>15</Steel>
    </costList>
    <stuffCategories>
      <li>Metallic</li>
    </stuffCategories>
    <statBases>
    <MaxHitPoints>150</MaxHitPoints>
      <Flammability>1.0</Flammability>
      <WorkToBuild>300</WorkToBuild>
      <Mass>3.5</Mass>
    </statBases>
    <comps>
      <li Class="CompProperties_Glower">
        <overlightRadius>2.95</overlightRadius>
        <glowRadius>6.0</glowRadius>
        <glowColor>(225,235,250,0)</glowColor>
      </li>
      <li Class="CompProperties_Power">
        <compClass>CompPowerTrader</compClass>
        <startElectricalFires>true</startElectricalFires>
        <shortCircuitInRain>true</shortCircuitInRain>
        <basePowerConsumption>15</basePowerConsumption>
      </li>
    </comps>
    <fertility>1.5</fertility>
    <researchPrerequisites>
      <li>IndustrialSmokeleafCultivation</li>
    </researchPrerequisites>
    <specialDisplayRadius>1.5</specialDisplayRadius>
    <designationCategory>MSI</designationCategory>
  </ThingDef>

  <!--========== Planters ==========-->

	<!--========== Stone Planter ==========-->
	
  <ThingDef ParentName="MSI_ArtableFurnitureBase">
    <defName>MSI_StonePlanter</defName>
    <label>planter</label>
	  <description>A stone planter for smokeleaf or other plants. The soil is fertilized to encourage rapid growth at 1.5x the normal rate. Requires light and heat.</description>
    <thingClass>Building_PlantGrower</thingClass>
    <graphicData>
      <texPath>Things/Buildings/MSI_stonePlanter</texPath>
      <graphicClass>Graphic_Single</graphicClass>
	    <shaderType>Cutout</shaderType>
      <shadowData>
        <volume>(0.3, 0.6, 0.3)</volume>
      </shadowData>
      <damageData>
        <rect>(0.2,0.2,0.6,0.6)</rect>
      </damageData>
    </graphicData>
	  <uiIconPath>UI/Icons/MSI_stonePlanter_icon</uiIconPath>
    <altitudeLayer>FloorEmplacement</altitudeLayer>
    <passability>PassThroughOnly</passability>
	  <pathCost>40</pathCost>
    <fillPercent>0.25</fillPercent>
    <statBases>
      <Beauty>1.0</Beauty>
      <MaxHitPoints>150</MaxHitPoints>
      <WorkToBuild>750</WorkToBuild>
      <Mass>5</Mass>
    </statBases>
    <stuffCategories>
      <li>Stony</li>
    </stuffCategories>
    <costStuffCount>35</costStuffCount>
    <comps>
      <li Class="CompProperties_Forbiddable"/>
    </comps>
    <fertility>1.5</fertility>
    <leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
    <building>
      <defaultPlantToGrow>PlantSmokeleaf</defaultPlantToGrow>
      <sowTag>Hydroponic</sowTag>
    </building>
    <tickerType>Rare</tickerType>
  	<researchPrerequisites>
  	  <li>SmokeleafCultivation</li>
  	</researchPrerequisites>
      <rotatable>false</rotatable>
  	<designationCategory>MSI</designationCategory>
  </ThingDef>

  <!--========== Wooden Planter ==========-->
  
  <ThingDef ParentName="MSI_ArtableFurnitureBase">
    <defName>MSI_WoodenPlanter</defName>
    <label>planter</label>
    <description>A wooden planter for smokeleaf or other plants. The soil is fertilized to encourage rapid growth at 2x the normal rate. Requires light and heat.</description>
    <thingClass>Building_PlantGrower</thingClass>
    <graphicData>
      <texPath>Things/Buildings/MSI_woodPlanter</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <shaderType>Cutout</shaderType>
      <shadowData>
        <volume>(0.3, 0.6, 0.3)</volume>
      </shadowData>
      <damageData>
        <rect>(0.2,0.2,0.6,0.6)</rect>
      </damageData>
    </graphicData>
    <uiIconPath>UI/Icons/MSI_woodPlanter_icon</uiIconPath>
    <altitudeLayer>FloorEmplacement</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <pathCost>40</pathCost>
    <fillPercent>0.25</fillPercent>
    <statBases>
      <Beauty>1.5</Beauty>
      <MaxHitPoints>100</MaxHitPoints>
      <WorkToBuild>450</WorkToBuild>
      <Mass>4</Mass>
    </statBases>
    <stuffCategories>
      <li>Woody</li>
    </stuffCategories>
    <costStuffCount>35</costStuffCount>
    <comps>
      <li Class="CompProperties_Forbiddable"/>
    </comps>
    <fertility>2.0</fertility>
    <leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
    <building>
      <defaultPlantToGrow>PlantSmokeleaf</defaultPlantToGrow>
      <sowTag>Hydroponic</sowTag>
    </building>
    <tickerType>Rare</tickerType>
    <researchPrerequisites>
      <li>IndustrialSmokeleafCultivation</li>
    </researchPrerequisites>
      <rotatable>false</rotatable>
    <designationCategory>MSI</designationCategory>
  </ThingDef>

  <!--========== Space Bucket ==========-->
  
  <ThingDef ParentName="MSI_ArtableFurnitureBase">
    <defName>SpaceBucket</defName>
    <label>space bucket</label>
    <description>A self-contained growing system. Uses a fair amount of power for a single plant, but grows plants at 5x the normal rate. Ideal for growing in confined spaces.  Requires heat.</description>
    <thingClass>Building_PlantGrower</thingClass>
    <graphicData>
      <texPath>Things/Buildings/MSI_spaceBucket</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <shaderType>CutoutComplex</shaderType>
      <shadowData>
        <volume>(0.3, 0.6, 0.3)</volume>
      </shadowData>
      <damageData>
        <rect>(0.2,0.2,0.6,0.6)</rect>
      </damageData>
    </graphicData>
    <uiIconPath>UI/Icons/MSI_spaceBucket_icon</uiIconPath>
    <altitudeLayer>FloorEmplacement</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <pathCost>40</pathCost>
    <fillPercent>0.25</fillPercent>
    <statBases>
      <Beauty>2.0</Beauty>
      <MaxHitPoints>250</MaxHitPoints>
      <WorkToBuild>600</WorkToBuild>
      <Mass>3</Mass>
      <Flammability>1.0</Flammability>
    </statBases>
    <stuffCategories>
      <li>Metallic</li>
    </stuffCategories>
    <costStuffCount>50</costStuffCount>
    <costList>
      <Steel>25</Steel>
      <Component>1</Component>
    </costList>
    <comps>
      <li Class="CompProperties_Forbiddable"/>
      <li Class="CompProperties_Power">
        <compClass>CompPowerTrader</compClass>
        <basePowerConsumption>350</basePowerConsumption>
        <startElectricalFires>true</startElectricalFires>
      </li>
      <li Class="CompProperties_Glower">
        <overlightRadius>4.0</overlightRadius>
        <glowRadius>2.0</glowRadius>
        <glowColor>(225,235,250,0)</glowColor>
      </li>
    </comps>
    <fertility>5.0</fertility>
    <leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
    <building>
      <defaultPlantToGrow>PlantSmokeleaf</defaultPlantToGrow>
      <sowTag>Hydroponic</sowTag>
    </building>
    <researchPrerequisites>
      <li>AdvancedSmokeleafCultivation</li>
    </researchPrerequisites>
      <rotatable>false</rotatable>
    <designationCategory>MSI</designationCategory>
  </ThingDef>	
  
</Defs>