Jump to content

How to get the value of _moisturefloor from components\weather?

Recommended Posts

I need to know the _moistureceil and _moisturefloor values for my mod to calculate how much moisture is needed to currently start rain, but I can't figure out how to access the latter normally. The _moistureceil is very easy to get from TheWorld.state.moistureceil, but the other is missing in components\worldstate for some reason. I was able to use the upvalue hacker to get _moisturefloor through the GetDebugString() of the weather components, but I feel like there has to be a better way.

Link to comment
Share on other sites

14 hours ago, penguin0616 said:

As far as I'm aware, that's a nope. Last time I tried to get the moisture floor, I had to take the same approach as you. 

I was feeling bad for taking such a roundabout approach, but that's reassuring. Thank you for the help!

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...