Jump to content

How to make temperature higher in cave during summer ?


Recommended Posts

Hi,

I would like to make temperature higher in cave during summer. Enough so you need to refresh yourself one way or another, but if possible without withering plants.

Ideally, i would like :

- something that couldn't happen the first year (so you can prepare, and use caves as a nice way to escape summer the first year)

- something that will only happen, let's say, one year in two

Thanks for any clues or answer you could give !

Link to comment
Share on other sites

So far as I have seen,

For cave temperature, it is the temperature of master world times TUNING.CAVES_TEMP_MULT which is 0.6 by default

This is done in prefabs/cave_network, you can replace the function or simply modify TUNING.CAVES_TEMP_MULT

 

For periodicity, you can calculate year with cycles, springlength+summerlength+autumnlength+winterlength, they can be found in worldstate

 

For plants withering, you can play with Witherable:Start() function in components/witherable, 

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
 Share

×
  • Create New...