From eae82f4bf60b1c0e5dfcf5549ae9321ba526d7c2 Mon Sep 17 00:00:00 2001 From: Alexthetransfem <124483815+theenchantedsword@users.noreply.github.com> Date: Mon, 15 Sep 2025 21:24:00 -0500 Subject: [PATCH 1/4] Update orchidslibrary.js --- mods/orchidslibrary.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/orchidslibrary.js b/mods/orchidslibrary.js index 678803ed..bf4e768d 100644 --- a/mods/orchidslibrary.js +++ b/mods/orchidslibrary.js @@ -1,5 +1,5 @@ /* -Version 1.0.0 +*Version 1.0.0 */ function noiseify(color, range){ if(color.startsWith("#")){ @@ -14,7 +14,7 @@ function noiseify(color, range){ return `rgb(${color.r},${color.g},${color.b})`; } -let is2d = (arr)=>{ +function is2d(arr){ return arr.some(item => Array.isArray(item)); } From b773d8f064c9b87bf4b9e860cb7213345cf3299f Mon Sep 17 00:00:00 2001 From: Alexthetransfem <124483815+theenchantedsword@users.noreply.github.com> Date: Mon, 15 Sep 2025 21:24:46 -0500 Subject: [PATCH 2/4] Update morechemistry.js --- mods/morechemistry.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/mods/morechemistry.js b/mods/morechemistry.js index 247806d1..eb628940 100644 --- a/mods/morechemistry.js +++ b/mods/morechemistry.js @@ -1,14 +1,8 @@ /* -Version 2.2.0 +*Version 2.2.0 */ -if(!enabledMods.includes("/mods/orchidslibrary.js")){ - let continueWithout = confirm("Missing dependency for morechemistry.js: \"orchidslibrary.js\". Continue without? (cancel will add mod and refresh the page)"); - if(!continueWithout){ - addMod("/mods/orchidslibrary.js", true); - window.location.reload(); - } -} else { +dependOn("orchidslibrary.js", ()=>{ elements.cloner.keyInput = "str:clone", elements.ecloner.keyInput = "str:clone", elements.slow_cloner.keyInput = "str:clone", elements.floating_cloner.keyInput = "str:clone"; let xDown = false; elements.copper_sulfate = { @@ -1568,4 +1562,4 @@ if(!enabledMods.includes("/mods/orchidslibrary.js")){ stateLow: "bismuth", temp: 270, }; -}; +}, true); From eb1d649246b9173fa9fea872a0d2e7ebf13cb382 Mon Sep 17 00:00:00 2001 From: Alexthetransfem <124483815+theenchantedsword@users.noreply.github.com> Date: Mon, 15 Sep 2025 21:26:03 -0500 Subject: [PATCH 3/4] Update plants.js --- mods/plants.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/mods/plants.js b/mods/plants.js index aca2cb25..ca38e2a5 100644 --- a/mods/plants.js +++ b/mods/plants.js @@ -1,17 +1,8 @@ /* -Version 2.2.1 +*Version 2.2.1 */ let plants; -if(!enabledMods.includes("/mods/orchidslibrary.js")){ - let continueWithout = confirm("Missing dependency for plants.js: \"orchidslibrary.js\". Continue without? (cancel will add mod and refresh the page)"); - if(!continueWithout){ - addMod("/mods/orchidslibrary.js", true); - window.location.reload(); - } -} else { - let is2d = (arr)=>{ - return arr.some(item => Array.isArray(item)); - } +dependOn("orchidslibrary.js", ()=>{ class growInterval { constructor(seedPixel, pattern, basePos, c = 0.025, dieAfter = undefined, fruit = undefined, elems = undefined){ let currentLength = 0; @@ -1622,4 +1613,4 @@ if(!enabledMods.includes("/mods/orchidslibrary.js")){ }; -} +}, true); From 8d10ae9bb838e46c82c96a244b369f11b495205f Mon Sep 17 00:00:00 2001 From: Alexthetransfem <124483815+theenchantedsword@users.noreply.github.com> Date: Mon, 15 Sep 2025 21:27:14 -0500 Subject: [PATCH 4/4] Update datawire.js --- mods/datawire.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/mods/datawire.js b/mods/datawire.js index 73fedd9e..dcf88613 100644 --- a/mods/datawire.js +++ b/mods/datawire.js @@ -1,13 +1,7 @@ /* -Version 1.0.0 +*Version 1.0.0 */ -if(!enabledMods.includes("/mods/orchidslibrary.js")){ - let continueWithout = confirm("Missing dependency for datawire.js: \"orchidslibrary.js\". Continue without? (cancel will add mod and refresh the page)"); - if(!continueWithout){ - addMod("/mods/orchidslibrary.js", true); - window.location.reload(); - } -} else { +dependOn("orchidslibrary.js", ()=>{ elements.data_wire = { desc: "Transfers data.", color: ["#6b1502", "#631402", "#6e1400", "#631200"], @@ -241,4 +235,4 @@ if(!enabledMods.includes("/mods/orchidslibrary.js")){ } }; -} +}, true);