mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Pipe Fingerprint Transferring
- Wrenching down a pipe will now transfer prints from the pipe object to the pipe machine. Vice versa for unwrenching a pipe. - Wrenching down or unwrenching a pipe will now leave a fingerprint on the pipe.
This commit is contained in:
@@ -112,11 +112,14 @@
|
||||
"[user] unfastens \the [src].", \
|
||||
"\blue You have unfastened \the [src].", \
|
||||
"You hear ratchet.")
|
||||
new /obj/item/pipe(loc, make_from=src)
|
||||
var/obj/item/P = new /obj/item/pipe(loc, make_from=src)
|
||||
for (var/obj/machinery/meter/meter in T)
|
||||
if (meter.target == src)
|
||||
new /obj/item/pipe_meter(T)
|
||||
del(meter)
|
||||
if(P)
|
||||
transfer_fingerprints_to(P)
|
||||
P.add_fingerprint(user)
|
||||
qdel(src)
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user