From 5e0428c2c8c3a4c2db054b574740973e228d62bc Mon Sep 17 00:00:00 2001 From: cacogen Date: Wed, 14 Mar 2018 18:04:21 +1300 Subject: [PATCH] Makes transit tubes take half as long to secure/unsecure (#36345) * Makes transit tubes take half as long to secure Takes ages to build anything meaningful when each pipe takes four seconds to fasten to the floor. * Halves time to deattach transit tubes Should be just as easy to get rid of as they are to build * Update transit_tube.dm * Update transit_tube_construction.dm --- code/game/objects/structures/transit_tubes/transit_tube.dm | 3 ++- .../structures/transit_tubes/transit_tube_construction.dm | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/objects/structures/transit_tubes/transit_tube.dm b/code/game/objects/structures/transit_tubes/transit_tube.dm index a958cc2fb63..f0e11434f21 100644 --- a/code/game/objects/structures/transit_tubes/transit_tube.dm +++ b/code/game/objects/structures/transit_tubes/transit_tube.dm @@ -12,6 +12,7 @@ var/list/tube_dirs //list of directions this tube section can connect to. var/exit_delay = 1 var/enter_delay = 0 + var/const/time_to_unwrench = 2 SECONDS /obj/structure/transit_tube/CanPass(atom/movable/mover, turf/target) if(istype(mover) && (mover.pass_flags & PASSGLASS)) @@ -42,7 +43,7 @@ to_chat(user, "Remove the pod first!") return user.visible_message("[user] starts to deattach \the [src].", "You start to deattach the [name]...") - if(W.use_tool(src, user, 40, volume=50)) + if(W.use_tool(src, user, time_to_unwrench, volume=50)) to_chat(user, "You deattach the [name].") var/obj/structure/c_transit_tube/R = new tube_construction(loc) R.setDir(dir) diff --git a/code/game/objects/structures/transit_tubes/transit_tube_construction.dm b/code/game/objects/structures/transit_tubes/transit_tube_construction.dm index 883cd8e4bb2..fb5988f72af 100644 --- a/code/game/objects/structures/transit_tubes/transit_tube_construction.dm +++ b/code/game/objects/structures/transit_tubes/transit_tube_construction.dm @@ -9,6 +9,7 @@ density = FALSE layer = LOW_ITEM_LAYER //same as the built tube anchored = FALSE + var/const/time_to_unwrench = 2 SECONDS var/flipped = 0 var/build_type = /obj/structure/transit_tube var/flipped_build_type @@ -33,7 +34,7 @@ /obj/structure/c_transit_tube/wrench_act(mob/living/user, obj/item/I) to_chat(user, "You start attaching the [name]...") add_fingerprint(user) - if(I.use_tool(src, user, 40, volume=50)) + if(I.use_tool(src, user, time_to_unwrench, volume=50)) to_chat(user, "You attach the [name].") var/obj/structure/transit_tube/R = new build_type(loc, dir) transfer_fingerprints_to(R)