A bunch of Initialize()s now have return values
This commit is contained in:
@@ -172,7 +172,7 @@
|
||||
terminal.master = src
|
||||
|
||||
/obj/machinery/power/apc/Initialize(mapload)
|
||||
..()
|
||||
. = ..()
|
||||
if(!mapload)
|
||||
return
|
||||
has_electronics = 2 //installed and secured
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
|
||||
/obj/machinery/power/generator/Initialize(mapload)
|
||||
..()
|
||||
. = ..()
|
||||
var/obj/machinery/atmospherics/components/binary/circulator/circpath = /obj/machinery/atmospherics/components/binary/circulator
|
||||
cold_circ = locate(circpath) in get_step(src, cold_dir)
|
||||
hot_circ = locate(circpath) in get_step(src, hot_dir)
|
||||
|
||||
@@ -98,7 +98,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne
|
||||
//
|
||||
|
||||
/obj/machinery/gravity_generator/main/station/Initialize()
|
||||
..()
|
||||
. = ..()
|
||||
setup_parts()
|
||||
middle.add_overlay("activated")
|
||||
update_list()
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
var/current_heat = 0
|
||||
|
||||
/obj/machinery/power/port_gen/pacman/Initialize()
|
||||
..()
|
||||
. = ..()
|
||||
if(anchored)
|
||||
connect_to_network()
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
/obj/item/stack/sheet/mineral/uranium = 10) // We have no Pu-238, and this is the closest thing to it.
|
||||
|
||||
/obj/machinery/power/rtg/Initialize()
|
||||
..()
|
||||
. = ..()
|
||||
connect_to_network()
|
||||
|
||||
/obj/machinery/power/rtg/process()
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
rotate()
|
||||
|
||||
/obj/machinery/power/emitter/Initialize()
|
||||
..()
|
||||
. = ..()
|
||||
if(state == 2 && anchored)
|
||||
connect_to_network()
|
||||
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
var/list/connected_panels = list()
|
||||
|
||||
/obj/machinery/power/solar_control/Initialize()
|
||||
..()
|
||||
. = ..()
|
||||
if(powernet)
|
||||
set_panels(currentdir)
|
||||
connect_to_network()
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
/obj/item/weapon/stock_parts/manipulator = 6)
|
||||
|
||||
/obj/machinery/power/compressor/Initialize()
|
||||
..()
|
||||
. = ..()
|
||||
locate_machinery()
|
||||
if(!turbine)
|
||||
stat |= BROKEN
|
||||
@@ -202,7 +202,7 @@
|
||||
/obj/item/weapon/stock_parts/capacitor = 6)
|
||||
|
||||
/obj/machinery/power/turbine/Initialize()
|
||||
..()
|
||||
. = ..()
|
||||
locate_machinery()
|
||||
if(!compressor)
|
||||
stat |= BROKEN
|
||||
@@ -338,7 +338,7 @@
|
||||
|
||||
|
||||
/obj/machinery/computer/turbine_computer/Initialize()
|
||||
..()
|
||||
. = ..()
|
||||
locate_machinery()
|
||||
|
||||
/obj/machinery/computer/turbine_computer/locate_machinery()
|
||||
|
||||
Reference in New Issue
Block a user