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
Originally created by @halogod35 on GitHub (Feb 6, 2023).
Original GitHub issue: https://github.com/2006-Scape/2006Scape/issues/595
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
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?
<!-- gh-comment-id:1419293092 -->
@advnau commented on GitHub (Feb 6, 2023):
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?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @halogod35 on GitHub (Feb 6, 2023).
Original GitHub issue: https://github.com/2006-Scape/2006Scape/issues/595
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
@advnau commented on GitHub (Feb 6, 2023):
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?