Merge pull request #15585 from SandPoot/Initialize(mapload)

Every case of initialize that should have mapload, does
This commit is contained in:
silicons
2022-04-15 17:41:57 -07:00
committed by GitHub
881 changed files with 1588 additions and 1588 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
name = "Baseturf skipover placeholder"
desc = "This shouldn't exist"
/turf/baseturf_skipover/Initialize()
/turf/baseturf_skipover/Initialize(mapload)
. = ..()
stack_trace("[src]([type]) was instanced which should never happen. Changing into the next baseturf down...")
ScrapeAway()
+2 -2
View File
@@ -14,7 +14,7 @@
/// how much of inbound yelling to dampen
var/yelling_dampen = 0.5
/turf/closed/Initialize()
/turf/closed/Initialize(mapload)
. = ..()
/turf/closed/AfterChange()
@@ -119,7 +119,7 @@
smooth = SMOOTH_TRUE
icon = 'icons/obj/smooth_structures/reinforced_window.dmi'
/turf/closed/indestructible/fakeglass/Initialize()
/turf/closed/indestructible/fakeglass/Initialize(mapload)
. = ..()
icon_state = null //set the icon state to null, so our base state isn't visible
underlays += mutable_appearance('icons/obj/structures.dmi', "grille") //add a grille underlay
+1 -1
View File
@@ -124,7 +124,7 @@
heavyfootstep = FOOTSTEP_LAVA
tiled_dirt = FALSE
/turf/open/indestructible/necropolis/Initialize()
/turf/open/indestructible/necropolis/Initialize(mapload)
. = ..()
if(prob(12))
icon_state = "necro[rand(2,3)]"
@@ -18,7 +18,7 @@
heavyfootstep = FOOTSTEP_CATWALK
var/covered = TRUE
/turf/open/floor/plating/catwalk_floor/Initialize()
/turf/open/floor/plating/catwalk_floor/Initialize(mapload)
. = ..()
layer = CATWALK_LAYER
update_icon(UPDATE_OVERLAYS)
+2 -2
View File
@@ -2,7 +2,7 @@
baseturfs = /turf/open/transparent/openspace
intact = FALSE //this means wires go on top
/turf/open/transparent/Initialize() // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker
/turf/open/transparent/Initialize(mapload) // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker
. = ..()
plane = OPENSPACE_PLANE
layer = OPENSPACE_LAYER
@@ -59,7 +59,7 @@
clawfootstep = FOOTSTEP_HARD_CLAW
heavyfootstep = FOOTSTEP_GENERIC_HEAVY
/turf/open/transparent/glass/Initialize()
/turf/open/transparent/glass/Initialize(mapload)
icon_state = "" //Prevent the normal icon from appearing behind the smooth overlays
..()
return INITIALIZE_HINT_LATELOAD
+2 -2
View File
@@ -11,7 +11,7 @@
bullet_bounce_sound = null //abandon all hope ye who enter
dirt_buildup_allowed = FALSE
/turf/open/chasm/Initialize()
/turf/open/chasm/Initialize(mapload)
. = ..()
AddComponent(/datum/component/chasm, SSmapping.get_turf_below(src))
@@ -118,7 +118,7 @@
light_range = 1.9
light_power = 0.65
/turf/open/chasm/magic/Initialize()
/turf/open/chasm/magic/Initialize(mapload)
. = ..()
var/turf/T = safepick(get_area_turfs(/area/fabric_of_reality))
if(T)
@@ -108,7 +108,7 @@
var/turfverb = "uproot"
tiled_dirt = FALSE
/turf/open/floor/grass/Initialize()
/turf/open/floor/grass/Initialize(mapload)
. = ..()
update_icon()
@@ -203,7 +203,7 @@
initial_gas_mix = LAVALAND_DEFAULT_ATMOS
slowdown = 0
/turf/open/floor/grass/snow/basalt/Initialize()
/turf/open/floor/grass/snow/basalt/Initialize(mapload)
. = ..()
if(prob(15))
icon_state = "basalt[rand(0, 12)]"
@@ -224,7 +224,7 @@
clawfootstep = FOOTSTEP_SAND
heavyfootstep = FOOTSTEP_GENERIC_HEAVY
/turf/open/floor/grass/fakebasalt/Initialize()
/turf/open/floor/grass/fakebasalt/Initialize(mapload)
. = ..()
if(prob(15))
icon_state = "basalt[rand(0, 12)]"
@@ -252,7 +252,7 @@
. = ..()
. += "<span class='notice'>There's a <b>small crack</b> on the edge of it.</span>"
/turf/open/floor/carpet/Initialize()
/turf/open/floor/carpet/Initialize(mapload)
. = ..()
update_icon()
@@ -413,7 +413,7 @@
plane = PLANE_SPACE
tiled_dirt = FALSE
/turf/open/floor/fakespace/Initialize()
/turf/open/floor/fakespace/Initialize(mapload)
. = ..()
icon_state = SPACE_ICON_STATE
@@ -17,7 +17,7 @@
. = ..()
. += "<span class='notice'>There's a <b>small crack</b> on the edge of it.</span>"
/turf/open/floor/light/Initialize()
/turf/open/floor/light/Initialize(mapload)
. = ..()
update_icon()
@@ -16,7 +16,7 @@
tiled_dirt = FALSE
/turf/open/floor/mineral/Initialize()
/turf/open/floor/mineral/Initialize(mapload)
if(!broken_states)
broken_states = list("[initial(icon_state)]_dam")
. = ..()
@@ -237,7 +237,7 @@
icons = list("alienpod1", "alienpod2", "alienpod3", "alienpod4", "alienpod5", "alienpod6", "alienpod7", "alienpod8", "alienpod9")
baseturfs = /turf/open/floor/plating/abductor2
/turf/open/floor/mineral/abductor/Initialize()
/turf/open/floor/mineral/abductor/Initialize(mapload)
. = ..()
icon_state = "alienpod[rand(1,9)]"
@@ -18,7 +18,7 @@
floor_tile = /obj/item/stack/tile/circuit
var/on = TRUE
/turf/open/floor/circuit/Initialize()
/turf/open/floor/circuit/Initialize(mapload)
SSmapping.nuke_tiles += src
update_icon()
. = ..()
@@ -151,7 +151,7 @@
/turf/open/floor/clockwork/Bless() //Who needs holy blessings when you have DADDY RATVAR?
return
/turf/open/floor/clockwork/Initialize()
/turf/open/floor/clockwork/Initialize(mapload)
. = ..()
if(uses_overlay)
new /obj/effect/temp_visual/ratvar/floor(src)
+1 -1
View File
@@ -29,7 +29,7 @@
else
. += "<span class='notice'>You might be able to build ontop of it with some <i>tiles</i>...</span>"
/turf/open/floor/plating/Initialize()
/turf/open/floor/plating/Initialize(mapload)
if (!broken_states)
broken_states = list("platingdmg1", "platingdmg2", "platingdmg3")
if (!burnt_states)
@@ -29,7 +29,7 @@
// /turf/open/floor/plating/asteroid/setup_broken_states()
// return list("asteroid_dug")
/turf/open/floor/plating/asteroid/Initialize()
/turf/open/floor/plating/asteroid/Initialize(mapload)
var/proper_name = name
. = ..()
name = proper_name
@@ -116,7 +116,7 @@
baseturfs = /turf/open/floor/plating/asteroid/airless
initial_gas_mix = AIRLESS_ATMOS
/turf/open/floor/plating/asteroid/basalt/Initialize()
/turf/open/floor/plating/asteroid/basalt/Initialize(mapload)
. = ..()
set_basalt_light(src)
@@ -12,7 +12,7 @@
icon_state = "alienpod1"
tiled_dirt = FALSE
/turf/open/floor/plating/abductor/Initialize()
/turf/open/floor/plating/abductor/Initialize(mapload)
. = ..()
icon_state = "alienpod[rand(1,9)]"
@@ -56,7 +56,7 @@
heavyfootstep = FOOTSTEP_GENERIC_HEAVY
tiled_dirt = FALSE
/turf/open/floor/plating/ashplanet/Initialize()
/turf/open/floor/plating/ashplanet/Initialize(mapload)
if(smooth)
var/matrix/M = new
M.Translate(-4, -4)
@@ -101,7 +101,7 @@
clawfootstep = FOOTSTEP_HARD_CLAW
heavyfootstep = FOOTSTEP_GENERIC_HEAVY
/turf/open/floor/plating/ashplanet/wateryrock/Initialize()
/turf/open/floor/plating/ashplanet/wateryrock/Initialize(mapload)
icon_state = "[icon_state][rand(1, 9)]"
. = ..()
@@ -161,7 +161,7 @@
clawfootstep = FOOTSTEP_SAND
heavyfootstep = FOOTSTEP_GENERIC_HEAVY
/turf/open/floor/plating/ironsand/Initialize()
/turf/open/floor/plating/ironsand/Initialize(mapload)
. = ..()
icon_state = "ironsand[rand(1,15)]"
@@ -188,7 +188,7 @@
clawfootstep = FOOTSTEP_HARD_CLAW
heavyfootstep = FOOTSTEP_GENERIC_HEAVY
/turf/open/floor/plating/ice/Initialize()
/turf/open/floor/plating/ice/Initialize(mapload)
. = ..()
MakeSlippery(TURF_WET_PERMAFROST, INFINITY, 0, INFINITY, TRUE)
@@ -133,7 +133,7 @@
var/obj/effect/clockwork/overlay/floor/bloodcult/realappearance
/turf/open/floor/engine/cult/Initialize()
/turf/open/floor/engine/cult/Initialize(mapload)
. = ..()
new /obj/effect/temp_visual/cult/turf/floor(src)
realappearance = new /obj/effect/clockwork/overlay/floor/bloodcult(src)
+1 -1
View File
@@ -17,7 +17,7 @@
// return list("glass-damaged1", "glass-damaged2", "glass-damaged3")
/turf/open/floor/glass/Initialize()
/turf/open/floor/glass/Initialize(mapload)
icon_state = "" //Prevent the normal icon from appearing behind the smooth overlays
..()
return INITIALIZE_HINT_LATELOAD
+3 -3
View File
@@ -27,7 +27,7 @@
// If true you can mine the mineral turf with your hands
var/weak_turf = FALSE
/turf/closed/mineral/Initialize()
/turf/closed/mineral/Initialize(mapload)
if (!canSmoothWith)
canSmoothWith = list(/turf/closed/mineral, /turf/closed/indestructible)
. = ..()
@@ -191,7 +191,7 @@
//Currently, Adamantine won't spawn as it has no uses. -Durandan
var/mineralChance = 13
/turf/closed/mineral/random/Initialize()
/turf/closed/mineral/random/Initialize(mapload)
mineralSpawnChanceList = typelist("mineralSpawnChanceList", mineralSpawnChanceList)
@@ -512,7 +512,7 @@
var/activated_name = null
var/mutable_appearance/activated_overlay
/turf/closed/mineral/gibtonite/Initialize()
/turf/closed/mineral/gibtonite/Initialize(mapload)
det_time = rand(8,10) //So you don't know exactly when the hot potato will explode
. = ..()
+2 -2
View File
@@ -36,7 +36,7 @@ GLOBAL_DATUM_INIT(openspace_backdrop_one_for_all, /atom/movable/openspace_backdr
// /turf/open/transparent/openspace/show_bottom_level()
// return FALSE
/turf/open/openspace/Initialize() // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker
/turf/open/openspace/Initialize(mapload) // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker
. = ..()
vis_contents += GLOB.openspace_backdrop_one_for_all //Special grey square for projecting backdrop darkness filter on it.
return INITIALIZE_HINT_LATELOAD
@@ -165,7 +165,7 @@ GLOBAL_DATUM_INIT(openspace_backdrop_one_for_all, /atom/movable/openspace_backdr
/// If true mineral turfs below this openspace turf will be mined automatically
var/drill_below = TRUE
/turf/open/openspace/icemoon/Initialize()
/turf/open/openspace/icemoon/Initialize(mapload)
. = ..()
var/turf/T = below()
if(T.flags_1 & NO_RUINS_1 && protect_ruin)
+2 -2
View File
@@ -10,7 +10,7 @@
explosion_block = 10
girder_type = /obj/structure/girder/cult
/turf/closed/wall/mineral/cult/Initialize()
/turf/closed/wall/mineral/cult/Initialize(mapload)
new /obj/effect/temp_visual/cult/turf(src)
. = ..()
@@ -60,7 +60,7 @@
var/heated
var/obj/effect/clockwork/overlay/wall/realappearance
/turf/closed/wall/clockwork/Initialize()
/turf/closed/wall/clockwork/Initialize(mapload)
. = ..()
new /obj/effect/temp_visual/ratvar/wall(src)
new /obj/effect/temp_visual/ratvar/beam(src)
+3 -3
View File
@@ -33,7 +33,7 @@
*
* Doesn't call parent, see [/atom/proc/Initialize]
*/
/turf/open/space/Initialize()
/turf/open/space/Initialize(mapload)
SHOULD_CALL_PARENT(FALSE)
icon_state = SPACE_ICON_STATE
if(!space_gas)
@@ -283,7 +283,7 @@
baseturfs = /turf/open/space/transparent/openspace
intact = FALSE //this means wires go on top
/turf/open/space/transparent/Initialize() // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker
/turf/open/space/transparent/Initialize(mapload) // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker
..()
plane = OPENSPACE_PLANE
layer = OPENSPACE_LAYER
@@ -339,7 +339,7 @@
/turf/open/space/transparent/openspace/show_bottom_level()
return FALSE
/turf/open/space/transparent/openspace/Initialize() // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker
/turf/open/space/transparent/openspace/Initialize(mapload) // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker
. = ..()
icon_state = "transparent"
+1 -1
View File
@@ -101,7 +101,7 @@
return SSshuttle.is_in_shuttle_bounds(src)
/turf/open/space/transit/Initialize()
/turf/open/space/transit/Initialize(mapload)
. = ..()
update_icon()
for(var/atom/movable/AM in src)