Skip to content

PlantExtension #9

@Uewdong

Description

@Uewdong

I understand PlantExtension may not be used currently. Since I saw this piece of codes are similar to another mod named Expandable Plants, I am considering switch to use ReGrowth:Core for my own mod.

Firstly, diesFromHeatTemperature does not function in ReGrowth:Core since there is no way for me to set the max tolerance temperature for the plant in the modExtension. Looking at the code:

https://github.com/Helixien/ReGrowth-Core/blame/d669b01f0afeeffcd1fb048879fc298e24ae0451/1.5/Source/ReGrowthCore/ModExtensions/PlantExtension.cs#L80-L80C40

LeaflessTemperatureThresh is defined by using minLeaflessTemperature and maxLeaflessTemperature which are known to be the min tolerance temperature for the plant. We need two similar fields to define the socalled max tolerance temperature.

Secondly, changing the growth temperature in xml does not reflect the information in plant tab. In the plant tab the lowest growth temp is always 0 even one changes the lowest growth to 10 or something else. Looking at the code in Expandable Plants I found that ones to patch the display stats in the plant tab for displaying correct information.

https://github.com/emipa606/ExpandablePlants/blob/3f5328d003fbfe7b32312c85fc996b19b1e85f4a/Source/ExpandablePlants/PlantProperties_SpecialDisplayStats.cs#L10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions