From f6e48d1cac09da68942d341b2f9563ac447e9f53 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 4 Oct 2020 23:36:46 +0200 Subject: [PATCH] [MIRROR] Adds basic game logging to Protolathe-variant construction and deconstruction (#1155) * Adds basic game logging to Protolathe-variant construction and deconstruction (#54160) * Adds basic game logging to Protolathe-variant construction and deconstruction Co-authored-by: Timberpoes --- code/modules/research/machinery/protolathe.dm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/modules/research/machinery/protolathe.dm b/code/modules/research/machinery/protolathe.dm index 773284d0ef5..1022cf04832 100644 --- a/code/modules/research/machinery/protolathe.dm +++ b/code/modules/research/machinery/protolathe.dm @@ -19,3 +19,14 @@ ) production_animation = "protolathe_n" allowed_buildtypes = PROTOLATHE + +/obj/machinery/rnd/production/protolathe/deconstruct(disassembled) + log_game("Protolathe of type [type] [disassembled ? "disassembled" : "deconstructed"] by [key_name(usr)] at [get_area_name(src, TRUE)]") + + return ..() + +/obj/machinery/rnd/production/protolathe/Initialize(mapload) + if(!mapload) + log_game("Protolathe of type [type] constructed by [key_name(usr)] at [get_area_name(src, TRUE)]") + + return ..()