From 1742b14b7c095a404eab1d278ffde120e66cce5b Mon Sep 17 00:00:00 2001 From: joep van der velden Date: Sun, 12 Apr 2020 09:51:29 +0200 Subject: [PATCH] Deconstructing wires and mouses biting wires now is put in the investigate log --- code/modules/mob/living/simple_animal/friendly/mouse.dm | 4 ++-- code/modules/power/cable.dm | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm index 1446ef7d4bb..a48b36cb0c7 100644 --- a/code/modules/mob/living/simple_animal/friendly/mouse.dm +++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm @@ -49,11 +49,11 @@ if(C.avail()) visible_message("[src] chews through [C]. It's toast!") playsound(src, 'sound/effects/sparks2.ogg', 100, 1) - C.deconstruct() toast() // mmmm toasty. else - C.deconstruct() visible_message("[src] chews through [C].") + investigate_log("was chewed through by a mouse in [get_area(F)]([F.x], [F.y], [F.z] - [ADMIN_JMP(F)])","wires") + C.deconstruct() /mob/living/simple_animal/mouse/handle_automated_speech() ..() diff --git a/code/modules/power/cable.dm b/code/modules/power/cable.dm index 7260c836d78..0dc2fe0a129 100644 --- a/code/modules/power/cable.dm +++ b/code/modules/power/cable.dm @@ -79,8 +79,10 @@ By design, d1 is the smallest direction and d2 is the highest return ..() // then go ahead and delete the cable /obj/structure/cable/deconstruct(disassembled = TRUE) + var/turf/T = get_turf(src) + if(usr) + investigate_log("was deconstructed by [key_name(usr, 1)] in [get_area(usr)]([T.x], [T.y], [T.z] - [ADMIN_JMP(T)])","wires") if(!(flags & NODECONSTRUCT)) - var/turf/T = get_turf(src) if(d1) // 0-X cables are 1 unit, X-X cables are 2 units long new/obj/item/stack/cable_coil(T, 2, paramcolor = color) else