Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix eternal season affect on weather #54100

Merged

Conversation

jbytheway
Copy link
Contributor

@jbytheway jbytheway commented Jan 6, 2022

Summary

Bugfixes "Make eternal season option affect weather and water temperature"

Purpose of change

Fixes #26756.

Also fixes a similar bug related to seasonal water temperature.

Describe the solution

Use the same trick as I previously used for the sunlight angle in eternal season mode where it just repeats the same weather from the first game day. A twist here is that we still use the true timestamp for the simplex noise parameter, because otherwise the weather would be exactly the same from day to day.

Describe alternatives you've considered

Could take it more literally and match the start season rather than the start day, allowing for some additional variation. But it's not clear to me how to achieve that.

Testing

I added a new unit test to check this case.

Additional context

@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Jan 6, 2022
@Maleclypse Maleclypse added <Bugfix> This is a fix for a bug (or closes open issue) Mechanics: Weather Rain, snow, portal storms and non-temperature environment labels Jan 6, 2022
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Jan 6, 2022
Fixes CleverRaven#26756.

Use the same trick as I previously used for the sunlight angle in
eternal season mode where it just repeats the same weather from the
first game day.  A twist here is that we still use the true timestamp
for the simplex noise parameter, because otherwise the weather would be
exactly the same from day to day.
@jbytheway jbytheway force-pushed the eternal_season_temperatures branch from aca0944 to c532028 Compare January 7, 2022 13:43
@kevingranade kevingranade merged commit d7f4a3e into CleverRaven:master Jan 7, 2022
@MoogieOuttaMyDepth
Copy link

If you have a Ko-Fi or Paypal I'd like to toss a couple bucks your way. Been waiting a long time for this bugfix and I'm eternally grateful, pun very much intended. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) json-styled JSON lint passed, label assigned by github actions Mechanics: Weather Rain, snow, portal storms and non-temperature environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Eternal season still has changing seasons
4 participants