From 72de80b294d5529ccb95b3a997c4e5ed852d96f3 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Wed, 19 Jun 2024 20:55:15 -0400 Subject: [PATCH 1/2] yeag --- mods/nousersthings.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/nousersthings.js b/mods/nousersthings.js index effaff28..6383b12f 100644 --- a/mods/nousersthings.js +++ b/mods/nousersthings.js @@ -1661,6 +1661,7 @@ elements.molten_plutonium = { category: "states", state: "liquid", tempLow: 620, + hidden: true, stateLow: "plutonium", tick: function(pixel){ if(Math.random() < 0.0007){ @@ -1865,6 +1866,7 @@ function HSVtoRGB(h, s, v) { elements.molten_bismuth = { color: ["#ee8d63", "#ef7e5e", "#f06e5c", "#f05c5c"], behavior: behaviors.MOLTEN, + hidden: true, category: "states", state: "liquid", temp: 280, From 50cac331c6e734a906898c3f6ce6d2055a761008 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:38:01 -0400 Subject: [PATCH 2/2] galvanized steel --- mods/nousersthings.js | 48 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/mods/nousersthings.js b/mods/nousersthings.js index 6383b12f..2a1670af 100644 --- a/mods/nousersthings.js +++ b/mods/nousersthings.js @@ -1487,6 +1487,7 @@ elements.heat_test = { } }, }, +/* elements.soup = { color: "#3d2812", behavior: behaviors.LIQUID, @@ -1537,6 +1538,7 @@ elements.soup = { elements.broth.onMix = function(pixel){ changePixel(pixel, "soup") }, +*/ converter1Var = 0; converter2Var = 0; elements.converter = { @@ -3286,4 +3288,48 @@ elements.function_machine = { } } } -} \ No newline at end of file +} +elements.galvanized_steel = { + color: "#4c585f", + behavior: behaviors.WALL, + tempHigh: 1455.5, + category: "solids", + density: 7850, + conduct: 0.42, + hardness: 0.8, + tick: function(pixel){ + for (var i = 0; i < adjacentCoords.length; i++) { + var coord = squareCoords[i]; + var x = pixel.x+coord[0]; + var y = pixel.y+coord[1]; + if (!isEmpty(x,y, true)){ + let otherPixel = pixelMap[x][y] + if (otherPixel.element == "molten_zinc"){ + if (Math.random() < 0.005){ + deletePixel(x, y) + if (!pixel.absorbedZinc){pixel.absorbedZinc = 0} + pixel.absorbedZinc ++ + } + } else if (otherPixel.element == "steel"){ + if (pixel.absorbedZinc && Math.random() < 0.02){ + changePixel(otherPixel, "galvanized_steel") + pixel.absorbedZinc -- + } + } + else if (otherPixel.element == "galvanized_steel"){ + if (!otherPixel.absorbedZinc){otherPixel.absorbedZinc = 0} + if (pixel.absorbedZinc > otherPixel.absorbedZinc && Math.random() < 0.1){ + otherPixel.absorbedZinc ++ + pixel.absorbedZinc -- + } + } + } + } + } +} +if (!eLists.metals) { eLists.metals = [] } +eLists.metals = eLists.metals.concat(["galvanized_steel"]) +if (!elements.steel.reactions){elements.steel.reactions = {}} +elements.steel.reactions.molten_zinc = {elem1: "galvanized_steel", chance: 0.035} +if (!elements.molten_zinc.reactions){elements.zinc.reactions = {}} +elements.molten_zinc.reactions.steel = {elem1: "null", chance: 0.2} \ No newline at end of file