mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #12663 from Very-Soft/ventcrawls
Allow mobs to ventcrawl with their mobid
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user