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

Shops restock first item instantly after purchasing #595

Open
halogod35 opened this issue Feb 6, 2023 · 1 comment
Open

Shops restock first item instantly after purchasing #595

halogod35 opened this issue Feb 6, 2023 · 1 comment

Comments

@halogod35
Copy link
Contributor

Buying an item from a fully stocked item and after the restocking timer is up, the item you buy is instantly restocked.

Intended behavior: if the shop's item is maxed out, and you purchase an item, it should start the timer after that purchase

@MatthewBishop
Copy link
Contributor

This issue with shop refreshing being instant is that in the code the stock updates on a time from last update/shop change, so with the initial purchase, the time is greater than that amount so it restocks the first instantly.

If I recall in RS it works by all shops updating on the same timer, can someone confirm that this is how the system works so we can fix the current system?

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

No branches or pull requests

2 participants