mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
25 lines
813 B
Plaintext
25 lines
813 B
Plaintext
/obj/machinery/atmospherics/pipe/zpipe/up/verb/ventcrawl_move_up()
|
|
set name = "Ventcrawl Upwards"
|
|
set desc = "Climb up through a pipe."
|
|
set category = "Abilities.General"
|
|
set src = usr.loc
|
|
var/obj/machinery/atmospherics/target = check_ventcrawl(GetAbove(loc))
|
|
if(target) ventcrawl_to(usr, target, UP)
|
|
|
|
/obj/machinery/atmospherics/pipe/zpipe/down/verb/ventcrawl_move_down()
|
|
set name = "Ventcrawl Downwards"
|
|
set desc = "Climb down through a pipe."
|
|
set category = "Abilities.General"
|
|
set src = usr.loc
|
|
var/obj/machinery/atmospherics/target = check_ventcrawl(GetBelow(loc))
|
|
if(target) ventcrawl_to(usr, target, DOWN)
|
|
|
|
/obj/machinery/atmospherics/pipe/zpipe/proc/check_ventcrawl(var/turf/target)
|
|
if(!istype(target))
|
|
return
|
|
if(node1 in target)
|
|
return node1
|
|
if(node2 in target)
|
|
return node2
|
|
return
|