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

Moisture Evaporations #8

Closed
DanS-User opened this issue Apr 13, 2021 · 4 comments
Closed

Moisture Evaporations #8

DanS-User opened this issue Apr 13, 2021 · 4 comments

Comments

@DanS-User
Copy link

Hi, in mods/nodes_nature/moisture_spread.lua
at line 48
the game is deleting the node instead of changing
it from wet to dry.
I noticed tiles in my garden are disappearing

@jeremyshannon
Copy link
Owner

Was it tilled soil? Tilled soil can erode if there's a water node nearby or it's exposed on the sides. This could probably be indicated better to players, but I haven't decided how to go about that.

@DanS-User
Copy link
Author

Yes, it was tilled soil and those tiles that were gone had an exposed side and a young plant on them. Thank you for letting me know what was the cause.
Just to put it to definite rest, what "line 48" in moisture_spread.lua does?
Thank you :)

@jeremyshannon
Copy link
Owner

It handles evaporation of water nodes. You can see that it's tied directly to the "Water Evaporate" abm directly below it, which is run on group:water.
climate.can_evaporate checks that the water has an air tile above it, and it's not currently raining. If those are true, then the water has a chance to evaporate depending on temperature.
Wet soil is handled down below, in moisture_spread starting on line 213.

@DanS-User
Copy link
Author

Thank you very much, it makes sense now.
Have a great day :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants