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


  <ThingDef Name="PlantBase" Abstract="True">
    <eType>Plant</eType>
    <category>Plant</category>
    <thingClass>Plant</thingClass>
    <altitudeLayer>LowPlant</altitudeLayer>
    <flammability>1.0</flammability>
    <useStandardHealth>True</useStandardHealth>
    <maxHealth>75</maxHealth>
    <tickerType>Rare</tickerType>
    <selectable>False</selectable>
    <neverMultiSelect>True</neverMultiSelect>
    <drawerType>MapMeshOnly</drawerType>
    <baseMaterialType>PlantCutout</baseMaterialType>
    <plant>
      <harvestDestroys>true</harvestDestroys>
      <harvestingSound>Harvest_Standard</harvestingSound>
      <harvestFinishSound>Harvest_Standard_Finish</harvestFinishSound>
      <sowWork>150</sowWork>
      <fertilityMin>0.5</fertilityMin>
      <fertilityFactorGrowthRate>1.0</fertilityFactorGrowthRate>
      <topWindExposure>0.1</topWindExposure>
      <growthPer20kTicks>0.48</growthPer20kTicks>
      <lifeSpan>200000</lifeSpan>
      <growMinGlow>Overlit</growMinGlow>
      <seedShootMinGrowthPercent>0.6</seedShootMinGrowthPercent>
      <visualSizeRange>
        <min>0.3</min>
        <max>1.00</max>
      </visualSizeRange>
    </plant>
  </ThingDef>


  
  


  <!--===========================  Wild - clustering bushes (some harvestable) ==============================-->


  <ThingDef ParentName="PlantBase">
    <defName>PlantAgave</defName>
    <label>Agave</label>
    <maxHealth>120</maxHealth>
    <description>Large-leafed desert plant with edible flowers and stalks.</description>
    <beauty>Neutral</beauty>
    <textureFolderPath>Things/Plant/Agave</textureFolderPath>
    <selectable>true</selectable>
    <sunShadowInfo>
      <baseWidth>0.2</baseWidth>
      <baseHeight>0.2</baseHeight>
      <tallness>0.6</tallness>
    </sunShadowInfo>
    <fillPercent>0.25</fillPercent>
    <pathCost>30</pathCost>
    <food>
      <quality>Plant</quality>
      <nutrition>40</nutrition>
    </food>
    <plant>
      <harvestTag>Food</harvestTag>
      <harvestDestroys>false</harvestDestroys>
      <harvestedThingDef>RawAgave</harvestedThingDef>
      <harvestYieldRange>
        <min>4</min>
        <max>8</max>
      </harvestYieldRange>
      <fertilityMin>0.3</fertilityMin>
      <wildCommonality>0.6</wildCommonality>
      <wildCommonalityMaxFraction>3.0</wildCommonalityMaxFraction>
      <wildBiomes>
        <li>XericShrubland</li>
      </wildBiomes>
      <visualSizeRange>
        <min>0.7</min>
        <max>1.1</max>
      </visualSizeRange>
      <growthPer20kTicks>0.45</growthPer20kTicks>
      <topWindExposure>0.3</topWindExposure>
      <seedShootRadius>3</seedShootRadius>
      <lifeSpan>800000</lifeSpan>
      <fertilityFactorGrowthRate>0.5</fertilityFactorGrowthRate>
      <wildClusterSizeRange>
        <min>3</min>
        <max>10</max>
      </wildClusterSizeRange>
    </plant>
  </ThingDef>



  <ThingDef ParentName="PlantBase">
    <defName>PlantRaspberry</defName>
    <label>Raspberry bush</label>
    <maxHealth>120</maxHealth>
    <description>Bushy plant with delicious red berries.</description>
    <beauty>Neutral</beauty>
    <textureFolderPath>Things/Plant/Raspberry</textureFolderPath>
    <selectable>true</selectable>
    <sunShadowInfo>
      <baseWidth>0.6</baseWidth>
      <baseHeight>0.6</baseHeight>
      <tallness>0.2</tallness>
    </sunShadowInfo>
    <fillPercent>0.25</fillPercent>
    <pathCost>30</pathCost>
    <food>
      <quality>Plant</quality>
      <nutrition>40</nutrition>
    </food>
    <plant>
      <harvestTag>Food</harvestTag>
      <harvestDestroys>false</harvestDestroys>
      <harvestedThingDef>RawBerries</harvestedThingDef>
      <harvestYieldRange>
        <min>4</min>
        <max>8</max>
      </harvestYieldRange>
      <fertilityMin>0.5</fertilityMin>
      <wildCommonality>0.6</wildCommonality>
      <wildCommonalityMaxFraction>3.0</wildCommonalityMaxFraction>
      <wildBiomes>
        <li>XericShrubland</li>
      </wildBiomes>
      <wildClusterSizeRange>
        <min>3</min>
        <max>10</max>
      </wildClusterSizeRange>
      <visualSizeRange>
        <min>0.7</min>
        <max>1.1</max>
      </visualSizeRange>
      <growthPer20kTicks>0.45</growthPer20kTicks>
      <topWindExposure>0.3</topWindExposure>
      <seedShootRadius>3</seedShootRadius>
      <lifeSpan>800000</lifeSpan>
      <fertilityFactorGrowthRate>0.5</fertilityFactorGrowthRate>

    </plant>
  </ThingDef>


  <ThingDef ParentName="PlantBase">
    <defName>PlantBush</defName>
    <label>Bush</label>
    <maxHealth>120</maxHealth>
    <description>Short shrub. Does not typically talk.</description>
    <beauty>Neutral</beauty>
    <textureFolderPath>Things/Plant/Bush</textureFolderPath>
    <selectable>true</selectable>
    <sunShadowInfo>
      <baseWidth>0.37</baseWidth>
      <baseHeight>0.37</baseHeight>
      <tallness>0.2</tallness>
    </sunShadowInfo>
    <fillPercent>0.25</fillPercent>
    <pathCost>30</pathCost>
    <food>
      <quality>Plant</quality>
      <nutrition>30</nutrition>
    </food>
    <plant>
      <fertilityMin>0.4</fertilityMin>
      <wildCommonality>0.7</wildCommonality>
      <wildBiomes>
        <li>XericShrubland</li>
      </wildBiomes>
      <wildClusterSizeRange>
        <min>2</min>
        <max>6</max>
      </wildClusterSizeRange>
      <visualSizeRange>
        <min>0.7</min>
        <max>1.1</max>
      </visualSizeRange>
      <growthPer20kTicks>0.30</growthPer20kTicks>
      <topWindExposure>0.3</topWindExposure>
      <seedShootRadius>3</seedShootRadius>
      <lifeSpan>800000</lifeSpan>
      <fertilityFactorGrowthRate>0.5</fertilityFactorGrowthRate>

    </plant>
  </ThingDef>





  <!--======================= Wild plants - carpets ========================-->


  <ThingDef ParentName="PlantBase">
    <defName>PlantPovertyGrass</defName>
    <label>Poverty grass</label>
    <maxHealth>85</maxHealth>
    <description>Hardy wild grass. Grows anywhere there is a little light and minimally fertile ground.</description>
    <beauty>NiceTiny</beauty>
    <textureFolderPath>Things/Plant/PovertyGrass</textureFolderPath>
    <food>
      <quality>Plant</quality>
      <nutrition>15</nutrition>
    </food>
    <plant>
      <fertilityMin>0.05</fertilityMin>
      <wildCommonality>6.9</wildCommonality>
      <wildBiomes>
        <li>XericShrubland</li>
      </wildBiomes>
      <maxMeshCount>9</maxMeshCount>
      <visualSizeRange>
        <min>0.4</min>
        <max>0.6</max>
      </visualSizeRange>
      <growthPer20kTicks>0.40</growthPer20kTicks>
      <topWindExposure>0.4</topWindExposure>
      <seedShootRadius>6</seedShootRadius>
      <lifeSpan>300000</lifeSpan>
      <fertilityFactorGrowthRate>0.90</fertilityFactorGrowthRate>
      <fertilityFactorPlantChance>0.90</fertilityFactorPlantChance>
    </plant>
  </ThingDef>

  <ThingDef ParentName="PlantBase">
    <defName>PlantDandelion</defName>
    <label>Dandelions</label>
    <maxHealth>85</maxHealth>
    <description>Common small flower. Though it is often considered a weed because of its fecundity, it is pleasant to look at</description>
    <beauty>NiceTiny</beauty>
    <textureFolderPath>Things/Plant/Dandelion</textureFolderPath>
    <food>
      <quality>Plant</quality>
      <nutrition>15</nutrition>
    </food>
    <plant>
      <sowableGround>true</sowableGround>
      <fertilityMin>0.05</fertilityMin>
      <wildCommonality>0.8</wildCommonality>
      <wildBiomes>
        <li>XericShrubland</li>
      </wildBiomes>
      <maxMeshCount>25</maxMeshCount>
      <visualSizeRange>
        <min>0.3</min>
        <max>0.4</max>
      </visualSizeRange>
      <growthPer20kTicks>0.40</growthPer20kTicks>
      <topWindExposure>0.3</topWindExposure>
      <seedShootRadius>2.5</seedShootRadius>
      <lifeSpan>240000</lifeSpan>
      <fertilityFactorGrowthRate>1</fertilityFactorGrowthRate>
      <fertilityFactorPlantChance>1.0</fertilityFactorPlantChance>
      <wildClusterSizeRange>
        <min>4</min>
        <max>14</max>
      </wildClusterSizeRange>
    </plant>
  </ThingDef>


  <!--============================ Wild - Trees ============================-->


  <ThingDef ParentName="PlantBase">
    <defName>PlantTreeOak</defName>
    <label>Oak tree</label>
    <maxHealth>300</maxHealth>
    <description>A tree.</description>
    <beauty>Neutral</beauty>
    <textureFolderPath>Things/Plant/TreeOak</textureFolderPath>
    <altitudeLayer>BuildingTall</altitudeLayer>
    <selectable>true</selectable>
    <fillPercent>0.35</fillPercent>
    <sunShadowInfo>
      <baseWidth>0.3</baseWidth>
      <baseHeight>0.3</baseHeight>
      <tallness>0.3</tallness>
    </sunShadowInfo>
    <passability>Impassable</passability>
    <plant>
      <harvestingSound>Harvest_Tree</harvestingSound>
      <harvestFinishSound>Harvest_Tree_Finish</harvestFinishSound>
      <harvestWork>1500</harvestWork>
      <harvestDestroys>true</harvestDestroys>
      <harvestedThingDef>WoodLog</harvestedThingDef>
      <harvestYieldRange>
        <min>10</min>
        <max>50</max>
      </harvestYieldRange>
      <harvestTag>Wood</harvestTag>
      <harvestMinGrowth>0.40</harvestMinGrowth>
      <sowableGround>true</sowableGround>
      <sowWork>1500</sowWork>
      <sowRequireWalkableAdjacent>true</sowRequireWalkableAdjacent>
      <visualSizeRange>
        <min>1.3</min>
        <max>2.0</max>
      </visualSizeRange>
      <wildCommonality>0.5</wildCommonality>
      <wildBiomes>
        <li>XericShrubland</li>
      </wildBiomes>
      <fertilityMin>0.3</fertilityMin>
      <growthPer20kTicks>0.04</growthPer20kTicks>
      <topWindExposure>0.25</topWindExposure>
      <seedShootRadius>15</seedShootRadius>
      <lifeSpan>3000000</lifeSpan>
      <fertilityFactorGrowthRate>0.5</fertilityFactorGrowthRate>
      <wildClusterSizeRange>
        <min>8</min>
        <max>30</max>
      </wildClusterSizeRange>
    </plant>
  </ThingDef>


  <!--============================ Wild - Cacti ============================-->


  <ThingDef ParentName="PlantBase">
    <defName>PlantSaguaroCactus</defName>
    <label>Saguaro cactus</label>
    <maxHealth>200</maxHealth>
    <description>Large cactus native to arid Earth environments.</description>
    <beauty>Neutral</beauty>
    <textureFolderPath>Things/Plant/SaguaroCactus</textureFolderPath>
    <altitudeLayer>BuildingTall</altitudeLayer>
    <selectable>true</selectable>
    <fillPercent>0.35</fillPercent>
    <sunShadowInfo>
      <baseWidth>0.3</baseWidth>
      <baseHeight>0.3</baseHeight>
      <tallness>0.3</tallness>
    </sunShadowInfo>
    <passability>Impassable</passability>
    <plant>
      <harvestingSound>Harvest_Tree</harvestingSound>
      <harvestFinishSound>Harvest_Tree_Finish</harvestFinishSound>
      <harvestWork>300</harvestWork>
      <harvestDestroys>true</harvestDestroys>
      <harvestedThingDef>WoodLog</harvestedThingDef>
      <harvestYieldRange>
        <min>1</min>
        <max>3</max>
      </harvestYieldRange>
      <harvestMinGrowth>0.2</harvestMinGrowth>
      <visualSizeRange>
        <min>1.3</min>
        <max>2.0</max>
      </visualSizeRange>
      <wildCommonality>0.3</wildCommonality>
      <wildBiomes>
        <li>XericShrubland</li>
      </wildBiomes>
      <fertilityMin>0.05</fertilityMin>
      <growthPer20kTicks>0.14</growthPer20kTicks>
      <topWindExposure>0.08</topWindExposure>
      <seedShootRadius>9</seedShootRadius>
      <lifeSpan>800000</lifeSpan>
      <fertilityFactorGrowthRate>0</fertilityFactorGrowthRate>
    </plant>
  </ThingDef>


  <ThingDef ParentName="PlantBase">
    <defName>PlantPincushionCactus</defName>
    <label>Pincushion cactus</label>
    <maxHealth>150</maxHealth>
    <description>Short cactus, so named because it resembles a pincushion.</description>
    <beauty>Neutral</beauty>
    <textureFolderPath>Things/Plant/PincushionCactus</textureFolderPath>
    <selectable>true</selectable>
    <pathCost>30</pathCost>
    <plant>
      <fertilityMin>0.05</fertilityMin>
      <wildCommonality>0.6</wildCommonality>
      <wildCommonalityMaxFraction>3.0</wildCommonalityMaxFraction>
      <wildBiomes>
        <li>XericShrubland</li>
      </wildBiomes>
      <visualSizeRange>
        <min>0.40</min>
        <max>0.65</max>
      </visualSizeRange>
      <growthPer20kTicks>0.30</growthPer20kTicks>
      <topWindExposure>0.0</topWindExposure>
      <seedShootRadius>4</seedShootRadius>
      <lifeSpan>1000000</lifeSpan>
      <fertilityFactorGrowthRate>0</fertilityFactorGrowthRate>
      <wildClusterSizeRange>
        <min>3</min>
        <max>5</max>
      </wildClusterSizeRange>
      <maxMeshCount>4</maxMeshCount>
    </plant>
  </ThingDef>




</ThingDefs>