mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Fixes abductor console linking (#5098)
This commit is contained in:
@@ -14,6 +14,10 @@
|
||||
icon = 'icons/obj/abductor.dmi'
|
||||
icon_state = "camera"
|
||||
|
||||
/obj/machinery/computer/camera_advanced/abductor/New()
|
||||
abductor_equipment.Add(src)
|
||||
..()
|
||||
|
||||
/obj/machinery/computer/camera_advanced/abductor/CreateEye()
|
||||
..()
|
||||
eyeobj.visible_icon = 1
|
||||
@@ -162,4 +166,4 @@
|
||||
var/mob/camera/aiEye/remote/remote_eye = C.remote_control
|
||||
|
||||
var/obj/machinery/abductor/console/console = target
|
||||
console.SetDroppoint(remote_eye.loc,owner)
|
||||
console.SetDroppoint(remote_eye.loc,owner)
|
||||
|
||||
@@ -167,17 +167,17 @@
|
||||
|
||||
/obj/machinery/abductor/console/proc/Link_Abduction_Equipment() // these must all be explicitly `in machines` or they will not properly link.
|
||||
|
||||
for(var/obj/machinery/abductor/pad/p in machines)
|
||||
for(var/obj/machinery/abductor/pad/p in abductor_equipment)
|
||||
if(p.team == team)
|
||||
pad = p
|
||||
break
|
||||
|
||||
for(var/obj/machinery/abductor/experiment/e in machines)
|
||||
for(var/obj/machinery/abductor/experiment/e in abductor_equipment)
|
||||
if(e.team == team)
|
||||
experiment = e
|
||||
e.console = src
|
||||
|
||||
for(var/obj/machinery/computer/camera_advanced/abductor/c in machines)
|
||||
for(var/obj/machinery/computer/camera_advanced/abductor/c in abductor_equipment)
|
||||
if(c.team == team)
|
||||
camera = c
|
||||
c.console = src
|
||||
@@ -220,4 +220,4 @@
|
||||
new item(src.loc)
|
||||
else
|
||||
atom_say("Insufficent data!")
|
||||
return
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user