how to change the plant damage value in powerless hydroponic?

Started by dsadsa87, June 24, 2015, 03:12:31 PM

Previous topic - Next topic

dsadsa87

Solar flares turn off my hydroponic and kill my plants too fast. I don't like that.
What i must to do for changing the plant damage value in powerless hydroponic?
my english not as well as i want

Illusion Distort

Under you will find a plantDef, if you change Line 6: <MaxHitPoints>150</MaxHitPoints> you will increase the plants "survivability" against power-cuts. This can be done with all of the plantdefs. They are located in the Plant_X files in: RimWorld834Win\Mods\Core\Defs\ThingDefs

<ThingDef ParentName="PlantBase">
    <defName>PlantCorn</defName>
    <label>corn plant</label>
    <description>A large grain plant which produces ears of delicious yellow seeds. Takes a relatively long time to grow, but yields lots of food, takes a long time to spoil, and can be happily eaten raw. Needs fertile soil to grow well.</description>
    <statBases>
      <MaxHitPoints>150</MaxHitPoints>
      <Beauty>1</Beauty>
    </statBases>
    <graphicData>
      <texPath>Things/Plant/CornPlant</texPath>
      <graphicClass>Graphic_Random</graphicClass>
    </graphicData>
    <selectable>true</selectable>
    <pathCost>12</pathCost>
    <ingestible>
      <preferability>Plant</preferability>
      <nutrition>0.80</nutrition>
    </ingestible>
    <plant>
      <dieIfLeafless>true</dieIfLeafless>
      <shootsSeeds>false</shootsSeeds>
      <harvestTag>Standard</harvestTag>
      <harvestedThingDef>RawCorn</harvestedThingDef>
      <harvestDestroys>true</harvestDestroys>
      <harvestYieldRange>
        <min>8</min>
        <max>18</max>
      </harvestYieldRange>
      <sowTags>
        <li>Ground</li>
      </sowTags>
      <topWindExposure>0.35</topWindExposure>
      <growDays>10.52</growDays>
      <fertilityFactorGrowthRate>1.0</fertilityFactorGrowthRate>
      <visualSizeRange>
        <min>0.3</min>
        <max>1.4</max>
      </visualSizeRange>
    </plant>
  </ThingDef>


Unclear? Feedback is apriciated.

dsadsa87

Quote from: Illusion Distort on June 24, 2015, 03:51:25 PM
  Feedback is apriciated.

increase plants HP value is not exactly what i want, because it will effects on freezing resist, fire resist and else. I don't want to change that.
I can compensate increased HP value by increasing Flammability, but where i can change freezing resistance?

I need to change real value of  damage by power cut (and freezing. it would be useful too). Is this possible?
my english not as well as i want

Illusion Distort

#3
Yes, though it would need a lot more work, giving the plant more hp will make it survive longer during power-cuts and cold. You can make the plant have "resistance" against frostbite, though i fail to see how that would help, it might, depending on whether or not the plant takes damage from frostbite.

Ps: I tested, plants have different properties, but i wanted to post the entire thing. Ill look deeper into it later.