From 29855b171c7dba8428d1945befc893cadae3e243 Mon Sep 17 00:00:00 2001 From: Archie Date: Tue, 22 Jun 2021 04:21:43 -0300 Subject: [PATCH] Some changes --- hyperstation/code/modules/power/reactor/rbmk.dm | 6 ++++++ hyperstation/code/modules/power/reactor/reactor_cargo.dm | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hyperstation/code/modules/power/reactor/rbmk.dm b/hyperstation/code/modules/power/reactor/rbmk.dm index 6ab02719..dbecd310 100644 --- a/hyperstation/code/modules/power/reactor/rbmk.dm +++ b/hyperstation/code/modules/power/reactor/rbmk.dm @@ -581,6 +581,12 @@ The reactor CHEWS through moderator. It does not do this slowly. Be very careful . = ..() addtimer(CALLBACK(src, .proc/link_to_reactor), 10 SECONDS) +/obj/machinery/computer/reactor/wrench_act(mob/living/user, obj/item/I) + to_chat(user, "You start [anchored ? "un" : ""]securing [name]...") + if(I.use_tool(src, user, 40, volume=75)) + to_chat(user, "You [anchored ? "un" : ""]secure [name].") + setAnchored(!anchored) + /obj/machinery/computer/reactor/proc/link_to_reactor() for(var/obj/machinery/atmospherics/components/trinary/nuclear_reactor/asdf in GLOB.machines) if(asdf.id && asdf.id == id) diff --git a/hyperstation/code/modules/power/reactor/reactor_cargo.dm b/hyperstation/code/modules/power/reactor/reactor_cargo.dm index 0f3a354f..5548e88f 100644 --- a/hyperstation/code/modules/power/reactor/reactor_cargo.dm +++ b/hyperstation/code/modules/power/reactor/reactor_cargo.dm @@ -15,9 +15,10 @@ /obj/machinery/atmospherics/components/trinary/nuclear_reactor/cargo // easier on the brain /obj/machinery/atmospherics/components/trinary/nuclear_reactor/cargo/New() - id = rand(1, 9999999) // cmon, what are the chances? + . = ..() + id = rand(1, 9999999) // cmon, what are the chances? The chances are... Very low friend... But maybe we can make this a bit better. -// Cargo varients can be wrenched down and don't start linked to the default RMBK reactor +// Cargo variants can be wrenched down and don't start linked to the default RMBK reactor /obj/machinery/computer/reactor/control_rods/cargo anchored = FALSE