From 3d477b3427453db0c27bbbb3f13d3cfedefa913a Mon Sep 17 00:00:00 2001 From: S34NW <12197162+S34NW@users.noreply.github.com> Date: Fri, 29 Oct 2021 20:44:11 +0100 Subject: [PATCH] leys you use id on spawners to pass them to windows --- code/game/objects/effects/spawners/windowspawner.dm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/game/objects/effects/spawners/windowspawner.dm b/code/game/objects/effects/spawners/windowspawner.dm index 3a91c4d4cc1..bbe074965f1 100644 --- a/code/game/objects/effects/spawners/windowspawner.dm +++ b/code/game/objects/effects/spawners/windowspawner.dm @@ -7,6 +7,8 @@ var/window_to_spawn_regular = /obj/structure/window/basic var/window_to_spawn_full = /obj/structure/window/full/basic anchored = TRUE // No sliding out while you prime + /// Used to link electrochromic windows to buttons + var/id /obj/effect/spawner/window/Initialize(mapload) . = ..() @@ -25,8 +27,14 @@ continue var/obj/structure/window/WI = new window_to_spawn_regular(get_turf(src)) WI.dir = cdir + if(id) + var/obj/structure/window/reinforced/polarized/WIP = WI + WIP.id = id else - new window_to_spawn_full(get_turf(src)) + var/obj/structure/window/WI = new window_to_spawn_full(get_turf(src)) + if(id) + var/obj/structure/window/full/reinforced/polarized/WIP = WI + WIP.id = id if(useGrille) new /obj/structure/grille(get_turf(src))