From 58bce982e2e4e769627cabcf34813e1f2ce7d2eb Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:17:39 +0200 Subject: [PATCH] [MIRROR] Blackbox logging for remaining time on anomaly defusal (#29568) * Blackbox logging for remaining time on anomaly defusal (#86044) ## About The Pull Request Back in 2023 in PR #74666 Mothblocks said: `We really should collect data on how many people collect anomalies and how much time they had left.` Now here in 2024 it occurs to me that I don't think we actually log that information anywhere. So I added it. Please note: I don't remember how blackbox logging works so while I think this works it might not be the correct way to format the data. Please tell me if it isn't. ## Why It's Good For The Game `We really should collect data on how many people collect anomalies and how much time they had left.` ## Changelog Not player facing --------- Co-authored-by: Zephyr <12817816+ZephyrTFA@ users.noreply.github.com> * Blackbox logging for remaining time on anomaly defusal --------- Co-authored-by: Jacquerel Co-authored-by: Zephyr <12817816+ZephyrTFA@ users.noreply.github.com> --- code/game/objects/effects/anomalies/_anomalies.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/game/objects/effects/anomalies/_anomalies.dm b/code/game/objects/effects/anomalies/_anomalies.dm index ce9bab6a511..f249d22500c 100644 --- a/code/game/objects/effects/anomalies/_anomalies.dm +++ b/code/game/objects/effects/anomalies/_anomalies.dm @@ -95,6 +95,15 @@ /obj/effect/anomaly/proc/anomalyNeutralize() new /obj/effect/particle_effect/fluid/smoke/bad(loc) + SSblackbox.record_feedback( + "nested tally", + "anomaly_defused", + 1, + list( + "[type]", + immortal ? "immortal" : "[round((death_time - world.time) / 10)]ds time left", + ) + ) if(drops_core) if(isnull(anomaly_core))