Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.
This repository was 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

Description

@FuryoftheStars

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions