From cfc339aa85647fe06c8123fe4e60f4bf95348c35 Mon Sep 17 00:00:00 2001 From: S34N <12197162+S34NW@users.noreply.github.com> Date: Sat, 1 Jan 2022 20:44:08 +0000 Subject: [PATCH] Fixes floorbot construction (#17285) --- .../modules/mob/living/simple_animal/bot/construction.dm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/code/modules/mob/living/simple_animal/bot/construction.dm b/code/modules/mob/living/simple_animal/bot/construction.dm index 56e4e190f76..208e6876dfb 100644 --- a/code/modules/mob/living/simple_animal/bot/construction.dm +++ b/code/modules/mob/living/simple_animal/bot/construction.dm @@ -211,17 +211,10 @@ icon_state = "toolbox_tiles_sensor" /obj/item/storage/toolbox/attackby(obj/item/stack/tile/plasteel/T, mob/user, params) - var/list/allowed_toolbox = list(/obj/item/storage/toolbox/emergency, //which toolboxes can be made into floorbots - /obj/item/storage/toolbox/electrical, - /obj/item/storage/toolbox/mechanical, - /obj/item/storage/toolbox/artistic, - /obj/item/storage/toolbox/syndicate, - /obj/item/storage/toolbox/fakesyndi) - if(!istype(T, /obj/item/stack/tile/plasteel)) ..() return - if(!is_type_in_list(src, allowed_toolbox)) + if(!istype(src, /obj/item/storage/toolbox)) return if(contents.len >= 1) to_chat(user, "They won't fit in, as there is already stuff inside.")