Enhance autosave timer refresh #375

This commit is contained in:
Chorizorro
2020-12-05 16:01:46 +01:00
parent d0ad7c418d
commit 7cd62e1735
3 changed files with 62 additions and 6 deletions

View File

@@ -250,9 +250,18 @@ CM.DelayInit = function() {
l("upgrades").style.display = "flex";
l("upgrades").style["flex-wrap"] = "wrap";
CM.Main.RegisterHooks();
Game.Win('Third-party');
}
/**
* Hook custom methods into the game
*/
CM.Main.RegisterHooks = function() {
Game.registerHook('draw', CM.Disp.Draw);
}
/********
* Section: Functions related to checking for changes in Minigames/GC's/Ticker
* TODO: Possibly move this section */