Merge pull request #3311 from LorenLuke/Ventcrawl-fix

Fixes ventcrawling for spiderbots/implants/etc.
This commit is contained in:
Anewbe
2017-04-22 17:21:04 -05:00
committed by GitHub
2 changed files with 44 additions and 3 deletions
+8 -3
View File
@@ -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)