Merge pull request #11095 from Fox-McCloud/new-gas

Adds Unidentified Gas in Deep Space
This commit is contained in:
variableundefined
2019-03-24 17:57:53 +08:00
committed by GitHub
5 changed files with 41 additions and 7 deletions
+12 -2
View File
@@ -1060,6 +1060,16 @@
/obj/structure/girder,
/turf/simulated/floor/plating/airless,
/area/AIsattele)
"gw" = (
/obj/machinery/atmospherics/unary/portables_connector{
dir = 1
},
/turf/simulated/floor/plating/airless,
/area/AIsattele)
"AV" = (
/obj/machinery/atmospherics/unary/tank/oxygen_agent_b,
/turf/simulated/floor/plating/airless,
/area/AIsattele)
(1,1,1) = {"
aa
@@ -55476,8 +55486,8 @@ aa
ay
em
em
er
eB
AV
gw
eG
em
em
+12 -2
View File
@@ -4065,6 +4065,16 @@
/obj/structure/girder,
/turf/simulated/floor/plating/airless,
/area/AIsattele)
"we" = (
/obj/machinery/atmospherics/unary/portables_connector{
dir = 1
},
/turf/simulated/floor/plating/airless,
/area/AIsattele)
"LU" = (
/obj/machinery/atmospherics/unary/tank/oxygen_agent_b,
/turf/simulated/floor/plating/airless,
/area/AIsattele)
(1,1,1) = {"
aa
@@ -58481,8 +58491,8 @@ aa
aT
iF
iF
iK
iT
LU
we
iW
iF
iF
@@ -16,7 +16,7 @@
if(!istype(T))
return
add_underlay(T, node, dir)
/obj/machinery/atmospherics/unary/tank/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/analyzer))
atmosanalyzer_scan(air_contents, user)
@@ -94,4 +94,18 @@
trace_gas.moles = (25*ONE_ATMOSPHERE)*(air_contents.volume)/(R_IDEAL_GAS_EQUATION*air_contents.temperature)
air_contents.trace_gases += trace_gas
/obj/machinery/atmospherics/unary/tank/oxygen_agent_b
name = "Unidentified Gas Tank"
desc = "A large vessel containing an unknown pressurized gas."
icon_state = "agent_b_map"
/obj/machinery/atmospherics/unary/tank/oxygen_agent_b/New()
..()
icon_state = "agent_b"
air_contents.volume = volume
air_contents.temperature = T20C
var/datum/gas/oxygen_agent_b/trace_gas = new
trace_gas.moles = (50 * ONE_ATMOSPHERE) * (air_contents.volume) / (R_IDEAL_GAS_EQUATION * air_contents.temperature)
air_contents.trace_gases += trace_gas
+1 -1
View File
@@ -117,7 +117,7 @@ What are the archived variables for?
trace_gas.moles -= reaction_rate*0.05
temperature -= (reaction_rate*20000)/heat_capacity()
temperature += (reaction_rate*20000)/heat_capacity()
reacting = 1
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 10 KiB