From 1efd1b26345b68bf0bf39b04b1a8388a6fe7a1bd Mon Sep 17 00:00:00 2001 From: deathride58 Date: Sun, 30 Jun 2019 04:35:34 -0400 Subject: [PATCH] oh, and lets add a length check real quick to make sure the sleeper actually has shit in it --- code/modules/mob/living/silicon/robot/robot.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index ae735e88b3..29fbd39e2c 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -583,6 +583,8 @@ /mob/living/silicon/robot/crowbar_act(mob/living/user, obj/item/I) //TODO: make fucking everything up there in that attackby() proc use the proper tool_act() procs. But honestly, who has time for that? 'cause I know for sure that you, the person reading this, sure as hell doesn't. var/validbreakout = FALSE for(var/obj/item/dogborg/sleeper/S in held_items) + if(!LAZYLEN(S.contents)) + continue if(!validbreakout) visible_message("[user] wedges [I] into the crevice separating [S] from [src]'s chassis, and begins to pry...", "You wedge [I] into the crevice separating [S] from [src]'s chassis, and begin to pry...") validbreakout = TRUE