sandboxels/mods/cannibal_cooking.js

385 lines
14 KiB
JavaScript
Raw Normal View History

2024-09-28 13:37:30 -04:00
elements.knife = {
color: ["#cbcdcd","#bdbdbd"],
behavior: behaviors.STURDYPOWDER,
reactions: {
"head": { elem2:"brain", chance:0.5 },
"water": { elem1:"rust", chance:0.0025 },
"salt_water": { elem1:"rust", chance:0.005 },
"dirty_water": { elem1:"rust", chance:0.04 },
"pool_water": { elem1:"rust", chance:0.04 },
"sugar_water": { elem1:"rust", chance:0.0035 },
"seltzer": { elem1:"rust", chance:0.006 },
"salt": { elem1:"rust", chance:0.004 },
"blood": { elem1:"rust", chance:0.003 },
"infection": { elem1:"rust", chance:0.003 },
"antibody": { elem1:"rust", chance:0.003 },
"fire": { elem1:"rust", chance:0.0025 },
"coffee": { elem1:"rust", chance:0.0003 },
"tea": { elem1:"rust", chance:0.0003 },
"broth": { elem1:"rust", chance:0.0003 },
"juice": { elem1:"rust", chance:0.0003 },
"nut_milk": { elem1:"rust", chance:0.0003 },
},
tempHigh: 1200,
stateHigh: ["molten_steel","molten_steel","ash","charcoal"],
category: "weapons",
density: 2500,
conduct: 0.15,
hardness: 0.2,
darkText: true
}
elements.brain = {
color: ["#fce3e3","#deb6c5","#f5ced5","#e87b8f"],
behavior: [
"XX|XX|XX",
"XX|CH:rotten_human_flesh%0.0005|XX",
"M2|M1|M2",
],
reactions: {
"dirty_water": { "elem1":"rotten_human_flesh", "chance":0.1 },
"fly": { "elem1":"rotten_human_flesh", "chance":0.2 },
"dioxin": { "elem1":"rotten_human_flesh", "elem2":null, "chance":0.1 },
"uranium": { "elem1":"rotten_human_flesh", "chance":0.1 },
"cancer": { "elem1":"rotten_human_flesh", "chance":0.1 },
"plague": { "elem1":"rotten_human_flesh", "elem2":null, "chance":0.3 },
"ant": { "elem1":"rotten_human_flesh", "chance":0.1 },
"worm": { "elem1":"rotten_human_flesh", "chance":0.1 },
"rat": { "elem1":"rotten_human_flesh", "chance":0.3 },
"mushroom_spore": { "elem1":"rotten_human_flesh", "chance":0.1 },
"mushroom_stalk": { "elem1":"rotten_human_flesh", "chance":0.1 },
"mercury": { "elem1":"rotten_human_flesh", "elem2":null, "chance":0.2 },
"mercury_gas": { "elem1":"rotten_human_flesh", "elem2":null, "chance":0.1 },
"virus": { "elem1":"rotten_human_flesh", "chance":0.1 },
"poison": { "elem1":"rotten_human_flesh", "elem2":null, "chance":0.5 },
"infection": { "elem1":"rotten_human_flesh", "elem2":null, "chance":0.1 },
"ink": { "elem1":"rotten_human_flesh", "elem2":null, "chance":0.1 },
"acid": { "elem1":"rotten_human_flesh", "elem2":null, "chance":0.5 },
"acid_gas": { "elem1":"rotten_human_flesh", "chance":0.4 },
"cyanide": { "elem1":"rotten_human_flesh", "elem2":null, "chance":0.5 },
},
tempHigh: 100,
stateHigh: "cooked_brain",
tempLow: -18,
stateLow: "frozen_human_flesh",
category:"life",
hidden: true,
breakInto: ["human_flesh", "blood"],
burn:10,
burnTime:200,
burnInto:["cooked_brain","cooked_brain","cooked_brain","steam","salt"],
state: "solid",
density: 1081,
conduct: 1,
};
2024-09-27 16:15:00 -04:00
elements.sweet_blood = {
color: "#ff4040",
behavior: behaviors.LIQUID,
reactions: {
2024-09-28 13:37:30 -04:00
"yeast": { elem1:"alcohol", chance:0.005 },
2024-09-27 16:15:00 -04:00
"plague": { elem1:"infection", elem2:null },
"rotten_meat": { elem1:"infection" },
"rotten_cheese": { elem1:"infection" },
"virus": { elem1:"infection", elem2:null },
"cancer": { elem1:"infection" },
"cyanide": { elem1:"infection", elem2:null },
"cyanide_gas": { elem1:"infection", elem2:null },
"mushroom_spore": { elem1:"infection", elem2:null },
"mushroom_gill": { elem1:"infection" },
"dirty_water": { elem1:"infection", elem2:null },
"rad_steam": { elem1:"infection" },
"rad_glass": { elem1:"infection" },
"rad_shard": { elem1:"infection" },
"rad_cloud": { elem1:"infection" },
"fallout": { elem1:"infection" },
"rust": { elem1:"infection", chance:0.05 },
"oxidized_copper": { elem1:"infection", chance:0.05 },
"rat": { elem1:"infection", chance:0.075 },
"flea": { elem1:"infection", chance:0.03 },
"worm": { elem1:"infection", chance:0.03 },
"mercury": { elem1:"infection", elem2:null, chance:0.05 },
"lead": { elem1:"infection", elem2:null, chance:0.01 },
"oxygen": { elem2:null, chance:0.05 },
"carbon_dioxide": { elem2:null, chance:0.05 },
"alcohol": { elem1:[null,"sugar","dna"], chance:0.02 }
},
viscosity: 12,
tempHigh: 120,
stateHigh: ["steam","sugar","oxygen","steam","sugar","oxygen","steam","salt","oxygen"],
tempLow: -5,
stateLow: "candy",
category:"food",
state: "liquid",
density: 1080,
2024-09-28 13:37:30 -04:00
stain: 0.05,
isFood: true,
hidden: true
2024-09-27 16:15:00 -04:00
}
elements.mellified_man = {
2024-09-28 13:37:30 -04:00
color: ["#f4f8db","#f8fbd0","#fbebba","#e8ce96","#b18f56","#936d43","#715234","#4b422a"],
2024-09-27 16:15:00 -04:00
behavior: [
"XX|CR:honey%0.00001|XX",
"CR:honey%0.00001|XX|CR:honey%0.00001",
"XX|M1 AND CR:honey%0.00001|XX",
],
reactions: {
"water": { elem2:"sugar_water", tempMin:70, color2:"#d7db69" },
"salt_water": { elem2:"sugar_water", tempMin:70, color2:"#d7db69"},
"sugar_water": { elem2:"sugar_water", tempMin:70, color2:"#d7db69" },
"seltzer": { elem2:"sugar_water", tempMin:70, color2:"#d7db69" },
},
tempHigh: 200,
2024-09-28 13:37:30 -04:00
stateHigh: ["cooked_human","cooked_human","honey",],
2024-09-27 16:15:00 -04:00
category:"food",
burn:15,
burnTime:200,
2024-09-28 13:37:30 -04:00
burnInto:["cooked_human","cooked_human","honey",],
2024-09-27 16:15:00 -04:00
state: "solid",
density: 1020,
conduct: 0.1,
isFood: true,
hidden: true
}
elements.human_flesh = {
behavior: [
"XX|XX|XX",
"SP|XX|SP",
"XX|M1|XX",
],
reactions: {
"honey": { elem1:"mellified_man", elem2:["honey","honey",null], chance:0.0001 },
"dirty_water": { elem1:"rotten_human_flesh", chance:0.1 },
"fly": { elem1:"rotten_human_flesh", chance:0.2 },
"dioxin": { elem1:"rotten_human_flesh", elem2:null, chance:0.1 },
"uranium": { elem1:"rotten_human_flesh", chance:0.1 },
"cancer": { elem1:"rotten_human_flesh", chance:0.1 },
"plague": { elem1:"rotten_human_flesh", elem2:null, chance:0.3 },
"ant": { elem1:"rotten_human_flesh", chance:0.1 },
"worm": { elem1:"rotten_human_flesh", chance:0.1 },
"rat": { elem1:"rotten_human_flesh", chance:0.3 },
"mushroom_spore": { elem1:"rotten_human_flesh", chance:0.1 },
"mushroom_stalk": { elem1:"rotten_human_flesh", chance:0.1 },
"mycelium": { elem1:"rotten_human_flesh", chance:0.1 },
"hyphae": { elem1:"rotten_human_flesh", chance:0.1 },
"mercury": { elem1:"rotten_human_flesh", elem2:null, chance:0.2 },
"mercury_gas": { elem1:"rotten_human_flesh", elem2:null, chance:0.1 },
"virus": { elem1:"rotten_human_flesh", chance:0.1 },
"poison": { elem1:"rotten_human_flesh", elem2:null, chance:0.5 },
"infection": { elem1:"rotten_human_flesh", elem2:null, chance:0.1 },
"ink": { elem1:"rotten_human_flesh", elem2:null, chance:0.1 },
"acid": { elem1:"rotten_human_flesh", elem2:null, chance:0.5 },
"acid_gas": { elem1:"rotten_human_flesh", chance:0.4 },
"cyanide": { elem1:"rotten_human_flesh", elem2:null, chance:0.5 },
"cyanide_gas": { elem1:"rotten_human_flesh", elem2:null, chance:0.5 },
"rotten_cheese": { elem1:"rotten_human_flesh", chance:0.02 },
"fallout": { elem1:"rotten_human_flesh", chance:0.2 },
"water": { elem2:"broth", tempMin:70 },
"salt_water": { elem2:"broth", tempMin:70 },
"sugar_water": { elem2:"broth", tempMin:70 },
"seltzer": { elem2:"broth", tempMin:70 },
"salt": { elem1:"cured_human_flesh" },
"vinegar": { elem1:"cured_human_flesh", chance:0.1 },
},
tempHigh: 100,
2024-09-28 13:37:30 -04:00
stateHigh: "cooked_human",
2024-09-27 16:15:00 -04:00
tempLow: -18,
2024-09-28 13:37:30 -04:00
stateLow: "frozen_human_flesh",
2024-09-27 16:15:00 -04:00
category:"food",
burn:15,
burnTime:200,
2024-09-28 13:37:30 -04:00
burnInto:"cooked_human",
2024-09-27 16:15:00 -04:00
state: "solid",
density: 1050,
conduct: 0.2,
isFood: true,
hidden: true
}
2024-09-28 13:37:30 -04:00
elements.cooked_brain = {
color: ["#ae7d5b","#9b6d54","#7e4d31"],
behavior: behaviors.STURDYPOWDER,
tick: function(pixel) {
if (pixel.temp > 100 && Math.random() < 0.003 && isEmpty(pixel.x,pixel.y-1)) {
changePixel(pixel,"grease")
}
},
reactions: {
"water": { elem2:"broth", tempMin:70 },
"salt_water": { elem2:"broth", tempMin:70 },
"sugar_water": { elem2:"broth", tempMin:70 },
"dirty_water": { elem2:"broth", tempMin:70, color2:"#d7db69" },
"seltzer": { elem2:"broth", tempMin:70 }
},
tempHigh: 300,
stateHigh: "ash",
category:"food",
hidden:true,
burn:10,
burnTime:200,
burnInto: "ash",
state: "solid",
density: 1005,
isFood: true
}
elements.cooked_human = {
color: ["#ae7d5b","#9b6d54","#7e4d31"],
behavior: behaviors.STURDYPOWDER,
tick: function(pixel) {
if (pixel.temp > 100 && Math.random() < 0.0025 && isEmpty(pixel.x,pixel.y-1)) {
changePixel(pixel,"grease")
}
},
reactions: {
"water": { elem2:"broth", tempMin:70 },
"salt_water": { elem2:"broth", tempMin:70 },
"sugar_water": { elem2:"broth", tempMin:70 },
"dirty_water": { elem2:"broth", tempMin:70, color2:"#d7db69" },
"seltzer": { elem2:"broth", tempMin:70 }
},
tempHigh: 300,
stateHigh: "ash",
category:"food",
hidden:true,
burn:10,
burnTime:200,
burnInto: "ash",
state: "solid",
density: 1005,
isFood: true
}
elements.frozen_human_flesh = {
color: ["#399e8f","#49baa9","#6cd2c6","#40a197"],
behavior: behaviors.STURDYPOWDER,
temp: -18,
tempHigh: 0,
stateHigh: "human_flesh",
category:"food",
hidden:true,
state: "solid",
density: 1070,
isFood: true
}
2024-09-27 16:15:00 -04:00
elements.rotten_human_flesh = {
name: "rotten_meat",
color: ["#b8b165","#b89765"],
behavior: [
"XX|CR:plague,stench,stench,stench,fly%0.25 AND CH:meat>rotten_meat%1 AND CH:human_flesh>rotten_human_flesh%1|XX",
"SP%99 AND CH:meat>rotten_meat%1 AND CH:human_flesh>rotten_human_flesh%1|XX|SP%99 AND CH:meat>rotten_meat%1 AND CH:human_flesh>rotten_human_flesh%1",
"XX|M1 AND CH:meat>rotten_meat%1 AND CH:human_flesh>rotten_human_flesh%1|XX",
],
reactions: {
"water": { elem2:"broth", tempMin:70, color2:"#d7db69" },
"salt_water": { elem2:"broth", tempMin:70, color2:"#d7db69" },
"sugar_water": { elem2:"broth", tempMin:70, color2:"#d7db69" },
"dirty_water": { elem2:"broth", tempMin:70, color2:"#d7db69" },
"seltzer": { elem2:"broth", tempMin:70, color2:"#d7db69" }
},
tempHigh: 300,
stateHigh: ["plague","ash","ammonia"],
category:"food",
hidden: true,
burn:12,
burnTime:200,
burnInto:["plague","ash","ammonia"],
state: "solid",
density: 1005,
conduct: 0.1,
isFood: true
}
elements.cured_human_flesh = {
name: "cured_meat",
color: ["#be5c4b","#c8846f","#dda592","#bc6157"],
behavior: [
"XX|XX|XX",
"SP|XX|SP",
"XX|M1|XX",
],
reactions: {
"honey": { elem1:"mellified_man", elem2:["honey","honey",null], chance:0.0001 },
"water": { elem2:"broth", tempMin:70 },
"salt_water": { elem2:"broth", tempMin:70 },
"sugar_water": { elem2:"broth", tempMin:70 },
"seltzer": { elem2:"broth", tempMin:70 },
},
tempHigh: 100,
2024-09-28 13:37:30 -04:00
stateHigh: "cooked_human",
2024-09-27 16:15:00 -04:00
category:"food",
burn:15,
burnTime:200,
2024-09-28 13:37:30 -04:00
burnInto:"cooked_human",
2024-09-27 16:15:00 -04:00
state: "solid",
density: 1019.5,
conduct: 0.3,
isFood: true,
hidden: true
}
elements.human_corpse = {
color: ["#069469","#047e99","#7f5fb0"],
category: "life",
hidden: true,
density: 1500,
state: "solid",
conduct: .05,
temp: 37,
tempHigh: 200,
2024-09-28 13:37:30 -04:00
stateHigh: "cooked_human",
2024-09-27 16:15:00 -04:00
tempLow: -30,
2024-09-28 13:37:30 -04:00
stateLow: "frozen_human_flesh",
2024-09-27 16:15:00 -04:00
burn: 10,
burnTime: 250,
2024-09-28 13:37:30 -04:00
burnInto: "cooked_human",
2024-09-27 16:15:00 -04:00
breakInto: ["blood","human_flesh","bone"],
forceSaveColor: true,
reactions: {
"honey": { elem1:"mellified_man", elem2:["honey","honey",null], chance:0.0005 },
"cancer": { elem1:"cancer", chance:0.005 },
2024-09-28 13:37:30 -04:00
"radiation": { elem1:["ash","human_flesh","rotten_human_flesh","cooked_human"], chance:0.4 },
"neutron": { elem1:["ash","human_flesh","rotten_human_flesh","cooked_human"], chance:0.01 },
"fallout": { elem1:["ash","human_flesh","rotten_human_flesh","cooked_human"], chance:0.01 },
2024-09-27 16:15:00 -04:00
"plague": { elem1:["plague","plague","rotten_human_flesh"], chance:0.05 },
"stink_bug": { elem2:"stench", oneway:true },
2024-09-28 13:37:30 -04:00
"sun": { elem1:"cooked_human" },
2024-09-27 16:15:00 -04:00
},
}
elements.decapitated_head = {
color: ["#f3e7db","#f7ead0","#eadaba","#d7bd96","#a07e56","#825c43","#604134","#3a312a"],
category: "life",
hidden: true,
density: 1080,
state: "solid",
conduct: .05,
temp: 37,
tempHigh: 200,
2024-09-28 13:37:30 -04:00
stateHigh: "cooked_human",
2024-09-27 16:15:00 -04:00
tempLow: -30,
2024-09-28 13:37:30 -04:00
stateLow: "frozen_human_flesh",
2024-09-27 16:15:00 -04:00
burn: 10,
burnTime: 250,
2024-09-28 13:37:30 -04:00
burnInto: "cooked_human",
2024-09-27 16:15:00 -04:00
breakInto: ["blood","human_flesh","bone"],
forceSaveColor: true,
reactions: {
"honey": { elem1:"mellified_man", elem2:["honey","honey",null], chance:0.0005 },
"cancer": { elem1:"cancer", chance:0.005 },
2024-09-28 13:37:30 -04:00
"radiation": { elem1:["ash","human_flesh","rotten_human_flesh","cooked_human"], chance:0.4 },
"neutron": { elem1:["ash","human_flesh","rotten_human_flesh","cooked_human"], chance:0.03 },
"fallout": { elem1:["ash","human_flesh","rotten_human_flesh","cooked_human"], chance:0.03 },
2024-09-27 16:15:00 -04:00
"plague": { elem1:"plague", chance:0.05 },
2024-09-28 13:37:30 -04:00
"sun": { elem1:"cooked_human" },
2024-09-27 16:15:00 -04:00
"light": { stain1:"#825043" },
},
}
if (!elements.blood.reactions) { elements.blood.reactions = {} }
elements.blood.reactions.caramel = { "elem1": "sweet_blood", "elem2": null, chance:0.001 };
elements.blood.reactions.sugar = { "elem2": "sweet_blood", "elem2": null, chance:0.0005 };