Jump to content

Detecting DST vs. DS


Recommended Posts

Greetings,

 

I'm attempting to minimize the amount of script changes needed to port a mod.  What's the most reliable way to test whether the current environment is Don't Starve versus Don't Starve Together?

 

Thanks!

Link to comment
Share on other sites

function IsDST_1()	return GLOBAL.DST_CHARACTERLIST and true or falseendfunction IsDST_2()	return GLOBAL.TheNet and true or falseend
:razz:

and what if they add that to DS, for whatever reason?^^

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...