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:
parent
e33deca6fe
commit
391717be13
|
|
@ -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,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue