Jump to content

Recommended Posts

Posted (edited)

Hello, I am trying to create a simple mod that would allow me to change the temperature in which auroras can be seen. From what I've gathered Auroras are temperature dependent, not lattitude, but I have not been able to find the file which contains this data. Any help would be appreciated.

Game version is 1.21.6

Edited by Sir_Real
Added game version
Posted (edited)

`AuroraRenderer` seems to contain the logic for the temperature condition:
https://github.com/anegostudios/vsessentialsmod/blob/51253adb3f200c46fe59993c7ada2e9e7f32c0ed/Systems/Weather/AuroraRenderer.cs#L77

The formula is a bit tricky, but the `tempfac` reaches its max (1.0) at -20C and reaches its min (0.0) at -5C
Also note that this is not the current temperature: it's annual average (a.k.a "base" temperature,) since the mode argument to `ClimateAt` is `EnumGetClimateMode.WorldGenValues`

To change the condition, you'll need to Harmony-patch the method because no parameters of the condition are exposed via external files such as json.
 

Edited by Spoonail
  • Like 1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.