From 651e5dbee1e7ee7045702bd7f299173ecd253aaa Mon Sep 17 00:00:00 2001 From: "Laetitia (O-01-67)" <68935009+O-01-67@users.noreply.github.com> Date: Mon, 13 Mar 2023 11:54:55 -0400 Subject: [PATCH] add some dummied-out oil to-do code --- mods/ochem_prerelease.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/mods/ochem_prerelease.js b/mods/ochem_prerelease.js index 5b7fa5cc..d99830a8 100644 --- a/mods/ochem_prerelease.js +++ b/mods/ochem_prerelease.js @@ -748,7 +748,22 @@ if(enabledMods.includes(fireMod) && enabledMods.includes(changeTempMod)) { delete elements.oil.tempHigh; elements.oil.tick = function(pixel) { - if(pixel.temp < + if(!pixel.role) { + var value = Math.random() + if(value < 0.03) { + pixel.role = "lpg"; + }; + }; + + if(pixel.role == "lpg") { + var value = Math.random() + //LPG composition weighted chooser + }; + + + if(pixel.temp > 30) { //https://www.crownoil.co.uk/guides/crude-oil-fractional-distillation/: Butane and propane and other petroleum gases are formed right at the top of the distillation tower, where it is coolest, a very mild 25°C: the temperature range that forms these gases is between 25°C and 50°C. These gases are the lightest products formed in crude oil distillation and are flammable gases. + //LPG change switch(pixel.role) statement + }; }; */ } else {