This is the edited & updated lua file for those who are having color switch(pandemic 30%) issue.
Simply replace your affdots.lua with this editted version.
It's best viewed in bar format, where lines cutoff markers are most accurate as the color switch coding is not 100% accurate(off by a small marginal second) due to the restricted single integer.
Example, agony at 24seconds, refresh at 7.2seconds, line cutoff shows(7.2s) but color swtich only switches at 7s(whole interger restriction). Already tried my best but to no avail.
As for tidyplates intergration, everything is working perfectly
For destro, take green fire away and color switch should be working as intended.