Skip to content

Commit

Permalink
Update velocity.js
Browse files Browse the repository at this point in the history
  • Loading branch information
slweeb committed Oct 15, 2023
1 parent 14411ab commit c44a93f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mods/velocity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c44a93f

Please sign in to comment.