From c868a06f773dda8b213cfaa080f82f4e9f1fc8fc Mon Sep 17 00:00:00 2001 From: An Orbit <68935009+orbit-loona@users.noreply.github.com> Date: Sun, 7 May 2023 12:00:02 -0400 Subject: [PATCH] test --- mods/rays.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/rays.js b/mods/rays.js index 43c7a8cd..0a7e8ee0 100644 --- a/mods/rays.js +++ b/mods/rays.js @@ -244,13 +244,13 @@ if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod)) else { var otherPixel = pixelMap[x][y] var otherInfo = elements[otherPixel.element]; - otherPixel.temp += 400; + otherPixel.temp += (400 * (shiftDown + 1)); if(otherPixel.del) { continue }; if (!(grbBreakIntos.includes(otherPixel.element))) { if (otherInfo.isGas) { - if(Math.random() > ((otherInfo.hardness ?? 0) ** 4)) { breakPixel(otherPixel,false,false) }; + if(Math.random() > ((otherInfo.hardness ?? 0) ** (4 + shiftDown))) { breakPixel(otherPixel,false,false) }; if(hasVelocity && otherPixel && !(lightlikes.includes(otherPixel.element))) { - var vels = [randomIntegerBetweenTwoValues(-7,7),randomIntegerBetweenTwoValues(-7,7)]; + var vels = [randomIntegerBetweenTwoValues(-7 - (shiftDown * 2),7 + (shiftDown * 2)),randomIntegerBetweenTwoValues(-7 - (shiftDown * 2),7 + (shiftDown * 2))]; otherPixel.vx = vels[0]; otherPixel.vy = vels[1]; }; @@ -258,13 +258,13 @@ if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod)) }; if (otherInfo.id === elements[pixel.element].id) { break } - if(Math.random() > ((otherInfo.hardness ?? 0) ** 2)) { breakPixel(otherPixel,false,false) }; + if(Math.random() > ((otherInfo.hardness ?? 0) ** (2 + shiftDown))) { breakPixel(otherPixel,false,false) }; if(hasVelocity && otherPixel) { - var vels = [randomIntegerBetweenTwoValues(-9,9),randomIntegerBetweenTwoValues(-7,0)]; + var vels = [randomIntegerBetweenTwoValues(-9 - (shiftDown * 2),9 + (shiftDown * 2)),randomIntegerBetweenTwoValues(-7 - (shiftDown * 2),0 + (shiftDown * 2))]; otherPixel.vx = vels[0]; otherPixel.vy = vels[1]; }; - if(Math.random() < Math.max(0.9,0.4 + ((1 - (otherInfo.hardness ?? 0)) / 2))) { //thanks, I hate random continue + if(Math.random() < ((shiftDown / 20) + (Math.max(0.9,0.4 + ((1 - (otherInfo.hardness ?? 0)) / 2))))) { //thanks, I hate random continue continue; }; break;