Update lost_souls.js - removed buggy soul dirt by squarescream

Signed-off-by: HACKERPRO908 <130792075+HACKERPRO908@users.noreply.github.com>
This commit is contained in:
HACKERPRO908 2024-03-03 13:34:22 +00:00 committed by GitHub
parent e33deca6fe
commit 391717be13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 10 deletions

View File

@ -10,8 +10,8 @@ elements.soul_fish = {
category: "soul",
behavior: [
"XX|CR:flash|XX",
"CR:flash|XX|CR:flash",
"XX|CR:flash|XX",
"CR:flash AND M2|XX|CR:flash AND M2",
"M1|CR:flash AND M1|M1",
],
reactions: {
"algae": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
@ -50,23 +50,22 @@ elements.soul_dirt = {
color: ["#999a98", "#e6e7e2", "#dddcda"],
behavior: behaviors.POWDER,
properties: {
methaned: false,
"methaned": false,
"age": 0
},
tick: function(pixel) {
spreadLifeEater(pixel).forEach(infectedPixel => spreadLifeEater(infectedPixel));
if(pixelTicks - pixel.start > 6) {
if(pixel.age > 6) {
if(!pixel.methaned && Math.random() < 0.2) {
changePixel(pixel,Math.random() < 0.2 ? "ghost_particle" : "ghost_particle");
changePixel("ghost_particle",pixel.x,pixel.y);
} else {
pixel.methaned = true;
};
tryCreatePlus(["ghost_particle","ghost_particle"],pixel.x,pixel.y);
return;
createPixel("ghost_particle",pixel.x,pixel.y);
};
pixel.age++
},
category: "soul",
state: "powder",
density: 1050,
excludeRandom: true,
};
};