From c40e1d3127e3517e929fccf73028335c03c7e417 Mon Sep 17 00:00:00 2001 From: moocowswag <62126254+moocowswag@users.noreply.github.com> Date: Thu, 14 Aug 2025 18:30:03 -0400 Subject: [PATCH] Has knife-cleanbots steal identificiation from ids rather than mind (#92535) ## About The Pull Request Fixes https://github.com/tgstation/tgstation/issues/92533 by having knife cleanbots read your worn id rather than reading your mind. image edit: Incidentally makes a harder achievement much easier because its based on id rather than magic mind reading ## Why It's Good For The Game exploit to find out someone's identity bad ## Changelog :cl: fix: knifed up cleanbots will now read your id card rather than your mind when stealing valor /:cl: --- .../mob/living/basic/bots/cleanbot/cleanbot.dm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/basic/bots/cleanbot/cleanbot.dm b/code/modules/mob/living/basic/bots/cleanbot/cleanbot.dm index c49da9b36e7..10e6bfdafac 100644 --- a/code/modules/mob/living/basic/bots/cleanbot/cleanbot.dm +++ b/code/modules/mob/living/basic/bots/cleanbot/cleanbot.dm @@ -305,9 +305,14 @@ return var/mob/living/carbon/stabbed_carbon = shanked_victim - var/assigned_role = stabbed_carbon.mind?.assigned_role.title - if(!isnull(assigned_role)) - update_title(assigned_role) + + if(ishuman(shanked_victim)) + var/mob/living/carbon/human/stabbed_human = shanked_victim + var/obj/item/card/id/id = stabbed_human.wear_id?.GetID() + if(!isnull(id)) + var/assigned_role = id.assignment + if(!isnull(assigned_role)) + update_title(assigned_role) zone_selected = pick(BODY_ZONE_L_LEG, BODY_ZONE_R_LEG) INVOKE_ASYNC(weapon, TYPE_PROC_REF(/obj/item, attack), stabbed_carbon, src)