mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
Merge pull request #3311 from LorenLuke/Ventcrawl-fix
Fixes ventcrawling for spiderbots/implants/etc.
This commit is contained in:
@@ -44,10 +44,15 @@ var/list/ventcrawl_machinery = list(
|
||||
/mob/living/proc/is_allowed_vent_crawl_item(var/obj/item/carried_item)
|
||||
if(carried_item == ability_master)
|
||||
return 1
|
||||
|
||||
var/list/allowed = list()
|
||||
for(var/type in can_enter_vent_with)
|
||||
if(istype(carried_item, can_enter_vent_with))
|
||||
return get_inventory_slot(carried_item) == 0
|
||||
return 0
|
||||
var/list/types = typesof(type)
|
||||
allowed += types
|
||||
|
||||
if(carried_item.type in allowed)
|
||||
if(get_inventory_slot(carried_item) == 0)
|
||||
return 1
|
||||
|
||||
/mob/living/carbon/is_allowed_vent_crawl_item(var/obj/item/carried_item)
|
||||
if(carried_item in internal_organs)
|
||||
|
||||
Reference in New Issue
Block a user