Sir_Real Posted February 6 Report Posted February 6 (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 February 6 by Sir_Real Added game version
Spoonail Posted February 8 Report Posted February 8 (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 February 8 by Spoonail 1
Recommended Posts