mirror of
https://github.com/Sandstorm-Station/Sandstorm-Station-13.git
synced 2026-08-21 04:08:32 +01:00
Adds atmos plants (#4)
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
/obj/item/seeds/bamboo
|
||||
mutatelist = list(/obj/item/seeds/bamboo/oxyboo, /obj/item/seeds/bamboo/nitroboo, /obj/item/seeds/bamboo/plasboo)
|
||||
//Oxyboo
|
||||
/obj/item/seeds/bamboo/oxyboo
|
||||
name = "pack of Oxyboo seeds"
|
||||
desc = "A species of bamboo that produces elevated levels of oxygen. The gas stops being produced in difficult atmospheric conditions."
|
||||
plantname = "Oxyboo"
|
||||
genes = list()
|
||||
mutatelist = list()
|
||||
|
||||
/obj/item/seeds/bamboo/oxyboo/pre_attack(obj/machinery/hydroponics/I)
|
||||
if(istype(I, /obj/machinery/hydroponics))
|
||||
if(!I.myseed)
|
||||
START_PROCESSING(SSobj, src)
|
||||
return ..()
|
||||
|
||||
/obj/item/seeds/bamboo/oxyboo/process()
|
||||
var/obj/machinery/hydroponics/parent = loc
|
||||
if(parent.age < maturation) // Start a little before it blooms
|
||||
return
|
||||
|
||||
var/turf/open/T = get_turf(parent)
|
||||
if(abs(ONE_ATMOSPHERE - T.return_air().return_pressure()) > (potency/10 + 10)) // clouds can begin showing at around 50-60 potency in standard atmos
|
||||
return
|
||||
|
||||
var/datum/gas_mixture/oxy = new
|
||||
oxy.gases[/datum/gas/oxygen] = (yield + 6)*7*0.02 // this process is only being called about 2/7 as much as corpses so this is 12-32 times a corpses
|
||||
oxy.temperature = T20C // without this the room would eventually freeze and miasma mining would be easier
|
||||
T.assume_air(oxy)
|
||||
T.air_update_turf()
|
||||
|
||||
/obj/item/seeds/bamboo/nitroboo
|
||||
name = "pack of Nitroboo seeds"
|
||||
desc = "A species of bamboo that produces elevated levels of nitrogen. The gas stops being produced in difficult atmospheric conditions."
|
||||
plantname = "Nitroboo"
|
||||
genes = list()
|
||||
mutatelist = list()
|
||||
|
||||
/obj/item/seeds/bamboo/nitroboo/pre_attack(obj/machinery/hydroponics/I)
|
||||
if(istype(I, /obj/machinery/hydroponics))
|
||||
if(!I.myseed)
|
||||
START_PROCESSING(SSobj, src)
|
||||
return ..()
|
||||
|
||||
/obj/item/seeds/bamboo/nitroboo/process()
|
||||
var/obj/machinery/hydroponics/parent = loc
|
||||
if(parent.age < maturation) // Start a little before it blooms
|
||||
return
|
||||
|
||||
var/turf/open/T = get_turf(parent)
|
||||
if(abs(ONE_ATMOSPHERE - T.return_air().return_pressure()) > (potency/10 + 10)) // clouds can begin showing at around 50-60 potency in standard atmos
|
||||
return
|
||||
|
||||
var/datum/gas_mixture/nitro = new
|
||||
nitro.gases[/datum/gas/nitrogen] = (yield + 6)*7*0.02 // this process is only being called about 2/7 as much as corpses so this is 12-32 times a corpses
|
||||
nitro.temperature = T20C // without this the room would eventually freeze and miasma mining would be easier
|
||||
T.assume_air(nitro)
|
||||
T.air_update_turf()
|
||||
|
||||
/obj/item/seeds/bamboo/plasboo
|
||||
name = "pack of Plasboo seeds"
|
||||
desc = "A species of bamboo that produces elevated levels of plasma. The gas stops being produced in difficult atmospheric conditions."
|
||||
plantname = "Plasboo"
|
||||
genes = list()
|
||||
mutatelist = list()
|
||||
|
||||
/obj/item/seeds/bamboo/plasboo/pre_attack(obj/machinery/hydroponics/I)
|
||||
if(istype(I, /obj/machinery/hydroponics))
|
||||
if(!I.myseed)
|
||||
START_PROCESSING(SSobj, src)
|
||||
return ..()
|
||||
|
||||
/obj/item/seeds/bamboo/plasboo/process()
|
||||
var/obj/machinery/hydroponics/parent = loc
|
||||
if(parent.age < maturation) // Start a little before it blooms
|
||||
return
|
||||
|
||||
var/turf/open/T = get_turf(parent)
|
||||
if(abs(ONE_ATMOSPHERE - T.return_air().return_pressure()) > (potency/10 + 10)) // clouds can begin showing at around 50-60 potency in standard atmos
|
||||
return
|
||||
|
||||
var/datum/gas_mixture/plas = new
|
||||
plas.gases[/datum/gas/plasma] = (yield + 6)*7*0.02 // this process is only being called about 2/7 as much as corpses so this is 12-32 times a corpses
|
||||
plas.temperature = T20C // without this the room would eventually freeze and miasma mining would be easier
|
||||
T.assume_air(plas)
|
||||
T.air_update_turf()
|
||||
Reference in New Issue
Block a user