Adds atmos port and tank swap logging (#47802)

* Logs atmos port wrenching

* swap.avi
This commit is contained in:
81Denton
2019-11-16 20:34:57 -05:00
committed by ShizCalev
parent 496c58a7cc
commit df854dd506
@@ -124,11 +124,13 @@
if(!user.transferItemToLoc(T, src))
return
to_chat(user, "<span class='notice'>[holding ? "In one smooth motion you pop [holding] out of [src]'s connector and replace it with [T]" : "You insert [T] into [src]"].</span>")
investigate_log("had its internal [holding] swapped with [T] by [key_name(user)].<br>", 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)].<br>", INVESTIGATE_ATMOS)
disconnect()
W.play_tool_sound(src)
user.visible_message( \
@@ -151,6 +153,7 @@
"<span class='notice'>You fasten [src] to the port.</span>", \
"<span class='hear'>You hear a ratchet.</span>")
update_icon()
investigate_log("was connected to [possible_port] by [key_name(user)].<br>", INVESTIGATE_ATMOS)
else
return ..()