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
+2 -2
View File
@@ -8,7 +8,7 @@ var/list/z_levels = list()// Each bit re... haha just kidding this is a list of
z_levels.len = i
z_levels[i] = TRUE
/obj/effect/landmark/map_data/Initialize()
/obj/effect/landmark/map_data/Initialize(mapload)
..()
return INITIALIZE_HINT_QDEL
@@ -52,4 +52,4 @@ var/list/z_levels = list()// Each bit re... haha just kidding this is a list of
else if (dir == DOWN)
. = GetBelow(ref)
else
. = get_step(ref, dir)
. = get_step(ref, dir)
+1 -1
View File
@@ -13,7 +13,7 @@
var/climb_time = 2 SECONDS
/obj/structure/ladder/Initialize()
/obj/structure/ladder/Initialize(mapload)
. = ..()
// the upper will connect to the lower
if(allowed_directions & DOWN) //we only want to do the top one, as it will initialize the ones before it.
+5 -5
View File
@@ -9,7 +9,7 @@
unacidable = TRUE
layer = STAIRS_LAYER
/obj/structure/stairs/Initialize()
/obj/structure/stairs/Initialize(mapload)
. = ..()
if(check_integrity())
update_icon()
@@ -71,7 +71,7 @@
var/obj/structure/stairs/top/top = null
var/obj/structure/stairs/middle/middle = null
/obj/structure/stairs/bottom/Initialize()
/obj/structure/stairs/bottom/Initialize(mapload)
. = ..()
if(!GetAbove(src))
warning("Stair created without level above: ([loc.x], [loc.y], [loc.z])")
@@ -245,7 +245,7 @@
var/obj/structure/stairs/top/top = null
var/obj/structure/stairs/bottom/bottom = null
/obj/structure/stairs/middle/Initialize()
/obj/structure/stairs/middle/Initialize(mapload)
. = ..()
if(!GetAbove(src))
warning("Stair created without level above: ([loc.x], [loc.y], [loc.z])")
@@ -328,7 +328,7 @@
var/obj/structure/stairs/middle/middle = null
var/obj/structure/stairs/bottom/bottom = null
/obj/structure/stairs/top/Initialize()
/obj/structure/stairs/top/Initialize(mapload)
. = ..()
if(!GetBelow(src))
warning("Stair created without level below: ([loc.x], [loc.y], [loc.z])")
@@ -497,7 +497,7 @@
icon = 'icons/obj/structures/stairs_64x64.dmi'
icon_state = ""
/obj/structure/stairs/spawner/Initialize()
/obj/structure/stairs/spawner/Initialize(mapload)
..()
var/turf/B1 = get_step(get_turf(src), turn(dir, 180))
var/turf/B2 = get_turf(src)
+2 -2
View File
@@ -64,7 +64,7 @@ GLOBAL_DATUM_INIT(openspace_backdrop_one_for_all, /atom/movable/openspace_backdr
nitrogen = 0
temperature = TCMB
/turf/simulated/open/Initialize()
/turf/simulated/open/Initialize(mapload)
. = ..()
ASSERT(HasBelow(z))
add_overlay(GLOB.openspace_backdrop_one_for_all, TRUE) //Special grey square for projecting backdrop darkness filter on it.
@@ -174,7 +174,7 @@ GLOBAL_DATUM_INIT(openspace_backdrop_one_for_all, /atom/movable/openspace_backdr
// /turf/simulated/floor/glass/setup_broken_states()
// return list("glass-damaged1", "glass-damaged2", "glass-damaged3")
/turf/simulated/floor/glass/Initialize()
/turf/simulated/floor/glass/Initialize(mapload)
icon_state = "" //Prevent the normal icon from appearing behind the smooth overlays
..()
return INITIALIZE_HINT_LATELOAD