From 0e01a27b80da432c5da36974bea83943c6a9c6cd Mon Sep 17 00:00:00 2001 From: Lily-129 <68935009+Lily-129@users.noreply.github.com> Date: Fri, 28 Jan 2022 10:52:14 -0500 Subject: [PATCH] idk if this will do anything --- mods/troll.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mods/troll.js b/mods/troll.js index 1eddb77a..9c8f1d82 100644 --- a/mods/troll.js +++ b/mods/troll.js @@ -7,6 +7,9 @@ elements.troll1 = { if(Math.random() < 0.003 && pixelMap[i][j].element != pixel.element) { deletePixel(i,j) } } } + if(i == width) { + i = 1 + } } }, category: "machines", @@ -23,6 +26,9 @@ elements.troll2 = { if(Math.random() < 0.005) { pixelMap[i][j].color = "rgb(0,0,0)" } } } + if(i == width) { + i = 1 + } } }, category: "machines", @@ -39,9 +45,12 @@ elements.troll3 = { if(Math.random() < 0.05) { swapPixels(pixel,pixelMap[i][j]) } } } + if(i == width) { + i = 1 + } } }, category: "machines", insulate: true, state: "solid", -} \ No newline at end of file +}