Initialize fixing (#17279)

* Initialoize fixing

* diff fix

* add init grep test

* fixed missed ones

* .

* some more

* ,
This commit is contained in:
Kashargul
2025-03-08 13:59:29 -05:00
committed by GitHub
parent 76183beaa5
commit 46bea7cfa2
755 changed files with 1905 additions and 1904 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
density = TRUE
anchored = TRUE
/obj/machinery/disperser/Initialize()
/obj/machinery/disperser/Initialize(mapload)
. = ..()
// TODO - Remove this bit once machines are converted to Initialize
if(ispath(circuit))
@@ -25,7 +25,7 @@
var/next_shot = 0 //round time where the next shot can start from
var/const/coolinterval = 2 MINUTES //time to wait between safe shots in deciseconds
/obj/machinery/computer/ship/disperser/Initialize()
/obj/machinery/computer/ship/disperser/Initialize(mapload)
. = ..()
link_parts()
reset_calibration()
+1 -1
View File
@@ -14,7 +14,7 @@
var/difficulty = EVENT_LEVEL_MODERATE
var/weaknesses //if the BSA can destroy them and with what
/obj/effect/overmap/event/Initialize()
/obj/effect/overmap/event/Initialize(mapload)
. = ..()
icon_state = pick(event_icon_states)
GLOB.overmap_event_handler.update_hazards(loc)
+1 -1
View File
@@ -35,7 +35,7 @@
var/list/cam_plane_masters
var/obj/screen/background/cam_background
/obj/effect/overmap/Initialize()
/obj/effect/overmap/Initialize(mapload)
. = ..()
if(!global.using_map.use_overmap)
return INITIALIZE_HINT_QDEL
+1 -1
View File
@@ -19,7 +19,7 @@
var/skybox_offset_x = 0
var/skybox_offset_y = 0
/obj/effect/overmap/visitable/planet/Initialize()
/obj/effect/overmap/visitable/planet/Initialize(mapload)
. = ..()
/obj/effect/overmap/visitable/planet/get_skybox_representation()
+1 -1
View File
@@ -125,7 +125,7 @@
var/parent_shuttle
var/base_tank = /obj/item/tank/phoron
/obj/structure/fuel_port/Initialize()
/obj/structure/fuel_port/Initialize(mapload)
. = ..()
if(base_tank)
new base_tank(src)
+1 -1
View File
@@ -49,7 +49,7 @@
var/unique_identifier //Define this for objs that we want to be able to rename. Needed to avoid compiler errors if not included.
/obj/effect/overmap/visitable/Initialize()
/obj/effect/overmap/visitable/Initialize(mapload)
. = ..()
if(. == INITIALIZE_HINT_QDEL)
return
+2 -2
View File
@@ -37,7 +37,7 @@ GLOBAL_LIST_EMPTY(all_waypoints)
icon_screen = "adv_helm_screen"
light_color = "#70ffa0"
/obj/machinery/computer/ship/helm/Initialize()
/obj/machinery/computer/ship/helm/Initialize(mapload)
. = ..()
get_known_sectors()
@@ -284,7 +284,7 @@ GLOBAL_LIST_EMPTY(all_waypoints)
circuit = /obj/item/circuitboard/nav
var/datum/tgui_module/ship/nav/nav_tgui
/obj/machinery/computer/ship/navigation/Initialize()
/obj/machinery/computer/ship/navigation/Initialize(mapload)
. = ..()
nav_tgui = new(src)
@@ -81,7 +81,7 @@
/obj/machinery/atmospherics/unary/engine/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
return 0
/obj/machinery/atmospherics/unary/engine/Initialize()
/obj/machinery/atmospherics/unary/engine/Initialize(mapload)
. = ..()
controller = new(src)
update_nearby_tiles(need_rebuild=1)
@@ -49,7 +49,7 @@
var/burn_cost = 7500
var/generated_thrust = 2.5
/obj/machinery/ion_engine/Initialize()
/obj/machinery/ion_engine/Initialize(mapload)
. = ..()
controller = new(src)
add_glow()
@@ -87,4 +87,4 @@
req_components = list(
/obj/item/stack/cable_coil = 2,
/obj/item/stock_parts/matter_bin = 1,
/obj/item/stock_parts/capacitor = 2)
/obj/item/stock_parts/capacitor = 2)
+1 -1
View File
@@ -47,7 +47,7 @@
var/obj/effect/overlay/vis/vector
render_map = TRUE
/obj/effect/overmap/visitable/ship/Initialize()
/obj/effect/overmap/visitable/ship/Initialize(mapload)
. = ..()
min_speed = round(min_speed, SHIP_MOVE_RESOLUTION)
max_speed = round(max_speed, SHIP_MOVE_RESOLUTION)
+1 -1
View File
@@ -1,4 +1,4 @@
/obj/effect/overmap/visitable/ship/Initialize()
/obj/effect/overmap/visitable/ship/Initialize(mapload)
. = ..()
listening_objects += src
+1 -1
View File
@@ -5,7 +5,7 @@
known = FALSE
in_space = TRUE
/obj/effect/overmap/visitable/sector/temporary/Initialize()
/obj/effect/overmap/visitable/sector/temporary/Initialize(mapload)
if(!istype(loc, /turf/unsimulated/map))
CRASH("Attempt to create deepspace which is not on overmap: [log_info_line(loc)]")
// Tell sector initializer where are is where we want to be.
+2 -2
View File
@@ -20,7 +20,7 @@ var/global/list/map_sectors = list()
var/map_is_to_my
var/turf/unsimulated/map/edge/wrap_buddy
/turf/unsimulated/map/edge/Initialize()
/turf/unsimulated/map/edge/Initialize(mapload)
..()
return INITIALIZE_HINT_LATELOAD
@@ -51,7 +51,7 @@ var/global/list/map_sectors = list()
else
. = ..()
/turf/unsimulated/map/Initialize()
/turf/unsimulated/map/Initialize(mapload)
. = ..()
name = "[x]-[y]"
var/list/numbers = list()