Adds Water Vapor and the Electrolyzer (#30875)

* this will work first try (adds water vapor and the electrolyzer)

* naming fix

* removes a warn

* makes water vapor able to be seen and adds it to the tiny_test atmos map

* Build Rust library

* adds the electrolyzer to all maps, and linter fix

* linter fix part 2

* electrolyzer tweak and more work on the test_atmos map

* tgui rebuilding

* re
rebuilding tgui

* makes the electrolyzer consume power and some small test atmos touch ups

* im axing the test_tiny because i don't want to map it

* clarifies how much power the electrolyzer uses

* Build Rust library

* suggestionss

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com>
Signed-off-by: Hayden Redacted <91229275+haydenredacted@users.noreply.github.com>

* updating the SM manual

* electrolyzer tweaks

* dg suggestions pt. 2

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: Hayden Redacted <91229275+haydenredacted@users.noreply.github.com>

* removed unused code

---------

Signed-off-by: Hayden Redacted <91229275+haydenredacted@users.noreply.github.com>
Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com>
This commit is contained in:
Hayden Redacted
2025-12-10 00:04:11 +00:00
committed by GitHub
co-authored by DGamerL JimKil3 paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com> warriorstar-orion
parent be48d7598f
commit 5728e0c46f
54 changed files with 671 additions and 117 deletions
+4
View File
@@ -11,6 +11,7 @@
var/nitrox = 0
var/agentbx = 0
var/hydrogen = 0
var/water_vapor = 0
/datum/buildmode_mode/atmos/show_help(mob/user)
@@ -33,6 +34,7 @@
nitrox = tgui_input_number(user, "N2O ratio", "Input", 0, 100000, 0, round_value = FALSE)
agentbx = tgui_input_number(user, "Agent B ratio", "Input", 0, 100000, 0, round_value = FALSE)
hydrogen = tgui_input_number(user, "Hydrogen ratio", "Input", 0, 100000, 0, round_value = FALSE)
water_vapor = tgui_input_number(user, "Water Vapor ratio", "Input", 0, 100000, 0, round_value = FALSE)
/datum/buildmode_mode/atmos/proc/ppratio_to_moles(ppratio)
// ideal gas equation: Pressure * Volume = Moles * r * Temperature
@@ -54,6 +56,7 @@
air.set_sleeping_agent(ppratio_to_moles(nitrox))
air.set_agent_b(ppratio_to_moles(agentbx))
air.set_hydrogen(ppratio_to_moles(hydrogen))
air.set_water_vapor(ppratio_to_moles(water_vapor))
for(var/turf/T in block(cornerA,cornerB))
if(issimulatedturf(T))
@@ -70,6 +73,7 @@
T.sleeping_agent = air.sleeping_agent()
T.agent_b = air.agent_b()
T.hydrogen = air.hydrogen()
T.water_vapor = air.water_vapor()
// admin log
log_admin("Build Mode: [key_name(user)] changed the atmos of region [COORD(cornerA)] to [COORD(cornerB)]. T: [temperature], P: [pressure], Ox: [oxygen]%, N2: [nitrogen]%, Plsma: [plasma]%, CO2: [cdiox]%, N2O: [nitrox]%. [ctrl_click ? "Overwrote base space turf gases." : ""]")