mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 04:28:12 +01:00
Atmospheric Device Changes, Added Volume Pump (#18261)
* Volume Pump added, Can now Connect some devices to the General Atmos Controller and Large Tank Controller * Corrected Linting Errors. Added the ability to print tank control circuits. * Undefined some defined as per linter. * Code style adjustments * fixes these * Code Standards --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
b4225ec5e7
commit
f51a0f4d4d
@@ -174,7 +174,7 @@
|
||||
make_pipe_whitelist = typecacheof(list(/obj/structure/lattice, /obj/structure/girder, /obj/item/pipe))
|
||||
var/can_make_pipe = (isturf(A) || is_type_in_typecache(A, make_pipe_whitelist))
|
||||
|
||||
var/can_destroy_pipe = istype(A, /obj/item/pipe) || istype(A, /obj/item/pipe_meter) || istype(A, /obj/structure/disposalconstruct)
|
||||
var/can_destroy_pipe = istype(A, /obj/item/pipe) || istype(A, /obj/item/pipe_meter) || istype(A, /obj/structure/disposalconstruct) || istype(A, /obj/item/pipe_gsensor)
|
||||
|
||||
. = TRUE
|
||||
if((mode & DESTROY_MODE) && can_destroy_pipe)
|
||||
@@ -207,6 +207,13 @@
|
||||
PM.setAttachLayer(queued_piping_layer)
|
||||
if(mode & WRENCH_MODE)
|
||||
do_wrench(PM, user)
|
||||
else if(istype(recipe, /datum/pipe_recipe/air_sensor))
|
||||
to_chat(user, span_notice("You start building an air sensor..."))
|
||||
if(do_after(user, 2, target = A))
|
||||
activate()
|
||||
var/obj/item/pipe_gsensor/GS = new /obj/item/pipe_gsensor(get_turf(A))
|
||||
if(mode & WRENCH_MODE)
|
||||
do_wrench(GS, user)
|
||||
else if(istype(recipe, /datum/pipe_recipe/pipe))
|
||||
var/datum/pipe_recipe/pipe/R = recipe
|
||||
to_chat(user, span_notice("You start building a pipe..."))
|
||||
|
||||
Reference in New Issue
Block a user