From c44a93f9d39a3856145ef875679f9d20d0942a38 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Sat, 14 Oct 2023 20:29:09 -0400 Subject: [PATCH] Update velocity.js --- mods/velocity.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mods/velocity.js b/mods/velocity.js index d31a083c..c679c312 100644 --- a/mods/velocity.js +++ b/mods/velocity.js @@ -202,6 +202,16 @@ explodeAt = function(x,y,radius,fire="fire") { breakPixel(pixel); continue; } + else { + if (Array.isArray(fire)) { + var newfire = fire[Math.floor(Math.random() * fire.length)]; + } + else { + var newfire = fire; + } + changePixel(pixel,newfire); + continue; + } } if (damage > 0.75 && info.burn) { pixel.burning = true;