Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Surface time "days since landing" inaccurate when day length modded #85

Open
FuryoftheStars opened this issue Nov 13, 2021 · 0 comments

Comments

@FuryoftheStars
Copy link

Pretty much, when you use a mod like Clockwork that can modify the length of a game day, the days since landing option of the time sensor is inaccurate. Would be good to use surface.ticks_per_day vs a hard coded constant.

What might be even better, is to store surface.daytime to a global var, then each time you update the time, use this to check to see if the current surface.daytime has rolled over (updating the global var with the new time after) and increment another counter that you keep in global if it has.

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

No branches or pull requests

1 participant