From 5bba787e0face14e19b6be6a013f79b73cdd7580 Mon Sep 17 00:00:00 2001 From: Lily-129 <68935009+Lily-129@users.noreply.github.com> Date: Wed, 26 Jan 2022 10:38:31 -0500 Subject: [PATCH] split tick stuff off into a separate mod 2 of 2 --- mods/randomness.js | 109 +-------------------------------------------- 1 file changed, 1 insertion(+), 108 deletions(-) diff --git a/mods/randomness.js b/mods/randomness.js index f0f97664..8fe4c944 100644 --- a/mods/randomness.js +++ b/mods/randomness.js @@ -369,114 +369,6 @@ elements.vaporized_estradiol = { stateLow: "molten_estradiol", }, -elements.superduperheater = { - color: "#ff0000", - tick: function(pixel) { - for (let i = -4; i < 5; i++) { - for (let j = -4; j < 5; j++) { - if (!isEmpty(pixel.x+j,pixel.y+i) && !outOfBounds(pixel.x+j,pixel.y+i)) { - pixelMap[pixel.x+j][pixel.y+i].temp += 15 - } - } - } - }, - category:"machines", - insulate:true, - state: "solid", -}, - -elements.superdupercooler = { - color: "#0000ff", - tick: function(pixel) { - for (let i = -4; i < 5; i++) { - for (let j = -4; j < 5; j++) { - if (!isEmpty(pixel.x+j,pixel.y+i) && !outOfBounds(pixel.x+j,pixel.y+i)) { - pixelMap[pixel.x+j][pixel.y+i].temp < -258 ? pixelMap[pixel.x+j][pixel.y+i].temp = -273 : pixelMap[pixel.x+j][pixel.y+i].temp -= 15 - } - } - } - }, - category:"machines", - insulate:true, - state: "solid", -}, - -elements.superduperwarmer = { - color: "#00ff00", - tick: function(pixel) { - for (let i = -4; i < 5; i++) { - for (let j = -4; j < 5; j++) { - if (!isEmpty(pixel.x+j,pixel.y+i) && !outOfBounds(pixel.x+j,pixel.y+i)) { - pixelMap[pixel.x+j][pixel.y+i].temp = 20 - } - } - } - }, - category:"machines", - insulate:true, - state: "solid", -}, - -elements.supersuperduperheater = { - color: "#ff2200", - tick: function(pixel) { - for (let i = -9; i < 10; i++) { - for (let j = -9; j < 10; j++) { - if (!isEmpty(pixel.x+j,pixel.y+i) && !outOfBounds(pixel.x+j,pixel.y+i)) { - pixelMap[pixel.x+j][pixel.y+i].temp += 25 - } - } - } - }, - category:"machines", - insulate:true, - state: "solid", -}, - -elements.supersuperdupercooler = { - color: "#0022ff", - tick: function(pixel) { - for (let i = -9; i < 10; i++) { - for (let j = -9; j < 10; j++) { - if (!isEmpty(pixel.x+j,pixel.y+i) && !outOfBounds(pixel.x+j,pixel.y+i)) { - pixelMap[pixel.x+j][pixel.y+i].temp < -248 ? pixelMap[pixel.x+j][pixel.y+i].temp = -273 : pixelMap[pixel.x+j][pixel.y+i].temp -= 25 - } - } - } - }, - category:"machines", - insulate:true, - state: "solid", -}, - -elements.supersuperduperwarmer = { - color: "#22ff22", - tick: function(pixel) { - for (let i = -9; i < 10; i++) { - for (let j = -9; j < 10; j++) { - if (!isEmpty(pixel.x+j,pixel.y+i) && !outOfBounds(pixel.x+j,pixel.y+i)) { - pixelMap[pixel.x+j][pixel.y+i].temp = 20 - } - } - } - }, - category:"machines", - insulate:true, - state: "solid", -}, - -elements.tempinccheck = { - color: "#000000", - tick: function(pixel) { - pixel.color = "rgb(" + pixel.temp % 256 + ",0,0)" - }, - category:"machines", - insulate:true, - state: "solid", - hidden: true, - extraInfo: "Debug tool
Changes black to red with increasing heat", -}, - runAfterLoad(function() { elements.tungstensteel.behavior = [ "XX|DL:"+eLists.FAIRY+"|XX", @@ -489,3 +381,4 @@ runAfterLoad(function() { "M1|DL:"+eLists.FAIRY+"|M1", ] }); +//dummy edit?