mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-01-30 02:44:26 +00:00
* upports server maint subsystem * fix runtime in admin z narrate * . * sorts them verbs * . * . * Update code/controllers/subsystems/statpanel.dm Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> * Update code/controllers/subsystems/server_maint.dm Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> --------- Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
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
|