Fixes #18882 and refactors for door assemblies (#19128)

This commit is contained in:
DevanStrife
2022-09-27 16:29:40 +01:00
committed by GitHub
parent 32db03c463
commit f3e6ef7d2d
2 changed files with 13 additions and 3 deletions
@@ -8,6 +8,7 @@
var/overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
var/state = AIRLOCK_ASSEMBLY_NEEDS_WIRES
var/mineral
var/mineral_type
var/base_name = "airlock"
var/obj/item/airlock_electronics/electronics
var/airlock_type = /obj/machinery/door/airlock //the type path of the airlock once completed
@@ -329,7 +330,6 @@
new /obj/item/stack/sheet/glass(T)
else
new /obj/item/shard(T)
if(mineral)
var/obj/item/stack/sheet/mineral/mineral_path = text2path("/obj/item/stack/sheet/mineral/[mineral]")
new mineral_path(T, 2)
if(mineral_type)
new mineral_type(T, 2)
qdel(src)