From f6734da4e55bdb20e730a4d9b9b9ced0ac232dbe Mon Sep 17 00:00:00 2001 From: PumpkinPriest <104536541+PumpkinPriest@users.noreply.github.com> Date: Sun, 21 May 2023 15:45:55 -0400 Subject: [PATCH 1/7] random_things.js Banana --- mods/random_things.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/random_things.js b/mods/random_things.js index d1ed8e04..4b51d9a6 100644 --- a/mods/random_things.js +++ b/mods/random_things.js @@ -36,7 +36,7 @@ runAfterLoad(function() { reactions" { "magma": { "elem1": "armageddon", "elem2": null }, "void": { "elem1": "light", "elm2": null } - } + }, elements.banana_juice = { name: "banana juice", color: "#e0f542", From 5be471c3ce0635f64f5ee0beb014ebf2d1bca9e3 Mon Sep 17 00:00:00 2001 From: PumpkinPriest <104536541+PumpkinPriest@users.noreply.github.com> Date: Sun, 21 May 2023 15:53:34 -0400 Subject: [PATCH 2/7] random_things.js but banana juice Banana --- mods/random_things.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mods/random_things.js b/mods/random_things.js index 4b51d9a6..3c56734f 100644 --- a/mods/random_things.js +++ b/mods/random_things.js @@ -16,6 +16,7 @@ elements.legendary_energy = { reactions: { "magma": { "elem1": "armageddon", "elem2": null }, "void": { "elem1": "light", "elm2": null }, + }, } runAfterLoad(function() { @@ -33,10 +34,11 @@ runAfterLoad(function() { state: "liquid", density: 2000, excludeRandom: true, - reactions" { + reactions { "magma": { "elem1": "armageddon", "elem2": null }, - "void": { "elem1": "light", "elm2": null } - }, + "void": { "elem1": "light", "elm2": null }, + }, + }, elements.banana_juice = { name: "banana juice", color: "#e0f542", From 4ff80d3ddf60dca1cadcbb42b1053bf79da5699c Mon Sep 17 00:00:00 2001 From: Melecie <97272289+Melecie@users.noreply.github.com> Date: Sat, 27 May 2023 11:03:31 +0800 Subject: [PATCH 3/7] Hidden Ground - hides stuff in The Ground --- mods/hidden_ground.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 mods/hidden_ground.js diff --git a/mods/hidden_ground.js b/mods/hidden_ground.js new file mode 100644 index 00000000..94b8534e --- /dev/null +++ b/mods/hidden_ground.js @@ -0,0 +1,40 @@ +// Hidden Ground v1.0 +// Author: Melecie + +runAfterLoad(function() { + if (enabledMods.includes("mods/the_ground.js")) { + let regexRocks = /(granite)|(rhyolite)|(pumice)|(obsidian)|(dacite)|(dacidian)|(andesite)|(diorite)|(scoria)|(andesidian)|(gabbro)|(basalt)|(basalidian)|(peridotite)|(komatiite)|(komatidian)/ + let regexType = /(_gravel)|(_sand)|(_dust)|(_shard)|(hot_)/ + let toHide = ["dry_permafrost", "hot_sand", "hot_dirt", "hot_rock", "hot_rock_wall", "hot_gravel", "hot_limestone", "hot_calcium_carbonate_dust", "sandy_water", "clay_water", "dry_clay_loam"] + + // hides all elements part of both rocks and type + // false positives *can* be hit because this doesn't check if it comes from The Ground (it can't), but ideally none given how specific it is + for (elem in elements) { + if (regexRocks.test(elem)) { + // move wall to solids to not make land too big + if (/_wall/.test(elem)) { + elements[elem].category = "solids" + } + // hide the rest + if (regexType.test(elem)) { + elements[elem].hidden = true; + } + } + } + + // manual hiding + for (elem in toHide) { + elements[toHide[elem]].hidden = true; + } + + // while i'm here, might as well fix Sandstone's color + elements.sandstone.color = "#dbbe80"; + } + + else { + enabledMods.splice(enabledMods.indexOf("mods/hidden_ground.js"), 1); + localStorage.setItem("enabledMods", JSON.stringify(enabledMods)); + alert("Hidden Ground: This mod requires The Ground mod. Removing mod and reloading."); + window.location.reload(); + } +}) \ No newline at end of file From 1c540cc36172268aaa4678ea9ad0f07798aed74a Mon Sep 17 00:00:00 2001 From: Melecie <97272289+Melecie@users.noreply.github.com> Date: Mon, 29 May 2023 08:06:13 +0800 Subject: [PATCH 4/7] Move to mods --- yumcherries.js => mods/yumcherries.js. | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename yumcherries.js => mods/yumcherries.js. (97%) diff --git a/yumcherries.js b/mods/yumcherries.js. similarity index 97% rename from yumcherries.js rename to mods/yumcherries.js. index 90b335ae..1d4b786d 100644 --- a/yumcherries.js +++ b/mods/yumcherries.js. @@ -540,4 +540,4 @@ if(enabledMods.includes(onTryMoveIntoMod) && enabledMods.includes(libraryMod)) { enabledMods.splice(enabledMods.indexOf(modName),0,libraryMod); localStorage.setItem("enabledMods", JSON.stringify(enabledMods)); alert(`The ${onTryMoveIntoMod} mod and ${libraryMod} mods are required and have been automatically inserted (reload for this to take effect).`); -}; \ No newline at end of file +}; From bbab26e6a4870ddfdacca1ab014b34c63f508bb1 Mon Sep 17 00:00:00 2001 From: Zippyous213 <135406936+Zippyous213@users.noreply.github.com> Date: Fri, 2 Jun 2023 23:50:48 -0500 Subject: [PATCH 5/7] Add files via upload --- vibranium.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vibranium.js diff --git a/vibranium.js b/vibranium.js new file mode 100644 index 00000000..e29faf4d --- /dev/null +++ b/vibranium.js @@ -0,0 +1,19 @@ +}; +elements.vibranium + color:"#455357", + behavior: behaviors.WALL, + category: "solids", + state: "solid", + tempHigh: 1000000000, + conduct: Infinity, + hardness: 1, +}; +elements.uru + color: "#719aa6", + behavior: behaviors.WALL, + catagory: "solids", + state: "solid", + tempHigh: 1000000000, + conduct: 0, + Hardness: 1, +}; From 6c273ba8ba1653654c49fcee77ea34ee708a1963 Mon Sep 17 00:00:00 2001 From: Zippyous213 <135406936+Zippyous213@users.noreply.github.com> Date: Fri, 2 Jun 2023 23:58:32 -0500 Subject: [PATCH 6/7] Rename vibranium.js to mods/vibranium.js --- vibranium.js => mods/vibranium.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename vibranium.js => mods/vibranium.js (100%) diff --git a/vibranium.js b/mods/vibranium.js similarity index 100% rename from vibranium.js rename to mods/vibranium.js From 8d9d075693e6317f61a3fe307a19c9145ccc5e5a Mon Sep 17 00:00:00 2001 From: PumpkinPriest <104536541+PumpkinPriest@users.noreply.github.com> Date: Sat, 3 Jun 2023 21:53:29 -0400 Subject: [PATCH 7/7] random_things.js fixed reaction error (probably) --- mods/random_things.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/random_things.js b/mods/random_things.js index 3c56734f..6c7755ee 100644 --- a/mods/random_things.js +++ b/mods/random_things.js @@ -34,7 +34,7 @@ runAfterLoad(function() { state: "liquid", density: 2000, excludeRandom: true, - reactions { + reactions: { "magma": { "elem1": "armageddon", "elem2": null }, "void": { "elem1": "light", "elm2": null }, },