From f1e8a10cea93321fa19f02ad2fe6433d6c4cc2bf Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 14 Sep 2020 11:22:05 +0200 Subject: [PATCH] [MIRROR] Makes ventcrawling code less godawful (#798) * Unbads ventcrawling. (#53672) * Makes ventcrawling code less godawful Co-authored-by: Putnam3145 --- code/modules/mob/living/ventcrawling.dm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/living/ventcrawling.dm b/code/modules/mob/living/ventcrawling.dm index 09cc3705872..494c253c03e 100644 --- a/code/modules/mob/living/ventcrawling.dm +++ b/code/modules/mob/living/ventcrawling.dm @@ -55,15 +55,9 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, typecacheof(list( if(!client) return - if(iscarbon(src) && ventcrawler < 2)//It must have atleast been 1 to get this far - var/failed = 0 + if(iscarbon(src) && ventcrawler == VENTCRAWLER_NUDE) var/list/items_list = get_equipped_items(include_pockets = TRUE) - if(items_list.len) - failed = 1 - for(var/obj/item/I in held_items) - failed = 1 - break - if(failed) + if(items_list.len || held_items.len) to_chat(src, "You can't crawl around in the ventilation ducts with items!") return