Merge pull request #12663 from Very-Soft/ventcrawls

Allow mobs to ventcrawl with their mobid
This commit is contained in:
Casey
2022-04-05 22:14:52 -04:00
committed by CHOMPStation2
parent 0dd44e94bf
commit a3d4539391
3 changed files with 8 additions and 3 deletions

View File

@@ -40,7 +40,8 @@ var/list/mob_hat_cache = list()
can_pull_size = ITEMSIZE_NO_CONTAINER
can_pull_mobs = MOB_PULL_SMALLER
can_enter_vent_with = list(
/obj)
/obj,
/atom/movable/emissive_blocker)
mob_bump_flag = SIMPLE_ANIMAL
mob_swap_flags = SIMPLE_ANIMAL

View File

@@ -23,7 +23,8 @@
can_pull_size = ITEMSIZE_NO_CONTAINER
can_pull_mobs = MOB_PULL_SMALLER
can_enter_vent_with = list(
/obj)
/obj,
/atom/movable/emissive_blocker)
mob_always_swap = 1

View File

@@ -57,7 +57,10 @@ var/list/ventcrawl_machinery = list(
//Ability master easy test for allowed (cheaper than istype)
if(carried_item == ability_master)
return 1
if(isanimal(src))
var/mob/living/simple_mob/S
if(carried_item == S.mobcard) //VOREStation Edit
return 1 //VOREStation Edit
//Try to find it in our allowed list (istype includes subtypes)
var/listed = FALSE
for(var/test_type in can_enter_vent_with)