Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate the Initial Delay of Replenishment Early #11

Open
jpwilliams opened this issue May 31, 2012 · 0 comments
Open

Calculate the Initial Delay of Replenishment Early #11

jpwilliams opened this issue May 31, 2012 · 0 comments
Assignees
Milestone

Comments

@jpwilliams
Copy link
Member

Instead of having sums once the server starts, save the value as the initial delay rather than the harder-to-understand timer value.

For example, if an item replenishes every 24,000 ticks and the task has run for 18,000 ticks, instead of

apple:
  replenishtimer: 18000

We could have

apple:
  nextReplenishIn: 6000

Much easier to understand and should make code a lot cleaner as well.

@ghost ghost assigned jpwilliams May 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant