mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-22 08:01:16 +00:00
ZAS procs are now more standardized, needs more comments though. Connections between zones now self-manage themselves, adjusting things if/when the turfs they are on change zones. (The check for this is very efficient and fast, but a bit hard to read codewise) Zone share percent set to 4. Seems to work well.
33 lines
765 B
Plaintext
33 lines
765 B
Plaintext
|
|
/obj/item/weapon/tank/oxygen
|
|
name = "Gas Tank (Oxygen)"
|
|
desc = "A tank of oxygen"
|
|
icon_state = "oxygen"
|
|
distribute_pressure = ONE_ATMOSPHERE*O2STANDARD
|
|
|
|
|
|
New()
|
|
..()
|
|
air_contents.adjust((6*ONE_ATMOSPHERE)*volume/(R_IDEAL_GAS_EQUATION*T20C))
|
|
return
|
|
|
|
|
|
examine()
|
|
set src in usr
|
|
..()
|
|
if(air_contents.oxygen < 10)
|
|
usr << text("\red <B>The meter on the [src.name] indicates you are almost out of air!</B>")
|
|
playsound(usr, 'alert.ogg', 50, 1)
|
|
|
|
|
|
/obj/item/weapon/tank/oxygen/yellow
|
|
name = "Gas Tank (Oxygen)"
|
|
desc = "A tank of oxygen, this one is yellow."
|
|
icon_state = "oxygen_f"
|
|
|
|
|
|
/obj/item/weapon/tank/oxygen/red
|
|
name = "Gas Tank (Oxygen)"
|
|
desc = "A tank of oxygen, this one is red."
|
|
icon_state = "oxygen_fr"
|