mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Spill Oxygen / Obtain Atmosphere
Give oxygen and nitrogen reaction_obj and reaction_turf functions, which produce their respective gases.
This commit is contained in:
@@ -403,6 +403,16 @@
|
||||
reagent_state = GAS
|
||||
color = "#808080" // rgb: 128, 128, 128
|
||||
|
||||
/datum/reagent/oxygen/reaction_obj(obj/O, reac_volume)
|
||||
if((!O) || (!reac_volume))
|
||||
return 0
|
||||
O.atmos_spawn_air(SPAWN_OXYGEN|SPAWN_20C, reac_volume/2)
|
||||
|
||||
/datum/reagent/oxygen/reaction_turf(turf/simulated/T, reac_volume)
|
||||
if(istype(T))
|
||||
T.atmos_spawn_air(SPAWN_OXYGEN|SPAWN_20C, reac_volume/2)
|
||||
return
|
||||
|
||||
/datum/reagent/copper
|
||||
name = "Copper"
|
||||
id = "copper"
|
||||
@@ -417,6 +427,16 @@
|
||||
reagent_state = GAS
|
||||
color = "#808080" // rgb: 128, 128, 128
|
||||
|
||||
/datum/reagent/nitrogen/reaction_obj(obj/O, reac_volume)
|
||||
if((!O) || (!reac_volume))
|
||||
return 0
|
||||
O.atmos_spawn_air(SPAWN_NITROGEN|SPAWN_20C, reac_volume)
|
||||
|
||||
/datum/reagent/nitrogen/reaction_turf(turf/simulated/T, reac_volume)
|
||||
if(istype(T))
|
||||
T.atmos_spawn_air(SPAWN_NITROGEN|SPAWN_20C, reac_volume)
|
||||
return
|
||||
|
||||
/datum/reagent/hydrogen
|
||||
name = "Hydrogen"
|
||||
id = "hydrogen"
|
||||
@@ -1044,4 +1064,4 @@
|
||||
if(O.type == /obj/item/clothing/shoes/galoshes)
|
||||
var/t_loc = get_turf(O)
|
||||
qdel(O)
|
||||
new /obj/item/clothing/shoes/galoshes/dry(t_loc)
|
||||
new /obj/item/clothing/shoes/galoshes/dry(t_loc)
|
||||
|
||||
Reference in New Issue
Block a user