mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Fixes ventcrawling across piping adapters.
This commit is contained in:
@@ -1250,16 +1250,8 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
/obj/machinery/atmospherics/pipe/layer_adapter/relaymove(mob/living/user, direction)
|
/obj/machinery/atmospherics/pipe/layer_adapter/relaymove(mob/living/user, direction)
|
||||||
if(!(direction & initialize_directions)) //can't go in a way we aren't connecting to
|
// Autoset layer
|
||||||
var/on_offset_layer = user.ventcrawl_layer == layer_node.piping_layer
|
if(direction & initialize_directions)
|
||||||
|
user.ventcrawl_layer = (direction == dir) ? PIPING_LAYER_DEFAULT : piping_layer
|
||||||
on_offset_layer = !on_offset_layer
|
user << "You are redirected into the [user.ventcrawl_layer]\th piping layer."
|
||||||
|
|
||||||
if(on_offset_layer)
|
|
||||||
user.ventcrawl_layer = layer_node.piping_layer
|
|
||||||
else
|
|
||||||
user.ventcrawl_layer = mid_node.piping_layer
|
|
||||||
user << "You align yourself with the [user.ventcrawl_layer]\th layer." // ????
|
|
||||||
return 1
|
|
||||||
else
|
|
||||||
return ..()
|
return ..()
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
author: N3X15
|
author: N3X15
|
||||||
changes: []
|
changes:
|
||||||
|
- bugfix: Ventcrawling works properly across piping layer adapters.
|
||||||
|
|||||||
Reference in New Issue
Block a user