[MIRROR] Fingerprints are transferred from pipe fittings to newly-secured pipes, and migrates securing them to wrench_act() from attackby() (#5265)

* Merge pull request #35210 from Xhuis/pipe_fingerprints

Fingerprints are transferred from pipe fittings to newly-secured pipes, and migrates securing them to wrench_act() from attackby()

* Fingerprints are transferred from pipe fittings to newly-secured pipes, and migrates securing them to wrench_act() from attackby()
This commit is contained in:
CitadelStationBot
2018-02-04 22:46:58 -06:00
committed by Poojawa
parent 19a8b66255
commit d346420e9f
+4 -4
View File
@@ -125,11 +125,10 @@ Buildable meters
setDir(turn(dir,-90))
fixdir()
/obj/item/pipe/attackby(obj/item/W, mob/user, params)
if (!istype(W, /obj/item/wrench))
return ..()
if (!isturf(loc))
/obj/item/pipe/wrench_act(mob/living/user, obj/item/wrench/W)
if(!isturf(loc))
return TRUE
add_fingerprint(user)
fixdir()
@@ -150,6 +149,7 @@ Buildable meters
var/obj/machinery/atmospherics/A = new pipe_type(loc)
build_pipe(A)
A.on_construction(color, piping_layer)
transfer_fingerprints_to(A)
playsound(src, W.usesound, 50, 1)
user.visible_message( \