diff --git a/mods/sensitive.js b/mods/sensitive.js new file mode 100644 index 00000000..0b36169f --- /dev/null +++ b/mods/sensitive.js @@ -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"); + }; + } + } +}); \ No newline at end of file