mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 02:57:48 +01:00
All credits to the author for this handy little script. I Committed the modified python script to tool directory. Although it needs to be in the root folder of your repo to work. To notice the improved compile times, in dreammaker go to Build > Preferences > and untick "automatically set file_dir for subfolders" If this commit inteferes with any large projects just revert it, do your thing, then rerun the script. Easy-peasy. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4488 316c924e-a436-60f5-8080-3fe189b3f50e
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
/obj/item/weapon/tank/emergency_oxygen
|
|
name = "emergency oxygen tank"
|
|
desc = "Used for emergencies. Contains very little oxygen, so try to conserve it until you actually need it."
|
|
icon_state = "emergency"
|
|
flags = FPRINT | TABLEPASS | CONDUCT
|
|
slot_flags = SLOT_BELT
|
|
w_class = 2.0
|
|
force = 4.0
|
|
distribute_pressure = ONE_ATMOSPHERE*O2STANDARD
|
|
volume = 3 //Tiny. Real life equivalents only have 21 breaths of oxygen in them. They're EMERGENCY tanks anyway -errorage (dangercon 2011)
|
|
|
|
|
|
New()
|
|
..()
|
|
src.air_contents.oxygen = (3*ONE_ATMOSPHERE)*volume/(R_IDEAL_GAS_EQUATION*T20C)
|
|
return
|
|
|
|
|
|
examine()
|
|
set src in usr
|
|
..()
|
|
if(air_contents.oxygen < 0.2 && loc==usr)
|
|
usr << text("\red <B>The meter on the [src.name] indicates you are almost out of air!</B>")
|
|
usr << sound('sound/effects/alert.ogg')
|
|
|
|
/obj/item/weapon/tank/emergency_oxygen/engi
|
|
icon_state = "emergency_engi"
|
|
name = "extended-capacity emergency oxygen tank"
|
|
volume = 6
|
|
|
|
|
|
/obj/item/weapon/tank/emergency_oxygen/double
|
|
icon_state = "emergency_double"
|
|
name = "Double Emergency Oxygen Tank"
|
|
volume = 10
|