lost_souls.js

Signed-off-by: HACKERPRO908 <130792075+HACKERPRO908@users.noreply.github.com>
This commit is contained in:
HACKERPRO908 2024-02-28 08:12:42 +00:00 committed by GitHub
parent ddd8469e23
commit bb2cafd594
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 72 additions and 0 deletions

72
mods/lost_souls.js Normal file
View File

@ -0,0 +1,72 @@
elements.ghost_particle = {
color: "#d9d2d0",
behavior: behaviors.GAS,
category: "soul",
state: "gas",
};
elements.soul_fish = {
color: ["#808080","#a52a2a"],
category: "soul",
behavior: [
"XX|CR:flash|XX",
"CR:flash|XX|CR:flash",
"XX|CR:flash|XX",
],
reactions: {
"algae": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"plant": { elem2:null, chance:0.125, func:behaviors.FEEDPIXEL },
"fly": { elem2:null, chance:0.4, func:behaviors.FEEDPIXEL },
"firefly": { elem2:null, chance:0.6, func:behaviors.FEEDPIXEL },
"worm": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"tadpole": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"oxygen": { elem2:"carbon_dioxide", chance:0.5 },
"dead_bug": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"broth": { elem2:"water", chance:0.2, func:behaviors.FEEDPIXEL },
"slug": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"herb": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"lettuce": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"dead_plant": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"lichen": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"yeast": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"yogurt": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"tea": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"yolk": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"cell": { elem2:null, chance:0.15, func:behaviors.FEEDPIXEL },
"crumb": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"alcohol": { elem1:"meat", chance:0.001 },
}
};
elements.soul_anger_block = {
color: ["#eb4034","#ed2415"],
category: "soul",
behavior: [
"HT|HT|HT",
"CR:heat_ray|HT|CR:heat_ray",
"HT|CR:heat_ray|HT",
],
};
elements.soul_dirt = {
color: ["#999a98", "#e6e7e2", "#dddcda"],
behavior: behaviors.POWDER,
properties: {
methaned: false,
},
tick: function(pixel) {
spreadLifeEater(pixel).forEach(infectedPixel => spreadLifeEater(infectedPixel));
if(pixelTicks - pixel.start > 6) {
if(!pixel.methaned && Math.random() < 0.2) {
changePixel(pixel,Math.random() < 0.2 ? "ghost_particle" : "ghost_particle");
} else {
pixel.methaned = true;
};
tryCreatePlus(["ghost_particle","ghost_particle"],pixel.x,pixel.y);
return;
};
},
category: "soul",
state: "powder",
density: 1050,
excludeRandom: true,
};