Skip to content

Commit

Permalink
instructions, open turf tanks, canister, safe limit on examine
Browse files Browse the repository at this point in the history
  • Loading branch information
Thera-Pissed committed Nov 1, 2023
1 parent d2eb7e8 commit df28b94
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
2 changes: 2 additions & 0 deletions code/__DEFINES/atmospherics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions code/game/machinery/shuttle/shuttle_heater.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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 <b>metal</b>."
if(damage_state == DAMAGE_MED && metal_repair == TRUE)
Expand Down Expand Up @@ -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 = {"<h1>Combustion Thruster Basics</h1>
<p>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.</p>
<br>
<h3>Its making scary noises and leaking!</h3>
<p>Set your internals, pull a fire alarm, grab a fire suit, and continue with the following steps. <b>Ensure you disable all sources of ignition</b></p><ol>
<li>Place two sheets of metal over the leak in the heater</li>
<li>Wrench the new sheets of metal into place, to stop the leak</li>
<li>Crowbar back in the insulation layer to stop the heat transfer</li>
<li>For small damages, tighten loosened screws.</li></ol>"}
8 changes: 8 additions & 0 deletions code/game/turfs/open/floor/reinf_floor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 12 additions & 2 deletions code/modules/atmospherics/machinery/portable/canister.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit df28b94

Please sign in to comment.