pokerogue
pokerogue copied to clipboard
adds daily run to offline mode
Fixed fetchDailyRunSeed() to reject properly, had unhandled errors. Made a function to handle daily generation inside initDailyRun() and added a isLocal check to run based on that: online -> generate based on seed from fetchDailyRunSeed() offline -> generated based on a simple base64 string date
I can confirm offline works as expected, cannot verify online although it looks fine to me heh
Daily runs on offline mode bypass the once per day reward. This is a change in balance between online and offline.
Daily runs on offline mode bypass the once per day reward. This is a change in balance between online and offline.
That's true, I was thinking about how easily moddable everything is and forgot about the normal players who want/need the same experience. I'll try to make an offline check for that using local storage as the rest of the offline info