mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
Merge pull request #19219 from MrStonedOne/patch-227
air tight plastic flaps now properly set atmos state.
This commit is contained in:
@@ -57,15 +57,15 @@
|
||||
name = "airtight plastic flaps"
|
||||
desc = "Heavy duty, airtight, plastic flaps."
|
||||
|
||||
/obj/structure/plasticflaps/mining/New() //set the turf below the flaps to block air
|
||||
var/turf/T = get_turf(loc)
|
||||
if(T)
|
||||
T.blocks_air = 1
|
||||
..()
|
||||
/obj/structure/plasticflaps/mining/New()
|
||||
air_update_turf(1)
|
||||
. = ..()
|
||||
|
||||
/obj/structure/plasticflaps/mining/CanAtmosPass()
|
||||
return FALSE
|
||||
|
||||
/obj/structure/plasticflaps/mining/Destroy() //lazy hack to set the turf to allow air to pass if it's a simulated floor //wow this is terrible
|
||||
var/turf/T = get_turf(loc)
|
||||
if(T)
|
||||
if(istype(T, /turf/open/floor))
|
||||
T.blocks_air = 0
|
||||
return ..()
|
||||
/obj/structure/plasticflaps/mining/Destroy()
|
||||
var/atom/oldloc = loc
|
||||
. = ..()
|
||||
if (oldloc)
|
||||
oldloc.air_update_turf(1)
|
||||
|
||||
Reference in New Issue
Block a user