From 46d72da46acd0bb23110b38e036c0dc088f9db88 Mon Sep 17 00:00:00 2001 From: Mek Date: Tue, 16 Aug 2022 02:15:46 -0400 Subject: [PATCH 1/2] atmos be damned --- .../atmospherics/gasmixtures/reactions.dm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/code/modules/atmospherics/gasmixtures/reactions.dm b/code/modules/atmospherics/gasmixtures/reactions.dm index 2e4befd8baf3..9b1b9121e561 100644 --- a/code/modules/atmospherics/gasmixtures/reactions.dm +++ b/code/modules/atmospherics/gasmixtures/reactions.dm @@ -691,8 +691,8 @@ nobliumformation = 1001 /datum/gas_reaction/metalhydrogen/init_reqs() min_requirements = list( - /datum/gas/hydrogen = 100, - /datum/gas/bz = 5, + /datum/gas/hydrogen = 1000, + /datum/gas/bz = 50, "TEMP" = METAL_HYDROGEN_MINIMUM_HEAT ) @@ -702,18 +702,18 @@ nobliumformation = 1001 if(!isturf(holder)) return NO_REACTION var/turf/open/location = holder - ///the more heat you use the higher is this factor - var/increase_factor = min((temperature / METAL_HYDROGEN_MINIMUM_HEAT), 5) + ///More heat means higher chance to react but less efficiency, i.e. higher speed lower yield + var/increase_factor = min(log(10 , (temperature / METAL_HYDROGEN_MINIMUM_HEAT)), 5) //e7-e12 range ///the more moles you use and the higher the heat, the higher is the efficiency - var/heat_efficency = air.get_moles(/datum/gas/hydrogen)* 0.01 * increase_factor + var/heat_efficency = air.get_moles(/datum/gas/hydrogen)* 0.01 * increase_factor //This variable name is dumb but I can't be assed to change it var/pressure = air.return_pressure() var/energy_used = heat_efficency * METAL_HYDROGEN_FORMATION_ENERGY if(pressure >= METAL_HYDROGEN_MINIMUM_PRESSURE && temperature >= METAL_HYDROGEN_MINIMUM_HEAT) - air.adjust_moles(/datum/gas/bz, -(heat_efficency * 0.01)) + air.adjust_moles(/datum/gas/bz, -(heat_efficency * 0.1)) //0.001-0.005 x mols of present hydrogen as BZ consumed, something about it decomposing if (prob(20 * increase_factor)) - air.adjust_moles(/datum/gas/hydrogen, -(heat_efficency * 3.5)) - if (prob(100 / increase_factor)) + air.adjust_moles(/datum/gas/hydrogen, -(heat_efficency * 14)) //14-70% of present hydrogen consumed. + if (prob(25 / increase_factor)) new /obj/item/stack/sheet/mineral/metal_hydrogen(location) SSresearch.science_tech.add_point_type(TECHWEB_POINT_TYPE_DEFAULT, min((heat_efficency * increase_factor * 0.5), METAL_HYDROGEN_RESEARCH_MAX_AMOUNT)) From f3c3fd01db44728d08de6400d1b4104458cca17b Mon Sep 17 00:00:00 2001 From: Mek Date: Tue, 16 Aug 2022 13:49:07 -0400 Subject: [PATCH 2/2] half BZ --- code/modules/atmospherics/gasmixtures/reactions.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/atmospherics/gasmixtures/reactions.dm b/code/modules/atmospherics/gasmixtures/reactions.dm index 9b1b9121e561..9ca49971cd91 100644 --- a/code/modules/atmospherics/gasmixtures/reactions.dm +++ b/code/modules/atmospherics/gasmixtures/reactions.dm @@ -710,7 +710,7 @@ nobliumformation = 1001 var/energy_used = heat_efficency * METAL_HYDROGEN_FORMATION_ENERGY if(pressure >= METAL_HYDROGEN_MINIMUM_PRESSURE && temperature >= METAL_HYDROGEN_MINIMUM_HEAT) - air.adjust_moles(/datum/gas/bz, -(heat_efficency * 0.1)) //0.001-0.005 x mols of present hydrogen as BZ consumed, something about it decomposing + air.adjust_moles(/datum/gas/bz, -(heat_efficency * 0.05)) //0.0005-0.0025 x mols of present hydrogen as BZ consumed, something about it decomposing if (prob(20 * increase_factor)) air.adjust_moles(/datum/gas/hydrogen, -(heat_efficency * 14)) //14-70% of present hydrogen consumed. if (prob(25 / increase_factor))