Arrowgene.DragonsDogmaOnline icon indicating copy to clipboard operation
Arrowgene.DragonsDogmaOnline copied to clipboard

Revival timer resets across channels due to storing time in memory

Open kaebiene opened this issue 5 months ago • 0 comments

Describe the bug The revival timer code in #497 is based on a 24hr timer written when channels were not implemented. As the last revival time is stored in memory, rather than the DB, it is possible to switch channels in order to refresh your revivals.

To Reproduce Steps to reproduce the behavior:

  1. Expend the revival charges
  2. Refill at Ophelia
  3. Switch channel
  4. Expend revival charges
  5. Refill at Ophelia, despite having done so already within 24hrs

Expected behavior Players should have their last revival time stored within the DB - allowing their timer to be tracked cross-channel and prevent extra revives.

Additional context User reports: https://discord.com/channels/1106677075668123791/1109057435169214525/1280631050673979512 https://discord.com/channels/1106677075668123791/1109057435169214525/1280635950334218281 image image

kaebiene avatar Sep 03 '24 21:09 kaebiene