Plant Classes - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

The Plants module of Vanilla Expanded Framework adds a few plant classes that will modify quite a lot how a plant behaves

  • Plant_AffectedByFog: plant will grow 30% faster in maps when the weather contains the word "fog"
  • Plant_AffectedBySnow: plant will grow 50% faster in maps when the weather has a SnowRate higher than 0
  • Plant_ChecksSea: plant will check a radius of 6 tiles around it and detect number of sea tiles. Growth will be 1f + (0.01f * numberOfSea), capped at 30% increase.
  • Plant_FasterInTropics: plant will grow 30% faster in the tropics
  • Plant_NeedsOutside: plant will grow normally if outside AND roofed (defined as "in the shade")
  • Plant_NoWaterNearby: plant will only grow at normal speed if there is no water in a 10 tile radius. Otherwise it will receive a -70% penalty
  • Plant_PrefersRocky: plant will only grow at normal speed in rocky terrain. In other terrains with higher fertility it will grow at -40% speed.
  • Plant_PrefersRockyAndNoFrost: plant will only grow at normal speed in rocky terrain. In other terrains with higher fertility it will grow at -40% speed. It will also receive penalties under 20ºC, till 10ºC
  • Plant_Resistant: plant will regenerate damage
  • Plant_WaterNearby: plant will only grow at normal speed if there is water in a 6 tile radius. Otherwise it will receive a -25% penalty

How do I use this code?

Plant classes need to go on the <thingClass> tag of the plant's ThingDef

<thingClass>VEF.Plants.Plant_PrefersRocky</thingClass>
⚠️ **GitHub.com Fallback** ⚠️