mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Reverts cooking change, adds safety checks.
This commit is contained in:
@@ -48,8 +48,6 @@
|
||||
"sugar",
|
||||
"white_glitter",
|
||||
"growthserum",
|
||||
|
||||
"cooking_oil",
|
||||
"cornoil",
|
||||
"uranium",
|
||||
"carpet",
|
||||
@@ -69,8 +67,10 @@
|
||||
endWhen = rand(120, 180)
|
||||
for(var/obj/machinery/atmospherics/components/unary/vent_scrubber/temp_vent in GLOB.machines)
|
||||
var/turf/T = get_turf(temp_vent)
|
||||
if(T && is_station_level(T.z) && !temp_vent.welded)
|
||||
var/area/A = T.loc
|
||||
if(T && is_station_level(T.z) && !temp_vent.welded && !A.safe)
|
||||
vents += temp_vent
|
||||
|
||||
if(!vents.len)
|
||||
return kill()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user