From 27876f0d0a779ce45f10d17af63def246e714b4a Mon Sep 17 00:00:00 2001 From: Militaires Date: Fri, 3 Aug 2018 19:44:00 +0200 Subject: [PATCH] [s] [HOTFIX] Being bumped into and not just bumping into people makes you visible as agent box (#39514) * revert when done * cyberboss * oh god it's all fucked * fixes agent box --- code/game/objects/items/implants/implant_stealth.dm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/code/game/objects/items/implants/implant_stealth.dm b/code/game/objects/items/implants/implant_stealth.dm index d067371d07f..64c8b619c12 100644 --- a/code/game/objects/items/implants/implant_stealth.dm +++ b/code/game/objects/items/implants/implant_stealth.dm @@ -26,10 +26,16 @@ /obj/structure/closet/cardboard/agent/process() alpha = max(0, alpha - 50) +/obj/structure/closet/cardboard/agent/proc/reveal() + alpha = 255 + addtimer(CALLBACK(src, .proc/go_invisible), 10, TIMER_UNIQUE) + /obj/structure/closet/cardboard/agent/Bump(atom/movable/A) . = ..() if(isliving(A)) - alpha = 255 - addtimer(CALLBACK(src, .proc/go_invisible), 10, TIMER_UNIQUE) - + reveal() +/obj/structure/closet/cardboard/agent/Bumped(atom/movable/A) + . = ..() + if(isliving(A)) + reveal()