From df28b94102e16fe0f243dba58374201d5abed237 Mon Sep 17 00:00:00 2001 From: Thera-Pissed <90987989+Thera-Pissed@users.noreply.github.com> Date: Wed, 1 Nov 2023 16:34:17 -0500 Subject: [PATCH] instructions, open turf tanks, canister, safe limit on examine --- code/__DEFINES/atmospherics.dm | 2 ++ code/game/machinery/shuttle/shuttle_heater.dm | 17 +++++++++++++++++ code/game/turfs/open/floor/reinf_floor.dm | 8 ++++++++ .../atmospherics/machinery/portable/canister.dm | 14 ++++++++++++-- 4 files changed, 39 insertions(+), 2 deletions(-) diff --git a/code/__DEFINES/atmospherics.dm b/code/__DEFINES/atmospherics.dm index 803aee0e2e41..951ef26285be 100644 --- a/code/__DEFINES/atmospherics.dm +++ b/code/__DEFINES/atmospherics.dm @@ -210,8 +210,10 @@ #define ATMOS_TANK_PLASMA "plasma=70000;TEMP=293.15" #define ATMOS_TANK_O2 "o2=100000;TEMP=293.15" #define ATMOS_TANK_N2 "n2=100000;TEMP=293.15" +#define ATMOS_TANK_HYDROGEN "hydrogen=100000;TEMP=293.15" #define ATMOS_TANK_AIRMIX "o2=2644;n2=10580;TEMP=293.15" #define ATMOS_TANK_FUEL "o2=33000;plasma=66000;TEMP=293.15" +#define ATMOS_TANK_HYDROGEN_FUEL "o2=33000;h2=66000;TEMP=293.15" //PLANETARY /// what pressure you have to be under to increase the effect of equipment meant for lavaland diff --git a/code/game/machinery/shuttle/shuttle_heater.dm b/code/game/machinery/shuttle/shuttle_heater.dm index 5acfb1f3cace..1c5f27fd3322 100644 --- a/code/game/machinery/shuttle/shuttle_heater.dm +++ b/code/game/machinery/shuttle/shuttle_heater.dm @@ -286,6 +286,7 @@ /obj/machinery/atmospherics/components/unary/shuttle/fire_heater/examine(mob/user) . = ..() . += "The engine heater's gas dial reads [return_gas()] kpa." + . += "A lightly burnt hazard sticker reports a safe pressure of [PRESSURE_LIMIT] kpa. " if(damage_state == DAMAGE_MED && metal_repair == FALSE) . += "The engine heater's plating could be repaired with metal." if(damage_state == DAMAGE_MED && metal_repair == TRUE) @@ -431,3 +432,19 @@ return for(var/obj/machinery/power/shuttle/engine/E in engine_turf) E.update_icon_state() + +/obj/item/paper/guides/jobs/engi/combustion_thruster + name = "paper- 'Combustion Thruster Safety Instructions'" + default_raw_text = {"

Combustion Thruster Basics

+

Firstly, combustion thrusters are delicate machines due to their unique function, and therefore come with certain limits to said function. + The specific limit to remember is 1000kpa, above which your warranty will expire and the combustion heater will begin to take damage, with catastrophic falure inevitable after periods of high pressure. + The second thing to keep in mind is the fuel mix you are using. If you put in the wrong ratio, the thruster will waste the excess and you'll get less thrust. + The most notable ratios are 2:1 of Hydrogen and Oxygen, and 1:1 of Plasma and Oyxgen. + Additionally, N2O has been known to provide beneficial properties while being a potent oxidizer.

+
+

Its making scary noises and leaking!

+

Set your internals, pull a fire alarm, grab a fire suit, and continue with the following steps. Ensure you disable all sources of ignition

    +
  1. Place two sheets of metal over the leak in the heater
  2. +
  3. Wrench the new sheets of metal into place, to stop the leak
  4. +
  5. Crowbar back in the insulation layer to stop the heat transfer
  6. +
  7. For small damages, tighten loosened screws.
"} diff --git a/code/game/turfs/open/floor/reinf_floor.dm b/code/game/turfs/open/floor/reinf_floor.dm index 04f005417eb0..c2138f21a201 100644 --- a/code/game/turfs/open/floor/reinf_floor.dm +++ b/code/game/turfs/open/floor/reinf_floor.dm @@ -131,6 +131,14 @@ name = "fuel mix floor" initial_gas_mix = ATMOS_TANK_FUEL +/turf/open/floor/engine/hydrogen + article = "an" + name = "\improper hydrogen floor" + initial_gas_mix = ATMOS_TANK_HYDROGEN + +/turf/open/floor/engine/hydrogen_fuel + name = "hydrogen mix floor" + initial_gas_mix = ATMOS_TANK_HYDROGEN_FUEL /turf/open/floor/engine/cult name = "engraved floor" diff --git a/code/modules/atmospherics/machinery/portable/canister.dm b/code/modules/atmospherics/machinery/portable/canister.dm index b69b324c4de8..76c52d3583ef 100644 --- a/code/modules/atmospherics/machinery/portable/canister.dm +++ b/code/modules/atmospherics/machinery/portable/canister.dm @@ -152,11 +152,16 @@ desc = "Hydrogen. Used in thruster fuel" icon_state = "yellow" gas_type = GAS_HYDROGEN - filled = 1 + +/obj/machinery/portable_atmospherics/canister/fuel + name = "fuel canister" + desc = "A highly volatile mix of hydrogen and oxygen." + icon_state = "red" /obj/machinery/portable_atmospherics/canister/fuel_test - name = "hydrogen canister" + name = "test canister" desc = "Hydrogen. Used in thruster fuel" + icon_state = "nob" /obj/machinery/portable_atmospherics/canister/fuel_test/create_gas() air_contents.set_moles(GAS_O2,500) @@ -232,6 +237,11 @@ air_contents.set_moles(GAS_O2, (O2STANDARD * maximum_pressure * filled) * air_contents.return_volume() / (R_IDEAL_GAS_EQUATION * air_contents.return_temperature())) air_contents.set_moles(GAS_N2, (N2STANDARD * maximum_pressure * filled) * air_contents.return_volume() / (R_IDEAL_GAS_EQUATION * air_contents.return_temperature())) +/obj/machinery/portable_atmospherics/canister/fuel/create_gas() + air_contents.set_temperature(starter_temp) + air_contents.set_moles(GAS_HYDROGEN, (2/3 * maximum_pressure * filled) * air_contents.return_volume() / (R_IDEAL_GAS_EQUATION * air_contents.return_temperature())) + air_contents.set_moles((GAS_O2), (1/3 * maximum_pressure * filled) * air_contents.return_volume() / (R_IDEAL_GAS_EQUATION * air_contents.return_temperature())) + /obj/machinery/portable_atmospherics/canister/update_icon_state() if(machine_stat & BROKEN) icon_state = "[icon_state]-1"