Merge pull request #11067 from bgobandit/themobcannotventcrawl

Mobs can no longer ventcrawl while buckled or handcuffed
This commit is contained in:
Cheridan
2015-08-11 18:27:03 -05:00
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -196,6 +196,9 @@ Pipelines + Other Objects -> Pipe network
if(!(direction & initialize_directions)) //cant go this way.
return
if(buckled_mob == user) // fixes buckle ventcrawl edgecase fuck bug
return
var/obj/machinery/atmospherics/target_move = findConnecting(direction)
if(target_move)
if(is_type_in_list(target_move, ventcrawl_machinery) && target_move.can_crawl_through())
+3
View File
@@ -12,6 +12,9 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/components/unary
if(lying)
src << "You can't vent crawl while you're stunned!"
return
if(restrained())
src << "You can't vent crawl while you're restrained!"
return
var/obj/machinery/atmospherics/components/unary/vent_found