Skip to content

Commit

Permalink
no more multi-linking
Browse files Browse the repository at this point in the history
  • Loading branch information
Pockets-byte committed Sep 10, 2024
1 parent 8d3ff18 commit e815574
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,18 @@
to_chat(user, "<font color = #666633>-% Cannot link machines across power zones. %-</font color>")
return

parent = P.buffer

if(istype(src,/obj/machinery/cooling/cooler))
parent.coolers -= src
parent = null
parent = P.buffer
.=TRUE
parent.coolers |= src
to_chat(user, "<font color = #666633>-% Successfully linked [P.buffer] with [src] %-</font color>")
if(istype(src,/obj/machinery/cooling/storage))
parent.storages -= src
parent = null
parent = P.buffer
.=TRUE
parent.storages |= src
to_chat(user, "<font color = #666633>-% Successfully linked [P.buffer] with [src] %-</font color>")
Expand Down

0 comments on commit e815574

Please sign in to comment.