From 386bc528ea5c4e1c097c3698eb8f97b2ab735dba Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Fri, 22 Jun 2018 02:34:41 -0500 Subject: [PATCH] [MIRROR] Add logging to teleport and the teleporter destination setting (#7225) * Add logging to teleport and the teleporter destination setting (#38645) Helps with some admin issues * Add logging to teleport and the teleporter destination setting --- code/datums/helper_datums/teleport.dm | 1 + code/game/machinery/computer/teleporter.dm | 4 ++++ code/game/machinery/teleporter.dm | 1 + 3 files changed, 6 insertions(+) diff --git a/code/datums/helper_datums/teleport.dm b/code/datums/helper_datums/teleport.dm index 26a0a0f414..4ef292d1b1 100644 --- a/code/datums/helper_datums/teleport.dm +++ b/code/datums/helper_datums/teleport.dm @@ -51,6 +51,7 @@ tele_play_specials(teleatom, curturf, effectin, asoundin) var/success = force_teleport ? teleatom.forceMove(destturf) : teleatom.Move(destturf) if (success) + log_game("[teleatom] ([key_name(teleatom)]) has teleported from [AREACOORD(curturf)] to [AREACOORD(destturf)]") tele_play_specials(teleatom, destturf, effectout, asoundout) if(ismegafauna(teleatom)) message_admins("[teleatom] [ADMIN_FLW(teleatom)] has teleported from [ADMIN_VERBOSEJMP(curturf)] to [ADMIN_VERBOSEJMP(destturf)].") diff --git a/code/game/machinery/computer/teleporter.dm b/code/game/machinery/computer/teleporter.dm index 93b997eee6..9e12a7bcdd 100644 --- a/code/game/machinery/computer/teleporter.dm +++ b/code/game/machinery/computer/teleporter.dm @@ -171,6 +171,8 @@ var/desc = input("Please select a location to lock in.", "Locking Computer") as null|anything in L target = L[desc] + var/turf/T = get_turf(target) + log_game("[key_name(user)] has set the teleporter target to [target] at [AREACOORD(T)]") else var/list/S = power_station.linked_stations @@ -185,6 +187,8 @@ var/obj/machinery/teleport/station/target_station = L[desc] if(!target_station || !target_station.teleporter_hub) return + var/turf/T = get_turf(target_station) + log_game("[key_name(user)] has set the teleporter target to [target_station] at [AREACOORD(T)]") target = target_station.teleporter_hub target_station.linked_stations |= power_station target_station.stat &= ~NOPOWER diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm index 3d217e52c5..2c1f9d01b0 100644 --- a/code/game/machinery/teleporter.dm +++ b/code/game/machinery/teleporter.dm @@ -69,6 +69,7 @@ if(do_teleport(M, com.target)) use_power(5000) if(!calibrated && prob(30 - ((accurate) * 10))) //oh dear a problem + log_game("[M] ([key_name(M)]) was turned into a fly person") if(ishuman(M))//don't remove people from the round randomly you jerks var/mob/living/carbon/human/human = M if(human.dna && human.dna.species.id == "human")