From d3236256fafdaabb91c64eca7e91607a38c95683 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Thu, 20 Jan 2022 15:02:20 -0500 Subject: [PATCH] 1.0.1 mod compatibility --- changelog.txt | 4 ++++ index.html | 12 +++++++++++- mods/example_mod.js | 6 ++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index fcca55ee..2802f969 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,10 @@ + Explosives Update + Machines Update +[Version 1.0.1] + ~ Slowed down Udder + + Technical: runAfterLoad() function, pass a function to run after all mods load. See example_mod.js + [Version 1.0 - Full Steam Ahead!] + Radiation + Uranium diff --git a/index.html b/index.html index ba6233ad..70b02ddf 100644 --- a/index.html +++ b/index.html @@ -339,6 +339,11 @@ console.log(e); } } + runAfterLoadList = []; + // runAfterLoad() takes a function and adds it to the runAfterLoadList. + function runAfterLoad(func) { + runAfterLoadList.push(func); + }