From a17c6369d044a7b3b16ed2b234324f28ae793c83 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Tue, 13 Sep 2022 18:35:34 -0400 Subject: [PATCH] Update velocity.js --- mods/velocity.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mods/velocity.js b/mods/velocity.js index f9ca7ad1..19a21062 100644 --- a/mods/velocity.js +++ b/mods/velocity.js @@ -12,6 +12,9 @@ doVelocity = function(pixel) { var newPixel = pixelMap[x][y]; if (elements[newPixel.element].movable) { newPixel.vx = (newPixel.vx||0) + pixel.vx - Math.sign(pixel.vx); + if (elements[pixel.element].breakInto && Math.random()