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",
|
category: "soul",
|
||||||
behavior: [
|
behavior: [
|
||||||
"XX|CR:flash|XX",
|
"XX|CR:flash|XX",
|
||||||
"CR:flash|XX|CR:flash",
|
"CR:flash AND M2|XX|CR:flash AND M2",
|
||||||
"XX|CR:flash|XX",
|
"M1|CR:flash AND M1|M1",
|
||||||
],
|
],
|
||||||
reactions: {
|
reactions: {
|
||||||
"algae": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
|
"algae": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
|
||||||
|
|
@ -50,20 +50,19 @@ elements.soul_dirt = {
|
||||||
color: ["#999a98", "#e6e7e2", "#dddcda"],
|
color: ["#999a98", "#e6e7e2", "#dddcda"],
|
||||||
behavior: behaviors.POWDER,
|
behavior: behaviors.POWDER,
|
||||||
properties: {
|
properties: {
|
||||||
methaned: false,
|
"methaned": false,
|
||||||
|
"age": 0
|
||||||
},
|
},
|
||||||
tick: function(pixel) {
|
tick: function(pixel) {
|
||||||
spreadLifeEater(pixel).forEach(infectedPixel => spreadLifeEater(infectedPixel));
|
if(pixel.age > 6) {
|
||||||
|
|
||||||
if(pixelTicks - pixel.start > 6) {
|
|
||||||
if(!pixel.methaned && Math.random() < 0.2) {
|
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 {
|
} else {
|
||||||
pixel.methaned = true;
|
pixel.methaned = true;
|
||||||
};
|
};
|
||||||
tryCreatePlus(["ghost_particle","ghost_particle"],pixel.x,pixel.y);
|
createPixel("ghost_particle",pixel.x,pixel.y);
|
||||||
return;
|
|
||||||
};
|
};
|
||||||
|
pixel.age++
|
||||||
},
|
},
|
||||||
category: "soul",
|
category: "soul",
|
||||||
state: "powder",
|
state: "powder",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue