2006-Scape/2006Scape

Shops restock first item instantly after purchasing

halogod35 opened this issue · 1 comments

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?