gas decay mod

This commit is contained in:
JustAGenericUsername 2025-09-06 10:00:57 -04:00
parent 891a8275dd
commit 728128ebb0
1 changed files with 15 additions and 0 deletions

15
mods/gasdecay.js Normal file
View File

@ -0,0 +1,15 @@
let gasList = []
runAfterLoad(function(){
for (let _element in elements){
if (elements[_element].state == "gas"){
gasList.push(_element)
}
}
runPerPixel(function(pixel){
if (gasList.indexOf(pixel.element) >= 0){
if (Math.random() < 0.002){
deletePixel(pixel.x, pixel.y)
}
}
})
})