Merge branch 'R74nCom:main' into main
This commit is contained in:
commit
39f5465118
|
|
@ -0,0 +1,85 @@
|
|||
elements.dog_food = {
|
||||
color: ["#402101", "#1f1001", "#2e1701", "#2b1601", "#261604"],
|
||||
behavior: behaviors.STURDYPOWDER,
|
||||
category: "food",
|
||||
state: "solid",
|
||||
tempHigh: 500,
|
||||
stateHigh: "ash",
|
||||
isFood: true,
|
||||
};
|
||||
|
||||
elements.ice_cube = {
|
||||
color: ["#ccf4ff", "#c6e3f5", "#b6d1f2",],
|
||||
behavior: [
|
||||
"XX|XX|XX",
|
||||
"XX|XX|XX",
|
||||
"XX|M1|XX"
|
||||
],
|
||||
category: "food",
|
||||
state: "solid",
|
||||
temp: -5,
|
||||
tempHigh: 0,
|
||||
stateHigh: "water",
|
||||
isFood: true,
|
||||
};
|
||||
|
||||
elements.dog_with_rabies = {
|
||||
color: ["#c7a950", "#f7f6eb", "#152617", "#665d20", "#454420" ],
|
||||
behavior: [
|
||||
"XX|XX|XX",
|
||||
"M2%25|LB:foam%25|M2%25",
|
||||
"M2|M1|M2"
|
||||
],
|
||||
reactions: {
|
||||
"meat": {elem2:null, chance:0.5, func:behaviors.FEEDPIXEL },
|
||||
"egg": {elem2:null, chance:0.5, func:behaviors.FEEDPIXEL },
|
||||
"yolk": {elem2:null, chance:0.5, func:behaviors.FEEDPIXEL },
|
||||
"cheese": {elem2:null, chance:0.5, func:behaviors.FEEDPIXEL },
|
||||
"ice_cube": {elem2:null, chance:0.8, func:behaviors.FEEDPIXEL },
|
||||
"cooked_meat": {elem2:null, chance:0.5, func:behaviors.FEEDPIXEL },
|
||||
"chocolate": {elem2:null, chance: 0.2, func:behaviors.FEEDPIXEL, elem1: "rotten_meat"},
|
||||
"grape": {elem2:null, chance: 0.2, func:behaviors.FEEDPIXEL, elem1: "rotten_meat"},
|
||||
"rat": {elem2:null, chance: 0.3, func:behaviors.FEEDPIXEL },
|
||||
"dog_food": {elem2:null, chance: 0.8, func:behaviors.FEEDPIXEL },
|
||||
"nut_butter": {elem2:null, chance: 0.5, func:behaviors.FEEDPIXEL },
|
||||
},
|
||||
category:"life",
|
||||
state:"solid",
|
||||
tempHigh: 100,
|
||||
stateHigh: "cooked_meat",
|
||||
breakInto: "rotten_meat",
|
||||
tempLow: -20,
|
||||
stateLow: "frozen_meat",
|
||||
hidden: true,
|
||||
};
|
||||
|
||||
elements.dog = {
|
||||
color: ["c78950", "#ffffff", "#262524", "#664120", "#453120" ],
|
||||
behavior: [
|
||||
"XX|XX|XX",
|
||||
"M2%7|XX|M2%7",
|
||||
"M2|M1|M2"
|
||||
],
|
||||
reactions: {
|
||||
"meat": {elem2:null, chance:0.5, func:behaviors.FEEDPIXEL },
|
||||
"egg": {elem2:null, chance:0.5, func:behaviors.FEEDPIXEL },
|
||||
"yolk": {elem2:null, chance:0.5, func:behaviors.FEEDPIXEL },
|
||||
"cheese": {elem2:null, chance:0.5, func:behaviors.FEEDPIXEL },
|
||||
"ice_cube": {elem2:null, chance:0.8, func:behaviors.FEEDPIXEL },
|
||||
"cooked_meat": {elem2:null, chance:0.5, func:behaviors.FEEDPIXEL },
|
||||
"chocolate": {elem2:null, chance: 0.2, func:behaviors.FEEDPIXEL, elem1: "rotten_meat"},
|
||||
"grape": {elem2:null, chance: 0.2, func:behaviors.FEEDPIXEL, elem1: "rotten_meat"},
|
||||
"rat": {elem2:null, chance: 0.3, func:behaviors.FEEDPIXEL },
|
||||
"dog_food": {elem2:null, chance: 0.8, func:behaviors.FEEDPIXEL },
|
||||
"nut_butter": {elem2:null, chance: 0.5, func:behaviors.FEEDPIXEL },
|
||||
"infection": {elem1:"dog_with_rabies", chance:0.4 },
|
||||
"dog_with_rabies": {elem1:"dog_with_rabies", chance:0.3},
|
||||
},
|
||||
category:"life",
|
||||
state:"solid",
|
||||
tempHigh: 100,
|
||||
stateHigh: "cooked_meat",
|
||||
breakInto: "rotten_meat",
|
||||
tempLow: -20,
|
||||
stateLow: "frozen_meat",
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,541 @@
|
|||
/*
|
||||
|
||||
Also checkout sbstuff.js by sb! Without it, this mod wouldn't be possible!
|
||||
|
||||
Discords of people that helped me:
|
||||
usecit - UseCit.psd
|
||||
nousernamefound - nousernamefound
|
||||
pixelegend4 - pixelegend4
|
||||
|
||||
Credits:
|
||||
Saschas - Waterpowder idea
|
||||
Fantasy Elements - Phoenix idea
|
||||
|
||||
*/
|
||||
|
||||
elements.sweetwater = {
|
||||
color: "#8ae7eb",
|
||||
behavior: behaviors.LIQUID,
|
||||
category: "kopal",
|
||||
state: "liquid",
|
||||
tempHigh: 100,
|
||||
stateHigh: "water",
|
||||
reactions: {
|
||||
"sugar": { elem1: null, elem2: "syrup" }
|
||||
},
|
||||
};
|
||||
|
||||
elements.syrup = {
|
||||
color: "#d9d2c3",
|
||||
behavior: behaviors.LIQUID,
|
||||
category: "kopal",
|
||||
state: "liquid",
|
||||
tempHigh: 100,
|
||||
stateHigh: "fire",
|
||||
reactions: {
|
||||
"cell": {elem1: null, elem2: "incubationjuice"}
|
||||
}
|
||||
};
|
||||
|
||||
elements.orangesoda = {
|
||||
color: "#b8820d",
|
||||
behavior: behaviors.LIQUID,
|
||||
category: "kopal",
|
||||
state: "liquid",
|
||||
tempHigh: 100,
|
||||
stateHigh: "water",
|
||||
reactions: {
|
||||
"deadflyingcreature": { elem1: "dirty_orangesoda" },
|
||||
"deadcreature": { elem1: "dirty_orangesoda" },
|
||||
"dirty_water": { elem1: "dirty_orangesoda" },
|
||||
"infection": { elem1: "dirty_orangesoda" },
|
||||
"dirty_orangesoda": { elem1: "dirty_orangesoda" },
|
||||
}
|
||||
};
|
||||
|
||||
elements.dirty_orangesoda = {
|
||||
color: "#20991a",
|
||||
behavior: behaviors.LIQUID,
|
||||
category: "kopal",
|
||||
state: "liquid",
|
||||
tempHigh: 80,
|
||||
stateHigh: "orangesoda",
|
||||
};
|
||||
|
||||
elements.orange = {
|
||||
color: "#eda813",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "kopal",
|
||||
state: "powder",
|
||||
breakInto: "juice",
|
||||
tempHigh: 100,
|
||||
stateHigh: "charcoal",
|
||||
reactions: {
|
||||
"syrup": { elem1: null, elem2: "orangesoda" }
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
elements.incubationjuice = {
|
||||
color: "#daf5ef",
|
||||
behavior: behaviors.LIQUID,
|
||||
category: "kopal",
|
||||
state: "liquid",
|
||||
breakInto: "blood",
|
||||
reactions: {
|
||||
"flydna": { elem1: "blood", elem2: "flyingcreature"},
|
||||
"antdna": { elem1: "blood", elem2: "creature"},
|
||||
"phoenixdna": { elem1: "blood", elem2: "artificialphoenix"},
|
||||
"alcohol": { elem1: "cancer", elem2: "antiartificialjuice"}
|
||||
},
|
||||
};
|
||||
|
||||
elements.creature = {
|
||||
color: "#d073d9",
|
||||
behavior: behaviors.CRAWLER,
|
||||
category: "kopal",
|
||||
state: "crawler",
|
||||
tempHigh: 175,
|
||||
stateHigh: "deadcreature",
|
||||
breakInto: "deadcreature",
|
||||
reactions: {
|
||||
"ant": { elem2: "meat" },
|
||||
"meat": { elem2: "creature" },
|
||||
"artificialmeat": { elem2: "cell" },
|
||||
"syrup": { elem2: "creature" },
|
||||
"cell": { elem2: "creature" },
|
||||
},
|
||||
};
|
||||
|
||||
elements.flyingcreature = {
|
||||
color: "#d073d9",
|
||||
behavior: behaviors.FLY,
|
||||
category: "kopal",
|
||||
state: "fly",
|
||||
tempHigh: 175,
|
||||
stateHigh: "deadflyingcreature",
|
||||
breakInto: "deadflyingcreature",
|
||||
reactions: {
|
||||
"fly": { elem2: "meat" },
|
||||
"meat": { elem2: "flyingcreature" },
|
||||
"artificialmeat": { elem2: "cell" },
|
||||
"syrup": { elem2: "flyingcreature" },
|
||||
"cell": { elem2: "flyingcreature" },
|
||||
},
|
||||
};
|
||||
|
||||
elements.artificialphoenix = {
|
||||
color: "#c40052",
|
||||
behavior: behaviors.FLY,
|
||||
category: "kopal",
|
||||
state: "fly",
|
||||
temp: 149,
|
||||
breakInto: "deadflyingcreature",
|
||||
reactions: {
|
||||
"fly": { elem2: "artificialphoenix" },
|
||||
"flyingcreature": { elem2: "artificialphoenix" },
|
||||
"meat": { elem2: "artificialphoenix" },
|
||||
"artificialmeat": { elem2: "artificialphoenix" },
|
||||
"syrup": { elem2: "artificialphoenix" },
|
||||
},
|
||||
};
|
||||
|
||||
elements.phoenix = {
|
||||
color: "#ff0000",
|
||||
behavior: behaviors.FLY,
|
||||
category: "kopal",
|
||||
state: "fly",
|
||||
temp: 999,
|
||||
breakInto: "phoenixdna",
|
||||
reactions: {
|
||||
"fly": { elem2: "meat" },
|
||||
"meat": { elem2: "phoenix" },
|
||||
"alcohol": { elem1: "blood" , elem2: "phoenixdna" },
|
||||
},
|
||||
};
|
||||
|
||||
elements.deadcreature = {
|
||||
color: "#86428c",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "kopal",
|
||||
state: "powder",
|
||||
tempHigh: 225,
|
||||
stateHigh: "smoke",
|
||||
breakInto: "artificialmeat",
|
||||
reactions: {
|
||||
"antiartificialjuice": { elem1: "artificialmeat", elem2: "dna" },
|
||||
"ant": { elem1: "artificialmeat" },
|
||||
},
|
||||
};
|
||||
|
||||
elements.deadflyingcreature = {
|
||||
color: "#86428c",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "kopal",
|
||||
state: "powder",
|
||||
tempHigh: 225,
|
||||
stateHigh: "smoke",
|
||||
breakInto: "artificialmeat",
|
||||
reactions: {
|
||||
"antiartificialjuice": { elem1: "artificialmeat", elem2: "dna" },
|
||||
"fly": { elem1: "artificialmeat" },
|
||||
},
|
||||
};
|
||||
|
||||
elements.artificialmeat = {
|
||||
color: "#b38a5f",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "kopal",
|
||||
state: "powder",
|
||||
tempHigh: 215,
|
||||
stateHigh: "smoke",
|
||||
reactions: {
|
||||
"antiartificialjuice": { elem1: null, elem2: null },
|
||||
"ant": { elem1: null },
|
||||
"rat": { elem1: null },
|
||||
},
|
||||
};
|
||||
|
||||
elements.antiartificialjuice = {
|
||||
color: "#b38a5f",
|
||||
behavior: behaviors.LIQUID,
|
||||
category: "kopal",
|
||||
state: "liquid",
|
||||
tempHigh: 215,
|
||||
stateHigh: "smoke",
|
||||
reactions: {
|
||||
"flyingcreature": { elem1: "alcohol", elem2: "deadflyingcreature" },
|
||||
"creature": { elem1: "alcohol", elem2: "deadcreature" },
|
||||
"artificialphoenix": { elem1: "alcohol", elem2: "deadflyingcreature" },
|
||||
},
|
||||
};
|
||||
|
||||
elements.antiartificialspray = {
|
||||
color: "#b38a5f",
|
||||
behavior: behaviors.DGAS,
|
||||
category: "kopal",
|
||||
state: "gas",
|
||||
tempHigh: 215,
|
||||
density: 4000,
|
||||
stateHigh: "smoke",
|
||||
reactions: {
|
||||
"flyingcreature": { elem1: "alcohol", elem2: "deadflyingcreature" },
|
||||
"creature": { elem1: "alcohol", elem2: "deadcreature" },
|
||||
"artificialphoenix": { elem1: "alcohol", elem2: "deadflyingcreature" },
|
||||
},
|
||||
};
|
||||
|
||||
elements.antdna = {
|
||||
color: "#b38a5f",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "kopal",
|
||||
state: "powder",
|
||||
tempHigh: 215,
|
||||
stateHigh: "smoke",
|
||||
};
|
||||
|
||||
elements.phoenixdna = {
|
||||
color: "#a82a2a",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "kopal",
|
||||
state: "powder",
|
||||
};
|
||||
|
||||
elements.flydna = {
|
||||
color: "#b38a5f",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "kopal",
|
||||
state: "powder",
|
||||
tempHigh: 215,
|
||||
stateHigh: "smoke",
|
||||
};
|
||||
|
||||
elements.waterpowder = {
|
||||
color: elements.water.color,
|
||||
behavior: behaviors.POWDER,
|
||||
category: "kopal",
|
||||
state: "powder",
|
||||
tempHigh: 40,
|
||||
stateHigh: "water",
|
||||
};
|
||||
|
||||
elements.waterpowderer = {
|
||||
color: "#e3e1dc",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "kopal",
|
||||
state: "powder",
|
||||
reactions: {
|
||||
"water": { elem1: null, elem2: "waterpowder" }
|
||||
}
|
||||
};
|
||||
|
||||
elements.antiartificialcancer = {
|
||||
color: "#b38a5f",
|
||||
behavior: [
|
||||
"XX|CL%1|XX",
|
||||
"CL%1|XX|CL%1",
|
||||
"M2%2|M1|M2%2",
|
||||
],
|
||||
reactions: {
|
||||
"artificialmeat": { elem2:"antiartificialcancer", chance:0.05 },
|
||||
"creature": { elem2:"antiartificialcancer", chance:0.05 },
|
||||
"flyingcreature": { elem2:"antiartificialcancer", chance:0.05 },
|
||||
"artificialphoenix": { elem2:"antiartificialcancer", chance:0.05 },
|
||||
"cancer": { elem2:"antiartificialcancer", chance:0.5 },
|
||||
},
|
||||
tempHigh: 185,
|
||||
stateHigh: "smoke",
|
||||
tempLow: -10,
|
||||
stateLow: "syrup",
|
||||
state: "solid",
|
||||
density: 1000.2,
|
||||
category: "kopal",
|
||||
};
|
||||
|
||||
elements.anticancer = {
|
||||
color: "#e3e1dc",
|
||||
behavior: behaviors.LIQUID,
|
||||
category: "kopal",
|
||||
state: "liquid",
|
||||
tempLow: -10,
|
||||
stateLow: "syrup",
|
||||
reactions: {
|
||||
"cancer": { elem1: null, elem2: "anticancer" },
|
||||
"antiartificialcancer": { elem1: null, elem2: "anticancer" }
|
||||
}
|
||||
};
|
||||
|
||||
elements.fire_spirit = {
|
||||
color: ["#fc5a03", "#fc2803", "#fc9d03"],
|
||||
behavior: behaviors.FLY,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
temp: 50,
|
||||
|
||||
reactions: {
|
||||
"air_spirit": { elem2: null},
|
||||
"cursed_spirit": { elem1: null},
|
||||
"earth_spirit": { elem1: null},
|
||||
"water_spirit": { elem2: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.water_spirit = {
|
||||
color: ["#0390fc", "#035afc", "#0318fc"],
|
||||
behavior: behaviors.FLY,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"fire_spirit": { elem1: null},
|
||||
"cursed_spirit": { elem1: null},
|
||||
"earth_spirit": { elem2: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.earth_spirit = {
|
||||
color: ["#915a00", "#784b02", "#573602"],
|
||||
behavior: behaviors.FLY,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"fire_spirit": { elem2: null},
|
||||
"cursed_spirit": { elem1: null},
|
||||
"water_spirit": { elem1: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.air_spirit = {
|
||||
color: ["#c7eded", "#99bdbd", "#6a9494"],
|
||||
behavior: behaviors.FLY,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"fire_spirit": { elem1: null},
|
||||
"cursed_spirit": { elem2: null},
|
||||
"water_spirit": { elem1: null},
|
||||
"earth_spirit": { elem1: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.cursed_spirit = {
|
||||
color: ["#c404ae", "#aa04c4", "#7e04c4"],
|
||||
behavior: behaviors.FLY,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"fire_spirit": { elem2: null},
|
||||
"air_spirit": { elem1: null},
|
||||
"water_spirit": { elem2: null},
|
||||
"earth_spirit": { elem2: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.cursed_powder_lvl1 = {
|
||||
color: ["#c404ae", "#aa04c4", "#7e04c4"],
|
||||
behavior: behaviors.POWDER,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"cursed_spirit": { elem1: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.cursed_powder_lvl2 = {
|
||||
color: ["#c404ae", "#aa04c4", "#7e04c4"],
|
||||
behavior: behaviors.POWDER,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"cursed_spirit": { elem2: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.soul_spirit = {
|
||||
color: ["#0af7e0", "#0ac8f7", "#0a9cf7"],
|
||||
behavior: behaviors.FLY,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"fire_spirit": { elem2: null},
|
||||
"cursed_spirit": { elem2: null},
|
||||
"water_spirit": { elem2: null},
|
||||
"earth_spirit": { elem2: null},
|
||||
"air_spirit": { elem2: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.soul_powder = {
|
||||
color: "#2e363b",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"awakening_powder": { elem1: "soul_spirit", elem2: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.cursed_powder = {
|
||||
color: "#2e363b",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"awakening_powder": { elem1: "cursed_spirit", elem2: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.air_powder = {
|
||||
color: "#2e363b",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
temp: -10,
|
||||
|
||||
reactions: {
|
||||
"awakening_powder": { elem1: "air_spirit", elem2: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.water_powder = {
|
||||
color: "#2e363b",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"awakening_powder": { elem1: "water_spirit", elem2: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.fire_powder = {
|
||||
color: "#2e363b",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"awakening_powder": { elem1: "fire_spirit", elem2: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.wandering_spirit = {
|
||||
color: "#b1b7ba",
|
||||
behavior: behaviors.FLY,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"fire_spirit": { elem1: null},
|
||||
"cursed_spirit": { elem1: null},
|
||||
"water_spirit": { elem1: null},
|
||||
"earth_spirit": { elem1: null},
|
||||
"air_spirit": { elem1: null},
|
||||
"soul_spirit": { elem1: null},
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.unawaken_powder = {
|
||||
color: "#696b6b",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"fire_spirit": { elem1: null, elem2: "fire_powder" },
|
||||
"cursed_spirit": { elem1: null, elem2: "cursed_powder" },
|
||||
"water_spirit": { elem1: null, elem2: "water_powder" },
|
||||
"earth_spirit": { elem1: null, elem2: "earth_powder" },
|
||||
"air_spirit": { elem1: null, elem2: "air_powder" },
|
||||
"soul_spirit": { elem1: null, elem2: "soul_powder" },
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.awakening_powder = {
|
||||
color: "#696b6b",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "spirits",
|
||||
state: "solid",
|
||||
|
||||
reactions: {
|
||||
"fire_powder": { elem1: null, elem2: "fire_spirit" },
|
||||
"cursed_powder": { elem1: null, elem2: "cursed_spirit" },
|
||||
"water_powder": { elem1: null, elem2: "water_spirit" },
|
||||
"earth_powder": { elem1: null, elem2: "earth_spirit" },
|
||||
"air_powder": { elem1: null, elem2: "air_spirit" },
|
||||
"soul_powder": { elem1: null, elem2: "soul_spirit" },
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
elements.ant.breakInto = "antdna"
|
||||
elements.fly.breakInto = "flydna"
|
||||
elements.water.reactions["sugar"] = { elem1: null, elem2: "sweetwater" };
|
||||
elements.water.reactions["deadflyingcreature"] = { elem1: "dirty_water"};
|
||||
elements.water.reactions["deadcreature"] = { elem1: "dirty_water"};
|
||||
elements.water.reactions["dirty_water"] = { elem1: "dirty_water"};
|
||||
elements.ant.reactions["alcohol"] = { elem1: "antdna", elem2: null };
|
||||
elements.fly.reactions["alcohol"] = { elem1: "flydna", elem2: null };
|
||||
|
|
@ -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,
|
||||
};
|
||||
|
|
@ -1,5 +1,34 @@
|
|||
// changelog for more_gold.js
|
||||
// initial release
|
||||
|
||||
//1.0 update
|
||||
// adds green_gold
|
||||
// adds molten_green_gold
|
||||
|
||||
// 1.1 update
|
||||
// adds black gold
|
||||
// adds gold_rust
|
||||
// added reactions for the golds
|
||||
|
||||
//1.1.1 update
|
||||
// adds uranium_gold
|
||||
|
||||
elements.green_gold = {
|
||||
color: ["#94c7a3","#7bb298","#94c7a3"],
|
||||
reactions: {
|
||||
"water": { elem1:"gold_rust", chance:0.02 },
|
||||
"salt_water": { elem1:"gold_rust", chance:0.005 },
|
||||
"dirty_water": { elem1:"gold_rust", chance:0.04 },
|
||||
"pool_water": { elem1:"gold_rust", chance:0.04 },
|
||||
"sugar_water": { elem1:"gold_rust", chance:0.0035 },
|
||||
"seltzer": { elem1:"gold_rust", chance:0.006 },
|
||||
"alcohol": { elem1:"gold_rust", chance:0.03 },
|
||||
"blood": { elem1:"gold_rust", chance:0.003 },
|
||||
"infection": { elem1:"gold_rust", chance:0.003 },
|
||||
"antibody": { elem1:"gold_rust", chance:0.003 },
|
||||
"fire": { elem1:"gold_rust", chance:0.0025 },
|
||||
"oxygen": { elem1:"gold_rust", chance:0.05 },
|
||||
},
|
||||
behavior: behaviors.WALL,
|
||||
tempHigh: 500,
|
||||
category: "solids",
|
||||
|
|
@ -16,3 +45,71 @@ elements.molten_green_gold = {
|
|||
conduct: 0.87,
|
||||
Hidden: true
|
||||
};
|
||||
|
||||
elements.black_gold = {
|
||||
color: "#333333",
|
||||
behavior: behaviors.WALL,
|
||||
reactions: {
|
||||
"water": { elem1:"gold_rust", chance:0.0025 },
|
||||
"salt_water": { elem1:"gold_rust", chance:0.005 },
|
||||
"dirty_water": { elem1:"gold_rust", chance:0.04 },
|
||||
"pool_water": { elem1:"gold_rust", chance:0.04 },
|
||||
"sugar_water": { elem1:"gold_rust", chance:0.0035 },
|
||||
"seltzer": { elem1:"gold_rust", chance:0.006 },
|
||||
"alcohol": { elem1:"gold_rust", chance:0.03 },
|
||||
"blood": { elem1:"gold_rust", chance:0.003 },
|
||||
"infection": { elem1:"gold_rust", chance:0.003 },
|
||||
"antibody": { elem1:"gold_rust", chance:0.003 },
|
||||
"fire": { elem1:"gold_rust", chance:0.0025 },
|
||||
"oxygen": { elem1:"gold_rust", chance:0.05 },
|
||||
},
|
||||
category: "solids",
|
||||
density: 19300,
|
||||
hardness: 0.25,
|
||||
};
|
||||
|
||||
elements.gold_rust = {
|
||||
color: "#e6d37e",
|
||||
behavior: behaviors.SUPPORT,
|
||||
tempHigh: 3000,
|
||||
stateHigh: "molten_gold",
|
||||
category: "powders",
|
||||
state: "solid",
|
||||
density: 5250,
|
||||
conduct: 0.37,
|
||||
hardness: 0.3
|
||||
};
|
||||
|
||||
elements.uranium_gold = {
|
||||
color: ["#bcf542","#7fc92a","#c9bf2a"],
|
||||
behavior: [
|
||||
"XX|CR:radiation|XX",
|
||||
"XX|XX|XX",
|
||||
"XX|XX|XX",
|
||||
],
|
||||
tempHigh: 1064,
|
||||
reactions: {
|
||||
"water": { elem1:"rad_steam", chance:0.1 },
|
||||
"salt_water": { elem1:"gold_rust", chance:0.005 },
|
||||
"dirty_water": { elem1:"gold_rust", chance:0.04 },
|
||||
"pool_water": { elem1:"gold_rust", chance:0.04 },
|
||||
"sugar_water": { elem1:"gold_rust", chance:0.0035 },
|
||||
"seltzer": { elem1:"gold_rust", chance:0.006 },
|
||||
"alcohol": { elem1:"gold_rust", chance:0.03 },
|
||||
"blood": { elem1:"gold_rust", chance:0.003 },
|
||||
"infection": { elem1:"gold_rust", chance:0.003 },
|
||||
"antibody": { elem1:"gold_rust", chance:0.003 },
|
||||
"fire": { elem1:"gold_rust", chance:0.0025 },
|
||||
"oxygen": { elem1:"gold_rust", chance:0.05 },
|
||||
},
|
||||
category: "solids",
|
||||
density: 19300,
|
||||
conduct: 0.81,
|
||||
hardness: 0.25,
|
||||
breakInto: "uranium"
|
||||
};
|
||||
|
||||
elements.gold.reactions["fire"] = { elem1: null, elem2: "gold_rust" };
|
||||
elements.rose_gold.reactions["fire"] = { elem1: null, elem2: "gold_rust" };
|
||||
elements.purple_gold.reactions["fire"] = { elem1: null, elem2: "gold_rust" };
|
||||
elements.blue_gold.reactions["fire"] = { elem1: null, elem2: "gold_rust" };
|
||||
|
|
|
|||
159
mods/weapons.js
159
mods/weapons.js
|
|
@ -75,7 +75,7 @@ elements.left_missile = {
|
|||
"M1 AND EX:10|XX|EX:10",
|
||||
"M2|EX:10|XX",
|
||||
],
|
||||
category:"weapons",
|
||||
category:"ammunition",
|
||||
},
|
||||
elements.right_missile = {
|
||||
color: "#4c4e42",
|
||||
|
|
@ -84,8 +84,17 @@ elements.right_missile = {
|
|||
"EX:10|XX|M1 AND EX:10",
|
||||
"XX|EX:10|M2",
|
||||
],
|
||||
category:"weapons",
|
||||
category:"ammunition",
|
||||
},
|
||||
elements.up_missile = {
|
||||
color: "#4c4e42",
|
||||
behavior: [
|
||||
"XX|M1 AND EX:10|M2",
|
||||
"EX:10|XX|EX:10",
|
||||
"XX|EX:10|M2",
|
||||
],
|
||||
category:"ammunition",}
|
||||
|
||||
elements.cluster_munition = {
|
||||
color: "#444444",
|
||||
behavior: [
|
||||
|
|
@ -115,7 +124,7 @@ elements.right_missile = {
|
|||
"XX|XX|XX",
|
||||
"M2|M1 AND EX:10%10|M2",
|
||||
],
|
||||
category: "weapons",
|
||||
category: "ammunition",
|
||||
state: "solid",
|
||||
density: 1300,
|
||||
hidden: true,
|
||||
|
|
@ -149,7 +158,7 @@ elements.left_bullet = {
|
|||
"M1 AND EX:5|XX|XX",
|
||||
"M2|XX|XX",
|
||||
],
|
||||
category:"weapons",
|
||||
category:"ammunition",
|
||||
},
|
||||
elements.right_bullet = {
|
||||
color: "#4c4e42",
|
||||
|
|
@ -158,7 +167,7 @@ elements.left_bullet = {
|
|||
"XX|XX|M1 AND EX:5",
|
||||
"XX|XX|M2",
|
||||
],
|
||||
category:"weapons",
|
||||
category:"ammunition",
|
||||
},
|
||||
elements.e_gun_left = {
|
||||
color: "#C0C0C0",
|
||||
|
|
@ -215,7 +224,7 @@ elements.left_rocket = {
|
|||
"M1 AND EX:10|XX|XX",
|
||||
"XX|XX|XX",
|
||||
],
|
||||
category:"weapons",
|
||||
category:"ammunition",
|
||||
},
|
||||
elements.right_rocket = {
|
||||
color: "#4c4e42",
|
||||
|
|
@ -224,7 +233,7 @@ elements.left_rocket = {
|
|||
"XX|XX|M1 AND EX:10",
|
||||
"XX|XX|XX",
|
||||
],
|
||||
category:"weapons",
|
||||
category:"ammunition",
|
||||
},
|
||||
elements.e_rocket_launcher_left = {
|
||||
color: "#C0C0C0",
|
||||
|
|
@ -251,4 +260,140 @@ elements.left_rocket = {
|
|||
state: "solid",
|
||||
conduct: 1,
|
||||
density: 1300,
|
||||
},
|
||||
elements.gaster_blast_left = {
|
||||
color: "#c5e9f0",
|
||||
behavior: [
|
||||
"DL|DL|XX",
|
||||
"DL AND CR:gaster_blast_left%5|XX|XX",
|
||||
"DL|DL|XX",
|
||||
],
|
||||
tick: function(pixel) {
|
||||
for (var i=0; i<3; i++) {
|
||||
if (!tryMove(pixel, pixel.x-2, pixel.y)) {
|
||||
if (!isEmpty(pixel.x-2, pixel.y,true)) {
|
||||
var newPixel = pixelMap[pixel.x-2][pixel.y];
|
||||
if (newPixel.element === "gaster_blast_left") { break; }
|
||||
if (elements[newPixel.element].state == "gas") {
|
||||
if (Math.random() > (elements[newPixel.element].hardness || 0)) {
|
||||
if (elements[newPixel.element].breakInto) {
|
||||
breakPixel(newPixel);
|
||||
}
|
||||
else {
|
||||
deletePixel(newPixel.x, newPixel.y);
|
||||
}}}}
|
||||
deletePixel(pixel.x,pixel.y);
|
||||
break;
|
||||
}}},
|
||||
category: "energy",
|
||||
state: "gas",
|
||||
insulate: true,
|
||||
},
|
||||
elements.gaster_blast_right = {
|
||||
color: "#c5e9f0",
|
||||
behavior: [
|
||||
"XX|DL|DL",
|
||||
"XX|XX|DL AND CR:gaster_blast_right%5",
|
||||
"XX|DL|DL",
|
||||
],
|
||||
tick: function(pixel) {
|
||||
for (var i=0; i<3; i++) {
|
||||
if (!tryMove(pixel, pixel.x+2, pixel.y)) {
|
||||
if (!isEmpty(pixel.x+2, pixel.y,true)) {
|
||||
var newPixel = pixelMap[pixel.x+2][pixel.y];
|
||||
if (newPixel.element === "gaster_blast_right") { break; }
|
||||
if (elements[newPixel.element].state == "gas") {
|
||||
if (Math.random() > (elements[newPixel.element].hardness || 0)) {
|
||||
if (elements[newPixel.element].breakInto) {
|
||||
breakPixel(newPixel);
|
||||
}
|
||||
else {
|
||||
deletePixel(newPixel.x, newPixel.y);
|
||||
}}}}
|
||||
deletePixel(pixel.x,pixel.y);
|
||||
break;
|
||||
}}},
|
||||
category: "energy",
|
||||
state: "gas",
|
||||
insulate: true,
|
||||
},
|
||||
elements.gaster_blaster_left = {
|
||||
color: "#ffffff",
|
||||
behavior: behaviors.WALL,
|
||||
behaviorOn: [
|
||||
"XX|XX|XX",
|
||||
"CR:gaster_blast_left|XX|XX",
|
||||
"XX|XX|XX",
|
||||
],
|
||||
category: "weapons",
|
||||
state: "solid",
|
||||
conduct: 20,
|
||||
},
|
||||
elements.gaster_blaster_right = {
|
||||
color: "#ffffff",
|
||||
behavior: behaviors.WALL,
|
||||
behaviorOn: [
|
||||
"XX|XX|XX",
|
||||
"XX|XX|CR:gaster_blast_right",
|
||||
"XX|XX|XX",
|
||||
],
|
||||
category: "weapons",
|
||||
state: "solid",
|
||||
conduct: 20,
|
||||
},
|
||||
elements.fast_bullet_left = {
|
||||
color: "#4c4e42",
|
||||
behavior: [
|
||||
"DL|DL|XX",
|
||||
"DL|XX|XX",
|
||||
"DL|DL|XX",
|
||||
],
|
||||
tick: function(pixel) {
|
||||
for (var i=0; i<3; i++) {
|
||||
if (!tryMove(pixel, pixel.x-3, pixel.y)) {
|
||||
if (!isEmpty(pixel.x-3, pixel.y,true)) {
|
||||
var newPixel = pixelMap[pixel.x-3][pixel.y];
|
||||
if (newPixel.element === "fast_bullet_left") { break; }
|
||||
if (elements[newPixel.element].state == "solid") {
|
||||
if (Math.random() > (elements[newPixel.element].hardness || 0)) {
|
||||
if (elements[newPixel.element].breakInto) {
|
||||
breakPixel(newPixel);
|
||||
}
|
||||
else {
|
||||
deletePixel(newPixel.x, newPixel.y);
|
||||
}}}}
|
||||
deletePixel(pixel.x,pixel.y);
|
||||
break;
|
||||
}}},
|
||||
category: "ammunition",
|
||||
state: "solid",
|
||||
insulate: true,
|
||||
},
|
||||
elements.fast_bullet_right = {
|
||||
color: "#4c4e42",
|
||||
behavior: [
|
||||
"XX|DL|DL",
|
||||
"XX|XX|DL",
|
||||
"XX|DL|DL",
|
||||
],
|
||||
tick: function(pixel) {
|
||||
for (var i=0; i<3; i++) {
|
||||
if (!tryMove(pixel, pixel.x+3, pixel.y)) {
|
||||
if (!isEmpty(pixel.x+3, pixel.y,true)) {
|
||||
var newPixel = pixelMap[pixel.x+3][pixel.y];
|
||||
if (newPixel.element === "fast_bullet_right") { break; }
|
||||
if (elements[newPixel.element].state == "solid") {
|
||||
if (Math.random() > (elements[newPixel.element].hardness || 0)) {
|
||||
if (elements[newPixel.element].breakInto) {
|
||||
breakPixel(newPixel);
|
||||
}
|
||||
else {
|
||||
deletePixel(newPixel.x, newPixel.y);
|
||||
}}}}
|
||||
deletePixel(pixel.x,pixel.y);
|
||||
break;
|
||||
}}},
|
||||
category: "ammunition",
|
||||
state: "solid",
|
||||
insulate: true,
|
||||
};
|
||||
Loading…
Reference in New Issue