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

  <!-- Tweaked Watermill Generator (Glow) -->

<ThingDef ParentName="BuildingBase">
    <defName>Tweaked_Watermill</defName>
    <label>Tweaked Watermill Generator [Glow]</label>
    <description>The Tweaked version of the Watermill Generator. 25% more power generation compared to the basic Watermill Generator. NOTE: Placing Watermills to close to each-other will negatively impact power generation!</description>
    <thingClass>Building</thingClass>
    <graphicData>
      <texPath>Tweaked_WatermillBody</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(5,6)</drawSize>
      <shadowData>
        <volume>(2.6,1,2.16)</volume>
        <offset>(-0.20,0,0)</offset>
      </shadowData>
    </graphicData>
    <castEdgeShadows>false</castEdgeShadows>
    <staticSunShadowHeight>0</staticSunShadowHeight>
    <altitudeLayer>Building</altitudeLayer>
    <passability>Impassable</passability>
    <blockWind>true</blockWind>
		<scatterableOnMapGen>false</scatterableOnMapGen>
		<fillPercent>1</fillPercent>
    <canOverlapZones>false</canOverlapZones>
    <statBases>
      <MaxHitPoints>500</MaxHitPoints>
      <WorkToBuild>5000</WorkToBuild>
      <Flammability>1.0</Flammability>
      <Beauty>0</Beauty>
    </statBases>
    <tickerType>Normal</tickerType>
    <size>(5,6)</size>
    <costList>
      <WoodLog>350</WoodLog>
      <Steel>100</Steel>
      <ComponentIndustrial>4</ComponentIndustrial>
	  <Silver>70</Silver>
    </costList>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>M13Watermills.CompTweakedWatermill</compClass>
        <basePowerConsumption>-1375</basePowerConsumption>
        <transmitsPower>true</transmitsPower>
      </li>
      <li Class="CompProperties_Breakdownable"/>
      <li Class="CompProperties_Glower">
        <glowRadius>10</glowRadius>
        <glowColor>(0,255,0,0)</glowColor>
      </li>
	</comps>
    <rotatable>true</rotatable>
    <terrainAffordanceNeeded></terrainAffordanceNeeded> <!-- handled by the placeworker -->
    <designationCategory>M13Power</designationCategory>
    <placeWorkers>
      <li>PlaceWorker_WatermillGenerator</li>
    </placeWorkers>
    <building>
			<ai_chillDestination>false</ai_chillDestination>
    </building>
    <constructEffect>ConstructWood</constructEffect>
    <researchPrerequisites><li>TweakedWatermill</li></researchPrerequisites>
    <constructionSkillPrerequisite>7</constructionSkillPrerequisite>
  </ThingDef>
  
  <!-- Tweaked Watermill Generator (No Glow) -->
  
