From f11a06cc3035aca907dd554357bf63d82a10c97a Mon Sep 17 00:00:00 2001 From: O-01-67 <68935009+O-01-67@users.noreply.github.com> Date: Mon, 12 Sep 2022 12:56:07 -0400 Subject: [PATCH] tweak idk --- mods/more_breaking.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/mods/more_breaking.js b/mods/more_breaking.js index ef722857..0a431c7f 100644 --- a/mods/more_breaking.js +++ b/mods/more_breaking.js @@ -137,19 +137,23 @@ elements.nitrogen_ice.breakInto = "nitrogen_snow" runAfterLoad(function() { for(i = 0; i < regularShinyThingArray.length; i++) { - if(elements[regularShinyThingArray[i]]) { - elements[`${regularShinyThingArray[i]}_scrap`] = { - color: elements[regularShinyThingArray[i]].color, + var thing = regularShinyThingArray[i]; + if(elements[thing]) { + elements[`${thing}_scrap`] = { + color: elements[thing].color, behavior: behaviors.POWDER, - tempHigh: elements[regularShinyThingArray[i]].tempHigh, - stateHigh: regularShinyThingArray[i], - reactions: elements[regularShinyThingArray[i]].reactions, + tempHigh: elements[thing].tempHigh, + stateHigh: thing, category: "powders", hidden: true, - density: elements[regularShinyThingArray[i]].density * 0.09, - conduct: elements[regularShinyThingArray[i]].conduct * 0.4, + density: elements[thing].density * 0.09, + conduct: elements[thing].conduct * 0.4, + movable: true, }; - elements[regularShinyThingArray[i]].breakInto = `${regularShinyThingArray[i]}_scrap` + if(elements[thing].reactions) { + elements[`${thing}_scrap`].reactions = elements[thing].reactions; + }; + elements[thing].breakInto = `${thing}_scrap`; }; }; if(enabledMods.includes("mods/randomness.js")) {