Lean mod
I wrote half of this code on my phone so it probably has one of the stupid-type errors
This commit is contained in:
parent
12329ab062
commit
cd0ae8a929
|
|
@ -0,0 +1,92 @@
|
|||
elements.codeine_phosphate = {
|
||||
density: 1320, //pure codeine density, couldn't find phosphate's D
|
||||
tempHigh: 157.5,
|
||||
color: "#e0e0e0",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "powders",
|
||||
state: "solid",
|
||||
reactions: {
|
||||
"promethazine_hydrochloride": { elem1: null, elem2: "cp_ph_mixture" },
|
||||
"wet_promethazine_hydrochloride": { elem1: null, elem2: "cp_ph_mixture" },
|
||||
},
|
||||
}
|
||||
|
||||
elements.promethazine_hydrochloride = {
|
||||
density: 1100, //see above density
|
||||
tempHigh: 223, //decomps?
|
||||
color: "#e0e7e0",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "powders",
|
||||
state: "solid",
|
||||
reactions: {
|
||||
"water": { elem1: null, elem2: "wet_promethazine_hydrochloride" },
|
||||
"steam": { elem1: null, elem2: "wet_promethazine_hydrochloride" },
|
||||
},
|
||||
}
|
||||
|
||||
elements.wet_promethazine_hydrochloride = {
|
||||
density: 1600, //guess
|
||||
tick: function(pixel) { //thermal splitting function
|
||||
var neighbors = [ [-1,0], [1,0], [0,-1], [0,1] ]
|
||||
var randomNeighbor = neighbors[Math.floor(Math.random() * neighbors.length)]
|
||||
var rnx = randomNeighbor[0]
|
||||
var rny = randomNeighbor[1]
|
||||
if(pixel.temp >= 100) {
|
||||
if(!isEmpty(pixel.x+rnx, pixel.y+rny, true)) {
|
||||
createPixel("steam", pixel.x+rnx, pixel.y+rny)
|
||||
changePixel(pixel, "promethazine_hydrochloride")
|
||||
}
|
||||
}
|
||||
},
|
||||
color: "#e0e7e0",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "powders",
|
||||
state: "solid",
|
||||
}
|
||||
|
||||
elements.cp_ph_mixture = {
|
||||
density: 1230, //using the 6.25/10 ratio from a CP/PH cough syrup from Morton Grove Pharmaceuticals, Inc. because it was in hot on r/lean (of course there’s a subreddit for that) | this is 6.25 mg pr.hy. and 10 mg co.ph. per 5mL dose, but ratios and reactions aren’t possible and implementing them to this accuracy would also require an accurate cough syrup density
|
||||
tick: function(pixel) { //thermal splitting function
|
||||
var neighbors = [ [-1,0], [1,0], [0,-1], [0,1] ]
|
||||
var randomNeighbor = neighbors[Math.floor(Math.random() * neighbors.length)]
|
||||
var rnx = randomNeighbor[0]
|
||||
var rny = randomNeighbor[1]
|
||||
if(pixel.temp >= 157.5) {
|
||||
if(!isEmpty(pixel.x+rnx, pixel.y+rny, true)) {
|
||||
createPixel("molten_codeine_phosphate", pixel.x+rnx, pixel.y+rny)
|
||||
changePixel(pixel, "promethazine_hydrochloride")
|
||||
}
|
||||
}
|
||||
},
|
||||
color: "#e0e4e0",
|
||||
behavior: behaviors.POWDER,
|
||||
category: "powders",
|
||||
hidden: true,
|
||||
state: "solid",
|
||||
reactions: {
|
||||
"sugar_water": { elem1: "cough_syrup", elem2: "null" },
|
||||
},
|
||||
}
|
||||
|
||||
elements.cough_syrup = {
|
||||
density: 1200 //(made up)
|
||||
viscosity: 190, //https://www.dixonvalve.com/sites/default/files/product/files/brochures-literature/viscosity%20chart.pdf
|
||||
color: "#870870",
|
||||
behavior: behaviors.LIQUID,
|
||||
category: "liquids",
|
||||
hidden: true,
|
||||
state: "liquid",
|
||||
reactions: {
|
||||
"soda": { elem1: "lean", elem2: "lean" },
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
elements.lean = {
|
||||
density: (3*1037+1200)*4, //https://www.quora.com/How-do-I-make-a-cup-of-lean-And-how-many-millilteres-of-cough-syrup-usually-goes-into-a-standard-cup-of-lean ignoring ice and other things
|
||||
viscosity: (1.32*3+190)/4, //with Sprite density | idk if the above math could apply to viscosity, but no scientists are willing to measure the physical properties of lean
|
||||
color: "#cb58fc",
|
||||
behavior: behaviors.LIQUID,
|
||||
category: "liquids",
|
||||
hidden: true, //for best results, play on unlock mode :eggTF:
|
||||
state: "liquid",
|
||||
Loading…
Reference in New Issue