From df854dd5065b232c22fcfbb6ad2ff92b8bf0009b Mon Sep 17 00:00:00 2001
From: 81Denton <32391752+81Denton@users.noreply.github.com>
Date: Sun, 17 Nov 2019 02:34:57 +0100
Subject: [PATCH] Adds atmos port and tank swap logging (#47802)
* Logs atmos port wrenching
* swap.avi
---
.../atmospherics/machinery/portable/portable_atmospherics.dm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm b/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm
index f16261ef6e6..715f90b0030 100644
--- a/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm
+++ b/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm
@@ -124,11 +124,13 @@
if(!user.transferItemToLoc(T, src))
return
to_chat(user, "[holding ? "In one smooth motion you pop [holding] out of [src]'s connector and replace it with [T]" : "You insert [T] into [src]"].")
+ investigate_log("had its internal [holding] swapped with [T] by [key_name(user)].
", INVESTIGATE_ATMOS)
replace_tank(user, FALSE, T)
update_icon()
else if(W.tool_behaviour == TOOL_WRENCH)
if(!(stat & BROKEN))
if(connected_port)
+ investigate_log("was disconnected from [connected_port] by [key_name(user)].
", INVESTIGATE_ATMOS)
disconnect()
W.play_tool_sound(src)
user.visible_message( \
@@ -151,6 +153,7 @@
"You fasten [src] to the port.", \
"You hear a ratchet.")
update_icon()
+ investigate_log("was connected to [possible_port] by [key_name(user)].
", INVESTIGATE_ATMOS)
else
return ..()