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

  <!-- Safe Battery -->
  <ThingDef ParentName="BuildingBase">
    <defName>Safe_Battery</defName>
    <label>Safe Battery [Glow]</label>
    <thingClass>M13SafeBatteries.Safe_Battery</thingClass>
    <graphicData>
      <texPath>Safe_Battery</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(2,3)</drawSize>
      <damageData>
        <cornerTL>Damage/Corner</cornerTL>
        <cornerTR>Damage/Corner</cornerTR>
        <cornerBL>Damage/Corner</cornerBL>
        <cornerBR>Damage/Corner</cornerBR>
      </damageData>
    </graphicData>
    <altitudeLayer>Building</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <pathCost>70</pathCost>
    <blockWind>true</blockWind>
    <castEdgeShadows>true</castEdgeShadows>
    <fillPercent>0.40</fillPercent>
    <tickerType>Normal</tickerType>
    <minifiedDef>MinifiedThing</minifiedDef>
	<thingCategories>
      <li>BuildingsPower</li>
	</thingCategories>
    <statBases>
      <MaxHitPoints>200</MaxHitPoints>
      <WorkToBuild>1600</WorkToBuild>
      <Mass>20</Mass>
      <Flammability>1.0</Flammability>
      <Beauty>-18</Beauty>
    </statBases>
    <description>This Battery has been upgraded to hold more charge and to not cause fires even when exposed to rain, but due to this the battery is less efficient in storing power.</description>
    <size>(1,2)</size>
    <costList>
      <Steel>150</Steel>
      <ComponentIndustrial>5</ComponentIndustrial>
	  <Silver>25</Silver>
    </costList>
    <comps>
      <li Class="CompProperties_Battery">
        <storedEnergyMax>2500</storedEnergyMax>
        <efficiency>0.35</efficiency>
        <transmitsPower>true</transmitsPower>
      </li>
      <li Class="CompProperties_Breakdownable"/>
	  <li Class="CompProperties_Glower">
        <glowRadius>6</glowRadius>
        <glowColor>(0,255,0,0)</glowColor>
      </li>
    </comps>
    <terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
    <designationCategory>M13Power</designationCategory>
    <staticSunShadowHeight>0.5</staticSunShadowHeight>
    <constructEffect>ConstructMetal</constructEffect>
    <designationHotKey>Misc4</designationHotKey>
    <canOverlapZones>false</canOverlapZones>
    <researchPrerequisites>
      <li>M13Battery</li>
    </researchPrerequisites>
	<constructionSkillPrerequisite>7</constructionSkillPrerequisite>
  </ThingDef>
  
  <!-- Safe Battery -->
  <ThingDef ParentName="BuildingBase">
    <defName>Safe_Battery_NG</defName>
    <label>Safe Battery [No Glow]</label>
    <thingClass>M13SafeBatteries.Safe_Battery</thingClass>
    <graphicData>
      <texPath>Safe_Battery</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(2,3)</drawSize>
      <damageData>
        <cornerTL>Damage/Corner</cornerTL>
        <cornerTR>Damage/Corner</cornerTR>
        <cornerBL>Damage/Corner</cornerBL>
        <cornerBR>Damage/Corner</cornerBR>
      </damageData>
    </graphicData>
    <altitudeLayer>Building</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <pathCost>70</pathCost>
    <blockWind>true</blockWind>
    <castEdgeShadows>true</castEdgeShadows>
    <fillPercent>0.40</fillPercent>
    <tickerType>Normal</tickerType>
    <minifiedDef>MinifiedThing</minifiedDef>
	<thingCategories>
      <li>BuildingsPower</li>
	</thingCategories>
    <statBases>
      <MaxHitPoints>200</MaxHitPoints>
      <WorkToBuild>1600</WorkToBuild>
      <Mass>20</Mass>
      <Flammability>1.0</Flammability>
      <Beauty>-18</Beauty>
    </statBases>
    <description>This Battery has been upgraded to hold more charge and to not cause fires even when exposed to rain, but due to this the battery is less efficient in storing power.</description>
    <size>(1,2)</size>
    <costList>
      <Steel>150</Steel>
      <ComponentIndustrial>5</ComponentIndustrial>
	  <Silver>25</Silver>
    </costList>
    <comps>
      <li Class="CompProperties_Battery">
        <storedEnergyMax>2500</storedEnergyMax>
        <efficiency>0.35</efficiency>
        <transmitsPower>true</transmitsPower>
      </li>
      <li Class="CompProperties_Breakdownable"/>
    </comps>
    <terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
    <designationCategory>M13Power</designationCategory>
    <staticSunShadowHeight>0.5</staticSunShadowHeight>
    <constructEffect>ConstructMetal</constructEffect>
    <designationHotKey>Misc4</designationHotKey>
    <canOverlapZones>false</canOverlapZones>
    <researchPrerequisites>
      <li>M13Battery</li>
    </researchPrerequisites>
	<constructionSkillPrerequisite>7</constructionSkillPrerequisite>
  </ThingDef>
  
</Defs>