From b1acb4b73c4366d3c2c475e83a840a189d4b94fd Mon Sep 17 00:00:00 2001 From: Nekonico <163950752+DBNekonico@users.noreply.github.com> Date: Sat, 28 Sep 2024 10:37:30 -0700 Subject: [PATCH] Update cannibal_cooking.js --- mods/cannibal_cooking.js | 192 ++++++++++++++++++++++++++++++++++----- 1 file changed, 168 insertions(+), 24 deletions(-) diff --git a/mods/cannibal_cooking.js b/mods/cannibal_cooking.js index 3302e216..b5cdb260 100644 --- a/mods/cannibal_cooking.js +++ b/mods/cannibal_cooking.js @@ -1,8 +1,83 @@ +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, +}; + elements.sweet_blood = { color: "#ff4040", behavior: behaviors.LIQUID, reactions: { - "yeast": { elem1:["infection","infection","alcohol","yeast",null] }, + "yeast": { elem1:"alcohol", chance:0.005 }, "plague": { elem1:"infection", elem2:null }, "rotten_meat": { elem1:"infection" }, "rotten_cheese": { elem1:"infection" }, @@ -37,11 +112,13 @@ elements.sweet_blood = { category:"food", state: "liquid", density: 1080, - stain: 0.05 + stain: 0.05, + isFood: true, + hidden: true } elements.mellified_man = { - color: ["#be5c4b","#c8846f","#dda592","#bc6157"], + color: ["#f4f8db","#f8fbd0","#fbebba","#e8ce96","#b18f56","#936d43","#715234","#4b422a"], behavior: [ "XX|CR:honey%0.00001|XX", "CR:honey%0.00001|XX|CR:honey%0.00001", @@ -54,11 +131,11 @@ elements.mellified_man = { "seltzer": { elem2:"sugar_water", tempMin:70, color2:"#d7db69" }, }, tempHigh: 200, - stateHigh: ["cooked_meat","cooked_meat","caramel",], + stateHigh: ["cooked_human","cooked_human","honey",], category:"food", burn:15, burnTime:200, - burnInto:["cooked_meat","cooked_meat","caramel",], + burnInto:["cooked_human","cooked_human","honey",], state: "solid", density: 1020, conduct: 0.1, @@ -107,13 +184,13 @@ elements.human_flesh = { "vinegar": { elem1:"cured_human_flesh", chance:0.1 }, }, tempHigh: 100, - stateHigh: "cooked_meat", + stateHigh: "cooked_human", tempLow: -18, - stateLow: "frozen_meat", + stateLow: "frozen_human_flesh", category:"food", burn:15, burnTime:200, - burnInto:"cooked_meat", + burnInto:"cooked_human", state: "solid", density: 1050, conduct: 0.2, @@ -121,6 +198,73 @@ elements.human_flesh = { hidden: true } +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 +} + elements.rotten_human_flesh = { name: "rotten_meat", color: ["#b8b165","#b89765"], @@ -165,11 +309,11 @@ elements.cured_human_flesh = { "seltzer": { elem2:"broth", tempMin:70 }, }, tempHigh: 100, - stateHigh: "cooked_meat", + stateHigh: "cooked_human", category:"food", burn:15, burnTime:200, - burnInto:"cooked_meat", + burnInto:"cooked_human", state: "solid", density: 1019.5, conduct: 0.3, @@ -186,23 +330,23 @@ elements.human_corpse = { conduct: .05, temp: 37, tempHigh: 200, - stateHigh: "cooked_meat", + stateHigh: "cooked_human", tempLow: -30, - stateLow: "frozen_meat", + stateLow: "frozen_human_flesh", burn: 10, burnTime: 250, - burnInto: "cooked_meat", + burnInto: "cooked_human", 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 }, - "radiation": { elem1:["ash","human_flesh","rotten_human_flesh","cooked_meat"], chance:0.4 }, - "neutron": { elem1:["ash","human_flesh","rotten_human_flesh","cooked_meat"], chance:0.01 }, - "fallout": { elem1:["ash","human_flesh","rotten_human_flesh","cooked_meat"], chance:0.01 }, + "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 }, "plague": { elem1:["plague","plague","rotten_human_flesh"], chance:0.05 }, "stink_bug": { elem2:"stench", oneway:true }, - "sun": { elem1:"cooked_meat" }, + "sun": { elem1:"cooked_human" }, }, } @@ -215,22 +359,22 @@ elements.decapitated_head = { conduct: .05, temp: 37, tempHigh: 200, - stateHigh: "cooked_meat", + stateHigh: "cooked_human", tempLow: -30, - stateLow: "frozen_meat", + stateLow: "frozen_human_flesh", burn: 10, burnTime: 250, - burnInto: "cooked_meat", + burnInto: "cooked_human", 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 }, - "radiation": { elem1:["ash","meat","rotten_meat","cooked_meat"], chance:0.4 }, - "neutron": { elem1:["ash","meat","rotten_meat","cooked_meat"], chance:0.03 }, - "fallout": { elem1:["ash","meat","rotten_meat","cooked_meat"], chance:0.03 }, + "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 }, "plague": { elem1:"plague", chance:0.05 }, - "sun": { elem1:"cooked_meat" }, + "sun": { elem1:"cooked_human" }, "light": { stain1:"#825043" }, }, }