commit
3802ce08b0
|
|
@ -0,0 +1,20 @@
|
|||
// Makes all elements EXTREAMLY sensitive to air or anything else.
|
||||
|
||||
|
||||
runAfterLoad(function() {
|
||||
for (const elem in elements) {
|
||||
if (["fire", "explosion", "smoke"].includes(elem)) continue;
|
||||
if (!elements[elem].onPlace) {
|
||||
elements[elem].onPlace = function(pixel) {
|
||||
changePixel(pixel, "explosion");
|
||||
};
|
||||
} else {
|
||||
|
||||
const oldOnPlace = elements[elem].onPlace;
|
||||
elements[elem].onPlace = function(pixel) {
|
||||
oldOnPlace(pixel);
|
||||
changePixel(pixel, "explosion");
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
Loading…
Reference in New Issue