Update velocity.js

This commit is contained in:
slweeb 2023-10-14 20:29:09 -04:00
parent 14411abbac
commit c44a93f9d3
1 changed files with 10 additions and 0 deletions

View File

@ -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;