From 54e3a3aefc0289dbb210399be85aef49eb04e019 Mon Sep 17 00:00:00 2001 From: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Date: Thu, 19 Oct 2023 00:05:52 -0500 Subject: [PATCH] Fix APC cell removal runtime (#79077) ## About The Pull Request Someone implemented `Exited` but didn't remove this code, it's not necessary and all it does is runtime now. --- code/modules/power/apc/apc_attack.dm | 4 ---- code/modules/power/apc/apc_main.dm | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/code/modules/power/apc/apc_attack.dm b/code/modules/power/apc/apc_attack.dm index 3ff3d640c62..aaa63c05d85 100644 --- a/code/modules/power/apc/apc_attack.dm +++ b/code/modules/power/apc/apc_attack.dm @@ -260,10 +260,6 @@ user.visible_message(span_notice("[user] removes \the [cell] from [src]!")) balloon_alert(user, "cell removed") user.put_in_hands(cell) - cell.update_appearance() - cell = null - charging = APC_NOT_CHARGING - update_appearance() return if((machine_stat & MAINT) && !opened) //no board; no interface return diff --git a/code/modules/power/apc/apc_main.dm b/code/modules/power/apc/apc_main.dm index 9bfdaf1e249..3f5a7590c39 100644 --- a/code/modules/power/apc/apc_main.dm +++ b/code/modules/power/apc/apc_main.dm @@ -264,6 +264,7 @@ /obj/machinery/power/apc/Exited(atom/movable/gone, direction) . = ..() if(gone == cell) + cell.update_appearance() cell = null charging = APC_NOT_CHARGING update_appearance()