tweak idk

This commit is contained in:
O-01-67 2022-09-12 12:56:07 -04:00 committed by GitHub
parent e658ac0c73
commit f11a06cc30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 9 deletions

View File

@ -137,19 +137,23 @@ elements.nitrogen_ice.breakInto = "nitrogen_snow"
runAfterLoad(function() { runAfterLoad(function() {
for(i = 0; i < regularShinyThingArray.length; i++) { for(i = 0; i < regularShinyThingArray.length; i++) {
if(elements[regularShinyThingArray[i]]) { var thing = regularShinyThingArray[i];
elements[`${regularShinyThingArray[i]}_scrap`] = { if(elements[thing]) {
color: elements[regularShinyThingArray[i]].color, elements[`${thing}_scrap`] = {
color: elements[thing].color,
behavior: behaviors.POWDER, behavior: behaviors.POWDER,
tempHigh: elements[regularShinyThingArray[i]].tempHigh, tempHigh: elements[thing].tempHigh,
stateHigh: regularShinyThingArray[i], stateHigh: thing,
reactions: elements[regularShinyThingArray[i]].reactions,
category: "powders", category: "powders",
hidden: true, hidden: true,
density: elements[regularShinyThingArray[i]].density * 0.09, density: elements[thing].density * 0.09,
conduct: elements[regularShinyThingArray[i]].conduct * 0.4, 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")) { if(enabledMods.includes("mods/randomness.js")) {