mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 01:24:21 +01:00
Merge pull request #11067 from bgobandit/themobcannotventcrawl
Mobs can no longer ventcrawl while buckled or handcuffed
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user