A bunch of Initialize()s now have return values

This commit is contained in:
CitadelStationBot
2017-04-25 03:51:57 -05:00
parent 306e7c1cba
commit d931e5801c
39 changed files with 59 additions and 51 deletions
+1 -1
View File
@@ -172,7 +172,7 @@
terminal.master = src
/obj/machinery/power/apc/Initialize(mapload)
..()
. = ..()
if(!mapload)
return
has_electronics = 2 //installed and secured
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -60,7 +60,7 @@
var/current_heat = 0
/obj/machinery/power/port_gen/pacman/Initialize()
..()
. = ..()
if(anchored)
connect_to_network()
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -88,7 +88,7 @@
rotate()
/obj/machinery/power/emitter/Initialize()
..()
. = ..()
if(state == 2 && anchored)
connect_to_network()
+1 -1
View File
@@ -282,7 +282,7 @@
var/list/connected_panels = list()
/obj/machinery/power/solar_control/Initialize()
..()
. = ..()
if(powernet)
set_panels(currentdir)
connect_to_network()
+3 -3
View File
@@ -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()