[MIRROR] Makes ventcrawling code less godawful (#798)

* Unbads ventcrawling. (#53672)

* Makes ventcrawling code less godawful

Co-authored-by: Putnam3145 <putnam3145@gmail.com>
This commit is contained in:
SkyratBot
2020-09-14 11:22:05 +02:00
committed by GitHub
co-authored by Putnam3145
parent 1aaae3956b
commit f1e8a10cea
+2 -8
View File
@@ -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, "<span class='warning'>You can't crawl around in the ventilation ducts with items!</span>")
return