From 449597f14847e7c6b7c29efe4b68679e45996f31 Mon Sep 17 00:00:00 2001 From: Leshana Date: Sun, 15 Apr 2018 13:44:32 -0400 Subject: [PATCH 1/3] POLARIS: Fix conveyors on dynamically loaded maps obeying switches. Converted conveyors New() to initialize() so that runtime loaded maps will have conveyors and switches find each other. --- code/modules/recycling/conveyor2.dm | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 0048cd5194..dd431e2de9 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -23,8 +23,8 @@ id = "round_end_belt" // create a conveyor -/obj/machinery/conveyor/New(loc, newdir, on = 0) - ..(loc) +/obj/machinery/conveyor/initialize(mapload, newdir, on = 0) + . = ..() if(newdir) set_dir(newdir) @@ -105,7 +105,7 @@ id = input for(var/obj/machinery/conveyor_switch/C in world) if(C.id == id) - C.conveyors += src + C.conveyors |= src return user.drop_item(get_turf(src)) @@ -158,12 +158,6 @@ if(C) C.set_operable(stepdir, id, op) -/* -/obj/machinery/conveyor/verb/destroy() - set src in view() - src.broken() -*/ - /obj/machinery/conveyor/power_change() ..() update() @@ -189,15 +183,16 @@ -/obj/machinery/conveyor_switch/New() +/obj/machinery/conveyor_switch/initialize() ..() update() + return INITIALIZE_HINT_LATELOAD - spawn(5) // allow map load - conveyors = list() - for(var/obj/machinery/conveyor/C in world) - if(C.id == id) - conveyors += C +/obj/machinery/conveyor_switch/LateInitialize() + conveyors = list() + for(var/obj/machinery/conveyor/C in world) + if(C.id == id) + conveyors += C // update the icon depending on the position @@ -273,6 +268,7 @@ usr << "No input found please hang up and try your call again." return id = input + conveyors = list() // Clear list so they aren't double added. for(var/obj/machinery/conveyor/C in world) if(C.id == id) conveyors += C From c7cd04b2bb6e2fda1ddffb8b659fc67e22011f47 Mon Sep 17 00:00:00 2001 From: Leshana Date: Sun, 15 Apr 2018 15:46:29 -0400 Subject: [PATCH 2/3] POLARIS: Fix emitters connected to powernet remotely. Ensure when we unanchor an emitter that we disconnect from powernet. --- code/modules/power/singularity/emitter.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/power/singularity/emitter.dm b/code/modules/power/singularity/emitter.dm index 827bd9aefd..eaca5bd663 100644 --- a/code/modules/power/singularity/emitter.dm +++ b/code/modules/power/singularity/emitter.dm @@ -165,6 +165,7 @@ "You undo the external reinforcing bolts.", \ "You hear a ratchet.") src.anchored = 0 + disconnect_from_network() if(2) user << "\The [src] needs to be unwelded from the floor." return From 438203393e7b4794524946f5a328c4c2e02654cc Mon Sep 17 00:00:00 2001 From: Leshana Date: Tue, 17 Apr 2018 20:23:56 -0400 Subject: [PATCH 3/3] POLARIS: Fix cutting of bedsheets while holding them. Cutting bedsheets while holding them dropped the resulting rags in the mob's contents. --- code/game/objects/structures/bedsheet_bin.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/structures/bedsheet_bin.dm b/code/game/objects/structures/bedsheet_bin.dm index 9b3d866d2b..eddffe55ea 100644 --- a/code/game/objects/structures/bedsheet_bin.dm +++ b/code/game/objects/structures/bedsheet_bin.dm @@ -32,7 +32,7 @@ LINEN BINS if(do_after(user, 50)) user << "You cut [src] into pieces!" for(var/i in 1 to rand(2,5)) - new /obj/item/weapon/reagent_containers/glass/rag(src.loc) + new /obj/item/weapon/reagent_containers/glass/rag(drop_location()) qdel(src) return ..()