From 4fb1ed29544c68608d3781b1fa65c7682126665a Mon Sep 17 00:00:00 2001 From: Sightnado <47155841+Sightnado@users.noreply.github.com> Date: Fri, 11 Feb 2022 16:29:37 -0500 Subject: [PATCH 1/6] Add moretemptools.js mod --- mods/moretemptools.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 mods/moretemptools.js diff --git a/mods/moretemptools.js b/mods/moretemptools.js new file mode 100644 index 00000000..03b90888 --- /dev/null +++ b/mods/moretemptools.js @@ -0,0 +1,35 @@ +elements.superheat = { + color: "#ff2f2f", + tool: function(pixel) { + pixel.temp += 10 + }, + category: "tools", +}; +elements.supercool = { + color: "#2f2fff", + tool: function(pixel) { + pixel.temp += -10 + }, + category: "tools", +}; +elements.hyperheat = { + color: "#ff5f5f", + tool: function(pixel) { + pixel.temp += 50 + }, + category: "tools", +}; +elements.hypercool = { + color: "#5f5fff", + tool: function(pixel) { + pixel.temp += -50 + }, + category: "tools", +}; +elements.absolutezero = { + color: "#d1f7ff", + tool: function(pixel) { + pixel.temp = -273.15 + }, + category: "tools", +}; \ No newline at end of file From 2612f74043b03dbb50b557e3fed48d0c0ded90ca Mon Sep 17 00:00:00 2001 From: StellarX20 <97905447+StellarX20@users.noreply.github.com> Date: Fri, 11 Feb 2022 16:40:45 -0500 Subject: [PATCH 2/6] > // This new crashtestdummy mod will be more used for code that I'm not sure will actually work Added sand replacer for a test --- mods/CrashTestDummy.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 mods/CrashTestDummy.js diff --git a/mods/CrashTestDummy.js b/mods/CrashTestDummy.js new file mode 100644 index 00000000..9f818c65 --- /dev/null +++ b/mods/CrashTestDummy.js @@ -0,0 +1,7 @@ +// This new crashtestdummy mod will be more used for code that I'm not sure will actually work +elements.sandreplacer = { + color: "#ff2f2f", + tool: function(pixel) { + pixel.type = "sand" + }, + category: "tools", From 0521bc33815b766a43933b709b0f8e526183430d Mon Sep 17 00:00:00 2001 From: StellarX20 <97905447+StellarX20@users.noreply.github.com> Date: Fri, 11 Feb 2022 16:42:31 -0500 Subject: [PATCH 3/6] Update CrashTestDummy.js --- mods/CrashTestDummy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/CrashTestDummy.js b/mods/CrashTestDummy.js index 9f818c65..d49f7135 100644 --- a/mods/CrashTestDummy.js +++ b/mods/CrashTestDummy.js @@ -2,6 +2,6 @@ elements.sandreplacer = { color: "#ff2f2f", tool: function(pixel) { - pixel.type = "sand" + pixel.element = "sand" }, category: "tools", From 4c531922438b88357454e0192e115fccf6ac7898 Mon Sep 17 00:00:00 2001 From: StellarX20 <97905447+StellarX20@users.noreply.github.com> Date: Fri, 11 Feb 2022 16:46:19 -0500 Subject: [PATCH 4/6] Update CrashTestDummy.js --- mods/CrashTestDummy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/CrashTestDummy.js b/mods/CrashTestDummy.js index d49f7135..31f28134 100644 --- a/mods/CrashTestDummy.js +++ b/mods/CrashTestDummy.js @@ -5,3 +5,4 @@ elements.sandreplacer = { pixel.element = "sand" }, category: "tools", +}; From 42e3fe60080b8577fafff786bc09a247a730a6c7 Mon Sep 17 00:00:00 2001 From: StellarX20 <97905447+StellarX20@users.noreply.github.com> Date: Fri, 11 Feb 2022 16:48:17 -0500 Subject: [PATCH 5/6] Update CrashTestDummy.js --- mods/CrashTestDummy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/CrashTestDummy.js b/mods/CrashTestDummy.js index 31f28134..5ddddb92 100644 --- a/mods/CrashTestDummy.js +++ b/mods/CrashTestDummy.js @@ -1,6 +1,6 @@ // This new crashtestdummy mod will be more used for code that I'm not sure will actually work elements.sandreplacer = { - color: "#ff2f2f", + color: "#ff80ff", tool: function(pixel) { pixel.element = "sand" }, From 8e92ebd39487b982d23d32316cccbf7cb0fcfcc0 Mon Sep 17 00:00:00 2001 From: Sightnado <47155841+Sightnado@users.noreply.github.com> Date: Fri, 11 Feb 2022 16:57:01 -0500 Subject: [PATCH 6/6] check pixel temperature --- mods/moretemptools.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/mods/moretemptools.js b/mods/moretemptools.js index 03b90888..6d9487bc 100644 --- a/mods/moretemptools.js +++ b/mods/moretemptools.js @@ -1,35 +1,40 @@ elements.superheat = { color: "#ff2f2f", tool: function(pixel) { - pixel.temp += 10 + pixel.temp += 10; + pixelTempCheck(pixel) }, category: "tools", }; elements.supercool = { color: "#2f2fff", tool: function(pixel) { - pixel.temp += -10 + pixel.temp += -10; + pixelTempCheck(pixel) }, category: "tools", }; elements.hyperheat = { color: "#ff5f5f", tool: function(pixel) { - pixel.temp += 50 + pixel.temp += 50; + pixelTempCheck(pixel) }, category: "tools", }; elements.hypercool = { color: "#5f5fff", tool: function(pixel) { - pixel.temp += -50 + pixel.temp += -50; + pixelTempCheck(pixel) }, category: "tools", }; elements.absolutezero = { color: "#d1f7ff", tool: function(pixel) { - pixel.temp = -273.15 + pixel.temp = -273.15; + pixelTempCheck(pixel) }, category: "tools", -}; \ No newline at end of file +};