From 8049a4ad3595434373dc6b7445aaa0836c5cbdd4 Mon Sep 17 00:00:00 2001 From: Seth Scherer Date: Sat, 25 Dec 2021 20:55:06 -0500 Subject: [PATCH] Makes all cyborg storage items drop their contents on module change (#63461) --- code/modules/mob/living/silicon/robot/robot.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 6bbfea1e3e9..4ad0af82855 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -679,6 +679,11 @@ SEND_SIGNAL(src, COMSIG_BORG_SAFE_DECONSTRUCT) uneq_all() shown_robot_modules = FALSE + + for(var/obj/item/storage/bag in model.contents) // drop all of the items that may be stored by the cyborg + for(var/obj/item in bag) + item.forceMove(drop_location()) + if(hud_used) hud_used.update_robot_modules_display()