diff --git a/code/_onclick/hud/picture_in_picture.dm b/code/_onclick/hud/picture_in_picture.dm index aae4ce37001..7562b3c1b56 100644 --- a/code/_onclick/hud/picture_in_picture.dm +++ b/code/_onclick/hud/picture_in_picture.dm @@ -14,7 +14,7 @@ var/mutable_appearance/standard_background var/const/max_dimensions = 10 -/atom/movable/screen/movable/pic_in_pic/Initialize() +/atom/movable/screen/movable/pic_in_pic/Initialize(mapload) . = ..() make_backgrounds() diff --git a/code/_onclick/hud/plane_master.dm b/code/_onclick/hud/plane_master.dm index c28d7efb270..faabf24b70c 100644 --- a/code/_onclick/hud/plane_master.dm +++ b/code/_onclick/hud/plane_master.dm @@ -47,7 +47,7 @@ mymob.overlay_fullscreen("lighting_backdrop_lit", /atom/movable/screen/fullscreen/stretch/lighting_backdrop/lit) mymob.overlay_fullscreen("lighting_backdrop_unlit", /atom/movable/screen/fullscreen/stretch/lighting_backdrop/unlit) -/atom/movable/screen/plane_master/lighting/Initialize() +/atom/movable/screen/plane_master/lighting/Initialize(mapload) . = ..() add_filter("emissives", 1, alpha_mask_filter(render_source = EMISSIVE_RENDER_TARGET, flags = MASK_INVERSE)) @@ -73,7 +73,7 @@ mouse_opacity = MOUSE_OPACITY_TRANSPARENT render_target = EMISSIVE_RENDER_TARGET -/atom/movable/screen/plane_master/emissive/Initialize() +/atom/movable/screen/plane_master/emissive/Initialize(mapload) . = ..() add_filter("em_block_masking", 1, color_matrix_filter(GLOB.em_mask_matrix)) diff --git a/code/datums/status_effects/debuffs.dm b/code/datums/status_effects/debuffs.dm index 6bcdddea7fe..1a7e58fc0ac 100644 --- a/code/datums/status_effects/debuffs.dm +++ b/code/datums/status_effects/debuffs.dm @@ -1347,7 +1347,7 @@ icon_state = "rift" color = "red" -/obj/effect/bubblegum_warning/Initialize() +/obj/effect/bubblegum_warning/Initialize(mapload) . = ..() addtimer(CALLBACK(src, PROC_REF(slap_someone)), 2.5 SECONDS) //A chance to run away diff --git a/code/game/gamemodes/miniantags/abduction/abduction_gear.dm b/code/game/gamemodes/miniantags/abduction/abduction_gear.dm index 7bcc1262b4b..754e1619a3b 100644 --- a/code/game/gamemodes/miniantags/abduction/abduction_gear.dm +++ b/code/game/gamemodes/miniantags/abduction/abduction_gear.dm @@ -425,7 +425,7 @@ CONTENTS: item_state = "abductor_headset" ks2type = /obj/item/encryptionkey/heads/captain -/obj/item/radio/headset/abductor/Initialize() +/obj/item/radio/headset/abductor/Initialize(mapload) . = ..() make_syndie() // Why the hell is this a proc why cant it just be a subtype diff --git a/code/game/gamemodes/miniantags/abduction/machinery/console.dm b/code/game/gamemodes/miniantags/abduction/machinery/console.dm index be975ef273b..db6453bcb7f 100644 --- a/code/game/gamemodes/miniantags/abduction/machinery/console.dm +++ b/code/game/gamemodes/miniantags/abduction/machinery/console.dm @@ -28,7 +28,7 @@ var/obj/machinery/computer/camera_advanced/abductor/camera var/list/datum/icon_snapshot/disguises = list() -/obj/machinery/abductor/console/Initialize() +/obj/machinery/abductor/console/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/game/gamemodes/nuclear/nuclearbomb.dm b/code/game/gamemodes/nuclear/nuclearbomb.dm index 4eb06a9325f..419f8c27fd7 100644 --- a/code/game/gamemodes/nuclear/nuclearbomb.dm +++ b/code/game/gamemodes/nuclear/nuclearbomb.dm @@ -71,7 +71,7 @@ GLOBAL_VAR(bomb_set) extended = FALSE anchored = FALSE -/obj/machinery/nuclearbomb/Initialize() +/obj/machinery/nuclearbomb/Initialize(mapload) . = ..() r_code = rand(10000, 99999) // Creates a random code upon object spawn. wires = new/datum/wires/nuclearbomb(src) @@ -87,7 +87,7 @@ GLOBAL_VAR(bomb_set) radio.follow_target = src radio.config(list("Special Ops" = 0)) -/obj/machinery/nuclearbomb/syndicate/Initialize() +/obj/machinery/nuclearbomb/syndicate/Initialize(mapload) . = ..() wires.labelled = FALSE ADD_TRAIT(src, TRAIT_OBSCURED_WIRES, ROUNDSTART_TRAIT) @@ -793,7 +793,7 @@ GLOBAL_VAR(bomb_set) training = TRUE sprite_prefix = "t_" -/obj/machinery/nuclearbomb/training/Initialize() +/obj/machinery/nuclearbomb/training/Initialize(mapload) . = ..() r_code = 11111 //Uuh.. one! diff --git a/code/game/gamemodes/wizard/magic_tarot.dm b/code/game/gamemodes/wizard/magic_tarot.dm index 992ddf86336..b3e825ab9e6 100644 --- a/code/game/gamemodes/wizard/magic_tarot.dm +++ b/code/game/gamemodes/wizard/magic_tarot.dm @@ -249,7 +249,7 @@ pixel_y = 20 duration = 1.5 SECONDS -/obj/effect/temp_visual/tarot_preview/Initialize(atom/mapload, new_icon_state) +/obj/effect/temp_visual/tarot_preview/Initialize(mapload, new_icon_state) . = ..() if(new_icon_state) icon_state = "tarot_[new_icon_state]" diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index ffcdfdad7d1..94a342c7c0f 100644 --- a/code/game/machinery/autolathe.dm +++ b/code/game/machinery/autolathe.dm @@ -38,7 +38,7 @@ var/list/categories = list("Tools", "Electronics", "Construction", "Communication", "Security", "Machinery", "Medical", "Miscellaneous", "Dinnerware", "Imported") var/board_type = /obj/item/circuitboard/autolathe -/obj/machinery/autolathe/Initialize() +/obj/machinery/autolathe/Initialize(mapload) . = ..() AddComponent(/datum/component/material_container, list(MAT_METAL, MAT_GLASS), _show_on_examine=TRUE, _after_insert=CALLBACK(src, PROC_REF(AfterMaterialInsert))) component_parts = list() @@ -56,7 +56,7 @@ files = new /datum/research/autolathe(src) matching_designs = list() -/obj/machinery/autolathe/upgraded/Initialize() +/obj/machinery/autolathe/upgraded/Initialize(mapload) . = ..() component_parts = list() component_parts += new board_type(null) @@ -67,7 +67,7 @@ component_parts += new /obj/item/stack/sheet/glass(null) RefreshParts() -/obj/machinery/autolathe/upgraded/gamma/Initialize() +/obj/machinery/autolathe/upgraded/gamma/Initialize(mapload) . = ..() files = new /datum/research/autolathe/gamma(src) adjust_hacked(TRUE) @@ -524,7 +524,7 @@ name = "syndicate autolathe" board_type = /obj/item/circuitboard/autolathe/syndi -/obj/machinery/autolathe/syndicate/Initialize() +/obj/machinery/autolathe/syndicate/Initialize(mapload) . = ..() files = new /datum/research/autolathe/syndicate(src) diff --git a/code/game/machinery/computer/atmos_controllers.dm b/code/game/machinery/computer/atmos_controllers.dm index 9e005b49b46..6c2143c0546 100644 --- a/code/game/machinery/computer/atmos_controllers.dm +++ b/code/game/machinery/computer/atmos_controllers.dm @@ -123,7 +123,7 @@ GLOBAL_LIST_EMPTY(gas_sensors) /// List of sensor names to cache lists used in the display TGUI var/tmp/list/sensor_name_data_map = list() -/obj/machinery/computer/general_air_control/Initialize() +/obj/machinery/computer/general_air_control/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD // Do all our work in here diff --git a/code/game/machinery/computer/camera_console.dm b/code/game/machinery/computer/camera_console.dm index b53aeb6d3b7..09cdf1a6e90 100644 --- a/code/game/machinery/computer/camera_console.dm +++ b/code/game/machinery/computer/camera_console.dm @@ -29,7 +29,7 @@ /obj/machinery/computer/security/ui_host() return parent ? parent : src -/obj/machinery/computer/security/Initialize() +/obj/machinery/computer/security/Initialize(mapload) . = ..() // Initialize map objects map_name = "camera_console_[UID()]_map" @@ -230,7 +230,7 @@ /// Used to detect how many video cameras are active var/feeds_on = 0 -/obj/machinery/computer/security/telescreen/entertainment/Initialize() +/obj/machinery/computer/security/telescreen/entertainment/Initialize(mapload) . = ..() set_light(1, LIGHTING_MINIMUM_POWER) //so byond doesnt cull, and we get an emissive appearance @@ -305,7 +305,7 @@ network = list() circuit = /obj/item/circuitboard/camera/engineering -/obj/machinery/computer/security/engineering/Initialize() +/obj/machinery/computer/security/engineering/Initialize(mapload) . = ..() network = list() var/area/console_area = get_area(src) diff --git a/code/game/machinery/computer/computer.dm b/code/game/machinery/computer/computer.dm index 374f3e9cefb..73cf7213794 100644 --- a/code/game/machinery/computer/computer.dm +++ b/code/game/machinery/computer/computer.dm @@ -19,7 +19,7 @@ /// Are we forcing the icon to be represented in a no-power state? var/force_no_power_icon_state = FALSE -/obj/machinery/computer/Initialize() +/obj/machinery/computer/Initialize(mapload) . = ..() power_change() update_icon() diff --git a/code/game/machinery/computer/crew_monitoring.dm b/code/game/machinery/computer/crew_monitoring.dm index 17f19ffa65c..d0c747c58be 100644 --- a/code/game/machinery/computer/crew_monitoring.dm +++ b/code/game/machinery/computer/crew_monitoring.dm @@ -9,7 +9,7 @@ circuit = /obj/item/circuitboard/crew var/datum/ui_module/crew_monitor/crew_monitor -/obj/machinery/computer/crew/Initialize() +/obj/machinery/computer/crew/Initialize(mapload) . = ..() crew_monitor = new(src) @@ -39,6 +39,6 @@ name = "advanced crew monitoring computer" desc = "Used to monitor active health sensors built into most of the crew's uniforms across multiple sectors." -/obj/machinery/computer/crew/advanced/Initialize() +/obj/machinery/computer/crew/advanced/Initialize(mapload) . = ..() crew_monitor.is_advanced = TRUE diff --git a/code/game/machinery/computer/medical_records.dm b/code/game/machinery/computer/medical_records.dm index a57bc83ff48..e3772b0a791 100644 --- a/code/game/machinery/computer/medical_records.dm +++ b/code/game/machinery/computer/medical_records.dm @@ -27,7 +27,7 @@ light_color = LIGHT_COLOR_DARKBLUE -/obj/machinery/computer/med_data/Initialize() +/obj/machinery/computer/med_data/Initialize(mapload) . = ..() field_edit_questions = list( // General diff --git a/code/game/machinery/computer/message_monitor.dm b/code/game/machinery/computer/message_monitor.dm index 0ff58f33386..fd66ec23513 100644 --- a/code/game/machinery/computer/message_monitor.dm +++ b/code/game/machinery/computer/message_monitor.dm @@ -29,7 +29,7 @@ light_color = LIGHT_COLOR_DARKGREEN -/obj/machinery/computer/message_monitor/Initialize() +/obj/machinery/computer/message_monitor/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD // Give the message server time to initialize diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index 19b6d021711..06d2270ef8a 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -124,7 +124,7 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays) return TRUE return FALSE -/obj/machinery/door/airlock/Initialize() +/obj/machinery/door/airlock/Initialize(mapload) . = ..() /* About the new airlock wires panel: diff --git a/code/game/machinery/doors/airlock_types.dm b/code/game/machinery/doors/airlock_types.dm index 9a2a29a93f9..dcb9603a536 100644 --- a/code/game/machinery/doors/airlock_types.dm +++ b/code/game/machinery/doors/airlock_types.dm @@ -332,7 +332,7 @@ glass = TRUE opacity = FALSE -/obj/machinery/door/airlock/centcom/glass/Initialize() +/obj/machinery/door/airlock/centcom/glass/Initialize(mapload) . = ..() update_icon() @@ -518,7 +518,7 @@ /// Inner airlock material (Glass, plasteel) var/stealth_airlock_material = null -/obj/machinery/door/airlock/cult/Initialize() +/obj/machinery/door/airlock/cult/Initialize(mapload) . = ..() icon = GET_CULT_DATA(airlock_runed_icon_file, initial(icon)) overlays_file = GET_CULT_DATA(airlock_runed_overlays_file, initial(overlays_file)) @@ -583,7 +583,7 @@ glass = TRUE opacity = FALSE -/obj/machinery/door/airlock/cult/glass/Initialize() +/obj/machinery/door/airlock/cult/glass/Initialize(mapload) . = ..() update_icon() @@ -596,7 +596,7 @@ assemblytype = /obj/structure/door_assembly/door_assembly_cult/unruned openingoverlaytype = /obj/effect/temp_visual/cult/door/unruned -/obj/machinery/door/airlock/cult/unruned/Initialize() +/obj/machinery/door/airlock/cult/unruned/Initialize(mapload) . = ..() icon = GET_CULT_DATA(airlock_unruned_icon_file, initial(icon)) overlays_file = GET_CULT_DATA(airlock_unruned_overlays_file, initial(overlays_file)) @@ -609,7 +609,7 @@ glass = TRUE opacity = FALSE -/obj/machinery/door/airlock/cult/unruned/glass/Initialize() +/obj/machinery/door/airlock/cult/unruned/glass/Initialize(mapload) . = ..() update_icon() diff --git a/code/game/machinery/dye_generator.dm b/code/game/machinery/dye_generator.dm index 3a6e2c2c86f..29cff395050 100644 --- a/code/game/machinery/dye_generator.dm +++ b/code/game/machinery/dye_generator.dm @@ -8,7 +8,7 @@ idle_power_consumption = 40 var/dye_color = "#FFFFFF" -/obj/machinery/dye_generator/Initialize() +/obj/machinery/dye_generator/Initialize(mapload) . = ..() power_change() diff --git a/code/game/machinery/flasher.dm b/code/game/machinery/flasher.dm index b997c99a49a..69f22c6d0f1 100644 --- a/code/game/machinery/flasher.dm +++ b/code/game/machinery/flasher.dm @@ -16,7 +16,7 @@ var/base_state = "mflash" anchored = TRUE -/obj/machinery/flasher/Initialize() +/obj/machinery/flasher/Initialize(mapload) . = ..() update_icon() diff --git a/code/game/machinery/floodlight.dm b/code/game/machinery/floodlight.dm index ac9571a6dd0..e0c6d035b55 100644 --- a/code/game/machinery/floodlight.dm +++ b/code/game/machinery/floodlight.dm @@ -18,7 +18,7 @@ /obj/machinery/floodlight/get_cell() return cell -/obj/machinery/floodlight/Initialize() +/obj/machinery/floodlight/Initialize(mapload) . = ..() cell = new(src) mapVarInit() diff --git a/code/game/machinery/shieldgen.dm b/code/game/machinery/shieldgen.dm index 5c266789a88..c38b77c6fb7 100644 --- a/code/game/machinery/shieldgen.dm +++ b/code/game/machinery/shieldgen.dm @@ -79,7 +79,7 @@ /// The rune that created the shield itself. Used to delete the rune when the shield is destroyed. var/obj/effect/rune/parent_rune -/obj/machinery/shield/cult/barrier/Initialize() +/obj/machinery/shield/cult/barrier/Initialize(mapload) . = ..() invisibility = INVISIBILITY_MAXIMUM diff --git a/code/game/machinery/status_display.dm b/code/game/machinery/status_display.dm index da1a037a0f0..0235e45ea64 100644 --- a/code/game/machinery/status_display.dm +++ b/code/game/machinery/status_display.dm @@ -33,7 +33,7 @@ GLOBAL_LIST_EMPTY(status_displays) var/index1 var/index2 -/obj/machinery/status_display/Initialize() +/obj/machinery/status_display/Initialize(mapload) . = ..() GLOB.status_displays |= src update_icon(UPDATE_OVERLAYS) diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm index d726a0c00a0..f1d575b9f3e 100644 --- a/code/game/machinery/suit_storage_unit.dm +++ b/code/game/machinery/suit_storage_unit.dm @@ -244,7 +244,7 @@ helmet_type = /obj/item/clothing/head/radiation storage_type = /obj/item/geiger_counter -/obj/machinery/suit_storage_unit/Initialize() +/obj/machinery/suit_storage_unit/Initialize(mapload) . = ..() component_parts = list() diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm index 2517b3a3749..3d702f8a84a 100644 --- a/code/game/machinery/teleporter.dm +++ b/code/game/machinery/teleporter.dm @@ -29,7 +29,7 @@ /// When the teleporter is upgraded, it can lock onto beacons directly, rather than turfs. This is the variable for it. var/advanced_beacon_locking = FALSE -/obj/machinery/computer/teleporter/Initialize() +/obj/machinery/computer/teleporter/Initialize(mapload) . = ..() link_power_station() update_icon() diff --git a/code/game/machinery/turret_control.dm b/code/game/machinery/turret_control.dm index 0641f41f236..c299244991e 100644 --- a/code/game/machinery/turret_control.dm +++ b/code/game/machinery/turret_control.dm @@ -67,7 +67,7 @@ A.turret_controls -= src return ..() -/obj/machinery/turretid/Initialize() +/obj/machinery/turretid/Initialize(mapload) . = ..() if(!control_area) control_area = get_area(src) diff --git a/code/game/mecha/mech_bay.dm b/code/game/mecha/mech_bay.dm index be9227943b5..304e45e8d1d 100644 --- a/code/game/mecha/mech_bay.dm +++ b/code/game/mecha/mech_bay.dm @@ -209,7 +209,7 @@ ) return data -/obj/machinery/computer/mech_bay_power_console/Initialize() +/obj/machinery/computer/mech_bay_power_console/Initialize(mapload) reconnect() update_icon() return ..() diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index bd96797ad52..13aff91eff7 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -131,7 +131,7 @@ hud_possible = list (DIAG_STAT_HUD, DIAG_BATT_HUD, DIAG_MECH_HUD, DIAG_TRACK_HUD) -/obj/mecha/Initialize() +/obj/mecha/Initialize(mapload) . = ..() icon_state += "-open" add_radio() diff --git a/code/game/objects/effects/decals/Cleanable/fuel.dm b/code/game/objects/effects/decals/Cleanable/fuel.dm index f4ccb3151cb..c8cfcae0e64 100644 --- a/code/game/objects/effects/decals/Cleanable/fuel.dm +++ b/code/game/objects/effects/decals/Cleanable/fuel.dm @@ -38,7 +38,7 @@ icon_state = "mustard" anchored = FALSE -/obj/effect/decal/cleanable/liquid_fuel/flamethrower_fuel/Initialize(newLoc, amt = 1, d = 0) +/obj/effect/decal/cleanable/liquid_fuel/flamethrower_fuel/Initialize(mapload, newLoc, amt = 1, d = 0) dir = d //Setting this direction means you won't get torched by your own flamethrower. . = ..() diff --git a/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm b/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm index 9019d139355..7ff65230575 100644 --- a/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm +++ b/code/game/objects/effects/decals/Cleanable/misc_cleanables.dm @@ -50,7 +50,7 @@ canSmoothWith = list(SMOOTH_GROUP_CLEANABLE_DIRT, SMOOTH_GROUP_WALLS) mouse_opacity = FALSE -/obj/effect/decal/cleanable/dirt/Initialize() +/obj/effect/decal/cleanable/dirt/Initialize(mapload) . = ..() QUEUE_SMOOTH_NEIGHBORS(src) if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) diff --git a/code/game/objects/effects/effect_system/effects_foam.dm b/code/game/objects/effects/effect_system/effects_foam.dm index 5a550c677d4..0c5f9c2e8b2 100644 --- a/code/game/objects/effects/effect_system/effects_foam.dm +++ b/code/game/objects/effects/effect_system/effects_foam.dm @@ -252,7 +252,7 @@ max_integrity = 20 var/metal = METAL_FOAM_ALUMINUM -/obj/structure/foamedmetal/Initialize() +/obj/structure/foamedmetal/Initialize(mapload) . = ..() recalculate_atmos_connectivity() diff --git a/code/game/objects/effects/spawners/airlock_spawner.dm b/code/game/objects/effects/spawners/airlock_spawner.dm index 3fa3c557e4b..5a3c24419c1 100644 --- a/code/game/objects/effects/spawners/airlock_spawner.dm +++ b/code/game/objects/effects/spawners/airlock_spawner.dm @@ -38,7 +38,7 @@ This spawner places pipe leading up to the interior door, you will need to finis var/one_door_interior //For square airlocks, if you set this then a) only one door will spawn, and b) you can choose if the door should go opposite to how it normally goes. Please use the define var/one_door_exterior //See above -/obj/effect/spawner/airlock/Initialize() +/obj/effect/spawner/airlock/Initialize(mapload) ..() forceMove(locate(x + 1, y + 1, z)) //Needs to move because our icon_state implies we are one turf to the northeast, when we're not opposite_interior_direction = turn(interior_direction, 180) //Do it this way (instead of setting it directly) to avoid code mishaps diff --git a/code/game/objects/effects/spawners/random/misc_spawners.dm b/code/game/objects/effects/spawners/random/misc_spawners.dm index 6ce67943a30..4b05982f3a4 100644 --- a/code/game/objects/effects/spawners/random/misc_spawners.dm +++ b/code/game/objects/effects/spawners/random/misc_spawners.dm @@ -8,7 +8,7 @@ ) record_spawn = TRUE -/obj/effect/spawner/random/dice/Initialize() +/obj/effect/spawner/random/dice/Initialize(mapload) . = ..() spawn_loot_count = rand(1, 2) diff --git a/code/game/objects/items/devices/chameleonproj.dm b/code/game/objects/items/devices/chameleonproj.dm index 673140791c3..f204e8499d1 100644 --- a/code/game/objects/items/devices/chameleonproj.dm +++ b/code/game/objects/items/devices/chameleonproj.dm @@ -101,7 +101,7 @@ var/can_move = TRUE var/obj/item/chameleon/master = null -/obj/effect/dummy/chameleon/Initialize() +/obj/effect/dummy/chameleon/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_EFFECT_CAN_TELEPORT, ROUNDSTART_TRAIT) diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index 604a8f0e13d..1b4348b8deb 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -13,7 +13,7 @@ var/brightness_on = 4 //luminosity when on var/togglesound = 'sound/weapons/empty.ogg' -/obj/item/flashlight/Initialize() +/obj/item/flashlight/Initialize(mapload) . = ..() update_brightness() @@ -228,14 +228,14 @@ /obj/item/flashlight/flare/used -/obj/item/flashlight/flare/used/Initialize() +/obj/item/flashlight/flare/used/Initialize(mapload) . = ..() // fuel gets set on New which is annoying so these can't just be vars fuel = 0 on = 0 update_icon() -/obj/item/flashlight/flare/glowstick/used/Initialize() +/obj/item/flashlight/flare/glowstick/used/Initialize(mapload) . = ..() // fuel gets set on New which is annoying so these can't just be vars fuel = 0 @@ -268,7 +268,7 @@ fuel_upp = 2000 blocks_emissive = FALSE -/obj/item/flashlight/flare/glowstick/Initialize() +/obj/item/flashlight/flare/glowstick/Initialize(mapload) . = ..() light_color = color @@ -315,7 +315,7 @@ icon_state = "random_glowstick" color = null -/obj/item/flashlight/flare/glowstick/random/Initialize() +/obj/item/flashlight/flare/glowstick/random/Initialize(mapload) . = ..() var/T = pick(typesof(/obj/item/flashlight/flare/glowstick) - /obj/item/flashlight/flare/glowstick/random - /obj/item/flashlight/flare/glowstick/emergency) new T(loc) diff --git a/code/game/objects/items/devices/radio/beacon.dm b/code/game/objects/items/devices/radio/beacon.dm index b09a7739b99..fd80d2149fc 100644 --- a/code/game/objects/items/devices/radio/beacon.dm +++ b/code/game/objects/items/devices/radio/beacon.dm @@ -17,7 +17,7 @@ var/cc_beacon = FALSE //set if allowed to teleport to even if on zlevel2 var/wormhole_weaver = FALSE // special beacons for wormwhole weaver -/obj/item/beacon/Initialize() +/obj/item/beacon/Initialize(mapload) . = ..() GLOB.beacons |= src diff --git a/code/game/objects/items/devices/radio/encryptionkey.dm b/code/game/objects/items/devices/radio/encryptionkey.dm index 84e2a15ba1a..d99d5cb4af7 100644 --- a/code/game/objects/items/devices/radio/encryptionkey.dm +++ b/code/game/objects/items/devices/radio/encryptionkey.dm @@ -23,7 +23,7 @@ var/fake_name = "Agent ALERT_A_CODER" var/static/list/fakename_list -/obj/item/encryptionkey/syndicate/Initialize() +/obj/item/encryptionkey/syndicate/Initialize(mapload) if(!LAZYLEN(fakename_list)) fakename_list = GLOB.html_colors.Copy() . = ..() diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm index ea8dac2bb26..6c3f728f8ce 100644 --- a/code/game/objects/items/devices/radio/headset.dm +++ b/code/game/objects/items/devices/radio/headset.dm @@ -90,7 +90,7 @@ instant = TRUE freqlock = TRUE -/obj/item/radio/headset/alt/deathsquad/Initialize() +/obj/item/radio/headset/alt/deathsquad/Initialize(mapload) . = ..() set_frequency(DTH_FREQ) diff --git a/code/game/objects/items/devices/radio/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm index f2eb9da5007..4479fe1d71e 100644 --- a/code/game/objects/items/devices/radio/intercom.dm +++ b/code/game/objects/items/devices/radio/intercom.dm @@ -67,7 +67,7 @@ GLOB.global_intercoms.Add(src) update_icon(UPDATE_ICON_STATE | UPDATE_OVERLAYS) -/obj/item/radio/intercom/Initialize() +/obj/item/radio/intercom/Initialize(mapload) . = ..() if(!custom_name) name = "station intercom (General)" diff --git a/code/game/objects/items/stacks/sheets/sheet_types.dm b/code/game/objects/items/stacks/sheets/sheet_types.dm index 9510c01b033..e1eb2711455 100644 --- a/code/game/objects/items/stacks/sheets/sheet_types.dm +++ b/code/game/objects/items/stacks/sheets/sheet_types.dm @@ -534,7 +534,7 @@ GLOBAL_LIST_INIT(soil_recipes, list ( resistance_flags = FIRE_PROOF merge_type = /obj/item/stack/sheet/soil -/obj/item/stack/sheet/soil/Initialize(loc, amt) +/obj/item/stack/sheet/soil/Initialize(mapload, loc, amt) recipes = GLOB.soil_recipes return ..() diff --git a/code/game/objects/items/theft_items.dm b/code/game/objects/items/theft_items.dm index 2f01761618c..213f59ff20f 100644 --- a/code/game/objects/items/theft_items.dm +++ b/code/game/objects/items/theft_items.dm @@ -15,7 +15,7 @@ var/cooldown = 0 var/pulseicon = "plutonium_core_pulse" -/obj/item/nuke_core/Initialize() +/obj/item/nuke_core/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) @@ -328,7 +328,7 @@ usesound = 'sound/weapons/bladeslice.ogg' var/uses_left -/obj/item/scalpel/supermatter/Initialize() +/obj/item/scalpel/supermatter/Initialize(mapload) . = ..() uses_left = rand(2, 4) diff --git a/code/game/objects/items/weapons/RCD.dm b/code/game/objects/items/weapons/RCD.dm index 2431ae640c0..d7ea80dd794 100644 --- a/code/game/objects/items/weapons/RCD.dm +++ b/code/game/objects/items/weapons/RCD.dm @@ -269,7 +269,7 @@ /// The list of potential RCD actions. var/static/list/possible_actions -/obj/item/rcd/Initialize() +/obj/item/rcd/Initialize(mapload) . = ..() if(!length(possible_actions)) possible_actions = list() @@ -358,13 +358,13 @@ user.visible_message("[user] puts the barrel of [src] into [user.p_their()] mouth and pulls the trigger. It looks like [user.p_theyre()] trying to commit suicide!") if(!afterattack(suicide_tile, user, TRUE)) - flags &= ~NODROP + flags &= ~NODROP return SHAME user.visible_message("[user] explodes as [src] builds a structure inside [user.p_them()]!") - flags &= ~NODROP + flags &= ~NODROP user.gib() - return OBLITERATION - + return OBLITERATION + /** * Creates and returns a base64 icon of the given `airlock_type`. * diff --git a/code/game/objects/items/weapons/clown_items.dm b/code/game/objects/items/weapons/clown_items.dm index 8d98b7fcdf2..392ff0f398a 100644 --- a/code/game/objects/items/weapons/clown_items.dm +++ b/code/game/objects/items/weapons/clown_items.dm @@ -23,7 +23,7 @@ throw_range = 15 attack_verb = list("HONKED") -/obj/item/bikehorn/Initialize() +/obj/item/bikehorn/Initialize(mapload) . = ..() AddComponent(/datum/component/squeak, honk_sounds, 50, falloff_exponent = 20) //die off quick please diff --git a/code/game/objects/items/weapons/manuals.dm b/code/game/objects/items/weapons/manuals.dm index 23983343262..c0d9d2bab51 100644 --- a/code/game/objects/items/weapons/manuals.dm +++ b/code/game/objects/items/weapons/manuals.dm @@ -834,7 +834,7 @@ ///The Article title of the wiki page being opened in the , must use underscores '_' and not whitespace for spaces in title var/wiki_article_title = "Space_Law" -/obj/item/book/manual/wiki/Initialize() +/obj/item/book/manual/wiki/Initialize(mapload) . = ..() pages = list({" @@ -1010,7 +1010,7 @@ icon_state = "random_book" var/static/list/banned_books = list(/obj/item/book/manual/random, /obj/item/book/manual/nuclear, /obj/item/book/manual/wiki) -/obj/item/book/manual/random/Initialize() +/obj/item/book/manual/random/Initialize(mapload) ..() var/newtype = pick(subtypesof(/obj/item/book/manual) - banned_books) new newtype(loc) diff --git a/code/game/objects/items/weapons/shards.dm b/code/game/objects/items/weapons/shards.dm index 7f25b42f760..de8e2279f08 100644 --- a/code/game/objects/items/weapons/shards.dm +++ b/code/game/objects/items/weapons/shards.dm @@ -40,7 +40,7 @@ if(icon_prefix) icon_state = "[icon_prefix][icon_state]" -/obj/item/shard/Initialize() +/obj/item/shard/Initialize(mapload) . = ..() AddComponent(/datum/component/caltrop, force) set_initial_icon_state() diff --git a/code/game/objects/structures/aliens.dm b/code/game/objects/structures/aliens.dm index 80e9ae91f70..e4c2b29b69e 100644 --- a/code/game/objects/structures/aliens.dm +++ b/code/game/objects/structures/aliens.dm @@ -433,7 +433,7 @@ var/node_range = NODERANGE -/obj/structure/alien/weeds/node/Initialize() +/obj/structure/alien/weeds/node/Initialize(mapload) add_overlay("weednode") return ..(loc, src) diff --git a/code/game/objects/structures/fence.dm b/code/game/objects/structures/fence.dm index b3956fe0cfc..65e5e07a211 100644 --- a/code/game/objects/structures/fence.dm +++ b/code/game/objects/structures/fence.dm @@ -25,7 +25,7 @@ var/invulnerable = FALSE var/shock_cooldown = FALSE -/obj/structure/fence/Initialize() +/obj/structure/fence/Initialize(mapload) . = ..() update_cut_status() @@ -184,7 +184,7 @@ cuttable = FALSE var/open = FALSE -/obj/structure/fence/door/Initialize() +/obj/structure/fence/door/Initialize(mapload) . = ..() update_door_status() diff --git a/code/game/objects/structures/inflatable.dm b/code/game/objects/structures/inflatable.dm index 32a3fbe71a7..0f256008551 100644 --- a/code/game/objects/structures/inflatable.dm +++ b/code/game/objects/structures/inflatable.dm @@ -33,7 +33,7 @@ . = ..() . += "Alt-Click to deflate [src]." -/obj/structure/inflatable/Initialize(location) +/obj/structure/inflatable/Initialize(mapload, location) . = ..() recalculate_atmos_connectivity() diff --git a/code/game/objects/structures/lavaland/billboard.dm b/code/game/objects/structures/lavaland/billboard.dm index 8e3077387dd..04d5a703ba6 100644 --- a/code/game/objects/structures/lavaland/billboard.dm +++ b/code/game/objects/structures/lavaland/billboard.dm @@ -14,7 +14,7 @@ blocks_emissive = FALSE var/static/list/billboard_overlay = list("chasmland", "incompatible", "feed", "warm", "adventure", "plasmaland", "gate", "gate2", "ufo", "notfriendly", "gps", "service", "protection", "diamonds", "step", "paradise", "hell") -/obj/structure/lavaland_billboard/Initialize() +/obj/structure/lavaland_billboard/Initialize(mapload) . = ..() add_overlay(mutable_appearance(/obj/structure/lavaland_billboard, pick(billboard_overlay))) underlays += emissive_appearance(icon, "billboard_lightmask") diff --git a/code/game/objects/structures/mineral_doors.dm b/code/game/objects/structures/mineral_doors.dm index de327bca7e2..dca1467ea51 100644 --- a/code/game/objects/structures/mineral_doors.dm +++ b/code/game/objects/structures/mineral_doors.dm @@ -25,7 +25,7 @@ /// How much foam is on the door. Max 5 levels. var/foam_level = 0 -/obj/structure/mineral_door/Initialize() +/obj/structure/mineral_door/Initialize(mapload) . = ..() initial_state = icon_state recalculate_atmos_connectivity() @@ -217,7 +217,7 @@ max_integrity = 200 rad_insulation = RAD_VERY_LIGHT_INSULATION -/obj/structure/mineral_door/wood/Initialize() +/obj/structure/mineral_door/wood/Initialize(mapload) . = ..() AddComponent(/datum/component/debris, DEBRIS_WOOD, -20, 10) diff --git a/code/game/objects/structures/misc_structures.dm b/code/game/objects/structures/misc_structures.dm index 3a33788ae4a..cde1e0cb44f 100644 --- a/code/game/objects/structures/misc_structures.dm +++ b/code/game/objects/structures/misc_structures.dm @@ -98,7 +98,7 @@ var/atom/attack_atom -/obj/structure/ghost_beacon/Initialize() +/obj/structure/ghost_beacon/Initialize(mapload) . = ..() last_ghost_alert = world.time attack_atom = src diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index 03c7147f7db..2be0a5f1ff0 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -38,7 +38,7 @@ var/open_sound = 'sound/items/deconstruct.ogg' var/status -/obj/structure/morgue/Initialize() +/obj/structure/morgue/Initialize(mapload) . = ..() update_icon(update_state()) set_light(1, LIGHTING_MINIMUM_POWER) diff --git a/code/game/objects/structures/plasma_geyser.dm b/code/game/objects/structures/plasma_geyser.dm index 82ce5bdd718..381d4cc3306 100644 --- a/code/game/objects/structures/plasma_geyser.dm +++ b/code/game/objects/structures/plasma_geyser.dm @@ -8,7 +8,7 @@ resistance_flags = LAVA_PROOF | FIRE_PROOF armor = list(MELEE = 30, BULLET = 80, LASER = 90, ENERGY = 90, BOMB = 80, RAD = 100, FIRE = 100, ACID = 100) -/obj/structures/plasmageyser/Initialize() +/obj/structures/plasmageyser/Initialize(mapload) . = ..() START_PROCESSING(SSprocessing, src) diff --git a/code/game/objects/structures/plasticflaps.dm b/code/game/objects/structures/plasticflaps.dm index e9dde28988f..f4f3d88ca2b 100644 --- a/code/game/objects/structures/plasticflaps.dm +++ b/code/game/objects/structures/plasticflaps.dm @@ -98,7 +98,7 @@ name = "airtight plastic flaps" desc = "Heavy duty, airtight, plastic flaps." -/obj/structure/plasticflaps/mining/Initialize() +/obj/structure/plasticflaps/mining/Initialize(mapload) . = ..() recalculate_atmos_connectivity() diff --git a/code/game/objects/structures/safe.dm b/code/game/objects/structures/safe.dm index fa06f02f4fd..435763c9908 100644 --- a/code/game/objects/structures/safe.dm +++ b/code/game/objects/structures/safe.dm @@ -441,7 +441,7 @@ GLOBAL_LIST_EMPTY(safes) drill_x_offset = -1 drill_y_offset = 20 -/obj/structure/safe/floor/Initialize() +/obj/structure/safe/floor/Initialize(mapload) . = ..() var/turf/T = loc if(!T.transparent_floor) diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index 60ec516c939..c334b2bc4a7 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -693,7 +693,7 @@ /obj/structure/table/wood/fancy/flip(direction) return FALSE -/obj/structure/table/wood/fancy/Initialize() +/obj/structure/table/wood/fancy/Initialize(mapload) . = ..() QUEUE_SMOOTH(src) @@ -828,7 +828,7 @@ var/list/typecache_can_hold = list(/mob, /obj/item) var/list/held_items = list() -/obj/structure/table/tray/Initialize() +/obj/structure/table/tray/Initialize(mapload) . = ..() typecache_can_hold = typecacheof(typecache_can_hold) for(var/atom/movable/held in get_turf(src)) diff --git a/code/game/turfs/simulated/floor/chasm.dm b/code/game/turfs/simulated/floor/chasm.dm index 86e26e198ed..4a819fd6385 100644 --- a/code/game/turfs/simulated/floor/chasm.dm +++ b/code/game/turfs/simulated/floor/chasm.dm @@ -163,7 +163,7 @@ /turf/simulated/floor/chasm/straight_down var/obj/effect/abstract/chasm_storage/storage -/turf/simulated/floor/chasm/straight_down/Initialize() +/turf/simulated/floor/chasm/straight_down/Initialize(mapload) . = ..() var/found_storage = FALSE for(var/obj/effect/abstract/chasm_storage/C in contents) @@ -187,7 +187,7 @@ light_power = 0.75 light_color = LIGHT_COLOR_LAVA //let's just say you're falling into lava, that makes sense right. Ignore the fact the people you pull out are not burning. -/turf/simulated/floor/chasm/straight_down/lava_land_surface/Initialize() +/turf/simulated/floor/chasm/straight_down/lava_land_surface/Initialize(mapload) . = ..() baseturf = /turf/simulated/floor/chasm/straight_down/lava_land_surface diff --git a/code/game/turfs/simulated/floor/light_floor.dm b/code/game/turfs/simulated/floor/light_floor.dm index 9c9ca17bb2d..dfc49b4bd4d 100644 --- a/code/game/turfs/simulated/floor/light_floor.dm +++ b/code/game/turfs/simulated/floor/light_floor.dm @@ -127,7 +127,7 @@ var/current_color // We pick a random color when we are spawned -/turf/simulated/floor/light/disco/Initialize() +/turf/simulated/floor/light/disco/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) diff --git a/code/game/turfs/simulated/walls_misc.dm b/code/game/turfs/simulated/walls_misc.dm index 392588b7144..daf5e9724df 100644 --- a/code/game/turfs/simulated/walls_misc.dm +++ b/code/game/turfs/simulated/walls_misc.dm @@ -56,7 +56,7 @@ smoothing_groups = list(SMOOTH_GROUP_WALLS, SMOOTH_GROUP_BRASS_WALL) canSmoothWith = list(SMOOTH_GROUP_BRASS_WALL) -/turf/simulated/wall/clockwork/Initialize() +/turf/simulated/wall/clockwork/Initialize(mapload) . = ..() new /obj/effect/temp_visual/ratvar/wall(src) new /obj/effect/temp_visual/ratvar/beam(src) diff --git a/code/modules/antagonists/traitor/contractor/items/contractor_kit.dm b/code/modules/antagonists/traitor/contractor/items/contractor_kit.dm index 029ffa7a8cb..a50582678ea 100644 --- a/code/modules/antagonists/traitor/contractor/items/contractor_kit.dm +++ b/code/modules/antagonists/traitor/contractor/items/contractor_kit.dm @@ -62,7 +62,7 @@ /obj/item/paper/contractor_guide name = "contractor guide" -/obj/item/paper/contractor_guide/Initialize() +/obj/item/paper/contractor_guide/Initialize(mapload) info = {"Welcome agent, congratulations on your new position as a Syndicate contractor. On top of your already assigned objectives, this kit will provide you contracts to take on for telecrystal payments. Provided within is your specialist contractor space suit. It's even more compact, being able to fit into a pocket, and faster than the diff --git a/code/modules/assembly/signaler.dm b/code/modules/assembly/signaler.dm index 980fcc5d3ca..8f6bec48d75 100644 --- a/code/modules/assembly/signaler.dm +++ b/code/modules/assembly/signaler.dm @@ -17,7 +17,7 @@ GLOBAL_LIST_EMPTY(remote_signalers) /// Signal freqency itself var/frequency = RSD_FREQ -/obj/item/assembly/signaler/Initialize() +/obj/item/assembly/signaler/Initialize(mapload) . = ..() GLOB.remote_signalers |= src diff --git a/code/modules/awaymissions/loot.dm b/code/modules/awaymissions/loot.dm index a0a1b472b71..7f77d78c7f2 100644 --- a/code/modules/awaymissions/loot.dm +++ b/code/modules/awaymissions/loot.dm @@ -5,7 +5,7 @@ var/lootdoubles = 0 //if the same item can be spawned twice var/loot = "" //a list of possible items to spawn- a string of paths -/obj/effect/spawner/away/lootdrop/Initialize() +/obj/effect/spawner/away/lootdrop/Initialize(mapload) ..() var/list/things = params2list(loot) diff --git a/code/modules/awaymissions/mission_code/ruins/oldstation.dm b/code/modules/awaymissions/mission_code/ruins/oldstation.dm index b5d06699246..f0f893d7b12 100644 --- a/code/modules/awaymissions/mission_code/ruins/oldstation.dm +++ b/code/modules/awaymissions/mission_code/ruins/oldstation.dm @@ -177,7 +177,7 @@ /obj/item/paper/fluff/ruins/oldstation/report name = "\improper Crew Reawakening Report" -/obj/item/paper/fluff/ruins/oldstation/report/Initialize() +/obj/item/paper/fluff/ruins/oldstation/report/Initialize(mapload) . = ..() init_current_date_string() info = "Artificial Program's report to surviving crewmembers.Crew were placed into cryostasis 10 March, 2445.Crew were awoken from cryostasis [GLOB.current_date_string]. \ diff --git a/code/modules/awaymissions/mission_code/ruins/telecomns.dm b/code/modules/awaymissions/mission_code/ruins/telecomns.dm index 117bd99d7e5..a66d8e74a38 100644 --- a/code/modules/awaymissions/mission_code/ruins/telecomns.dm +++ b/code/modules/awaymissions/mission_code/ruins/telecomns.dm @@ -63,7 +63,7 @@ GLOBAL_LIST_EMPTY(telecomms_trap_tank) //Has someone put an item in the autolathe, breaking the hologram? var/disguise_broken = FALSE -/obj/machinery/autolathe/trapped/Initialize() +/obj/machinery/autolathe/trapped/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_PARENT_ATTACKBY, PROC_REF(material_container_shenanigins)) @@ -220,7 +220,7 @@ GLOBAL_LIST_EMPTY(telecomms_trap_tank) name = "supermatter charged bomb core" desc = "If you are looking at this, please don't put it in a bomb" -/obj/item/bombcore/doomsday/Initialize() +/obj/item/bombcore/doomsday/Initialize(mapload) . = ..() if(!istype(loc, /obj/machinery/syndicatebomb/doomsday)) log_debug("something tried to spawn a telecomms doomsday ruin payload outside the ruin, deleting!") diff --git a/code/modules/awaymissions/mob_spawn.dm b/code/modules/awaymissions/mob_spawn.dm index bc1991d7153..3836b267eef 100644 --- a/code/modules/awaymissions/mob_spawn.dm +++ b/code/modules/awaymissions/mob_spawn.dm @@ -211,7 +211,7 @@ var/list/del_types = list(/obj/item/pda, /obj/item/radio/headset) -/obj/effect/mob_spawn/human/Initialize() +/obj/effect/mob_spawn/human/Initialize(mapload) if(ispath(outfit)) outfit = new outfit() if(!outfit) @@ -471,7 +471,7 @@ id_job = "Clown" outfit = /datum/outfit/job/clown -/obj/effect/mob_spawn/human/corpse/clown/Initialize() +/obj/effect/mob_spawn/human/corpse/clown/Initialize(mapload) mob_name = pick(GLOB.clown_names) return ..() @@ -480,7 +480,7 @@ name = "Clown Officer" outfit = /datum/outfit/clownofficer -/obj/effect/mob_spawn/human/corpse/clown/officer/Initialize() +/obj/effect/mob_spawn/human/corpse/clown/officer/Initialize(mapload) mob_name = "Honk Specialist [pick(GLOB.clown_names)]" return ..() /datum/outfit/clownofficer @@ -499,7 +499,7 @@ name = "Clown Soldier" outfit = /datum/outfit/clownsoldier -/obj/effect/mob_spawn/human/corpse/clown/soldier/Initialize() +/obj/effect/mob_spawn/human/corpse/clown/soldier/Initialize(mapload) mob_name = "Officer [pick(GLOB.clown_names)]" return ..() @@ -560,7 +560,7 @@ id_job = "Mime" outfit = /datum/outfit/job/mime -/obj/effect/mob_spawn/human/corpse/mime/Initialize() +/obj/effect/mob_spawn/human/corpse/mime/Initialize(mapload) mob_name = pick(GLOB.mime_names) return ..() diff --git a/code/modules/clothing/glasses/tajblind.dm b/code/modules/clothing/glasses/tajblind.dm index 7d5b9754e8c..cf793288406 100644 --- a/code/modules/clothing/glasses/tajblind.dm +++ b/code/modules/clothing/glasses/tajblind.dm @@ -60,7 +60,7 @@ icon_state = "tajblind_engi" item_state = "tajblind_engi" -/obj/item/clothing/glasses/hud/tajblind/meson/Initialize() +/obj/item/clothing/glasses/hud/tajblind/meson/Initialize(mapload) . = ..() desc += "It has an optical meson scanner integrated into it." @@ -86,7 +86,7 @@ scan_reagents = 1 actions_types = list(/datum/action/item_action/toggle, /datum/action/item_action/toggle_research_scanner) -/obj/item/clothing/glasses/hud/tajblind/sci/Initialize() +/obj/item/clothing/glasses/hud/tajblind/sci/Initialize(mapload) . = ..() desc += "It has science goggles integrated into it." @@ -101,7 +101,7 @@ hud_types = DATA_HUD_MEDICAL_ADVANCED examine_extensions = list(EXAMINE_HUD_MEDICAL_READ) -/obj/item/clothing/glasses/hud/tajblind/med/Initialize() +/obj/item/clothing/glasses/hud/tajblind/med/Initialize(mapload) . = ..() desc += "It has a health HUD integrated into it." @@ -112,7 +112,7 @@ hud_types = DATA_HUD_SECURITY_ADVANCED examine_extensions = list(EXAMINE_HUD_SECURITY_READ) -/obj/item/clothing/glasses/hud/tajblind/sec/Initialize() +/obj/item/clothing/glasses/hud/tajblind/sec/Initialize(mapload) . = ..() desc += "It has a security HUD integrated into it." @@ -121,7 +121,7 @@ flash_protect = FLASH_PROTECTION_FLASH tint = FLASH_PROTECTION_FLASH -/obj/item/clothing/glasses/hud/tajblind/shaded/Initialize() +/obj/item/clothing/glasses/hud/tajblind/shaded/Initialize(mapload) . = ..() desc += "It has an in-built flash protection." @@ -130,7 +130,7 @@ icon_state = "tajblind_engi" item_state = "tajblind_engi" -/obj/item/clothing/glasses/hud/tajblind/shaded/meson/Initialize() +/obj/item/clothing/glasses/hud/tajblind/shaded/meson/Initialize(mapload) . = ..() desc += "It has an optical meson scanner integrated into it." @@ -157,7 +157,7 @@ scan_reagents = 1 actions_types = list(/datum/action/item_action/toggle, /datum/action/item_action/toggle_research_scanner) -/obj/item/clothing/glasses/hud/tajblind/shaded/sci/Initialize() +/obj/item/clothing/glasses/hud/tajblind/shaded/sci/Initialize(mapload) . = ..() desc += "It has science goggles integrated into it." @@ -172,7 +172,7 @@ hud_types = DATA_HUD_MEDICAL_ADVANCED examine_extensions = list(EXAMINE_HUD_MEDICAL_READ) -/obj/item/clothing/glasses/hud/tajblind/shaded/med/Initialize() +/obj/item/clothing/glasses/hud/tajblind/shaded/med/Initialize(mapload) . = ..() desc += "It has a health HUD integrated into it." @@ -184,7 +184,7 @@ hud_types = DATA_HUD_SECURITY_ADVANCED examine_extensions = list(EXAMINE_HUD_SECURITY_READ) -/obj/item/clothing/glasses/hud/tajblind/shaded/sec/Initialize() +/obj/item/clothing/glasses/hud/tajblind/shaded/sec/Initialize(mapload) . = ..() desc += "It has a security HUD integrated into it." diff --git a/code/modules/clothing/gloves/boxing_gloves.dm b/code/modules/clothing/gloves/boxing_gloves.dm index b7b38b1c698..72adfaf38eb 100644 --- a/code/modules/clothing/gloves/boxing_gloves.dm +++ b/code/modules/clothing/gloves/boxing_gloves.dm @@ -7,7 +7,7 @@ species_exception = list(/datum/species/golem) // now you too can be a golem boxing champion var/datum/martial_art/boxing/style -/obj/item/clothing/gloves/boxing/Initialize() +/obj/item/clothing/gloves/boxing/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/clothing/masks/gasmask.dm b/code/modules/clothing/masks/gasmask.dm index 1181b593bcf..cd96e9bf92a 100644 --- a/code/modules/clothing/masks/gasmask.dm +++ b/code/modules/clothing/masks/gasmask.dm @@ -80,7 +80,7 @@ ..() w_class = up ? WEIGHT_CLASS_SMALL : WEIGHT_CLASS_NORMAL -/obj/item/clothing/mask/gas/explorer/folded/Initialize() +/obj/item/clothing/mask/gas/explorer/folded/Initialize(mapload) . = ..() force_adjust_mask() diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index 337d97ca831..b4df1a7be77 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -208,7 +208,7 @@ var/obj/item/assembly/signaler/anomaly/grav/core = null var/obj/item/stock_parts/cell/cell = null -/obj/item/clothing/shoes/magboots/gravity/Initialize() +/obj/item/clothing/shoes/magboots/gravity/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/clothing/spacesuits/ert_hardsuits.dm b/code/modules/clothing/spacesuits/ert_hardsuits.dm index 84961e9cd94..db21c8f4efb 100644 --- a/code/modules/clothing/spacesuits/ert_hardsuits.dm +++ b/code/modules/clothing/spacesuits/ert_hardsuits.dm @@ -21,7 +21,7 @@ "Vulpkanin" = 'icons/mob/clothing/species/vulpkanin/helmet.dmi' ) -/obj/item/clothing/head/helmet/space/hardsuit/ert/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/ert/Initialize(mapload) if(loc) var/mob/living/carbon/human/wearer = loc.loc //loc is the hardsuit, so its loc is the wearer if(ishuman(wearer)) diff --git a/code/modules/clothing/under/jobs/civilian.dm b/code/modules/clothing/under/jobs/civilian.dm index fb08d4a7eef..2228f7b4018 100644 --- a/code/modules/clothing/under/jobs/civilian.dm +++ b/code/modules/clothing/under/jobs/civilian.dm @@ -81,7 +81,7 @@ item_state = "clown" item_color = "clown" -/obj/item/clothing/under/rank/civilian/clown/Initialize() +/obj/item/clothing/under/rank/civilian/clown/Initialize(mapload) . = ..() AddComponent(/datum/component/squeak, list('sound/items/bikehorn.ogg' = 1), 50, falloff_exponent = 20) //die off quick please diff --git a/code/modules/economy/economy_machinery/account_terminal.dm b/code/modules/economy/economy_machinery/account_terminal.dm index c9e0785bc85..d7485d3212d 100644 --- a/code/modules/economy/economy_machinery/account_terminal.dm +++ b/code/modules/economy/economy_machinery/account_terminal.dm @@ -17,7 +17,7 @@ ///station account database var/datum/money_account_database/account_db -/obj/machinery/computer/account_database/Initialize() +/obj/machinery/computer/account_database/Initialize(mapload) . = ..() reconnect_database() diff --git a/code/modules/hydroponics/fermenting_barrel.dm b/code/modules/hydroponics/fermenting_barrel.dm index 2bd18ee1793..3236f0b59fe 100644 --- a/code/modules/hydroponics/fermenting_barrel.dm +++ b/code/modules/hydroponics/fermenting_barrel.dm @@ -11,7 +11,7 @@ var/open = FALSE var/speed_multiplier = 1 //How fast it distills. Defaults to 100% (1.0). Lower is better. -/obj/structure/fermenting_barrel/Initialize() +/obj/structure/fermenting_barrel/Initialize(mapload) create_reagents(300) //Bluespace beakers, but without the portability or efficiency in circuits. AddComponent(/datum/component/debris, DEBRIS_WOOD, -20, 10) . = ..() diff --git a/code/modules/hydroponics/grown/random_seeds.dm b/code/modules/hydroponics/grown/random_seeds.dm index e158fe2531b..a5835a3e9a0 100644 --- a/code/modules/hydroponics/grown/random_seeds.dm +++ b/code/modules/hydroponics/grown/random_seeds.dm @@ -37,7 +37,7 @@ icon_state = "crunchy" bitesize_mod = 2 -/obj/item/food/grown/random/Initialize() +/obj/item/food/grown/random/Initialize(mapload) . = ..() wine_power = rand(0.1,1.5) if(prob(1)) diff --git a/code/modules/instruments/objs/items/instrument_items.dm b/code/modules/instruments/objs/items/instrument_items.dm index ef53ea410fa..a524685b7d9 100644 --- a/code/modules/instruments/objs/items/instrument_items.dm +++ b/code/modules/instruments/objs/items/instrument_items.dm @@ -87,7 +87,7 @@ force = 0 attack_verb = list("played", "jazzed", "trumpeted", "mourned", "dooted", "spooked") -/obj/item/instrument/trumpet/spectral/Initialize() +/obj/item/instrument/trumpet/spectral/Initialize(mapload) . = ..() AddComponent(/datum/component/spooky) @@ -110,7 +110,7 @@ force = 0 attack_verb = list("played", "jazzed", "saxxed", "mourned", "dooted", "spooked") -/obj/item/instrument/saxophone/spectral/Initialize() +/obj/item/instrument/saxophone/spectral/Initialize(mapload) . = ..() AddComponent(/datum/component/spooky) @@ -133,7 +133,7 @@ force = 0 attack_verb = list("played", "jazzed", "tromboned", "mourned", "dooted", "spooked") -/obj/item/instrument/trombone/spectral/Initialize() +/obj/item/instrument/trombone/spectral/Initialize(mapload) . = ..() AddComponent(/datum/component/spooky) diff --git a/code/modules/library/book.dm b/code/modules/library/book.dm index 466033801e0..ae7a964ed72 100644 --- a/code/modules/library/book.dm +++ b/code/modules/library/book.dm @@ -359,7 +359,7 @@ icon_state = "random_book" var/amount = 1 -/obj/item/book/random/Initialize() +/obj/item/book/random/Initialize(mapload) . = ..() addtimer(CALLBACK(src, PROC_REF(spawn_books)), 0) diff --git a/code/modules/library/library_equipment.dm b/code/modules/library/library_equipment.dm index 82e88b3a1ca..66f23e72f1a 100644 --- a/code/modules/library/library_equipment.dm +++ b/code/modules/library/library_equipment.dm @@ -98,7 +98,7 @@ /obj/structure/bookcase/manuals/medical name = "Medical Manuals bookcase" -/obj/structure/bookcase/manuals/medical/Initialize() +/obj/structure/bookcase/manuals/medical/Initialize(mapload) . = ..() new /obj/item/book/manual/medical_cloning(src) update_icon(UPDATE_ICON_STATE) @@ -107,7 +107,7 @@ /obj/structure/bookcase/manuals/engineering name = "Engineering Manuals bookcase" -/obj/structure/bookcase/manuals/engineering/Initialize() +/obj/structure/bookcase/manuals/engineering/Initialize(mapload) . = ..() new /obj/item/book/manual/wiki/engineering_construction(src) new /obj/item/book/manual/engineering_particle_accelerator(src) @@ -120,7 +120,7 @@ /obj/structure/bookcase/manuals/research_and_development name = "R&D Manuals bookcase" -/obj/structure/bookcase/manuals/research_and_development/Initialize() +/obj/structure/bookcase/manuals/research_and_development/Initialize(mapload) . = ..() new /obj/item/book/manual/research_and_development(src) update_icon(UPDATE_ICON_STATE) @@ -128,7 +128,7 @@ /obj/structure/bookcase/sop name = "bookcase (Standard Operating Procedures)" -/obj/structure/bookcase/sop/Initialize() +/obj/structure/bookcase/sop/Initialize(mapload) . = ..() new /obj/item/book/manual/wiki/sop_command(src) new /obj/item/book/manual/wiki/sop_engineering(src) diff --git a/code/modules/martial_arts/bearserk.dm b/code/modules/martial_arts/bearserk.dm index bfd1becf106..26fe0e196f6 100644 --- a/code/modules/martial_arts/bearserk.dm +++ b/code/modules/martial_arts/bearserk.dm @@ -45,7 +45,7 @@ body_parts_covered = UPPER_TORSO|HEAD|ARMS var/datum/martial_art/bearserk/style -/obj/item/clothing/head/bearpelt/bearserk/Initialize() +/obj/item/clothing/head/bearpelt/bearserk/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/martial_arts/judo.dm b/code/modules/martial_arts/judo.dm index 2e2e9b3c66d..74cae47d84c 100644 --- a/code/modules/martial_arts/judo.dm +++ b/code/modules/martial_arts/judo.dm @@ -38,7 +38,7 @@ /obj/item/storage/belt/judobelt/update_weight() w_class = WEIGHT_CLASS_BULKY -/obj/item/storage/belt/judobelt/Initialize() +/obj/item/storage/belt/judobelt/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/martial_arts/krav_maga.dm b/code/modules/martial_arts/krav_maga.dm index 0d096b05c83..74561ec9ec4 100644 --- a/code/modules/martial_arts/krav_maga.dm +++ b/code/modules/martial_arts/krav_maga.dm @@ -146,7 +146,7 @@ dyeable = TRUE var/datum/martial_art/krav_maga/style -/obj/item/clothing/gloves/color/black/krav_maga/Initialize() +/obj/item/clothing/gloves/color/black/krav_maga/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/martial_arts/martial.dm b/code/modules/martial_arts/martial.dm index 603599a9228..2547f0d8cfc 100644 --- a/code/modules/martial_arts/martial.dm +++ b/code/modules/martial_arts/martial.dm @@ -261,7 +261,7 @@ layer_over_suit = TRUE var/datum/martial_art/wrestling/style -/obj/item/storage/belt/champion/wrestling/Initialize() +/obj/item/storage/belt/champion/wrestling/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/mining/equipment/mining_charges.dm b/code/modules/mining/equipment/mining_charges.dm index f338e1ebddc..6a1c104327a 100644 --- a/code/modules/mining/equipment/mining_charges.dm +++ b/code/modules/mining/equipment/mining_charges.dm @@ -15,7 +15,7 @@ var/boom_sizes = list(2, 3, 5) var/hacked = FALSE -/obj/item/grenade/plastic/miningcharge/Initialize() +/obj/item/grenade/plastic/miningcharge/Initialize(mapload) . = ..() image_overlay = mutable_appearance(icon, "[icon_state]_active", ON_EDGED_TURF_LAYER) diff --git a/code/modules/mining/equipment/survival_pod.dm b/code/modules/mining/equipment/survival_pod.dm index 6f7fccc38d5..9f98316b5d2 100644 --- a/code/modules/mining/equipment/survival_pod.dm +++ b/code/modules/mining/equipment/survival_pod.dm @@ -279,7 +279,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/economy/vending/wallmed/survival_pod, var/buildstacktype = /obj/item/stack/sheet/metal var/buildstackamount = 5 -/obj/structure/fans/Initialize(loc) +/obj/structure/fans/Initialize(mapload, loc) . = ..() recalculate_atmos_connectivity() diff --git a/code/modules/mining/equipment/wormhole_jaunter.dm b/code/modules/mining/equipment/wormhole_jaunter.dm index f8226490021..28e64797fd0 100644 --- a/code/modules/mining/equipment/wormhole_jaunter.dm +++ b/code/modules/mining/equipment/wormhole_jaunter.dm @@ -181,7 +181,7 @@ GLOBAL_LIST_EMPTY(wormhole_effect) icon_state = "flare-contractor-on" duration = 5.1 SECONDS // Needs to be slightly longer then the callback to make the portal -/obj/effect/temp_visual/getaway_flare/Initialize() +/obj/effect/temp_visual/getaway_flare/Initialize(mapload) . = ..() playsound(loc, 'sound/goonstation/misc/matchstick_light.ogg', 50, TRUE) set_light(8, l_color = "#FFD165") @@ -379,7 +379,7 @@ GLOBAL_LIST_EMPTY(wormhole_effect) /obj/effect/temp_visual/thunderbolt_targeting/wormhole_weaver duration = 5 SECONDS -/obj/effect/temp_visual/thunderbolt_targeting/wormhole_weaver/Initialize() +/obj/effect/temp_visual/thunderbolt_targeting/wormhole_weaver/Initialize(mapload) . = ..() GLOB.wormhole_effect += src playsound(loc, 'sound/machines/twobeep.ogg', 50, TRUE) diff --git a/code/modules/mining/fulton.dm b/code/modules/mining/fulton.dm index 66e473e25bf..a4a002eb5b6 100644 --- a/code/modules/mining/fulton.dm +++ b/code/modules/mining/fulton.dm @@ -181,7 +181,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons) desc = "you shouldnt see this" var/atom/movable/stored_obj -/obj/effect/extraction_holder/Initialize() +/obj/effect/extraction_holder/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_EFFECT_CAN_TELEPORT, ROUNDSTART_TRAIT) diff --git a/code/modules/mining/laborcamp/laborshuttle.dm b/code/modules/mining/laborcamp/laborshuttle.dm index 7a79f1b9643..837b6b5f8b8 100644 --- a/code/modules/mining/laborcamp/laborshuttle.dm +++ b/code/modules/mining/laborcamp/laborshuttle.dm @@ -36,7 +36,7 @@ var/inserted_id_uid var/obj/item/radio/intercom/announcer -/obj/machinery/mineral/labor_prisoner_shuttle_console/Initialize() +/obj/machinery/mineral/labor_prisoner_shuttle_console/Initialize(mapload) . = ..() announcer = new /obj/item/radio/intercom(null) announcer.follow_target = src diff --git a/code/modules/mining/lavaland/loot/colossus_loot.dm b/code/modules/mining/lavaland/loot/colossus_loot.dm index def0e5c7c20..b2f092a3720 100644 --- a/code/modules/mining/lavaland/loot/colossus_loot.dm +++ b/code/modules/mining/lavaland/loot/colossus_loot.dm @@ -79,7 +79,7 @@ /obj/machinery/anomalous_crystal/ex_act() ActivationReaction(null,"bomb") -/obj/machinery/anomalous_crystal/random/Initialize() //Just a random crysal spawner for loot +/obj/machinery/anomalous_crystal/random/Initialize(mapload) //Just a random crysal spawner for loot . = ..() var/random_crystal = pick(typesof(/obj/machinery/anomalous_crystal) - /obj/machinery/anomalous_crystal/random - /obj/machinery/anomalous_crystal) new random_crystal(loc) diff --git a/code/modules/mining/lavaland/loot/tendril_loot.dm b/code/modules/mining/lavaland/loot/tendril_loot.dm index 2055b5e736a..ddcceca876f 100644 --- a/code/modules/mining/lavaland/loot/tendril_loot.dm +++ b/code/modules/mining/lavaland/loot/tendril_loot.dm @@ -41,7 +41,7 @@ bag.red = src bag.blue = blue -/obj/item/shared_storage/Initialize() +/obj/item/shared_storage/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_ADJACENCY_TRANSPARENT, ROUNDSTART_TRAIT) @@ -426,7 +426,7 @@ icon = 'icons/effects/effects.dmi' var/can_destroy = FALSE -/obj/effect/immortality_talisman/Initialize() +/obj/effect/immortality_talisman/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_EFFECT_CAN_TELEPORT, ROUNDSTART_TRAIT) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 22b318ff3b2..ae668c0605d 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -1,4 +1,4 @@ -/mob/living/Initialize() +/mob/living/Initialize(mapload) . = ..() var/datum/atom_hud/data/human/medical/advanced/medhud = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED] medhud.add_to_hud(src) diff --git a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm index 2ceba7b9749..04f71eb6959 100644 --- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm +++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm @@ -138,7 +138,7 @@ mob_biotypes = MOB_ORGANIC | MOB_BEAST footstep_type = FOOTSTEP_MOB_SHOE -/mob/living/simple_animal/cow/Initialize() +/mob/living/simple_animal/cow/Initialize(mapload) udder = new() . = ..() diff --git a/code/modules/mob/living/simple_animal/friendly/nian_caterpillar.dm b/code/modules/mob/living/simple_animal/friendly/nian_caterpillar.dm index 14a22fce199..3a2145527bb 100644 --- a/code/modules/mob/living/simple_animal/friendly/nian_caterpillar.dm +++ b/code/modules/mob/living/simple_animal/friendly/nian_caterpillar.dm @@ -48,7 +48,7 @@ /// The amount of nutrition the nian caterpillar needs to evolve, default is 500. var/nutrition_need = 500 -/mob/living/simple_animal/nian_caterpillar/Initialize() +/mob/living/simple_animal/nian_caterpillar/Initialize(mapload) . = ..() real_name = name add_language("Tkachi") diff --git a/code/modules/mob/living/simple_animal/hostile/carp.dm b/code/modules/mob/living/simple_animal/hostile/carp.dm index ff1588298fe..a1f660f9740 100644 --- a/code/modules/mob/living/simple_animal/hostile/carp.dm +++ b/code/modules/mob/living/simple_animal/hostile/carp.dm @@ -148,7 +148,7 @@ var/regen_cooldown = 0 -/mob/living/simple_animal/hostile/carp/megacarp/Initialize() +/mob/living/simple_animal/hostile/carp/megacarp/Initialize(mapload) . = ..() name = "[pick(GLOB.megacarp_first_names)] [pick(GLOB.megacarp_last_names)]" melee_damage_lower += rand(2, 10) diff --git a/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm b/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm index 351365207bb..21243b038a5 100644 --- a/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm +++ b/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm @@ -43,7 +43,7 @@ /// Chance of doing the throw or stamina damage, along with the flat damage amount var/throw_onhit = 50 -/mob/living/simple_animal/hostile/gorilla/Initialize() +/mob/living/simple_animal/hostile/gorilla/Initialize(mapload) . = ..() var/datum/action/innate/gorilla/gorilla_toggle/toggle = new toggle.Grant(src) diff --git a/code/modules/mod/modules/modules_general.dm b/code/modules/mod/modules/modules_general.dm index 62d78a57030..ae880b5a2ea 100644 --- a/code/modules/mod/modules/modules_general.dm +++ b/code/modules/mod/modules/modules_general.dm @@ -16,7 +16,7 @@ var/max_items = 7 var/obj/item/storage/backpack/modstorage/bag -/obj/item/mod/module/storage/Initialize() +/obj/item/mod/module/storage/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_ADJACENCY_TRANSPARENT, ROUNDSTART_TRAIT) var/obj/item/storage/backpack/modstorage/S = new(src) diff --git a/code/modules/power/engines/singularity/particle_accelerator/particle.dm b/code/modules/power/engines/singularity/particle_accelerator/particle.dm index ee816a032d9..7810a0cc2b8 100644 --- a/code/modules/power/engines/singularity/particle_accelerator/particle.dm +++ b/code/modules/power/engines/singularity/particle_accelerator/particle.dm @@ -21,7 +21,7 @@ energy = 50 -/obj/effect/accelerated_particle/Initialize(loc) +/obj/effect/accelerated_particle/Initialize(mapload) . = ..() addtimer(CALLBACK(src, PROC_REF(propagate)), 1) RegisterSignal(src, COMSIG_CROSSED_MOVABLE, PROC_REF(try_irradiate)) diff --git a/code/modules/power/generators/solar.dm b/code/modules/power/generators/solar.dm index 9971f556edb..dbe328d3818 100644 --- a/code/modules/power/generators/solar.dm +++ b/code/modules/power/generators/solar.dm @@ -297,7 +297,7 @@ track = TRACKER_AUTO autostart = TRUE // Automatically search for connected devices -/obj/machinery/power/solar_control/Initialize() +/obj/machinery/power/solar_control/Initialize(mapload) SSsun.solars |= src setup() . = ..() diff --git a/code/modules/power/generators/turbine.dm b/code/modules/power/generators/turbine.dm index fb247a9f5bf..57bf68eed73 100644 --- a/code/modules/power/generators/turbine.dm +++ b/code/modules/power/generators/turbine.dm @@ -400,7 +400,7 @@ /////COMPUTER///// ///////////////// -/obj/machinery/computer/turbine_computer/Initialize() +/obj/machinery/computer/turbine_computer/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/modules/projectiles/ammunition/energy_lens.dm b/code/modules/projectiles/ammunition/energy_lens.dm index dc73c017b47..5d7c574ca0a 100644 --- a/code/modules/projectiles/ammunition/energy_lens.dm +++ b/code/modules/projectiles/ammunition/energy_lens.dm @@ -262,7 +262,7 @@ ///This number is randomly generated when the arc revolver is made. This ensures the beams only link to beams from the gun, one lower or higher than the number on the boosted object. var/random_link_number -/obj/item/ammo_casing/energy/arc_revolver/Initialize() +/obj/item/ammo_casing/energy/arc_revolver/Initialize(mapload) . = ..() random_link_number = rand(1, 9999999) diff --git a/code/modules/projectiles/guns/syringe_gun.dm b/code/modules/projectiles/guns/syringe_gun.dm index 090eef860bb..d9a21e04070 100644 --- a/code/modules/projectiles/guns/syringe_gun.dm +++ b/code/modules/projectiles/guns/syringe_gun.dm @@ -14,7 +14,7 @@ var/list/syringes = list() var/max_syringes = 1 -/obj/item/gun/syringe/Initialize() +/obj/item/gun/syringe/Initialize(mapload) . = ..() chambered = new /obj/item/ammo_casing/syringegun(src) diff --git a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm index 9383e23d3bd..948e667d2f8 100644 --- a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm +++ b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm @@ -431,7 +431,7 @@ var/efficiency = 0.2 var/recharge_rate = 1 // Keep this as an integer -/obj/item/handheld_chem_dispenser/Initialize() +/obj/item/handheld_chem_dispenser/Initialize(mapload) . = ..() cell = new(src) dispensable_reagents = sortList(dispensable_reagents) diff --git a/code/modules/reagents/reagent_containers/iv_bag.dm b/code/modules/reagents/reagent_containers/iv_bag.dm index 9058e93a695..b1e0cad8e37 100644 --- a/code/modules/reagents/reagent_containers/iv_bag.dm +++ b/code/modules/reagents/reagent_containers/iv_bag.dm @@ -186,7 +186,7 @@ update_icon(UPDATE_OVERLAYS) -/obj/item/reagent_containers/iv_bag/blood/random/Initialize() +/obj/item/reagent_containers/iv_bag/blood/random/Initialize(mapload) blood_type = pick("A+", "A-", "B+", "B-", "O+", "O-") return ..() diff --git a/code/modules/research/research.dm b/code/modules/research/research.dm index ae5b48cb7d0..f577e787379 100644 --- a/code/modules/research/research.dm +++ b/code/modules/research/research.dm @@ -454,7 +454,7 @@ datum/tech/robotics desc = "A gift from the Liberator." icon_state = "datadisk1" -/obj/item/disk/design_disk/golem_shell/Initialize() +/obj/item/disk/design_disk/golem_shell/Initialize(mapload) . = ..() var/datum/design/golem_shell/G = new blueprint = G diff --git a/code/modules/research/rnd_network_controller.dm b/code/modules/research/rnd_network_controller.dm index 390204e3f30..73e6255be4d 100644 --- a/code/modules/research/rnd_network_controller.dm +++ b/code/modules/research/rnd_network_controller.dm @@ -24,7 +24,7 @@ GLOBAL_LIST_EMPTY(rnd_network_managers) /// The network password for this device var/network_password -/obj/machinery/computer/rnd_network_controller/Initialize() +/obj/machinery/computer/rnd_network_controller/Initialize(mapload) . = ..() GLOB.rnd_network_managers += src research_files = new diff --git a/code/modules/ruins/lavalandruin_code/ash_walker_den.dm b/code/modules/ruins/lavalandruin_code/ash_walker_den.dm index 9a0c9cad160..5620da3ccbb 100644 --- a/code/modules/ruins/lavalandruin_code/ash_walker_den.dm +++ b/code/modules/ruins/lavalandruin_code/ash_walker_den.dm @@ -16,7 +16,7 @@ var/faction = list("ashwalker") var/meat_counter = 6 -/obj/structure/lavaland/ash_walker/Initialize() +/obj/structure/lavaland/ash_walker/Initialize(mapload) . = ..() START_PROCESSING(SSprocessing, src) diff --git a/code/modules/ruins/lavalandruin_code/dead_ratvar.dm b/code/modules/ruins/lavalandruin_code/dead_ratvar.dm index e0db4767a23..be103a2eb18 100644 --- a/code/modules/ruins/lavalandruin_code/dead_ratvar.dm +++ b/code/modules/ruins/lavalandruin_code/dead_ratvar.dm @@ -85,7 +85,7 @@ /obj/structure/clockwork/wall_gear/displaced anchored = FALSE -/obj/structure/clockwork/wall_gear/Initialize() +/obj/structure/clockwork/wall_gear/Initialize(mapload) . = ..() new /obj/effect/temp_visual/ratvar/gear(get_turf(src)) @@ -163,7 +163,7 @@ var/randomspritemax = 2 var/sprite_shift = 9 -/obj/item/clockwork/alloy_shards/Initialize() +/obj/item/clockwork/alloy_shards/Initialize(mapload) . = ..() if(randomsinglesprite) replace_name_desc() diff --git a/code/modules/ruins/lavalandruin_code/sin_ruins.dm b/code/modules/ruins/lavalandruin_code/sin_ruins.dm index 13033d10fe0..cc6719c5955 100644 --- a/code/modules/ruins/lavalandruin_code/sin_ruins.dm +++ b/code/modules/ruins/lavalandruin_code/sin_ruins.dm @@ -105,7 +105,7 @@ anchored = FALSE density = TRUE -/obj/structure/cursed_money/Initialize() +/obj/structure/cursed_money/Initialize(mapload) . = ..() addtimer(CALLBACK(src, PROC_REF(collapse)), 600) diff --git a/code/modules/ruins/objects_and_mobs/necropolis_gate.dm b/code/modules/ruins/objects_and_mobs/necropolis_gate.dm index 8f8f483db0c..c0058b3082e 100644 --- a/code/modules/ruins/objects_and_mobs/necropolis_gate.dm +++ b/code/modules/ruins/objects_and_mobs/necropolis_gate.dm @@ -23,7 +23,7 @@ var/obj/structure/opacity_blocker/sight_blocker var/sight_blocker_distance = 1 -/obj/structure/necropolis_gate/Initialize() +/obj/structure/necropolis_gate/Initialize(mapload) . = ..() var/turf/sight_blocker_turf = get_turf(src) if(sight_blocker_distance) @@ -142,7 +142,7 @@ GLOBAL_DATUM(necropolis_gate, /obj/structure/necropolis_gate/legion_gate) desc = "A tremendous, impossibly large gateway, set into a massive tower of stone." sight_blocker_distance = 2 -/obj/structure/necropolis_gate/legion_gate/Initialize() +/obj/structure/necropolis_gate/legion_gate/Initialize(mapload) . = ..() GLOB.necropolis_gate = src @@ -207,7 +207,7 @@ GLOBAL_DATUM(necropolis_gate, /obj/structure/necropolis_gate/legion_gate) var/open = FALSE var/static/mutable_appearance/top_overlay -/obj/structure/necropolis_arch/Initialize() +/obj/structure/necropolis_arch/Initialize(mapload) . = ..() icon_state = "arch_bottom" top_overlay = mutable_appearance('icons/effects/160x160.dmi', "arch_top") diff --git a/code/modules/shuttle/emergency.dm b/code/modules/shuttle/emergency.dm index f3998d40a85..04a7d9a4fc9 100644 --- a/code/modules/shuttle/emergency.dm +++ b/code/modules/shuttle/emergency.dm @@ -591,7 +591,7 @@ height = 4 var/target_area = /area/mine/unexplored -/obj/docking_port/stationary/random/Initialize() +/obj/docking_port/stationary/random/Initialize(mapload) . = ..() var/list/turfs = get_area_turfs(target_area) var/turf/T = pick(turfs) diff --git a/code/modules/shuttle/navigation_computer.dm b/code/modules/shuttle/navigation_computer.dm index 84eb7180345..d2b7c0befca 100644 --- a/code/modules/shuttle/navigation_computer.dm +++ b/code/modules/shuttle/navigation_computer.dm @@ -22,7 +22,7 @@ var/designate_time = 0 var/turf/designating_target_loc -/obj/machinery/computer/camera_advanced/shuttle_docker/Initialize() +/obj/machinery/computer/camera_advanced/shuttle_docker/Initialize(mapload) . = ..() GLOB.navigation_computers += src if(access_station) diff --git a/code/modules/shuttle/supply.dm b/code/modules/shuttle/supply.dm index 57964a29704..bc32bedbe9f 100644 --- a/code/modules/shuttle/supply.dm +++ b/code/modules/shuttle/supply.dm @@ -52,7 +52,7 @@ // The item preventing this shuttle from going to CC. var/blocking_item = "ERR_UNKNOWN" -/obj/docking_port/mobile/supply/Initialize() +/obj/docking_port/mobile/supply/Initialize(mapload) . = ..() for(var/T in subtypesof(/datum/economy/simple_seller)) var/datum/economy/simple_seller/seller = new T diff --git a/code/modules/station_goals/bsa.dm b/code/modules/station_goals/bsa.dm index d6b2b7f576c..b150a2da395 100644 --- a/code/modules/station_goals/bsa.dm +++ b/code/modules/station_goals/bsa.dm @@ -279,7 +279,7 @@ area_aim = TRUE target_all_areas = TRUE -/obj/machinery/computer/bsa_control/admin/Initialize() +/obj/machinery/computer/bsa_control/admin/Initialize(mapload) . = ..() if(!cannon) cannon = deploy() diff --git a/code/modules/surgery/organs/augments_arms.dm b/code/modules/surgery/organs/augments_arms.dm index b08a0021cd0..88046283bfa 100644 --- a/code/modules/surgery/organs/augments_arms.dm +++ b/code/modules/surgery/organs/augments_arms.dm @@ -820,7 +820,7 @@ actions_types = list() var/datum/martial_art/muscle_implant/muscle_implant -/obj/item/organ/internal/cyberimp/arm/muscle/Initialize() +/obj/item/organ/internal/cyberimp/arm/muscle/Initialize(mapload) . = ..() muscle_implant = new() diff --git a/tools/ci/check_grep2.py b/tools/ci/check_grep2.py index 996def27bf2..a6365d8df9b 100644 --- a/tools/ci/check_grep2.py +++ b/tools/ci/check_grep2.py @@ -151,6 +151,13 @@ def check_href_styles(idx, line): if HREF_OLD_STYLE.search(line): return [(idx + 1, "BYOND requires internal href links to begin with \"byond://\"")] +INITIALIZE_MISSING_MAPLOAD = re.compile( + r"^/(obj|mob|turf|area|atom)/.+/Initialize\((?!mapload).*\)" +) +def check_initialize_missing_mapload(idx, line): + if INITIALIZE_MISSING_MAPLOAD.search(line): + return [(idx + 1, "Initialize override without 'mapload' argument.")] + # TODO: This finds most cases except for e.g. `list(1, 2, 3 )` # Find a way to include this without breaking macro/tab-aligned versions such as `list( \` # Maybe even make sure it doesn't include comments, idk @@ -182,6 +189,7 @@ CODE_CHECKS = [ check_tgui_ui_new_argument, check_datum_loops, check_href_styles, + check_initialize_missing_mapload, check_empty_list_whitespace, ]
Welcome agent, congratulations on your new position as a Syndicate contractor. On top of your already assigned objectives, this kit will provide you contracts to take on for telecrystal payments.
Provided within is your specialist contractor space suit. It's even more compact, being able to fit into a pocket, and faster than the diff --git a/code/modules/assembly/signaler.dm b/code/modules/assembly/signaler.dm index 980fcc5d3ca..8f6bec48d75 100644 --- a/code/modules/assembly/signaler.dm +++ b/code/modules/assembly/signaler.dm @@ -17,7 +17,7 @@ GLOBAL_LIST_EMPTY(remote_signalers) /// Signal freqency itself var/frequency = RSD_FREQ -/obj/item/assembly/signaler/Initialize() +/obj/item/assembly/signaler/Initialize(mapload) . = ..() GLOB.remote_signalers |= src diff --git a/code/modules/awaymissions/loot.dm b/code/modules/awaymissions/loot.dm index a0a1b472b71..7f77d78c7f2 100644 --- a/code/modules/awaymissions/loot.dm +++ b/code/modules/awaymissions/loot.dm @@ -5,7 +5,7 @@ var/lootdoubles = 0 //if the same item can be spawned twice var/loot = "" //a list of possible items to spawn- a string of paths -/obj/effect/spawner/away/lootdrop/Initialize() +/obj/effect/spawner/away/lootdrop/Initialize(mapload) ..() var/list/things = params2list(loot) diff --git a/code/modules/awaymissions/mission_code/ruins/oldstation.dm b/code/modules/awaymissions/mission_code/ruins/oldstation.dm index b5d06699246..f0f893d7b12 100644 --- a/code/modules/awaymissions/mission_code/ruins/oldstation.dm +++ b/code/modules/awaymissions/mission_code/ruins/oldstation.dm @@ -177,7 +177,7 @@ /obj/item/paper/fluff/ruins/oldstation/report name = "\improper Crew Reawakening Report" -/obj/item/paper/fluff/ruins/oldstation/report/Initialize() +/obj/item/paper/fluff/ruins/oldstation/report/Initialize(mapload) . = ..() init_current_date_string() info = "Artificial Program's report to surviving crewmembers.Crew were placed into cryostasis 10 March, 2445.Crew were awoken from cryostasis [GLOB.current_date_string]. \ diff --git a/code/modules/awaymissions/mission_code/ruins/telecomns.dm b/code/modules/awaymissions/mission_code/ruins/telecomns.dm index 117bd99d7e5..a66d8e74a38 100644 --- a/code/modules/awaymissions/mission_code/ruins/telecomns.dm +++ b/code/modules/awaymissions/mission_code/ruins/telecomns.dm @@ -63,7 +63,7 @@ GLOBAL_LIST_EMPTY(telecomms_trap_tank) //Has someone put an item in the autolathe, breaking the hologram? var/disguise_broken = FALSE -/obj/machinery/autolathe/trapped/Initialize() +/obj/machinery/autolathe/trapped/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_PARENT_ATTACKBY, PROC_REF(material_container_shenanigins)) @@ -220,7 +220,7 @@ GLOBAL_LIST_EMPTY(telecomms_trap_tank) name = "supermatter charged bomb core" desc = "If you are looking at this, please don't put it in a bomb" -/obj/item/bombcore/doomsday/Initialize() +/obj/item/bombcore/doomsday/Initialize(mapload) . = ..() if(!istype(loc, /obj/machinery/syndicatebomb/doomsday)) log_debug("something tried to spawn a telecomms doomsday ruin payload outside the ruin, deleting!") diff --git a/code/modules/awaymissions/mob_spawn.dm b/code/modules/awaymissions/mob_spawn.dm index bc1991d7153..3836b267eef 100644 --- a/code/modules/awaymissions/mob_spawn.dm +++ b/code/modules/awaymissions/mob_spawn.dm @@ -211,7 +211,7 @@ var/list/del_types = list(/obj/item/pda, /obj/item/radio/headset) -/obj/effect/mob_spawn/human/Initialize() +/obj/effect/mob_spawn/human/Initialize(mapload) if(ispath(outfit)) outfit = new outfit() if(!outfit) @@ -471,7 +471,7 @@ id_job = "Clown" outfit = /datum/outfit/job/clown -/obj/effect/mob_spawn/human/corpse/clown/Initialize() +/obj/effect/mob_spawn/human/corpse/clown/Initialize(mapload) mob_name = pick(GLOB.clown_names) return ..() @@ -480,7 +480,7 @@ name = "Clown Officer" outfit = /datum/outfit/clownofficer -/obj/effect/mob_spawn/human/corpse/clown/officer/Initialize() +/obj/effect/mob_spawn/human/corpse/clown/officer/Initialize(mapload) mob_name = "Honk Specialist [pick(GLOB.clown_names)]" return ..() /datum/outfit/clownofficer @@ -499,7 +499,7 @@ name = "Clown Soldier" outfit = /datum/outfit/clownsoldier -/obj/effect/mob_spawn/human/corpse/clown/soldier/Initialize() +/obj/effect/mob_spawn/human/corpse/clown/soldier/Initialize(mapload) mob_name = "Officer [pick(GLOB.clown_names)]" return ..() @@ -560,7 +560,7 @@ id_job = "Mime" outfit = /datum/outfit/job/mime -/obj/effect/mob_spawn/human/corpse/mime/Initialize() +/obj/effect/mob_spawn/human/corpse/mime/Initialize(mapload) mob_name = pick(GLOB.mime_names) return ..() diff --git a/code/modules/clothing/glasses/tajblind.dm b/code/modules/clothing/glasses/tajblind.dm index 7d5b9754e8c..cf793288406 100644 --- a/code/modules/clothing/glasses/tajblind.dm +++ b/code/modules/clothing/glasses/tajblind.dm @@ -60,7 +60,7 @@ icon_state = "tajblind_engi" item_state = "tajblind_engi" -/obj/item/clothing/glasses/hud/tajblind/meson/Initialize() +/obj/item/clothing/glasses/hud/tajblind/meson/Initialize(mapload) . = ..() desc += "It has an optical meson scanner integrated into it." @@ -86,7 +86,7 @@ scan_reagents = 1 actions_types = list(/datum/action/item_action/toggle, /datum/action/item_action/toggle_research_scanner) -/obj/item/clothing/glasses/hud/tajblind/sci/Initialize() +/obj/item/clothing/glasses/hud/tajblind/sci/Initialize(mapload) . = ..() desc += "It has science goggles integrated into it." @@ -101,7 +101,7 @@ hud_types = DATA_HUD_MEDICAL_ADVANCED examine_extensions = list(EXAMINE_HUD_MEDICAL_READ) -/obj/item/clothing/glasses/hud/tajblind/med/Initialize() +/obj/item/clothing/glasses/hud/tajblind/med/Initialize(mapload) . = ..() desc += "It has a health HUD integrated into it." @@ -112,7 +112,7 @@ hud_types = DATA_HUD_SECURITY_ADVANCED examine_extensions = list(EXAMINE_HUD_SECURITY_READ) -/obj/item/clothing/glasses/hud/tajblind/sec/Initialize() +/obj/item/clothing/glasses/hud/tajblind/sec/Initialize(mapload) . = ..() desc += "It has a security HUD integrated into it." @@ -121,7 +121,7 @@ flash_protect = FLASH_PROTECTION_FLASH tint = FLASH_PROTECTION_FLASH -/obj/item/clothing/glasses/hud/tajblind/shaded/Initialize() +/obj/item/clothing/glasses/hud/tajblind/shaded/Initialize(mapload) . = ..() desc += "It has an in-built flash protection." @@ -130,7 +130,7 @@ icon_state = "tajblind_engi" item_state = "tajblind_engi" -/obj/item/clothing/glasses/hud/tajblind/shaded/meson/Initialize() +/obj/item/clothing/glasses/hud/tajblind/shaded/meson/Initialize(mapload) . = ..() desc += "It has an optical meson scanner integrated into it." @@ -157,7 +157,7 @@ scan_reagents = 1 actions_types = list(/datum/action/item_action/toggle, /datum/action/item_action/toggle_research_scanner) -/obj/item/clothing/glasses/hud/tajblind/shaded/sci/Initialize() +/obj/item/clothing/glasses/hud/tajblind/shaded/sci/Initialize(mapload) . = ..() desc += "It has science goggles integrated into it." @@ -172,7 +172,7 @@ hud_types = DATA_HUD_MEDICAL_ADVANCED examine_extensions = list(EXAMINE_HUD_MEDICAL_READ) -/obj/item/clothing/glasses/hud/tajblind/shaded/med/Initialize() +/obj/item/clothing/glasses/hud/tajblind/shaded/med/Initialize(mapload) . = ..() desc += "It has a health HUD integrated into it." @@ -184,7 +184,7 @@ hud_types = DATA_HUD_SECURITY_ADVANCED examine_extensions = list(EXAMINE_HUD_SECURITY_READ) -/obj/item/clothing/glasses/hud/tajblind/shaded/sec/Initialize() +/obj/item/clothing/glasses/hud/tajblind/shaded/sec/Initialize(mapload) . = ..() desc += "It has a security HUD integrated into it." diff --git a/code/modules/clothing/gloves/boxing_gloves.dm b/code/modules/clothing/gloves/boxing_gloves.dm index b7b38b1c698..72adfaf38eb 100644 --- a/code/modules/clothing/gloves/boxing_gloves.dm +++ b/code/modules/clothing/gloves/boxing_gloves.dm @@ -7,7 +7,7 @@ species_exception = list(/datum/species/golem) // now you too can be a golem boxing champion var/datum/martial_art/boxing/style -/obj/item/clothing/gloves/boxing/Initialize() +/obj/item/clothing/gloves/boxing/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/clothing/masks/gasmask.dm b/code/modules/clothing/masks/gasmask.dm index 1181b593bcf..cd96e9bf92a 100644 --- a/code/modules/clothing/masks/gasmask.dm +++ b/code/modules/clothing/masks/gasmask.dm @@ -80,7 +80,7 @@ ..() w_class = up ? WEIGHT_CLASS_SMALL : WEIGHT_CLASS_NORMAL -/obj/item/clothing/mask/gas/explorer/folded/Initialize() +/obj/item/clothing/mask/gas/explorer/folded/Initialize(mapload) . = ..() force_adjust_mask() diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index 337d97ca831..b4df1a7be77 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -208,7 +208,7 @@ var/obj/item/assembly/signaler/anomaly/grav/core = null var/obj/item/stock_parts/cell/cell = null -/obj/item/clothing/shoes/magboots/gravity/Initialize() +/obj/item/clothing/shoes/magboots/gravity/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/clothing/spacesuits/ert_hardsuits.dm b/code/modules/clothing/spacesuits/ert_hardsuits.dm index 84961e9cd94..db21c8f4efb 100644 --- a/code/modules/clothing/spacesuits/ert_hardsuits.dm +++ b/code/modules/clothing/spacesuits/ert_hardsuits.dm @@ -21,7 +21,7 @@ "Vulpkanin" = 'icons/mob/clothing/species/vulpkanin/helmet.dmi' ) -/obj/item/clothing/head/helmet/space/hardsuit/ert/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/ert/Initialize(mapload) if(loc) var/mob/living/carbon/human/wearer = loc.loc //loc is the hardsuit, so its loc is the wearer if(ishuman(wearer)) diff --git a/code/modules/clothing/under/jobs/civilian.dm b/code/modules/clothing/under/jobs/civilian.dm index fb08d4a7eef..2228f7b4018 100644 --- a/code/modules/clothing/under/jobs/civilian.dm +++ b/code/modules/clothing/under/jobs/civilian.dm @@ -81,7 +81,7 @@ item_state = "clown" item_color = "clown" -/obj/item/clothing/under/rank/civilian/clown/Initialize() +/obj/item/clothing/under/rank/civilian/clown/Initialize(mapload) . = ..() AddComponent(/datum/component/squeak, list('sound/items/bikehorn.ogg' = 1), 50, falloff_exponent = 20) //die off quick please diff --git a/code/modules/economy/economy_machinery/account_terminal.dm b/code/modules/economy/economy_machinery/account_terminal.dm index c9e0785bc85..d7485d3212d 100644 --- a/code/modules/economy/economy_machinery/account_terminal.dm +++ b/code/modules/economy/economy_machinery/account_terminal.dm @@ -17,7 +17,7 @@ ///station account database var/datum/money_account_database/account_db -/obj/machinery/computer/account_database/Initialize() +/obj/machinery/computer/account_database/Initialize(mapload) . = ..() reconnect_database() diff --git a/code/modules/hydroponics/fermenting_barrel.dm b/code/modules/hydroponics/fermenting_barrel.dm index 2bd18ee1793..3236f0b59fe 100644 --- a/code/modules/hydroponics/fermenting_barrel.dm +++ b/code/modules/hydroponics/fermenting_barrel.dm @@ -11,7 +11,7 @@ var/open = FALSE var/speed_multiplier = 1 //How fast it distills. Defaults to 100% (1.0). Lower is better. -/obj/structure/fermenting_barrel/Initialize() +/obj/structure/fermenting_barrel/Initialize(mapload) create_reagents(300) //Bluespace beakers, but without the portability or efficiency in circuits. AddComponent(/datum/component/debris, DEBRIS_WOOD, -20, 10) . = ..() diff --git a/code/modules/hydroponics/grown/random_seeds.dm b/code/modules/hydroponics/grown/random_seeds.dm index e158fe2531b..a5835a3e9a0 100644 --- a/code/modules/hydroponics/grown/random_seeds.dm +++ b/code/modules/hydroponics/grown/random_seeds.dm @@ -37,7 +37,7 @@ icon_state = "crunchy" bitesize_mod = 2 -/obj/item/food/grown/random/Initialize() +/obj/item/food/grown/random/Initialize(mapload) . = ..() wine_power = rand(0.1,1.5) if(prob(1)) diff --git a/code/modules/instruments/objs/items/instrument_items.dm b/code/modules/instruments/objs/items/instrument_items.dm index ef53ea410fa..a524685b7d9 100644 --- a/code/modules/instruments/objs/items/instrument_items.dm +++ b/code/modules/instruments/objs/items/instrument_items.dm @@ -87,7 +87,7 @@ force = 0 attack_verb = list("played", "jazzed", "trumpeted", "mourned", "dooted", "spooked") -/obj/item/instrument/trumpet/spectral/Initialize() +/obj/item/instrument/trumpet/spectral/Initialize(mapload) . = ..() AddComponent(/datum/component/spooky) @@ -110,7 +110,7 @@ force = 0 attack_verb = list("played", "jazzed", "saxxed", "mourned", "dooted", "spooked") -/obj/item/instrument/saxophone/spectral/Initialize() +/obj/item/instrument/saxophone/spectral/Initialize(mapload) . = ..() AddComponent(/datum/component/spooky) @@ -133,7 +133,7 @@ force = 0 attack_verb = list("played", "jazzed", "tromboned", "mourned", "dooted", "spooked") -/obj/item/instrument/trombone/spectral/Initialize() +/obj/item/instrument/trombone/spectral/Initialize(mapload) . = ..() AddComponent(/datum/component/spooky) diff --git a/code/modules/library/book.dm b/code/modules/library/book.dm index 466033801e0..ae7a964ed72 100644 --- a/code/modules/library/book.dm +++ b/code/modules/library/book.dm @@ -359,7 +359,7 @@ icon_state = "random_book" var/amount = 1 -/obj/item/book/random/Initialize() +/obj/item/book/random/Initialize(mapload) . = ..() addtimer(CALLBACK(src, PROC_REF(spawn_books)), 0) diff --git a/code/modules/library/library_equipment.dm b/code/modules/library/library_equipment.dm index 82e88b3a1ca..66f23e72f1a 100644 --- a/code/modules/library/library_equipment.dm +++ b/code/modules/library/library_equipment.dm @@ -98,7 +98,7 @@ /obj/structure/bookcase/manuals/medical name = "Medical Manuals bookcase" -/obj/structure/bookcase/manuals/medical/Initialize() +/obj/structure/bookcase/manuals/medical/Initialize(mapload) . = ..() new /obj/item/book/manual/medical_cloning(src) update_icon(UPDATE_ICON_STATE) @@ -107,7 +107,7 @@ /obj/structure/bookcase/manuals/engineering name = "Engineering Manuals bookcase" -/obj/structure/bookcase/manuals/engineering/Initialize() +/obj/structure/bookcase/manuals/engineering/Initialize(mapload) . = ..() new /obj/item/book/manual/wiki/engineering_construction(src) new /obj/item/book/manual/engineering_particle_accelerator(src) @@ -120,7 +120,7 @@ /obj/structure/bookcase/manuals/research_and_development name = "R&D Manuals bookcase" -/obj/structure/bookcase/manuals/research_and_development/Initialize() +/obj/structure/bookcase/manuals/research_and_development/Initialize(mapload) . = ..() new /obj/item/book/manual/research_and_development(src) update_icon(UPDATE_ICON_STATE) @@ -128,7 +128,7 @@ /obj/structure/bookcase/sop name = "bookcase (Standard Operating Procedures)" -/obj/structure/bookcase/sop/Initialize() +/obj/structure/bookcase/sop/Initialize(mapload) . = ..() new /obj/item/book/manual/wiki/sop_command(src) new /obj/item/book/manual/wiki/sop_engineering(src) diff --git a/code/modules/martial_arts/bearserk.dm b/code/modules/martial_arts/bearserk.dm index bfd1becf106..26fe0e196f6 100644 --- a/code/modules/martial_arts/bearserk.dm +++ b/code/modules/martial_arts/bearserk.dm @@ -45,7 +45,7 @@ body_parts_covered = UPPER_TORSO|HEAD|ARMS var/datum/martial_art/bearserk/style -/obj/item/clothing/head/bearpelt/bearserk/Initialize() +/obj/item/clothing/head/bearpelt/bearserk/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/martial_arts/judo.dm b/code/modules/martial_arts/judo.dm index 2e2e9b3c66d..74cae47d84c 100644 --- a/code/modules/martial_arts/judo.dm +++ b/code/modules/martial_arts/judo.dm @@ -38,7 +38,7 @@ /obj/item/storage/belt/judobelt/update_weight() w_class = WEIGHT_CLASS_BULKY -/obj/item/storage/belt/judobelt/Initialize() +/obj/item/storage/belt/judobelt/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/martial_arts/krav_maga.dm b/code/modules/martial_arts/krav_maga.dm index 0d096b05c83..74561ec9ec4 100644 --- a/code/modules/martial_arts/krav_maga.dm +++ b/code/modules/martial_arts/krav_maga.dm @@ -146,7 +146,7 @@ dyeable = TRUE var/datum/martial_art/krav_maga/style -/obj/item/clothing/gloves/color/black/krav_maga/Initialize() +/obj/item/clothing/gloves/color/black/krav_maga/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/martial_arts/martial.dm b/code/modules/martial_arts/martial.dm index 603599a9228..2547f0d8cfc 100644 --- a/code/modules/martial_arts/martial.dm +++ b/code/modules/martial_arts/martial.dm @@ -261,7 +261,7 @@ layer_over_suit = TRUE var/datum/martial_art/wrestling/style -/obj/item/storage/belt/champion/wrestling/Initialize() +/obj/item/storage/belt/champion/wrestling/Initialize(mapload) . = ..() style = new() diff --git a/code/modules/mining/equipment/mining_charges.dm b/code/modules/mining/equipment/mining_charges.dm index f338e1ebddc..6a1c104327a 100644 --- a/code/modules/mining/equipment/mining_charges.dm +++ b/code/modules/mining/equipment/mining_charges.dm @@ -15,7 +15,7 @@ var/boom_sizes = list(2, 3, 5) var/hacked = FALSE -/obj/item/grenade/plastic/miningcharge/Initialize() +/obj/item/grenade/plastic/miningcharge/Initialize(mapload) . = ..() image_overlay = mutable_appearance(icon, "[icon_state]_active", ON_EDGED_TURF_LAYER) diff --git a/code/modules/mining/equipment/survival_pod.dm b/code/modules/mining/equipment/survival_pod.dm index 6f7fccc38d5..9f98316b5d2 100644 --- a/code/modules/mining/equipment/survival_pod.dm +++ b/code/modules/mining/equipment/survival_pod.dm @@ -279,7 +279,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/economy/vending/wallmed/survival_pod, var/buildstacktype = /obj/item/stack/sheet/metal var/buildstackamount = 5 -/obj/structure/fans/Initialize(loc) +/obj/structure/fans/Initialize(mapload, loc) . = ..() recalculate_atmos_connectivity() diff --git a/code/modules/mining/equipment/wormhole_jaunter.dm b/code/modules/mining/equipment/wormhole_jaunter.dm index f8226490021..28e64797fd0 100644 --- a/code/modules/mining/equipment/wormhole_jaunter.dm +++ b/code/modules/mining/equipment/wormhole_jaunter.dm @@ -181,7 +181,7 @@ GLOBAL_LIST_EMPTY(wormhole_effect) icon_state = "flare-contractor-on" duration = 5.1 SECONDS // Needs to be slightly longer then the callback to make the portal -/obj/effect/temp_visual/getaway_flare/Initialize() +/obj/effect/temp_visual/getaway_flare/Initialize(mapload) . = ..() playsound(loc, 'sound/goonstation/misc/matchstick_light.ogg', 50, TRUE) set_light(8, l_color = "#FFD165") @@ -379,7 +379,7 @@ GLOBAL_LIST_EMPTY(wormhole_effect) /obj/effect/temp_visual/thunderbolt_targeting/wormhole_weaver duration = 5 SECONDS -/obj/effect/temp_visual/thunderbolt_targeting/wormhole_weaver/Initialize() +/obj/effect/temp_visual/thunderbolt_targeting/wormhole_weaver/Initialize(mapload) . = ..() GLOB.wormhole_effect += src playsound(loc, 'sound/machines/twobeep.ogg', 50, TRUE) diff --git a/code/modules/mining/fulton.dm b/code/modules/mining/fulton.dm index 66e473e25bf..a4a002eb5b6 100644 --- a/code/modules/mining/fulton.dm +++ b/code/modules/mining/fulton.dm @@ -181,7 +181,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons) desc = "you shouldnt see this" var/atom/movable/stored_obj -/obj/effect/extraction_holder/Initialize() +/obj/effect/extraction_holder/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_EFFECT_CAN_TELEPORT, ROUNDSTART_TRAIT) diff --git a/code/modules/mining/laborcamp/laborshuttle.dm b/code/modules/mining/laborcamp/laborshuttle.dm index 7a79f1b9643..837b6b5f8b8 100644 --- a/code/modules/mining/laborcamp/laborshuttle.dm +++ b/code/modules/mining/laborcamp/laborshuttle.dm @@ -36,7 +36,7 @@ var/inserted_id_uid var/obj/item/radio/intercom/announcer -/obj/machinery/mineral/labor_prisoner_shuttle_console/Initialize() +/obj/machinery/mineral/labor_prisoner_shuttle_console/Initialize(mapload) . = ..() announcer = new /obj/item/radio/intercom(null) announcer.follow_target = src diff --git a/code/modules/mining/lavaland/loot/colossus_loot.dm b/code/modules/mining/lavaland/loot/colossus_loot.dm index def0e5c7c20..b2f092a3720 100644 --- a/code/modules/mining/lavaland/loot/colossus_loot.dm +++ b/code/modules/mining/lavaland/loot/colossus_loot.dm @@ -79,7 +79,7 @@ /obj/machinery/anomalous_crystal/ex_act() ActivationReaction(null,"bomb") -/obj/machinery/anomalous_crystal/random/Initialize() //Just a random crysal spawner for loot +/obj/machinery/anomalous_crystal/random/Initialize(mapload) //Just a random crysal spawner for loot . = ..() var/random_crystal = pick(typesof(/obj/machinery/anomalous_crystal) - /obj/machinery/anomalous_crystal/random - /obj/machinery/anomalous_crystal) new random_crystal(loc) diff --git a/code/modules/mining/lavaland/loot/tendril_loot.dm b/code/modules/mining/lavaland/loot/tendril_loot.dm index 2055b5e736a..ddcceca876f 100644 --- a/code/modules/mining/lavaland/loot/tendril_loot.dm +++ b/code/modules/mining/lavaland/loot/tendril_loot.dm @@ -41,7 +41,7 @@ bag.red = src bag.blue = blue -/obj/item/shared_storage/Initialize() +/obj/item/shared_storage/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_ADJACENCY_TRANSPARENT, ROUNDSTART_TRAIT) @@ -426,7 +426,7 @@ icon = 'icons/effects/effects.dmi' var/can_destroy = FALSE -/obj/effect/immortality_talisman/Initialize() +/obj/effect/immortality_talisman/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_EFFECT_CAN_TELEPORT, ROUNDSTART_TRAIT) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 22b318ff3b2..ae668c0605d 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -1,4 +1,4 @@ -/mob/living/Initialize() +/mob/living/Initialize(mapload) . = ..() var/datum/atom_hud/data/human/medical/advanced/medhud = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED] medhud.add_to_hud(src) diff --git a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm index 2ceba7b9749..04f71eb6959 100644 --- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm +++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm @@ -138,7 +138,7 @@ mob_biotypes = MOB_ORGANIC | MOB_BEAST footstep_type = FOOTSTEP_MOB_SHOE -/mob/living/simple_animal/cow/Initialize() +/mob/living/simple_animal/cow/Initialize(mapload) udder = new() . = ..() diff --git a/code/modules/mob/living/simple_animal/friendly/nian_caterpillar.dm b/code/modules/mob/living/simple_animal/friendly/nian_caterpillar.dm index 14a22fce199..3a2145527bb 100644 --- a/code/modules/mob/living/simple_animal/friendly/nian_caterpillar.dm +++ b/code/modules/mob/living/simple_animal/friendly/nian_caterpillar.dm @@ -48,7 +48,7 @@ /// The amount of nutrition the nian caterpillar needs to evolve, default is 500. var/nutrition_need = 500 -/mob/living/simple_animal/nian_caterpillar/Initialize() +/mob/living/simple_animal/nian_caterpillar/Initialize(mapload) . = ..() real_name = name add_language("Tkachi") diff --git a/code/modules/mob/living/simple_animal/hostile/carp.dm b/code/modules/mob/living/simple_animal/hostile/carp.dm index ff1588298fe..a1f660f9740 100644 --- a/code/modules/mob/living/simple_animal/hostile/carp.dm +++ b/code/modules/mob/living/simple_animal/hostile/carp.dm @@ -148,7 +148,7 @@ var/regen_cooldown = 0 -/mob/living/simple_animal/hostile/carp/megacarp/Initialize() +/mob/living/simple_animal/hostile/carp/megacarp/Initialize(mapload) . = ..() name = "[pick(GLOB.megacarp_first_names)] [pick(GLOB.megacarp_last_names)]" melee_damage_lower += rand(2, 10) diff --git a/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm b/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm index 351365207bb..21243b038a5 100644 --- a/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm +++ b/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm @@ -43,7 +43,7 @@ /// Chance of doing the throw or stamina damage, along with the flat damage amount var/throw_onhit = 50 -/mob/living/simple_animal/hostile/gorilla/Initialize() +/mob/living/simple_animal/hostile/gorilla/Initialize(mapload) . = ..() var/datum/action/innate/gorilla/gorilla_toggle/toggle = new toggle.Grant(src) diff --git a/code/modules/mod/modules/modules_general.dm b/code/modules/mod/modules/modules_general.dm index 62d78a57030..ae880b5a2ea 100644 --- a/code/modules/mod/modules/modules_general.dm +++ b/code/modules/mod/modules/modules_general.dm @@ -16,7 +16,7 @@ var/max_items = 7 var/obj/item/storage/backpack/modstorage/bag -/obj/item/mod/module/storage/Initialize() +/obj/item/mod/module/storage/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_ADJACENCY_TRANSPARENT, ROUNDSTART_TRAIT) var/obj/item/storage/backpack/modstorage/S = new(src) diff --git a/code/modules/power/engines/singularity/particle_accelerator/particle.dm b/code/modules/power/engines/singularity/particle_accelerator/particle.dm index ee816a032d9..7810a0cc2b8 100644 --- a/code/modules/power/engines/singularity/particle_accelerator/particle.dm +++ b/code/modules/power/engines/singularity/particle_accelerator/particle.dm @@ -21,7 +21,7 @@ energy = 50 -/obj/effect/accelerated_particle/Initialize(loc) +/obj/effect/accelerated_particle/Initialize(mapload) . = ..() addtimer(CALLBACK(src, PROC_REF(propagate)), 1) RegisterSignal(src, COMSIG_CROSSED_MOVABLE, PROC_REF(try_irradiate)) diff --git a/code/modules/power/generators/solar.dm b/code/modules/power/generators/solar.dm index 9971f556edb..dbe328d3818 100644 --- a/code/modules/power/generators/solar.dm +++ b/code/modules/power/generators/solar.dm @@ -297,7 +297,7 @@ track = TRACKER_AUTO autostart = TRUE // Automatically search for connected devices -/obj/machinery/power/solar_control/Initialize() +/obj/machinery/power/solar_control/Initialize(mapload) SSsun.solars |= src setup() . = ..() diff --git a/code/modules/power/generators/turbine.dm b/code/modules/power/generators/turbine.dm index fb247a9f5bf..57bf68eed73 100644 --- a/code/modules/power/generators/turbine.dm +++ b/code/modules/power/generators/turbine.dm @@ -400,7 +400,7 @@ /////COMPUTER///// ///////////////// -/obj/machinery/computer/turbine_computer/Initialize() +/obj/machinery/computer/turbine_computer/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/modules/projectiles/ammunition/energy_lens.dm b/code/modules/projectiles/ammunition/energy_lens.dm index dc73c017b47..5d7c574ca0a 100644 --- a/code/modules/projectiles/ammunition/energy_lens.dm +++ b/code/modules/projectiles/ammunition/energy_lens.dm @@ -262,7 +262,7 @@ ///This number is randomly generated when the arc revolver is made. This ensures the beams only link to beams from the gun, one lower or higher than the number on the boosted object. var/random_link_number -/obj/item/ammo_casing/energy/arc_revolver/Initialize() +/obj/item/ammo_casing/energy/arc_revolver/Initialize(mapload) . = ..() random_link_number = rand(1, 9999999) diff --git a/code/modules/projectiles/guns/syringe_gun.dm b/code/modules/projectiles/guns/syringe_gun.dm index 090eef860bb..d9a21e04070 100644 --- a/code/modules/projectiles/guns/syringe_gun.dm +++ b/code/modules/projectiles/guns/syringe_gun.dm @@ -14,7 +14,7 @@ var/list/syringes = list() var/max_syringes = 1 -/obj/item/gun/syringe/Initialize() +/obj/item/gun/syringe/Initialize(mapload) . = ..() chambered = new /obj/item/ammo_casing/syringegun(src) diff --git a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm index 9383e23d3bd..948e667d2f8 100644 --- a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm +++ b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm @@ -431,7 +431,7 @@ var/efficiency = 0.2 var/recharge_rate = 1 // Keep this as an integer -/obj/item/handheld_chem_dispenser/Initialize() +/obj/item/handheld_chem_dispenser/Initialize(mapload) . = ..() cell = new(src) dispensable_reagents = sortList(dispensable_reagents) diff --git a/code/modules/reagents/reagent_containers/iv_bag.dm b/code/modules/reagents/reagent_containers/iv_bag.dm index 9058e93a695..b1e0cad8e37 100644 --- a/code/modules/reagents/reagent_containers/iv_bag.dm +++ b/code/modules/reagents/reagent_containers/iv_bag.dm @@ -186,7 +186,7 @@ update_icon(UPDATE_OVERLAYS) -/obj/item/reagent_containers/iv_bag/blood/random/Initialize() +/obj/item/reagent_containers/iv_bag/blood/random/Initialize(mapload) blood_type = pick("A+", "A-", "B+", "B-", "O+", "O-") return ..() diff --git a/code/modules/research/research.dm b/code/modules/research/research.dm index ae5b48cb7d0..f577e787379 100644 --- a/code/modules/research/research.dm +++ b/code/modules/research/research.dm @@ -454,7 +454,7 @@ datum/tech/robotics desc = "A gift from the Liberator." icon_state = "datadisk1" -/obj/item/disk/design_disk/golem_shell/Initialize() +/obj/item/disk/design_disk/golem_shell/Initialize(mapload) . = ..() var/datum/design/golem_shell/G = new blueprint = G diff --git a/code/modules/research/rnd_network_controller.dm b/code/modules/research/rnd_network_controller.dm index 390204e3f30..73e6255be4d 100644 --- a/code/modules/research/rnd_network_controller.dm +++ b/code/modules/research/rnd_network_controller.dm @@ -24,7 +24,7 @@ GLOBAL_LIST_EMPTY(rnd_network_managers) /// The network password for this device var/network_password -/obj/machinery/computer/rnd_network_controller/Initialize() +/obj/machinery/computer/rnd_network_controller/Initialize(mapload) . = ..() GLOB.rnd_network_managers += src research_files = new diff --git a/code/modules/ruins/lavalandruin_code/ash_walker_den.dm b/code/modules/ruins/lavalandruin_code/ash_walker_den.dm index 9a0c9cad160..5620da3ccbb 100644 --- a/code/modules/ruins/lavalandruin_code/ash_walker_den.dm +++ b/code/modules/ruins/lavalandruin_code/ash_walker_den.dm @@ -16,7 +16,7 @@ var/faction = list("ashwalker") var/meat_counter = 6 -/obj/structure/lavaland/ash_walker/Initialize() +/obj/structure/lavaland/ash_walker/Initialize(mapload) . = ..() START_PROCESSING(SSprocessing, src) diff --git a/code/modules/ruins/lavalandruin_code/dead_ratvar.dm b/code/modules/ruins/lavalandruin_code/dead_ratvar.dm index e0db4767a23..be103a2eb18 100644 --- a/code/modules/ruins/lavalandruin_code/dead_ratvar.dm +++ b/code/modules/ruins/lavalandruin_code/dead_ratvar.dm @@ -85,7 +85,7 @@ /obj/structure/clockwork/wall_gear/displaced anchored = FALSE -/obj/structure/clockwork/wall_gear/Initialize() +/obj/structure/clockwork/wall_gear/Initialize(mapload) . = ..() new /obj/effect/temp_visual/ratvar/gear(get_turf(src)) @@ -163,7 +163,7 @@ var/randomspritemax = 2 var/sprite_shift = 9 -/obj/item/clockwork/alloy_shards/Initialize() +/obj/item/clockwork/alloy_shards/Initialize(mapload) . = ..() if(randomsinglesprite) replace_name_desc() diff --git a/code/modules/ruins/lavalandruin_code/sin_ruins.dm b/code/modules/ruins/lavalandruin_code/sin_ruins.dm index 13033d10fe0..cc6719c5955 100644 --- a/code/modules/ruins/lavalandruin_code/sin_ruins.dm +++ b/code/modules/ruins/lavalandruin_code/sin_ruins.dm @@ -105,7 +105,7 @@ anchored = FALSE density = TRUE -/obj/structure/cursed_money/Initialize() +/obj/structure/cursed_money/Initialize(mapload) . = ..() addtimer(CALLBACK(src, PROC_REF(collapse)), 600) diff --git a/code/modules/ruins/objects_and_mobs/necropolis_gate.dm b/code/modules/ruins/objects_and_mobs/necropolis_gate.dm index 8f8f483db0c..c0058b3082e 100644 --- a/code/modules/ruins/objects_and_mobs/necropolis_gate.dm +++ b/code/modules/ruins/objects_and_mobs/necropolis_gate.dm @@ -23,7 +23,7 @@ var/obj/structure/opacity_blocker/sight_blocker var/sight_blocker_distance = 1 -/obj/structure/necropolis_gate/Initialize() +/obj/structure/necropolis_gate/Initialize(mapload) . = ..() var/turf/sight_blocker_turf = get_turf(src) if(sight_blocker_distance) @@ -142,7 +142,7 @@ GLOBAL_DATUM(necropolis_gate, /obj/structure/necropolis_gate/legion_gate) desc = "A tremendous, impossibly large gateway, set into a massive tower of stone." sight_blocker_distance = 2 -/obj/structure/necropolis_gate/legion_gate/Initialize() +/obj/structure/necropolis_gate/legion_gate/Initialize(mapload) . = ..() GLOB.necropolis_gate = src @@ -207,7 +207,7 @@ GLOBAL_DATUM(necropolis_gate, /obj/structure/necropolis_gate/legion_gate) var/open = FALSE var/static/mutable_appearance/top_overlay -/obj/structure/necropolis_arch/Initialize() +/obj/structure/necropolis_arch/Initialize(mapload) . = ..() icon_state = "arch_bottom" top_overlay = mutable_appearance('icons/effects/160x160.dmi', "arch_top") diff --git a/code/modules/shuttle/emergency.dm b/code/modules/shuttle/emergency.dm index f3998d40a85..04a7d9a4fc9 100644 --- a/code/modules/shuttle/emergency.dm +++ b/code/modules/shuttle/emergency.dm @@ -591,7 +591,7 @@ height = 4 var/target_area = /area/mine/unexplored -/obj/docking_port/stationary/random/Initialize() +/obj/docking_port/stationary/random/Initialize(mapload) . = ..() var/list/turfs = get_area_turfs(target_area) var/turf/T = pick(turfs) diff --git a/code/modules/shuttle/navigation_computer.dm b/code/modules/shuttle/navigation_computer.dm index 84eb7180345..d2b7c0befca 100644 --- a/code/modules/shuttle/navigation_computer.dm +++ b/code/modules/shuttle/navigation_computer.dm @@ -22,7 +22,7 @@ var/designate_time = 0 var/turf/designating_target_loc -/obj/machinery/computer/camera_advanced/shuttle_docker/Initialize() +/obj/machinery/computer/camera_advanced/shuttle_docker/Initialize(mapload) . = ..() GLOB.navigation_computers += src if(access_station) diff --git a/code/modules/shuttle/supply.dm b/code/modules/shuttle/supply.dm index 57964a29704..bc32bedbe9f 100644 --- a/code/modules/shuttle/supply.dm +++ b/code/modules/shuttle/supply.dm @@ -52,7 +52,7 @@ // The item preventing this shuttle from going to CC. var/blocking_item = "ERR_UNKNOWN" -/obj/docking_port/mobile/supply/Initialize() +/obj/docking_port/mobile/supply/Initialize(mapload) . = ..() for(var/T in subtypesof(/datum/economy/simple_seller)) var/datum/economy/simple_seller/seller = new T diff --git a/code/modules/station_goals/bsa.dm b/code/modules/station_goals/bsa.dm index d6b2b7f576c..b150a2da395 100644 --- a/code/modules/station_goals/bsa.dm +++ b/code/modules/station_goals/bsa.dm @@ -279,7 +279,7 @@ area_aim = TRUE target_all_areas = TRUE -/obj/machinery/computer/bsa_control/admin/Initialize() +/obj/machinery/computer/bsa_control/admin/Initialize(mapload) . = ..() if(!cannon) cannon = deploy() diff --git a/code/modules/surgery/organs/augments_arms.dm b/code/modules/surgery/organs/augments_arms.dm index b08a0021cd0..88046283bfa 100644 --- a/code/modules/surgery/organs/augments_arms.dm +++ b/code/modules/surgery/organs/augments_arms.dm @@ -820,7 +820,7 @@ actions_types = list() var/datum/martial_art/muscle_implant/muscle_implant -/obj/item/organ/internal/cyberimp/arm/muscle/Initialize() +/obj/item/organ/internal/cyberimp/arm/muscle/Initialize(mapload) . = ..() muscle_implant = new() diff --git a/tools/ci/check_grep2.py b/tools/ci/check_grep2.py index 996def27bf2..a6365d8df9b 100644 --- a/tools/ci/check_grep2.py +++ b/tools/ci/check_grep2.py @@ -151,6 +151,13 @@ def check_href_styles(idx, line): if HREF_OLD_STYLE.search(line): return [(idx + 1, "BYOND requires internal href links to begin with \"byond://\"")] +INITIALIZE_MISSING_MAPLOAD = re.compile( + r"^/(obj|mob|turf|area|atom)/.+/Initialize\((?!mapload).*\)" +) +def check_initialize_missing_mapload(idx, line): + if INITIALIZE_MISSING_MAPLOAD.search(line): + return [(idx + 1, "Initialize override without 'mapload' argument.")] + # TODO: This finds most cases except for e.g. `list(1, 2, 3 )` # Find a way to include this without breaking macro/tab-aligned versions such as `list( \` # Maybe even make sure it doesn't include comments, idk @@ -182,6 +189,7 @@ CODE_CHECKS = [ check_tgui_ui_new_argument, check_datum_loops, check_href_styles, + check_initialize_missing_mapload, check_empty_list_whitespace, ]