Made the teleporters (the one with the computer, power station and portal) link eachother at roundstart with initialize(). And also at New() because why not.

This commit is contained in:
Aranclanos
2014-04-02 07:01:44 -03:00
parent 08abac40f8
commit d3d7e84c3f
+11
View File
@@ -12,9 +12,13 @@
/obj/machinery/computer/teleporter/New()
src.id = "[rand(1000, 9999)]"
link_power_station()
..()
return
/obj/machinery/computer/teleporter/initialize()
link_power_station()
/obj/machinery/computer/teleporter/proc/link_power_station()
if(power_station)
return
@@ -198,6 +202,9 @@
component_parts += new /obj/item/weapon/stock_parts/matter_bin(null)
RefreshParts()
/obj/machinery/teleport/hub/initialize()
link_power_station()
/obj/machinery/teleport/hub/RefreshParts()
var/A = 0
for(var/obj/item/weapon/stock_parts/matter_bin/M in component_parts)
@@ -282,6 +289,10 @@
component_parts += new /obj/item/weapon/stock_parts/capacitor(null)
component_parts += new /obj/item/weapon/stock_parts/console_screen(null)
RefreshParts()
link_console_and_hub()
/obj/machinery/teleport/station/initialize()
link_console_and_hub()
/obj/machinery/teleport/station/RefreshParts()
var/E