mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
[GH-ISSUE #595] Shops restock first item instantly after purchasing #935
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?