Merge pull request #13284 from farie82/better-wire-investigation

Deconstructing and mice biting wires is now put in the investigation log
This commit is contained in:
Fox McCloud
2020-05-02 02:17:52 -04:00
committed by GitHub
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -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