Deconstructing wires and mouses biting wires now is put in the investigate log

This commit is contained in:
joep van der velden
2020-04-12 09:51:29 +02:00
parent 1d50569dcc
commit 1742b14b7c
2 changed files with 5 additions and 3 deletions
@@ -49,11 +49,11 @@
if(C.avail())
visible_message("<span class='warning'>[src] chews through [C]. It's toast!</span>")
playsound(src, 'sound/effects/sparks2.ogg', 100, 1)
C.deconstruct()
toast() // mmmm toasty.
else
C.deconstruct()
visible_message("<span class='warning'>[src] chews through [C].</span>")
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()
..()
+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