<ThingDef ParentName="BuildingBase">
    <defName>Tweaked_Watermill_NG</defName>
    <label>Tweaked Watermill Generator [No Glow]</label>
    <description>The Tweaked version of the Watermill Generator. 25% more power generation compared to the basic Watermill Generator. NOTE: Placing Watermills to close to each-other will negatively impact power generation!</description>
    <thingClass>Building</thingClass>
    <graphicData>
      <texPath>Tweaked_WatermillBody</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(5,6)</drawSize>
      <shadowData>
        <volume>(2.6,1,2.16)</volume>
        <offset>(-0.20,0,0)</offset>
      </shadowData>
    </graphicData>
    <castEdgeShadows>false</castEdgeShadows>
    <staticSunShadowHeight>0</staticSunShadowHeight>
    <altitudeLayer>Building</altitudeLayer>
    <passability>Impassable</passability>
    <blockWind>true</blockWind>
		<scatterableOnMapGen>false</scatterableOnMapGen>
		<fillPercent>1</fillPercent>
    <canOverlapZones>false</canOverlapZones>
    <statBases>
      <MaxHitPoints>500</MaxHitPoints>
      <WorkToBuild>5000</WorkToBuild>
      <Flammability>1.0</Flammability>
      <Beauty>0</Beauty>
    </statBases>
    <tickerType>Normal</tickerType>
    <size>(5,6)</size>
    <costList>
      <WoodLog>350</WoodLog>
      <Steel>100</Steel>
      <ComponentIndustrial>4</ComponentIndustrial>
	  <Silver>70</Silver>
    </costList>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>M13Watermills.CompTweakedWatermill</compClass>
        <basePowerConsumption>-1375</basePowerConsumption>
        <transmitsPower>true</transmitsPower>
      </li>
      <li Class="CompProperties_Breakdownable"/>
	</comps>
    <rotatable>true</rotatable>
    <terrainAffordanceNeeded></terrainAffordanceNeeded> <!-- handled by the placeworker -->
    <designationCategory>M13Power</designationCategory>
    <placeWorkers>
      <li>PlaceWorker_WatermillGenerator</li>
    </placeWorkers>
    <building>
			<ai_chillDestination>false</ai_chillDestination>
    </building>
    <constructEffect>ConstructWood</constructEffect>
    <researchPrerequisites><li>TweakedWatermill</li></researchPrerequisites>
    <constructionSkillPrerequisite>7</constructionSkillPrerequisite>
  </ThingDef>
  
  <!-- Upgraded Watermill Generator (Glow) -->
  
  <ThingDef ParentName="BuildingBase">
    <defName>Upgraded_Watermill</defName>
    <label>Upgraded Watermill Generator [Glow]</label>
    <description>The Upgraded version of the Watermill Generator. 50% more power generation compared to the basic Watermill Generator. NOTE: Placing Watermills to close to each-other will negatively impact power generation!</description>
    <thingClass>Building</thingClass>
    <graphicData>
      <texPath>Upgraded_WatermillBody</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(5,6)</drawSize>
      <shadowData>
        <volume>(2.6,1,2.16)</volume>
        <offset>(-0.20,0,0)</offset>
      </shadowData>
    </graphicData>
    <castEdgeShadows>false</castEdgeShadows>
    <staticSunShadowHeight>0</staticSunShadowHeight>
    <altitudeLayer>Building</altitudeLayer>
    <passability>Impassable</passability>
    <blockWind>true</blockWind>
		<scatterableOnMapGen>false</scatterableOnMapGen>
		<fillPercent>1</fillPercent>
    <canOverlapZones>false</canOverlapZones>
    <statBases>
      <MaxHitPoints>600</MaxHitPoints>
      <WorkToBuild>6000</WorkToBuild>
      <Flammability>1.0</Flammability>
      <Beauty>0</Beauty>
    </statBases>
    <tickerType>Normal</tickerType>
    <size>(5,6)</size>
    <costList>
      <WoodLog>420</WoodLog>
      <Steel>120</Steel>
      <ComponentIndustrial>5</ComponentIndustrial>
	  <Silver>100</Silver>
	  <Gold>30</Gold>
    </costList>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>M13Watermills.CompUpgradedWatermill</compClass>
        <basePowerConsumption>-1650</basePowerConsumption>
        <transmitsPower>true</transmitsPower>
      </li>
      <li Class="CompProperties_Breakdownable"/>
      <li Class="CompProperties_Glower">
        <glowRadius>10</glowRadius>
        <glowColor>(255,255,0,0)</glowColor>
      </li>
	</comps>
    <rotatable>true</rotatable>
    <terrainAffordanceNeeded></terrainAffordanceNeeded> <!-- handled by the placeworker -->
    <designationCategory>M13Power</designationCategory>
    <placeWorkers>
      <li>PlaceWorker_WatermillGenerator</li>
    </placeWorkers>
    <building>
			<ai_chillDestination>false</ai_chillDestination>
    </building>
    <constructEffect>ConstructWood</constructEffect>
    <researchPrerequisites><li>UpgradedWatermill</li></researchPrerequisites>
    <constructionSkillPrerequisite>8</constructionSkillPrerequisite>
  </ThingDef>
  
   <!-- Upgraded Watermill Generator (No Glow) -->
  
  <ThingDef ParentName="BuildingBase">
    <defName>Upgraded_Watermill_NG</defName>
    <label>Upgraded Watermill Generator [No Glow]</label>
    <description>The Upgraded version of the Watermill Generator. 50% more power generation compared to the basic Watermill Generator. NOTE: Placing Watermills to close to each-other will negatively impact power generation!</description>
    <thingClass>Building</thingClass>
    <graphicData>
      <texPath>Upgraded_WatermillBody</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(5,6)</drawSize>
      <shadowData>
        <volume>(2.6,1,2.16)</volume>
        <offset>(-0.20,0,0)</offset>
      </shadowData>
    </graphicData>
    <castEdgeShadows>false</castEdgeShadows>
    <staticSunShadowHeight>0</staticSunShadowHeight>
    <altitudeLayer>Building</altitudeLayer>
    <passability>Impassable</passability>
    <blockWind>true</blockWind>
		<scatterableOnMapGen>false</scatterableOnMapGen>
		<fillPercent>1</fillPercent>
    <canOverlapZones>false</canOverlapZones>
    <statBases>
      <MaxHitPoints>600</MaxHitPoints>
      <WorkToBuild>6000</WorkToBuild>
      <Flammability>1.0</Flammability>
      <Beauty>0</Beauty>
    </statBases>
    <tickerType>Normal</tickerType>
    <size>(5,6)</size>
    <costList>
      <WoodLog>420</WoodLog>
      <Steel>120</Steel>
      <ComponentIndustrial>5</ComponentIndustrial>
	  <Silver>100</Silver>
	  <Gold>30</Gold>
    </costList>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>M13Watermills.CompUpgradedWatermill</compClass>
        <basePowerConsumption>-1650</basePowerConsumption>
        <transmitsPower>true</transmitsPower>
      </li>
      <li Class="CompProperties_Breakdownable"/>
	</comps>
    <rotatable>true</rotatable>
    <terrainAffordanceNeeded></terrainAffordanceNeeded> <!-- handled by the placeworker -->
    <designationCategory>M13Power</designationCategory>
    <placeWorkers>
      <li>PlaceWorker_WatermillGenerator</li>
    </placeWorkers>
    <building>
			<ai_chillDestination>false</ai_chillDestination>
    </building>
    <constructEffect>ConstructWood</constructEffect>
    <researchPrerequisites><li>UpgradedWatermill</li></researchPrerequisites>
    <constructionSkillPrerequisite>8</constructionSkillPrerequisite>
  </ThingDef>
  
  <!-- Advanced Watermill Generator (Glow) -->
  
  <ThingDef ParentName="BuildingBase">
    <defName>Advanced_Watermill</defName>
    <label>Advanced Watermill Generator [Glow]</label>
    <description>The Advanced version of the Watermill Generator. 75% more power generation compared to the basic Watermill Generator. NOTE: Placing Watermills to close to each-other will negatively impact power generation!</description>
    <thingClass>Building</thingClass>
    <graphicData>
      <texPath>Advanced_WatermillBody</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(5,6)</drawSize>
      <shadowData>
        <volume>(2.6,1,2.16)</volume>
        <offset>(-0.20,0,0)</offset>
      </shadowData>
    </graphicData>
    <castEdgeShadows>false</castEdgeShadows>
    <staticSunShadowHeight>0</staticSunShadowHeight>
    <altitudeLayer>Building</altitudeLayer>
    <passability>Impassable</passability>
    <blockWind>true</blockWind>
		<scatterableOnMapGen>false</scatterableOnMapGen>
		<fillPercent>1</fillPercent>
    <canOverlapZones>false</canOverlapZones>
    <statBases>
      <MaxHitPoints>700</MaxHitPoints>
      <WorkToBuild>7000</WorkToBuild>
      <Flammability>1.0</Flammability>
      <Beauty>0</Beauty>
    </statBases>
    <tickerType>Normal</tickerType>
    <size>(5,6)</size>
    <costList>
      <WoodLog>490</WoodLog>
      <Steel>140</Steel>
      <ComponentIndustrial>5</ComponentIndustrial>
	  <Silver>130</Silver>
	  <Gold>35</Gold>
	  <Uranium>60</Uranium>
    </costList>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>M13Watermills.CompAdvancedWatermill</compClass>
        <basePowerConsumption>-1925</basePowerConsumption>
        <transmitsPower>true</transmitsPower>
      </li>
      <li Class="CompProperties_Breakdownable"/>
      <li Class="CompProperties_Glower">
        <glowRadius>10</glowRadius>
        <glowColor>(255,125,0,0)</glowColor>
      </li>
	</comps>
    <rotatable>true</rotatable>
    <terrainAffordanceNeeded></terrainAffordanceNeeded> <!-- handled by the placeworker -->
    <designationCategory>M13Power</designationCategory>
    <placeWorkers>
      <li>PlaceWorker_WatermillGenerator</li>
    </placeWorkers>
    <building>
			<ai_chillDestination>false</ai_chillDestination>
    </building>
    <constructEffect>ConstructWood</constructEffect>
    <researchPrerequisites><li>AdvancedWatermill</li></researchPrerequisites>
    <constructionSkillPrerequisite>9</constructionSkillPrerequisite>
  </ThingDef>
  
   <!-- Advanced Watermill Generator (No Glow) -->
  
  <ThingDef ParentName="BuildingBase">
    <defName>Advanced_Watermill_NG</defName>
    <label>Advanced Watermill Generator [No Glow]</label>
    <description>The Advanced version of the Watermill Generator. 75% more power generation compared to the basic Watermill Generator. NOTE: Placing Watermills to close to each-other will negatively impact power generation!</description>
    <thingClass>Building</thingClass>
    <graphicData>
      <texPath>Advanced_WatermillBody</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(5,6)</drawSize>
      <shadowData>
        <volume>(2.6,1,2.16)</volume>
        <offset>(-0.20,0,0)</offset>
      </shadowData>
    </graphicData>
    <castEdgeShadows>false</castEdgeShadows>
    <staticSunShadowHeight>0</staticSunShadowHeight>
    <altitudeLayer>Building</altitudeLayer>
    <passability>Impassable</passability>
    <blockWind>true</blockWind>
		<scatterableOnMapGen>false</scatterableOnMapGen>
		<fillPercent>1</fillPercent>
    <canOverlapZones>false</canOverlapZones>
    <statBases>
      <MaxHitPoints>700</MaxHitPoints>
      <WorkToBuild>7000</WorkToBuild>
      <Flammability>1.0</Flammability>
      <Beauty>0</Beauty>
    </statBases>
    <tickerType>Normal</tickerType>
    <size>(5,6)</size>
    <costList>
      <WoodLog>490</WoodLog>
      <Steel>140</Steel>
      <ComponentIndustrial>5</ComponentIndustrial>
	  <Silver>130</Silver>
	  <Gold>35</Gold>
	  <Uranium>60</Uranium>
    </costList>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>M13Watermills.CompUpgradedWatermill</compClass>
        <basePowerConsumption>-1925</basePowerConsumption>
        <transmitsPower>true</transmitsPower>
      </li>
      <li Class="CompProperties_Breakdownable"/>
	</comps>
    <rotatable>true</rotatable>
    <terrainAffordanceNeeded></terrainAffordanceNeeded> <!-- handled by the placeworker -->
    <designationCategory>M13Power</designationCategory>
    <placeWorkers>
      <li>PlaceWorker_WatermillGenerator</li>
    </placeWorkers>
    <building>
			<ai_chillDestination>false</ai_chillDestination>
    </building>
    <constructEffect>ConstructWood</constructEffect>
    <researchPrerequisites><li>AdvancedWatermill</li></researchPrerequisites>
    <constructionSkillPrerequisite>9</constructionSkillPrerequisite>
  </ThingDef>
  
  <!-- Ultimate Watermill Generator (Glow) -->
  
  <ThingDef ParentName="BuildingBase">
    <defName>Ultimate_Watermill</defName>
    <label>Ultimate Watermill Generator [Glow]</label>
    <description>The Ultimate version of the Watermill Generator. 100% more power generation compared to the basic Watermill Generator. NOTE: Placing Watermills to close to each-other will negatively impact power generation!</description>
    <thingClass>Building</thingClass>
    <graphicData>
      <texPath>Ultimate_WatermillBody</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(5,6)</drawSize>
      <shadowData>
        <volume>(2.6,1,2.16)</volume>
        <offset>(-0.20,0,0)</offset>
      </shadowData>
    </graphicData>
    <castEdgeShadows>false</castEdgeShadows>
    <staticSunShadowHeight>0</staticSunShadowHeight>
    <altitudeLayer>Building</altitudeLayer>
    <passability>Impassable</passability>
    <blockWind>true</blockWind>
		<scatterableOnMapGen>false</scatterableOnMapGen>
		<fillPercent>1</fillPercent>
    <canOverlapZones>false</canOverlapZones>
    <statBases>
      <MaxHitPoints>800</MaxHitPoints>
      <WorkToBuild>8000</WorkToBuild>
      <Flammability>1.0</Flammability>
      <Beauty>0</Beauty>
    </statBases>
    <tickerType>Normal</tickerType>
    <size>(5,6)</size>
    <costList>
      <WoodLog>560</WoodLog>
      <Steel>160</Steel>
      <ComponentIndustrial>6</ComponentIndustrial>
	  <Silver>160</Silver>
	  <Gold>40</Gold>
	  <Uranium>75</Uranium>
	  <Plasteel>50</Plasteel>
    </costList>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>M13Watermills.CompUltimateWatermill</compClass>
        <basePowerConsumption>-2200</basePowerConsumption>
        <transmitsPower>true</transmitsPower>
      </li>
      <li Class="CompProperties_Breakdownable"/>
      <li Class="CompProperties_Glower">
        <glowRadius>10</glowRadius>
        <glowColor>(255,0,0,0)</glowColor>
      </li>
	</comps>
    <rotatable>true</rotatable>
    <terrainAffordanceNeeded></terrainAffordanceNeeded> <!-- handled by the placeworker -->
    <designationCategory>M13Power</designationCategory>
    <placeWorkers>
      <li>PlaceWorker_WatermillGenerator</li>
    </placeWorkers>
    <building>
			<ai_chillDestination>false</ai_chillDestination>
    </building>
    <constructEffect>ConstructWood</constructEffect>
    <researchPrerequisites><li>UltimateWatermill</li></researchPrerequisites>
    <constructionSkillPrerequisite>10</constructionSkillPrerequisite>
  </ThingDef>
  
   <!-- Ultimate Watermill Generator (No Glow) -->
  
  <ThingDef ParentName="BuildingBase">
    <defName>Ultimate_Watermill_NG</defName>
    <label>Ultimate Watermill Generator [No Glow]</label>
    <description>The Ultimate version of the Watermill Generator. 100% more power generation compared to the basic Watermill Generator. NOTE: Placing Watermills to close to each-other will negatively impact power generation!</description>
    <thingClass>Building</thingClass>
    <graphicData>
      <texPath>Ultimate_WatermillBody</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(5,6)</drawSize>
      <shadowData>
        <volume>(2.6,1,2.16)</volume>
        <offset>(-0.20,0,0)</offset>
      </shadowData>
    </graphicData>
    <castEdgeShadows>false</castEdgeShadows>
    <staticSunShadowHeight>0</staticSunShadowHeight>
    <altitudeLayer>Building</altitudeLayer>
    <passability>Impassable</passability>
    <blockWind>true</blockWind>
		<scatterableOnMapGen>false</scatterableOnMapGen>
		<fillPercent>1</fillPercent>
    <canOverlapZones>false</canOverlapZones>
    <statBases>
      <MaxHitPoints>800</MaxHitPoints>
      <WorkToBuild>8000</WorkToBuild>
      <Flammability>1.0</Flammability>
      <Beauty>0</Beauty>
    </statBases>
    <tickerType>Normal</tickerType>
    <size>(5,6)</size>
    <costList>
      <WoodLog>560</WoodLog>
      <Steel>160</Steel>
      <ComponentIndustrial>6</ComponentIndustrial>
	  <Silver>160</Silver>
	  <Gold>40</Gold>
	  <Uranium>75</Uranium>
	  <Plasteel>50</Plasteel>
    </costList>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>M13Watermills.CompUltimateWatermill</compClass>
        <basePowerConsumption>-2200</basePowerConsumption>
        <transmitsPower>true</transmitsPower>
      </li>
      <li Class="CompProperties_Breakdownable"/>
	</comps>
    <rotatable>true</rotatable>
    <terrainAffordanceNeeded></terrainAffordanceNeeded> <!-- handled by the placeworker -->
    <designationCategory>M13Power</designationCategory>
    <placeWorkers>
      <li>PlaceWorker_WatermillGenerator</li>
    </placeWorkers>
    <building>
			<ai_chillDestination>false</ai_chillDestination>
    </building>
    <constructEffect>ConstructWood</constructEffect>
    <researchPrerequisites><li>UltimateWatermill</li></researchPrerequisites>
    <constructionSkillPrerequisite>10</constructionSkillPrerequisite>
  </ThingDef>
  
</Defs>