From 4166e25c9cf53d799e6a3cfa5891c694ed9922b7 Mon Sep 17 00:00:00 2001 From: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:30:55 -0500 Subject: [PATCH] Blackbox tally for successful emags (#84837) ## About The Pull Request We don't actually record emags outside of the log which makes it hard to parse, this should give us a better image of what people are using emags for. --- code/game/objects/items/emags.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/emags.dm b/code/game/objects/items/emags.dm index 74472995b68..ccb52b71bc3 100644 --- a/code/game/objects/items/emags.dm +++ b/code/game/objects/items/emags.dm @@ -144,7 +144,8 @@ if(!can_emag(interacting_with, user)) return ITEM_INTERACT_BLOCKING log_combat(user, interacting_with, "attempted to emag") - interacting_with.emag_act(user, src) + if(interacting_with.emag_act(user, src)) + SSblackbox.record_feedback("tally", "atom_emagged", 1, interacting_with.type) return ITEM_INTERACT_SUCCESS /obj/item/card/emag/ranged_interact_with_atom(atom/interacting_with, mob/living/user, list/modifiers)