Dragon quest does not advance if tabs are switched
If you leave the Dragon to go to another tab, and then you go back to the MAP tab, you're stuck in place.
The reason is that the Dragon doesn't use the 10/second quest ticker, but instead makes its own interval timer to update. It is not clear why it's done this way, but the ticker is removed when the Dragon screen becomes inactive, and then it's not replaced when the screen becomes active again.
https://github.com/candybox2/candybox2.github.io/blob/d7dcea3d579d078cb4fd3b6d03cd7a31841ef23d/code/main/Dragon.ts#L37 https://github.com/candybox2/candybox2.github.io/blob/d7dcea3d579d078cb4fd3b6d03cd7a31841ef23d/code/main/Dragon.ts#L49-L52
Should this be fixed? The other quest that uses that technique, and which also breaks, is the Tower's initial animation, but leaving the Tower lets you skip that animation anyway. I believe speedruns are not hindered by the current behavior. Tool-assisted speedruns will be, though, since in a TAS, it's possible to reach the Dragon while still needing to plant lollipops every second.
Hi, I'm maintainer of this project on Github, but not developer, If you consider this as bug, and if you can fix that PRs are kindly welcome :-)
Thank you!