diff --git a/.github/guides/HARDDELETES.md b/.github/guides/HARDDELETES.md index 4790150ea0d..7c1d50e22b3 100644 --- a/.github/guides/HARDDELETES.md +++ b/.github/guides/HARDDELETES.md @@ -137,7 +137,7 @@ Once you've found the issue, it becomes a matter of making sure the ref is clear First and simplest we have `Destroy()`. Use this to clean up after yourself for simple cases ```dm -/someobject/Initialize() +/someobject/Initialize(mapload) . = ..() GLOB.somethings += src //We add ourselves to some global list @@ -157,12 +157,12 @@ This is helpful when for cases where both objects "own" each other /someotherobject var/someobject/friend -/someobject/Initialize() +/someobject/Initialize(mapload) if(!buddy) buddy = new() buddy.friend = src -/someotherobject/Initialize() +/someotherobject/Initialize(mapload) if(!friend) friend = new() friend.buddy = src diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 26d01846841..0b07a3cca87 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -1149,7 +1149,7 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new) move_resist = INFINITY var/ready_to_die = FALSE -/mob/dview/Initialize() //Properly prevents this mob from gaining huds or joining any global lists +/mob/dview/Initialize(mapload) //Properly prevents this mob from gaining huds or joining any global lists SHOULD_CALL_PARENT(FALSE) if(flags_1 & INITIALIZED_1) stack_trace("Warning: [src]([type]) initialized multiple times!") diff --git a/code/_onclick/hud/action_button.dm b/code/_onclick/hud/action_button.dm index 3b917f3a194..6d609299a05 100644 --- a/code/_onclick/hud/action_button.dm +++ b/code/_onclick/hud/action_button.dm @@ -75,7 +75,7 @@ var/mutable_appearance/hide_appearance var/mutable_appearance/show_appearance -/atom/movable/screen/movable/action_button/hide_toggle/Initialize() +/atom/movable/screen/movable/action_button/hide_toggle/Initialize(mapload) . = ..() var/static/list/icon_cache = list() diff --git a/code/_onclick/hud/alert.dm b/code/_onclick/hud/alert.dm index 5bae095928d..a4cf2d93a8c 100644 --- a/code/_onclick/hud/alert.dm +++ b/code/_onclick/hud/alert.dm @@ -460,7 +460,7 @@ or shoot a gun to move around via Newton's 3rd Law of Motion." var/angle = 0 var/mob/living/simple_animal/hostile/construct/Cviewer = null -/atom/movable/screen/alert/bloodsense/Initialize() +/atom/movable/screen/alert/bloodsense/Initialize(mapload) . = ..() narnar = new('icons/hud/screen_alert.dmi', "mini_nar") START_PROCESSING(SSprocessing, src) diff --git a/code/_onclick/hud/blob_overmind.dm b/code/_onclick/hud/blob_overmind.dm index dd3224c5500..a157e2157b8 100644 --- a/code/_onclick/hud/blob_overmind.dm +++ b/code/_onclick/hud/blob_overmind.dm @@ -58,7 +58,7 @@ name = "Produce Blobbernaut (ERROR)" desc = "Produces a strong, smart blobbernaut from a factory blob for (ERROR) resources.
The factory blob used will become fragile and unable to produce spores." -/atom/movable/screen/blob/blobbernaut/Initialize() +/atom/movable/screen/blob/blobbernaut/Initialize(mapload) . = ..() name = "Produce Blobbernaut ([BLOBMOB_BLOBBERNAUT_RESOURCE_COST])" desc = "Produces a strong, smart blobbernaut from a factory blob for [BLOBMOB_BLOBBERNAUT_RESOURCE_COST] resources.
The factory blob used will become fragile and unable to produce spores." @@ -74,7 +74,7 @@ name = "Produce Resource Blob (ERROR)" desc = "Produces a resource blob for ERROR resources.
Resource blobs will give you resources every few seconds." -/atom/movable/screen/blob/resource_blob/Initialize() +/atom/movable/screen/blob/resource_blob/Initialize(mapload) . = ..() name = "Produce Resource Blob ([BLOB_STRUCTURE_RESOURCE_COST])" desc = "Produces a resource blob for [BLOB_STRUCTURE_RESOURCE_COST] resources.
Resource blobs will give you resources every few seconds." @@ -90,7 +90,7 @@ name = "Produce Node Blob (ERROR)" desc = "Produces a node blob for ERROR resources.
Node blobs will expand and activate nearby resource and factory blobs." -/atom/movable/screen/blob/node_blob/Initialize() +/atom/movable/screen/blob/node_blob/Initialize(mapload) . = ..() name = "Produce Node Blob ([BLOB_STRUCTURE_NODE_COST])" desc = "Produces a node blob for [BLOB_STRUCTURE_NODE_COST] resources.
Node blobs will expand and activate nearby resource and factory blobs." @@ -106,7 +106,7 @@ name = "Produce Factory Blob (ERROR)" desc = "Produces a factory blob for ERROR resources.
Factory blobs will produce spores every few seconds." -/atom/movable/screen/blob/factory_blob/Initialize() +/atom/movable/screen/blob/factory_blob/Initialize(mapload) . = ..() name = "Produce Factory Blob ([BLOB_STRUCTURE_FACTORY_COST])" desc = "Produces a factory blob for [BLOB_STRUCTURE_FACTORY_COST] resources.
Factory blobs will produce spores every few seconds." @@ -144,7 +144,7 @@ name = "Relocate Core (ERROR)" desc = "Swaps a node and your core for ERROR resources." -/atom/movable/screen/blob/relocate_core/Initialize() +/atom/movable/screen/blob/relocate_core/Initialize(mapload) . = ..() name = "Relocate Core ([BLOB_POWER_RELOCATE_COST])" desc = "Swaps a node and your core for [BLOB_POWER_RELOCATE_COST] resources." diff --git a/code/_onclick/hud/families.dm b/code/_onclick/hud/families.dm index ba4a67d073f..b89ff061750 100644 --- a/code/_onclick/hud/families.dm +++ b/code/_onclick/hud/families.dm @@ -10,7 +10,7 @@ /// Boolean, have the cops arrived? If so, the icon stops changing and remains the same. var/cops_arrived = 0 -/atom/movable/screen/wanted/Initialize() +/atom/movable/screen/wanted/Initialize(mapload) . = ..() update_appearance() diff --git a/code/_onclick/hud/picture_in_picture.dm b/code/_onclick/hud/picture_in_picture.dm index e5e5cfe8ff4..8814e4e43c1 100644 --- a/code/_onclick/hud/picture_in_picture.dm +++ b/code/_onclick/hud/picture_in_picture.dm @@ -13,7 +13,7 @@ var/mutable_appearance/standard_background -/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 0c06fa5a258..187b832b38f 100644 --- a/code/_onclick/hud/plane_master.dm +++ b/code/_onclick/hud/plane_master.dm @@ -24,7 +24,7 @@ blend_mode = BLEND_MULTIPLY alpha = 255 -/atom/movable/screen/plane_master/openspace/Initialize() +/atom/movable/screen/plane_master/openspace/Initialize(mapload) . = ..() add_filter("multiz_lighting_mask", 1, alpha_mask_filter(render_source = LIGHTING_RENDER_TARGET, flags = MASK_INVERSE)) add_filter("first_stage_openspace", 2, drop_shadow_filter(color = "#04080FAA", size = -10)) @@ -128,7 +128,7 @@ * This is then used to alpha mask the lighting plane. */ -/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)) add_filter("object_lighting", 2, alpha_mask_filter(render_source = O_LIGHTING_VISUAL_RENDER_TARGET, flags = MASK_INVERSE)) @@ -143,7 +143,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/_onclick/hud/screen_objects.dm b/code/_onclick/hud/screen_objects.dm index 46db4ce4cff..6922e6d4395 100644 --- a/code/_onclick/hud/screen_objects.dm +++ b/code/_onclick/hud/screen_objects.dm @@ -266,7 +266,7 @@ icon_state = "combat_off" screen_loc = ui_combat_toggle -/atom/movable/screen/combattoggle/Initialize() +/atom/movable/screen/combattoggle/Initialize(mapload) . = ..() update_appearance() diff --git a/code/_onclick/telekinesis.dm b/code/_onclick/telekinesis.dm index 788cc1b5441..74464c01d54 100644 --- a/code/_onclick/telekinesis.dm +++ b/code/_onclick/telekinesis.dm @@ -96,7 +96,7 @@ var/atom/movable/focus var/mob/living/carbon/tk_user -/obj/item/tk_grab/Initialize() +/obj/item/tk_grab/Initialize(mapload) . = ..() START_PROCESSING(SSfastprocess, src) diff --git a/code/controllers/subsystem/atoms.dm b/code/controllers/subsystem/atoms.dm index 87eaf03a5f7..68f905e6c9f 100644 --- a/code/controllers/subsystem/atoms.dm +++ b/code/controllers/subsystem/atoms.dm @@ -170,7 +170,7 @@ SUBSYSTEM_DEF(atoms) . += "Path : [path] \n" var/fails = BadInitializeCalls[path] if(fails & BAD_INIT_DIDNT_INIT) - . += "- Didn't call atom/Initialize()\n" + . += "- Didn't call atom/Initialize(mapload)\n" if(fails & BAD_INIT_NO_HINT) . += "- Didn't return an Initialize hint\n" if(fails & BAD_INIT_QDEL_BEFORE) diff --git a/code/controllers/subsystem/job.dm b/code/controllers/subsystem/job.dm index b8b7d815321..5d8f651f94f 100644 --- a/code/controllers/subsystem/job.dm +++ b/code/controllers/subsystem/job.dm @@ -797,7 +797,7 @@ SUBSYSTEM_DEF(job) name = "Nanotrasen-Approved Spare ID Safe Code" desc = "Proof that you have been approved for Captaincy, with all its glory and all its horror." -/obj/item/paper/fluff/spare_id_safe_code/Initialize() +/obj/item/paper/fluff/spare_id_safe_code/Initialize(mapload) . = ..() var/safe_code = SSid_access.spare_id_safe_code @@ -808,7 +808,7 @@ SUBSYSTEM_DEF(job) name = "Emergency Spare ID Safe Code Requisition" desc = "Proof that nobody has been approved for Captaincy. A skeleton key for a skeleton shift." -/obj/item/paper/fluff/emergency_spare_id_safe_code/Initialize() +/obj/item/paper/fluff/emergency_spare_id_safe_code/Initialize(mapload) . = ..() var/safe_code = SSid_access.spare_id_safe_code diff --git a/code/datums/brain_damage/special.dm b/code/datums/brain_damage/special.dm index 202d3443d77..3277a5436e0 100644 --- a/code/datums/brain_damage/special.dm +++ b/code/datums/brain_damage/special.dm @@ -104,7 +104,7 @@ var/obj/effect/hallucination/simple/bluespace_stream/linked_to var/mob/living/carbon/seer -/obj/effect/hallucination/simple/bluespace_stream/Initialize() +/obj/effect/hallucination/simple/bluespace_stream/Initialize(mapload) . = ..() QDEL_IN(src, 300) @@ -378,7 +378,7 @@ image_state = "secbot-c" var/victim -/obj/effect/hallucination/simple/securitron/Initialize() +/obj/effect/hallucination/simple/securitron/Initialize(mapload) . = ..() name = pick("officer Beepsky", "officer Johnson", "officer Pingsky") START_PROCESSING(SSfastprocess, src) diff --git a/code/datums/components/trapdoor.dm b/code/datums/components/trapdoor.dm index 8d841cd5504..62e0089aa07 100644 --- a/code/datums/components/trapdoor.dm +++ b/code/datums/components/trapdoor.dm @@ -264,6 +264,6 @@ ///subtype with internals already included. If you're giving a department a roundstart trapdoor, this is what you want /obj/item/trapdoor_remote/preloaded -/obj/item/trapdoor_remote/preloaded/Initialize() +/obj/item/trapdoor_remote/preloaded/Initialize(mapload) . = ..() internals = new(src) diff --git a/code/datums/components/twohanded.dm b/code/datums/components/twohanded.dm index 24399d3e8aa..c2d129af634 100644 --- a/code/datums/components/twohanded.dm +++ b/code/datums/components/twohanded.dm @@ -328,7 +328,7 @@ resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF var/wielded = FALSE // Off Hand tracking of wielded status -/obj/item/offhand/Initialize() +/obj/item/offhand/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT) diff --git a/code/datums/martial/sleeping_carp.dm b/code/datums/martial/sleeping_carp.dm index d03320642ee..357afca9957 100644 --- a/code/datums/martial/sleeping_carp.dm +++ b/code/datums/martial/sleeping_carp.dm @@ -169,7 +169,7 @@ block_chance = 50 var/wielded = FALSE // track wielded status on item -/obj/item/staff/bostaff/Initialize() +/obj/item/staff/bostaff/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) diff --git a/code/datums/status_effects/debuffs.dm b/code/datums/status_effects/debuffs.dm index 25432057ba6..0a32c78829d 100644 --- a/code/datums/status_effects/debuffs.dm +++ b/code/datums/status_effects/debuffs.dm @@ -623,7 +623,7 @@ /obj/effect/temp_visual/curse icon_state = "curse" -/obj/effect/temp_visual/curse/Initialize() +/obj/effect/temp_visual/curse/Initialize(mapload) . = ..() deltimer(timerid) diff --git a/code/game/area/ai_monitored.dm b/code/game/area/ai_monitored.dm index 391e6ac1ca8..7ca981cbcc0 100644 --- a/code/game/area/ai_monitored.dm +++ b/code/game/area/ai_monitored.dm @@ -30,6 +30,6 @@ cam.lostTargetRef(WEAKREF(gone)) return -/area/ai_monitored/turret_protected/ai/Initialize() +/area/ai_monitored/turret_protected/ai/Initialize(mapload) . = ..() src.area_flags |= ABDUCTOR_PROOF diff --git a/code/game/area/areas/centcom.dm b/code/game/area/areas/centcom.dm index 936a1c9c07e..dbc3f19e864 100644 --- a/code/game/area/areas/centcom.dm +++ b/code/game/area/areas/centcom.dm @@ -52,7 +52,7 @@ icon_state = "supplypod_loading" var/loading_id = "" -/area/centcom/supplypod/loading/Initialize() +/area/centcom/supplypod/loading/Initialize(mapload) . = ..() if(!loading_id) CRASH("[type] created without a loading_id") diff --git a/code/game/area/areas/shuttles.dm b/code/game/area/areas/shuttles.dm index 0bd12d47b19..b7d8f9ee5a4 100644 --- a/code/game/area/areas/shuttles.dm +++ b/code/game/area/areas/shuttles.dm @@ -233,7 +233,7 @@ timeleft = 0 var/list/warp_points = list() -/obj/effect/forcefield/arena_shuttle/Initialize() +/obj/effect/forcefield/arena_shuttle/Initialize(mapload) . = ..() for(var/obj/effect/landmark/shuttle_arena_safe/exit in GLOB.landmarks_list) warp_points += exit diff --git a/code/game/area/space_station_13_areas.dm b/code/game/area/space_station_13_areas.dm index 56517fdfcd7..b7dbac00856 100644 --- a/code/game/area/space_station_13_areas.dm +++ b/code/game/area/space_station_13_areas.dm @@ -105,7 +105,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station var/ai_will_not_hear_this = list('sound/ambience/ambimalf.ogg') airlock_wires = /datum/wires/airlock/ai -/area/ai_monitored/turret_protected/Initialize() +/area/ai_monitored/turret_protected/Initialize(mapload) . = ..() if(ai_will_not_hear_this) ambientsounds += ai_will_not_hear_this diff --git a/code/game/atoms.dm b/code/game/atoms.dm index b96a0fe8df4..773db0f772b 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -302,7 +302,7 @@ * * clears overlays and priority overlays * * clears the light object */ -/atom/Destroy() +/atom/Destroy(force) if(alternate_appearances) for(var/current_alternate_appearance in alternate_appearances) var/datum/atom_hud/alternate_appearance/selected_alternate_appearance = alternate_appearances[current_alternate_appearance] diff --git a/code/game/machinery/Beacon.dm b/code/game/machinery/Beacon.dm index ac48758be17..76df121cc99 100644 --- a/code/game/machinery/Beacon.dm +++ b/code/game/machinery/Beacon.dm @@ -9,7 +9,7 @@ idle_power_usage = 0 var/obj/item/beacon/Beacon -/obj/machinery/bluespace_beacon/Initialize() +/obj/machinery/bluespace_beacon/Initialize(mapload) . = ..() var/turf/T = loc Beacon = new(T) diff --git a/code/game/machinery/PDApainter.dm b/code/game/machinery/PDApainter.dm index 43c64b76615..694adfb9467 100644 --- a/code/game/machinery/PDApainter.dm +++ b/code/game/machinery/PDApainter.dm @@ -43,7 +43,7 @@ if(stored_pda || stored_id_card) . += "[initial(icon_state)]-closed" -/obj/machinery/pdapainter/Initialize() +/obj/machinery/pdapainter/Initialize(mapload) . = ..() if(!target_dept) diff --git a/code/game/machinery/_machinery.dm b/code/game/machinery/_machinery.dm index de78b420297..58b4b5b9999 100644 --- a/code/game/machinery/_machinery.dm +++ b/code/game/machinery/_machinery.dm @@ -144,7 +144,7 @@ /// Mobtype of last user. Typecast to [/mob/living] for initial() usage var/mob/living/last_user_mobtype -/obj/machinery/Initialize() +/obj/machinery/Initialize(mapload) if(!armor) armor = list(MELEE = 25, BULLET = 10, LASER = 10, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 50, ACID = 70) . = ..() diff --git a/code/game/machinery/airlock_control.dm b/code/game/machinery/airlock_control.dm index 8ae22fb003c..075f5342603 100644 --- a/code/game/machinery/airlock_control.dm +++ b/code/game/machinery/airlock_control.dm @@ -157,7 +157,7 @@ frequency = new_frequency radio_connection = SSradio.add_object(src, frequency, RADIO_AIRLOCK) -/obj/machinery/airlock_sensor/Initialize() +/obj/machinery/airlock_sensor/Initialize(mapload) . = ..() set_frequency(frequency) diff --git a/code/game/machinery/announcement_system.dm b/code/game/machinery/announcement_system.dm index 816d8a56007..e5f0c943b83 100644 --- a/code/game/machinery/announcement_system.dm +++ b/code/game/machinery/announcement_system.dm @@ -27,7 +27,7 @@ GLOBAL_LIST_EMPTY(announcement_systems) var/pinklight = "Light_Pink" var/errorlight = "Error_Red" -/obj/machinery/announcement_system/Initialize() +/obj/machinery/announcement_system/Initialize(mapload) . = ..() GLOB.announcement_systems += src radio = new /obj/item/radio/headset/silicon/ai(src) diff --git a/code/game/machinery/aug_manipulator.dm b/code/game/machinery/aug_manipulator.dm index d3f6989b2b0..cd28dd4310a 100644 --- a/code/game/machinery/aug_manipulator.dm +++ b/code/game/machinery/aug_manipulator.dm @@ -14,7 +14,7 @@ if(storedpart) . += span_notice("Alt-click to eject the limb.") -/obj/machinery/aug_manipulator/Initialize() +/obj/machinery/aug_manipulator/Initialize(mapload) if(!base_icon_state) base_icon_state = initial(icon_state) return ..() diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index 1e5f191e77d..de3aa122166 100644 --- a/code/game/machinery/autolathe.dm +++ b/code/game/machinery/autolathe.dm @@ -44,7 +44,7 @@ "Imported" ) -/obj/machinery/autolathe/Initialize() +/obj/machinery/autolathe/Initialize(mapload) AddComponent(/datum/component/material_container, SSmaterials.materials_by_category[MAT_CATEGORY_ITEM_MATERIAL], 0, MATCONTAINER_EXAMINE, _after_insert = CALLBACK(src, .proc/AfterMaterialInsert)) . = ..() @@ -408,7 +408,7 @@ else stored_research.remove_design(D) -/obj/machinery/autolathe/hacked/Initialize() +/obj/machinery/autolathe/hacked/Initialize(mapload) . = ..() adjust_hacked(TRUE) diff --git a/code/game/machinery/bank_machine.dm b/code/game/machinery/bank_machine.dm index bc017cbecaa..7ff8ee32106 100644 --- a/code/game/machinery/bank_machine.dm +++ b/code/game/machinery/bank_machine.dm @@ -12,7 +12,7 @@ var/minimum_time_between_warnings = 400 var/syphoning_credits = 0 -/obj/machinery/computer/bank_machine/Initialize() +/obj/machinery/computer/bank_machine/Initialize(mapload) . = ..() radio = new(src) radio.subspace_transmission = TRUE diff --git a/code/game/machinery/camera/motion.dm b/code/game/machinery/camera/motion.dm index 64f15d93011..32df12a4c83 100644 --- a/code/game/machinery/camera/motion.dm +++ b/code/game/machinery/camera/motion.dm @@ -77,7 +77,7 @@ c_tag = "Arena" resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF | FREEZE_PROOF -/obj/machinery/camera/motion/thunderdome/Initialize() +/obj/machinery/camera/motion/thunderdome/Initialize(mapload) . = ..() proximity_monitor.SetRange(7) diff --git a/code/game/machinery/camera/presets.dm b/code/game/machinery/camera/presets.dm index fa61ebceda4..349b7ec980a 100644 --- a/code/game/machinery/camera/presets.dm +++ b/code/game/machinery/camera/presets.dm @@ -4,13 +4,13 @@ /obj/machinery/camera/emp_proof start_active = TRUE -/obj/machinery/camera/emp_proof/Initialize() +/obj/machinery/camera/emp_proof/Initialize(mapload) . = ..() upgradeEmpProof() // EMP + Motion -/obj/machinery/camera/emp_proof/motion/Initialize() +/obj/machinery/camera/emp_proof/motion/Initialize(mapload) . = ..() upgradeMotion() @@ -20,7 +20,7 @@ start_active = TRUE icon_state = "xraycamera" //mapping icon - Thanks to Krutchen for the icons. -/obj/machinery/camera/xray/Initialize() +/obj/machinery/camera/xray/Initialize(mapload) . = ..() upgradeXRay() @@ -29,7 +29,7 @@ start_active = TRUE name = "motion-sensitive security camera" -/obj/machinery/camera/motion/Initialize() +/obj/machinery/camera/motion/Initialize(mapload) . = ..() upgradeMotion() @@ -38,7 +38,7 @@ start_active = TRUE icon_state = "xraycamera" //mapping icon. -/obj/machinery/camera/all/Initialize() +/obj/machinery/camera/all/Initialize(mapload) . = ..() upgradeEmpProof() upgradeXRay() @@ -50,7 +50,7 @@ var/number = 0 //camera number in area //This camera type automatically sets it's name to whatever the area that it's in is called. -/obj/machinery/camera/autoname/Initialize() +/obj/machinery/camera/autoname/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/game/machinery/civilian_bounties.dm b/code/game/machinery/civilian_bounties.dm index cb4e242521d..91ed168f42a 100644 --- a/code/game/machinery/civilian_bounties.dm +++ b/code/game/machinery/civilian_bounties.dm @@ -19,7 +19,7 @@ var/obj/item/card/id/inserted_scan_id circuit = /obj/item/circuitboard/computer/bountypad -/obj/machinery/computer/piratepad_control/civilian/Initialize() +/obj/machinery/computer/piratepad_control/civilian/Initialize(mapload) . = ..() pad = /obj/machinery/piratepad/civilian @@ -273,7 +273,7 @@ ///The key our internal radio uses. var/radio_key = /obj/item/encryptionkey/headset_cargo -/obj/item/bounty_cube/Initialize() +/obj/item/bounty_cube/Initialize(mapload) . = ..() radio = new(src) radio.keyslot = new radio_key diff --git a/code/game/machinery/computer/Operating.dm b/code/game/machinery/computer/Operating.dm index f7228f98afd..4dc6b421e4e 100644 --- a/code/game/machinery/computer/Operating.dm +++ b/code/game/machinery/computer/Operating.dm @@ -13,7 +13,7 @@ var/datum/techweb/linked_techweb light_color = LIGHT_COLOR_BLUE -/obj/machinery/computer/operating/Initialize() +/obj/machinery/computer/operating/Initialize(mapload) . = ..() linked_techweb = SSresearch.science_tech find_table() diff --git a/code/game/machinery/computer/arcade/arcade.dm b/code/game/machinery/computer/arcade/arcade.dm index 0eda90230cd..fda8475cc3a 100644 --- a/code/game/machinery/computer/arcade/arcade.dm +++ b/code/game/machinery/computer/arcade/arcade.dm @@ -77,7 +77,7 @@ GLOBAL_LIST_INIT(arcade_prize_pool, list( /obj/machinery/computer/arcade/proc/Reset() return -/obj/machinery/computer/arcade/Initialize() +/obj/machinery/computer/arcade/Initialize(mapload) . = ..() Reset() diff --git a/code/game/machinery/computer/arcade/orion.dm b/code/game/machinery/computer/arcade/orion.dm index 854430524b5..d8d1bc5d971 100644 --- a/code/game/machinery/computer/arcade/orion.dm +++ b/code/game/machinery/computer/arcade/orion.dm @@ -42,7 +42,7 @@ GLOBAL_LIST_INIT(orion_events, generate_orion_events()) var/list/gamers = list() var/killed_crew = 0 -/obj/machinery/computer/arcade/orion_trail/Initialize() +/obj/machinery/computer/arcade/orion_trail/Initialize(mapload) . = ..() radio = new /obj/item/radio(src) radio.listening = 0 diff --git a/code/game/machinery/computer/atmos_alert.dm b/code/game/machinery/computer/atmos_alert.dm index 98f184cd70f..e0c9b1af1f1 100644 --- a/code/game/machinery/computer/atmos_alert.dm +++ b/code/game/machinery/computer/atmos_alert.dm @@ -11,7 +11,7 @@ var/datum/radio_frequency/radio_connection -/obj/machinery/computer/atmos_alert/Initialize() +/obj/machinery/computer/atmos_alert/Initialize(mapload) . = ..() set_frequency(receive_frequency) diff --git a/code/game/machinery/computer/atmos_control.dm b/code/game/machinery/computer/atmos_control.dm index 1ae0d322a3f..855d653099d 100644 --- a/code/game/machinery/computer/atmos_control.dm +++ b/code/game/machinery/computer/atmos_control.dm @@ -119,7 +119,7 @@ frequency = new_frequency radio_connection = SSradio.add_object(src, frequency, RADIO_ATMOSIA) -/obj/machinery/air_sensor/Initialize() +/obj/machinery/air_sensor/Initialize(mapload) . = ..() SSair.start_processing_machine(src) set_frequency(frequency) @@ -174,7 +174,7 @@ GLOBAL_LIST_EMPTY(atmos_air_controllers) var/datum/radio_frequency/radio_connection -/obj/machinery/computer/atmos_control/Initialize() +/obj/machinery/computer/atmos_control/Initialize(mapload) . = ..() GLOB.atmos_air_controllers += src set_frequency(frequency) diff --git a/code/game/machinery/computer/camera.dm b/code/game/machinery/computer/camera.dm index 614b6382538..b6fef4f3ed3 100644 --- a/code/game/machinery/computer/camera.dm +++ b/code/game/machinery/computer/camera.dm @@ -23,7 +23,7 @@ interaction_flags_machine = INTERACT_MACHINE_ALLOW_SILICON | INTERACT_MACHINE_SET_MACHINE | INTERACT_MACHINE_REQUIRES_SIGHT -/obj/machinery/computer/security/Initialize() +/obj/machinery/computer/security/Initialize(mapload) . = ..() // Map name has to start and end with an A-Z character, // and definitely NOT with a square bracket or even a number. @@ -293,7 +293,7 @@ dir = EAST pixel_x = -32 -/obj/machinery/computer/security/telescreen/entertainment/Initialize() +/obj/machinery/computer/security/telescreen/entertainment/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_CLICK, .proc/BigClick) diff --git a/code/game/machinery/computer/camera_advanced.dm b/code/game/machinery/computer/camera_advanced.dm index e7edb5a0eec..3491158e2d5 100644 --- a/code/game/machinery/computer/camera_advanced.dm +++ b/code/game/machinery/computer/camera_advanced.dm @@ -21,7 +21,7 @@ interaction_flags_machine = INTERACT_MACHINE_ALLOW_SILICON | INTERACT_MACHINE_SET_MACHINE | INTERACT_MACHINE_REQUIRES_SIGHT -/obj/machinery/computer/camera_advanced/Initialize() +/obj/machinery/computer/camera_advanced/Initialize(mapload) . = ..() for(var/i in networks) networks -= i diff --git a/code/game/machinery/computer/chef_orders/chef_order.dm b/code/game/machinery/computer/chef_orders/chef_order.dm index 0cef22e99bf..335ac03a7bd 100644 --- a/code/game/machinery/computer/chef_orders/chef_order.dm +++ b/code/game/machinery/computer/chef_orders/chef_order.dm @@ -14,7 +14,7 @@ var/obj/item/radio/radio var/radio_channel = RADIO_CHANNEL_SUPPLY -/obj/machinery/computer/chef_order/Initialize() +/obj/machinery/computer/chef_order/Initialize(mapload) . = ..() radio = new(src) radio.frequency = FREQ_SUPPLY diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index 370f5cbcb8b..12682cf97bc 100755 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -50,7 +50,7 @@ ///when was emergency access last toggled var/last_toggled -/obj/machinery/computer/communications/Initialize() +/obj/machinery/computer/communications/Initialize(mapload) . = ..() GLOB.shuttle_caller_list += src AddComponent(/datum/component/gps, "Secured Communications Signal") diff --git a/code/game/machinery/computer/dna_console.dm b/code/game/machinery/computer/dna_console.dm index 6ad04869516..16d1e707e16 100644 --- a/code/game/machinery/computer/dna_console.dm +++ b/code/game/machinery/computer/dna_console.dm @@ -207,7 +207,7 @@ eject_disk(user) -/obj/machinery/computer/scan_consolenew/Initialize() +/obj/machinery/computer/scan_consolenew/Initialize(mapload) . = ..() // Connect with a nearby DNA Scanner on init diff --git a/code/game/machinery/computer/launchpad_control.dm b/code/game/machinery/computer/launchpad_control.dm index 060112d55ed..796a24a7f51 100644 --- a/code/game/machinery/computer/launchpad_control.dm +++ b/code/game/machinery/computer/launchpad_control.dm @@ -9,7 +9,7 @@ var/list/obj/machinery/launchpad/launchpads var/maximum_pads = 4 -/obj/machinery/computer/launchpad/Initialize() +/obj/machinery/computer/launchpad/Initialize(mapload) launchpads = list() . = ..() AddComponent(/datum/component/usb_port, list( diff --git a/code/game/machinery/computer/law.dm b/code/game/machinery/computer/law.dm index 8d49c60709b..1749c491485 100644 --- a/code/game/machinery/computer/law.dm +++ b/code/game/machinery/computer/law.dm @@ -5,7 +5,7 @@ icon_screen = "command" time_to_screwdrive = 60 -/obj/machinery/computer/upload/Initialize() +/obj/machinery/computer/upload/Initialize(mapload) . = ..() AddComponent(/datum/component/gps, "Encrypted Upload") diff --git a/code/game/machinery/computer/pod.dm b/code/game/machinery/computer/pod.dm index ea25d22c357..e52c8d7959c 100644 --- a/code/game/machinery/computer/pod.dm +++ b/code/game/machinery/computer/pod.dm @@ -15,7 +15,7 @@ /// Countdown timer for the mass driver's delayed launch functionality. COOLDOWN_DECLARE(massdriver_countdown) -/obj/machinery/computer/pod/Initialize() +/obj/machinery/computer/pod/Initialize(mapload) . = ..() for(var/obj/machinery/mass_driver/M in range(range, src)) if(M.id == id) diff --git a/code/game/machinery/computer/prisoner/gulag_teleporter.dm b/code/game/machinery/computer/prisoner/gulag_teleporter.dm index 9fc37f30e2a..b539afe9d92 100644 --- a/code/game/machinery/computer/prisoner/gulag_teleporter.dm +++ b/code/game/machinery/computer/prisoner/gulag_teleporter.dm @@ -15,7 +15,7 @@ var/datum/data/record/temporary_record = null -/obj/machinery/computer/prisoner/gulag_teleporter_computer/Initialize() +/obj/machinery/computer/prisoner/gulag_teleporter_computer/Initialize(mapload) . = ..() scan_machinery() diff --git a/code/game/machinery/computer/station_alert.dm b/code/game/machinery/computer/station_alert.dm index dc3abdbcd14..aca7eb25e47 100644 --- a/code/game/machinery/computer/station_alert.dm +++ b/code/game/machinery/computer/station_alert.dm @@ -8,7 +8,7 @@ /// Station alert datum for showing alerts UI var/datum/station_alert/alert_control -/obj/machinery/computer/station_alert/Initialize() +/obj/machinery/computer/station_alert/Initialize(mapload) alert_control = new(src, list(ALARM_ATMOS, ALARM_FIRE, ALARM_POWER), list(z), title = name) RegisterSignal(alert_control.listener, list(COMSIG_ALARM_TRIGGERED, COMSIG_ALARM_CLEARED), .proc/update_alarm_display) return ..() diff --git a/code/game/machinery/computer/teleporter.dm b/code/game/machinery/computer/teleporter.dm index 5f70dc2dcd5..b19f518b733 100644 --- a/code/game/machinery/computer/teleporter.dm +++ b/code/game/machinery/computer/teleporter.dm @@ -13,7 +13,7 @@ ///Weakref to the target atom we're pointed at currently var/datum/weakref/target_ref -/obj/machinery/computer/teleporter/Initialize() +/obj/machinery/computer/teleporter/Initialize(mapload) . = ..() id = "[rand(1000, 9999)]" link_power_station() diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index 88782964488..96052588762 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -29,7 +29,7 @@ GLOBAL_LIST_EMPTY(cryopod_computers) var/storage_type = "crewmembers" var/storage_name = "Cryogenic Oversight Control" -/obj/machinery/computer/cryopod/Initialize() +/obj/machinery/computer/cryopod/Initialize(mapload) . = ..() GLOB.cryopod_computers += src @@ -93,7 +93,7 @@ GLOBAL_LIST_EMPTY(cryopod_computers) var/datum/weakref/control_computer_weakref COOLDOWN_DECLARE(last_no_computer_message) -/obj/machinery/cryopod/Initialize() +/obj/machinery/cryopod/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD //Gotta populate the cryopod computer GLOB first diff --git a/code/game/machinery/dance_machine.dm b/code/game/machinery/dance_machine.dm index e5ac06cfed5..fb2590538e4 100644 --- a/code/game/machinery/dance_machine.dm +++ b/code/game/machinery/dance_machine.dm @@ -44,7 +44,7 @@ song_length = length song_beat = beat -/obj/machinery/jukebox/Initialize() +/obj/machinery/jukebox/Initialize(mapload) . = ..() var/list/tracks = flist("[global.config.directory]/jukebox_music/sounds/") diff --git a/code/game/machinery/defibrillator_mount.dm b/code/game/machinery/defibrillator_mount.dm index c914a10331c..56fbcc10e71 100644 --- a/code/game/machinery/defibrillator_mount.dm +++ b/code/game/machinery/defibrillator_mount.dm @@ -34,7 +34,7 @@ dir = EAST pixel_x = -32 -/obj/machinery/defibrillator_mount/loaded/Initialize() //loaded subtype for mapping use +/obj/machinery/defibrillator_mount/loaded/Initialize(mapload) //loaded subtype for mapping use . = ..() defib = new/obj/item/defibrillator/loaded(src) @@ -213,7 +213,7 @@ wallframe_type = /obj/item/wallframe/defib_mount/charging -/obj/machinery/defibrillator_mount/charging/Initialize() +/obj/machinery/defibrillator_mount/charging/Initialize(mapload) . = ..() if(is_operational) begin_processing() diff --git a/code/game/machinery/deployable.dm b/code/game/machinery/deployable.dm index 13c9a40960d..24f660c1e47 100644 --- a/code/game/machinery/deployable.dm +++ b/code/game/machinery/deployable.dm @@ -110,7 +110,7 @@ smoothing_groups = list(SMOOTH_GROUP_SANDBAGS) canSmoothWith = list(SMOOTH_GROUP_SANDBAGS, SMOOTH_GROUP_WALLS, SMOOTH_GROUP_SECURITY_BARRICADE) -/obj/structure/barricade/sandbags/Initialize() +/obj/structure/barricade/sandbags/Initialize(mapload) . = ..() AddElement(/datum/element/climbable) @@ -129,7 +129,7 @@ var/deploy_message = TRUE -/obj/structure/barricade/security/Initialize() +/obj/structure/barricade/security/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/deploy), deploy_time) @@ -204,7 +204,7 @@ w_class = WEIGHT_CLASS_BULKY slot_flags = ITEM_SLOT_BACK -/obj/item/deployable_turret_folded/Initialize() +/obj/item/deployable_turret_folded/Initialize(mapload) . = ..() AddComponent(/datum/component/deployable, 5 SECONDS, /obj/machinery/deployable_turret/hmg, delete_on_use = TRUE) diff --git a/code/game/machinery/dish_drive.dm b/code/game/machinery/dish_drive.dm index 97fdb00a17d..a3daa5ac3ab 100644 --- a/code/game/machinery/dish_drive.dm +++ b/code/game/machinery/dish_drive.dm @@ -26,7 +26,7 @@ var/transmit_enabled = TRUE var/list/dish_drive_contents -/obj/machinery/dish_drive/Initialize() +/obj/machinery/dish_drive/Initialize(mapload) . = ..() RefreshParts() diff --git a/code/game/machinery/dna_scanner.dm b/code/game/machinery/dna_scanner.dm index 7c854d589fe..921631cea54 100644 --- a/code/game/machinery/dna_scanner.dm +++ b/code/game/machinery/dna_scanner.dm @@ -169,7 +169,7 @@ var/max_mutations = 6 var/read_only = FALSE //Well,it's still a floppy disk -/obj/item/disk/data/Initialize() +/obj/item/disk/data/Initialize(mapload) . = ..() icon_state = "datadisk[rand(0,6)]" add_overlay("datadisk_gene") diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index 1a3da312696..1e0cdf6796f 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -144,7 +144,7 @@ network_id = NETWORK_DOOR_AIRLOCKS -/obj/machinery/door/airlock/Initialize() +/obj/machinery/door/airlock/Initialize(mapload) . = ..() wires = set_wires() if(frequency) diff --git a/code/game/machinery/doors/airlock_types.dm b/code/game/machinery/doors/airlock_types.dm index fe704ead0dc..2ea3a555c56 100644 --- a/code/game/machinery/doors/airlock_types.dm +++ b/code/game/machinery/doors/airlock_types.dm @@ -459,7 +459,7 @@ var/friendly = FALSE var/stealthy = FALSE -/obj/machinery/door/airlock/cult/Initialize() +/obj/machinery/door/airlock/cult/Initialize(mapload) . = ..() new openingoverlaytype(loc) diff --git a/code/game/machinery/doors/alarmlock.dm b/code/game/machinery/doors/alarmlock.dm index 3fc9a30033c..c1d32ebdbdc 100644 --- a/code/game/machinery/doors/alarmlock.dm +++ b/code/game/machinery/doors/alarmlock.dm @@ -10,7 +10,7 @@ var/air_frequency = FREQ_ATMOS_ALARMS autoclose = FALSE -/obj/machinery/door/airlock/alarmlock/Initialize() +/obj/machinery/door/airlock/alarmlock/Initialize(mapload) . = ..() air_connection = new @@ -19,7 +19,7 @@ air_connection = null return ..() -/obj/machinery/door/airlock/alarmlock/Initialize() +/obj/machinery/door/airlock/alarmlock/Initialize(mapload) . = ..() SSradio.remove_object(src, air_frequency) air_connection = SSradio.add_object(src, air_frequency, RADIO_TO_AIRALARM) diff --git a/code/game/machinery/doors/brigdoors.dm b/code/game/machinery/doors/brigdoors.dm index 49d2fb5f9df..bf62e4c1436 100644 --- a/code/game/machinery/doors/brigdoors.dm +++ b/code/game/machinery/doors/brigdoors.dm @@ -44,13 +44,13 @@ maptext_width = 32 maptext_y = -1 -/obj/machinery/door_timer/Initialize() +/obj/machinery/door_timer/Initialize(mapload) . = ..() Radio = new/obj/item/radio(src) Radio.listening = 0 -/obj/machinery/door_timer/Initialize() +/obj/machinery/door_timer/Initialize(mapload) . = ..() if(id != null) for(var/obj/machinery/door/window/brigdoor/M in urange(20, src)) diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm index ded7262d8a9..3b86d4af7b5 100644 --- a/code/game/machinery/doors/door.dm +++ b/code/game/machinery/doors/door.dm @@ -60,7 +60,7 @@ return TRUE return ..() -/obj/machinery/door/Initialize() +/obj/machinery/door/Initialize(mapload) . = ..() set_init_door_layer() update_freelook_sight() diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm index f57b458115c..ce69693fd20 100644 --- a/code/game/machinery/doors/firedoor.dm +++ b/code/game/machinery/doors/firedoor.dm @@ -26,7 +26,7 @@ var/list/affecting_areas var/being_held_open = FALSE -/obj/machinery/door/firedoor/Initialize() +/obj/machinery/door/firedoor/Initialize(mapload) . = ..() CalculateAffectingAreas() @@ -263,7 +263,7 @@ opacity = TRUE density = TRUE -/obj/machinery/door/firedoor/border_only/Initialize() +/obj/machinery/door/firedoor/border_only/Initialize(mapload) . = ..() var/static/list/loc_connections = list( diff --git a/code/game/machinery/doppler_array.dm b/code/game/machinery/doppler_array.dm index fa251dad4b0..41563a10d30 100644 --- a/code/game/machinery/doppler_array.dm +++ b/code/game/machinery/doppler_array.dm @@ -18,7 +18,7 @@ /// List of all explosion records in the form of /datum/data/tachyon_record var/list/records = list() -/obj/machinery/doppler_array/Initialize() +/obj/machinery/doppler_array/Initialize(mapload) . = ..() RegisterSignal(SSdcs, COMSIG_GLOB_EXPLOSION, .proc/sense_explosion) RegisterSignal(src, COMSIG_MOVABLE_SET_ANCHORED, .proc/power_change) @@ -194,7 +194,7 @@ circuit = /obj/item/circuitboard/machine/doppler_array var/datum/techweb/linked_techweb -/obj/machinery/doppler_array/research/Initialize() +/obj/machinery/doppler_array/research/Initialize(mapload) ..() linked_techweb = SSresearch.science_tech return INITIALIZE_HINT_LATELOAD @@ -252,7 +252,7 @@ say("Data already captured. Aborting.") return -/obj/machinery/doppler_array/research/science/Initialize() +/obj/machinery/doppler_array/research/science/Initialize(mapload) . = ..() linked_techweb = SSresearch.science_tech diff --git a/code/game/machinery/droneDispenser.dm b/code/game/machinery/droneDispenser.dm index f809bfdf33c..2a4b2be8d5b 100644 --- a/code/game/machinery/droneDispenser.dm +++ b/code/game/machinery/droneDispenser.dm @@ -48,7 +48,7 @@ var/break_message = "lets out a tinny alarm before falling dark." var/break_sound = 'sound/machines/warning-buzzer.ogg' -/obj/machinery/drone_dispenser/Initialize() +/obj/machinery/drone_dispenser/Initialize(mapload) . = ..() var/datum/component/material_container/materials = AddComponent(/datum/component/material_container, list(/datum/material/iron, /datum/material/glass), MINERAL_MATERIAL_AMOUNT * MAX_STACK_SIZE * 2, MATCONTAINER_EXAMINE|BREAKDOWN_FLAGS_DRONE_DISPENSER, allowed_items=/obj/item/stack) materials.insert_amount_mat(starting_amount) diff --git a/code/game/machinery/ecto_sniffer.dm b/code/game/machinery/ecto_sniffer.dm index 8b843692a79..5ea924c496c 100644 --- a/code/game/machinery/ecto_sniffer.dm +++ b/code/game/machinery/ecto_sniffer.dm @@ -14,7 +14,7 @@ ///List of ckeys containing players who have recently activated the device, players on this list are prohibited from activating the device untill their residue decays. var/list/ectoplasmic_residues = list() -/obj/machinery/ecto_sniffer/Initialize() +/obj/machinery/ecto_sniffer/Initialize(mapload) . = ..() wires = new/datum/wires/ecto_sniffer(src) diff --git a/code/game/machinery/electrolyzer.dm b/code/game/machinery/electrolyzer.dm index 91bf95672ad..bb10b380fa6 100644 --- a/code/game/machinery/electrolyzer.dm +++ b/code/game/machinery/electrolyzer.dm @@ -28,7 +28,7 @@ /obj/machinery/electrolyzer/get_cell() return cell -/obj/machinery/electrolyzer/Initialize() +/obj/machinery/electrolyzer/Initialize(mapload) . = ..() if(ispath(cell)) cell = new cell(src) diff --git a/code/game/machinery/embedded_controller/access_controller.dm b/code/game/machinery/embedded_controller/access_controller.dm index 97b4e737f9b..cc40b370ca5 100644 --- a/code/game/machinery/embedded_controller/access_controller.dm +++ b/code/game/machinery/embedded_controller/access_controller.dm @@ -18,7 +18,7 @@ /obj/machinery/door_buttons/proc/findObjsByTag() return -/obj/machinery/door_buttons/Initialize() +/obj/machinery/door_buttons/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/game/machinery/embedded_controller/embedded_controller_base.dm b/code/game/machinery/embedded_controller/embedded_controller_base.dm index 6da86086275..5de0920f902 100644 --- a/code/game/machinery/embedded_controller/embedded_controller_base.dm +++ b/code/game/machinery/embedded_controller/embedded_controller_base.dm @@ -77,7 +77,7 @@ SSradio.remove_object(src,frequency) return ..() -/obj/machinery/embedded_controller/radio/Initialize() +/obj/machinery/embedded_controller/radio/Initialize(mapload) . = ..() set_frequency(frequency) diff --git a/code/game/machinery/fat_sucker.dm b/code/game/machinery/fat_sucker.dm index 6cb7c0a99db..9bbeb928e71 100644 --- a/code/game/machinery/fat_sucker.dm +++ b/code/game/machinery/fat_sucker.dm @@ -27,7 +27,7 @@ "Unsaturated fat, that is monounsaturated fats, polyunsaturated fats and omega-3 fatty acids, is found in plant foods and fish." \ ) -/obj/machinery/fat_sucker/Initialize() +/obj/machinery/fat_sucker/Initialize(mapload) . = ..() soundloop = new(src, FALSE) update_appearance() diff --git a/code/game/machinery/flasher.dm b/code/game/machinery/flasher.dm index ff88da112a0..16d0274e64d 100644 --- a/code/game/machinery/flasher.dm +++ b/code/game/machinery/flasher.dm @@ -176,7 +176,7 @@ new /obj/item/stack/sheet/iron (loc, 2) qdel(src) -/obj/machinery/flasher/portable/Initialize() +/obj/machinery/flasher/portable/Initialize(mapload) . = ..() proximity_monitor = new(src, 0) diff --git a/code/game/machinery/gulag_teleporter.dm b/code/game/machinery/gulag_teleporter.dm index a6e952de255..803a9be817f 100644 --- a/code/game/machinery/gulag_teleporter.dm +++ b/code/game/machinery/gulag_teleporter.dm @@ -37,7 +37,7 @@ The console is located at computer/gulag_teleporter.dm /obj/item/clothing/mask/breath, /obj/item/clothing/mask/gas)) -/obj/machinery/gulag_teleporter/Initialize() +/obj/machinery/gulag_teleporter/Initialize(mapload) . = ..() locate_reclaimer() diff --git a/code/game/machinery/harvester.dm b/code/game/machinery/harvester.dm index 3f0e44a88b1..3e4bd98dd6d 100644 --- a/code/game/machinery/harvester.dm +++ b/code/game/machinery/harvester.dm @@ -17,7 +17,7 @@ var/allow_clothing = FALSE var/allow_living = FALSE -/obj/machinery/harvester/Initialize() +/obj/machinery/harvester/Initialize(mapload) . = ..() if(prob(1)) name = "auto-autopsy" diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm index 764f219bedf..228dd562088 100644 --- a/code/game/machinery/hologram.dm +++ b/code/game/machinery/hologram.dm @@ -79,7 +79,7 @@ Possible to do for anyone motivated enough: /// If we are currently calling another holopad var/calling = FALSE -/obj/machinery/holopad/Initialize() +/obj/machinery/holopad/Initialize(mapload) . = ..() become_hearing_sensitive() @@ -88,7 +88,7 @@ Possible to do for anyone motivated enough: desc = "It's a floor-mounted device for projecting holographic images. This one will refuse to auto-connect incoming calls." secure = TRUE -/obj/machinery/holopad/secure/Initialize() +/obj/machinery/holopad/secure/Initialize(mapload) . = ..() var/obj/item/circuitboard/machine/holopad/board = circuit board.secure = TRUE @@ -147,7 +147,7 @@ Possible to do for anyone motivated enough: if(!replay_mode && (disk?.record)) replay_start() -/obj/machinery/holopad/Initialize() +/obj/machinery/holopad/Initialize(mapload) . = ..() if(on_network) holopads += src diff --git a/code/game/machinery/hypnochair.dm b/code/game/machinery/hypnochair.dm index b9473d8ea79..93faf6f0620 100644 --- a/code/game/machinery/hypnochair.dm +++ b/code/game/machinery/hypnochair.dm @@ -15,7 +15,7 @@ var/timerid = 0 ///Timer ID for interrogations var/message_cooldown = 0 ///Cooldown for breakout message -/obj/machinery/hypnochair/Initialize() +/obj/machinery/hypnochair/Initialize(mapload) . = ..() open_machine() update_appearance() diff --git a/code/game/machinery/igniter.dm b/code/game/machinery/igniter.dm index 7d343f6a34e..eba35b006b9 100644 --- a/code/game/machinery/igniter.dm +++ b/code/game/machinery/igniter.dm @@ -44,7 +44,7 @@ location.hotspot_expose(1000,500,1) return 1 -/obj/machinery/igniter/Initialize() +/obj/machinery/igniter/Initialize(mapload) . = ..() icon_state = "igniter[on]" @@ -88,7 +88,7 @@ /obj/machinery/sparker/ordmix id = INCINERATOR_ORDMIX_IGNITER -/obj/machinery/sparker/Initialize() +/obj/machinery/sparker/Initialize(mapload) . = ..() spark_system = new /datum/effect_system/spark_spread spark_system.set_up(2, 1, src) diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm index 6b918f7001c..fc426ac766e 100644 --- a/code/game/machinery/iv_drip.dm +++ b/code/game/machinery/iv_drip.dm @@ -297,7 +297,7 @@ density = TRUE use_internal_storage = TRUE -/obj/machinery/iv_drip/plumbing/Initialize() +/obj/machinery/iv_drip/plumbing/Initialize(mapload) . = ..() AddComponent(/datum/component/simple_rotation, ROTATION_ALTCLICK | ROTATION_CLOCKWISE | ROTATION_COUNTERCLOCKWISE | ROTATION_VERBS, null, CALLBACK(src, .proc/can_be_rotated)) diff --git a/code/game/machinery/launch_pad.dm b/code/game/machinery/launch_pad.dm index f393a8a1246..b53ffbb40b7 100644 --- a/code/game/machinery/launch_pad.dm +++ b/code/game/machinery/launch_pad.dm @@ -26,7 +26,7 @@ range = initial(range) range *= E -/obj/machinery/launchpad/Initialize() +/obj/machinery/launchpad/Initialize(mapload) . = ..() prepare_huds() for(var/datum/atom_hud/data/diagnostic/diag_hud in GLOB.huds) @@ -265,7 +265,7 @@ /obj/item/storage/briefcase/launchpad var/obj/machinery/launchpad/briefcase/pad -/obj/item/storage/briefcase/launchpad/Initialize() +/obj/item/storage/briefcase/launchpad/Initialize(mapload) pad = new(null, src) //spawns pad in nullspace to hide it from briefcase contents . = ..() diff --git a/code/game/machinery/lightswitch.dm b/code/game/machinery/lightswitch.dm index 5cbf786c9c4..228f97e980c 100644 --- a/code/game/machinery/lightswitch.dm +++ b/code/game/machinery/lightswitch.dm @@ -26,7 +26,7 @@ dir = EAST pixel_x = -26 -/obj/machinery/light_switch/Initialize() +/obj/machinery/light_switch/Initialize(mapload) . = ..() if(istext(area)) area = text2path(area) diff --git a/code/game/machinery/limbgrower.dm b/code/game/machinery/limbgrower.dm index cb8a560dc9b..61b143844ed 100644 --- a/code/game/machinery/limbgrower.dm +++ b/code/game/machinery/limbgrower.dm @@ -26,7 +26,7 @@ /// All the categories of organs we can print. var/list/categories = list(SPECIES_HUMAN, SPECIES_LIZARD, SPECIES_MOTH, SPECIES_PLASMAMAN, SPECIES_ETHEREAL, "other") -/obj/machinery/limbgrower/Initialize() +/obj/machinery/limbgrower/Initialize(mapload) create_reagents(100, OPENCONTAINER) stored_research = new /datum/techweb/specialized/autounlocking/limbgrower . = ..() diff --git a/code/game/machinery/mechlaunchpad.dm b/code/game/machinery/mechlaunchpad.dm index 1a6a456a779..80bcc50c4c6 100644 --- a/code/game/machinery/mechlaunchpad.dm +++ b/code/game/machinery/mechlaunchpad.dm @@ -13,7 +13,7 @@ ///List of consoles that can access the pad var/list/obj/machinery/computer/mechpad/consoles -/obj/machinery/mechpad/Initialize() +/obj/machinery/mechpad/Initialize(mapload) . = ..() display_name = "Orbital Pad - [get_area_name(src)]" GLOB.mechpad_list += src diff --git a/code/game/machinery/medical_kiosk.dm b/code/game/machinery/medical_kiosk.dm index 3aedda59ca2..d1b57a4d1e3 100644 --- a/code/game/machinery/medical_kiosk.dm +++ b/code/game/machinery/medical_kiosk.dm @@ -45,7 +45,7 @@ /// Used to find the money. var/obj/item/card/id/C //the account of the person using the console. -/obj/machinery/medical_kiosk/Initialize() //loaded subtype for mapping use +/obj/machinery/medical_kiosk/Initialize(mapload) //loaded subtype for mapping use . = ..() AddComponent(/datum/component/payment, active_price, SSeconomy.get_dep_account(ACCOUNT_MED), PAYMENT_FRIENDLY) scanner_wand = new/obj/item/scanner_wand(src) diff --git a/code/game/machinery/medipen_refiller.dm b/code/game/machinery/medipen_refiller.dm index 5204803a6e4..c1fc9f1ebf9 100644 --- a/code/game/machinery/medipen_refiller.dm +++ b/code/game/machinery/medipen_refiller.dm @@ -16,7 +16,7 @@ /// var to prevent glitches in the animation var/busy = FALSE -/obj/machinery/medipen_refiller/Initialize() +/obj/machinery/medipen_refiller/Initialize(mapload) . = ..() create_reagents(100, TRANSPARENT) for(var/obj/item/stock_parts/matter_bin/B in component_parts) diff --git a/code/game/machinery/navbeacon.dm b/code/game/machinery/navbeacon.dm index ec8fd2f51fa..172b7157951 100644 --- a/code/game/machinery/navbeacon.dm +++ b/code/game/machinery/navbeacon.dm @@ -22,7 +22,7 @@ req_one_access = list(ACCESS_ENGINE, ACCESS_ROBOTICS) -/obj/machinery/navbeacon/Initialize() +/obj/machinery/navbeacon/Initialize(mapload) . = ..() if(wayfinding) diff --git a/code/game/machinery/porta_turret/portable_turret.dm b/code/game/machinery/porta_turret/portable_turret.dm index 0adbaabe3da..28b94c675c3 100644 --- a/code/game/machinery/porta_turret/portable_turret.dm +++ b/code/game/machinery/porta_turret/portable_turret.dm @@ -106,7 +106,7 @@ DEFINE_BITFIELD(turret_flags, list( /// Mob that is remotely controlling the turret var/mob/remote_controller -/obj/machinery/porta_turret/Initialize() +/obj/machinery/porta_turret/Initialize(mapload) . = ..() if(!base) base = src @@ -812,7 +812,7 @@ DEFINE_BITFIELD(turret_flags, list( /obj/machinery/porta_turret/aux_base/interact(mob/user) //Controlled solely from the base console. return -/obj/machinery/porta_turret/aux_base/Initialize() +/obj/machinery/porta_turret/aux_base/Initialize(mapload) . = ..() cover.name = name cover.desc = desc diff --git a/code/game/machinery/quantum_pad.dm b/code/game/machinery/quantum_pad.dm index e943e061bdb..03132bf4208 100644 --- a/code/game/machinery/quantum_pad.dm +++ b/code/game/machinery/quantum_pad.dm @@ -20,7 +20,7 @@ var/map_pad_id = "" as text //what's my name var/map_pad_link_id = "" as text //who's my friend -/obj/machinery/quantumpad/Initialize() +/obj/machinery/quantumpad/Initialize(mapload) . = ..() if(map_pad_id) mapped_quantum_pads[map_pad_id] = src diff --git a/code/game/machinery/rechargestation.dm b/code/game/machinery/rechargestation.dm index b9256914df3..8892d0486e4 100644 --- a/code/game/machinery/rechargestation.dm +++ b/code/game/machinery/rechargestation.dm @@ -16,7 +16,7 @@ var/repairs -/obj/machinery/recharge_station/Initialize() +/obj/machinery/recharge_station/Initialize(mapload) . = ..() update_appearance() if(is_operational) diff --git a/code/game/machinery/recycler.dm b/code/game/machinery/recycler.dm index bf68865745e..196464bccdf 100644 --- a/code/game/machinery/recycler.dm +++ b/code/game/machinery/recycler.dm @@ -17,7 +17,7 @@ var/eat_victim_items = TRUE var/item_recycle_sound = 'sound/items/welder.ogg' -/obj/machinery/recycler/Initialize() +/obj/machinery/recycler/Initialize(mapload) var/list/allowed_materials = list( /datum/material/iron, /datum/material/glass, diff --git a/code/game/machinery/requests_console.dm b/code/game/machinery/requests_console.dm index de38191de4d..f1f318c0ac1 100644 --- a/code/game/machinery/requests_console.dm +++ b/code/game/machinery/requests_console.dm @@ -113,7 +113,7 @@ GLOBAL_LIST_EMPTY(req_console_ckey_departments) icon_state = "[base_icon_state]0" return ..() -/obj/machinery/requests_console/Initialize() +/obj/machinery/requests_console/Initialize(mapload) . = ..() name = "\improper [department] requests console" GLOB.allConsoles += src diff --git a/code/game/machinery/roulette_machine.dm b/code/game/machinery/roulette_machine.dm index 345a4efd73d..9c4b74bd7af 100644 --- a/code/game/machinery/roulette_machine.dm +++ b/code/game/machinery/roulette_machine.dm @@ -49,7 +49,7 @@ var/on = TRUE var/last_spin = 13 -/obj/machinery/roulette/Initialize() +/obj/machinery/roulette/Initialize(mapload) . = ..() jackpot_loop = new(src, FALSE) wires = new /datum/wires/roulette(src) diff --git a/code/game/machinery/scan_gate.dm b/code/game/machinery/scan_gate.dm index d5d0fb01b96..0e23bb05399 100644 --- a/code/game/machinery/scan_gate.dm +++ b/code/game/machinery/scan_gate.dm @@ -49,7 +49,7 @@ var/ignore_signals = FALSE -/obj/machinery/scanner_gate/Initialize() +/obj/machinery/scanner_gate/Initialize(mapload) . = ..() wires = new /datum/wires/scanner_gate(src) set_scanline("passive") diff --git a/code/game/machinery/sheetifier.dm b/code/game/machinery/sheetifier.dm index 6d02ca2d428..3057643983d 100644 --- a/code/game/machinery/sheetifier.dm +++ b/code/game/machinery/sheetifier.dm @@ -11,7 +11,7 @@ layer = BELOW_OBJ_LAYER var/busy_processing = FALSE -/obj/machinery/sheetifier/Initialize() +/obj/machinery/sheetifier/Initialize(mapload) . = ..() AddComponent(/datum/component/material_container, list(/datum/material/meat, /datum/material/hauntium), MINERAL_MATERIAL_AMOUNT * MAX_STACK_SIZE * 2, MATCONTAINER_EXAMINE|BREAKDOWN_FLAGS_SHEETIFIER, typesof(/datum/material/meat) + /datum/material/hauntium, list(/obj/item/food/meat, /obj/item/photo), null, CALLBACK(src, .proc/CanInsertMaterials), CALLBACK(src, .proc/AfterInsertMaterials)) diff --git a/code/game/machinery/shieldgen.dm b/code/game/machinery/shieldgen.dm index f9d8015e273..eab8415372a 100644 --- a/code/game/machinery/shieldgen.dm +++ b/code/game/machinery/shieldgen.dm @@ -11,7 +11,7 @@ max_integrity = 200 //The shield can only take so much beating (prevents perma-prisons) CanAtmosPass = ATMOS_PASS_DENSITY -/obj/structure/emergency_shield/Initialize() +/obj/structure/emergency_shield/Initialize(mapload) . = ..() setDir(pick(GLOB.cardinals)) air_update_turf(TRUE, TRUE) @@ -283,7 +283,7 @@ /obj/machinery/power/shieldwallgen/unlocked/anchored anchored = TRUE -/obj/machinery/power/shieldwallgen/Initialize() +/obj/machinery/power/shieldwallgen/Initialize(mapload) . = ..() if(anchored) connect_to_network() diff --git a/code/game/machinery/slotmachine.dm b/code/game/machinery/slotmachine.dm index 352af6ebe3a..0988131a2f2 100644 --- a/code/game/machinery/slotmachine.dm +++ b/code/game/machinery/slotmachine.dm @@ -38,7 +38,7 @@ var/list/symbols = list(SEVEN = 1, "&" = 2, "@" = 2, "$" = 2, "?" = 2, "#" = 2, "!" = 2, "%" = 2) //if people are winning too much, multiply every number in this list by 2 and see if they are still winning too much. -/obj/machinery/computer/slot_machine/Initialize() +/obj/machinery/computer/slot_machine/Initialize(mapload) . = ..() jackpots = rand(1, 4) //false hope plays = rand(75, 200) diff --git a/code/game/machinery/spaceheater.dm b/code/game/machinery/spaceheater.dm index c417ecce184..ee1f1964b8c 100644 --- a/code/game/machinery/spaceheater.dm +++ b/code/game/machinery/spaceheater.dm @@ -43,7 +43,7 @@ /obj/machinery/space_heater/get_cell() return cell -/obj/machinery/space_heater/Initialize() +/obj/machinery/space_heater/Initialize(mapload) . = ..() if(ispath(cell)) cell = new cell(src) @@ -255,7 +255,7 @@ /obj/machinery/space_heater/constructed cell = null -/obj/machinery/space_heater/constructed/Initialize() +/obj/machinery/space_heater/constructed/Initialize(mapload) . = ..() panel_open = TRUE update_appearance() diff --git a/code/game/machinery/status_display.dm b/code/game/machinery/status_display.dm index 9c3e60ff139..4fd25adfbc7 100644 --- a/code/game/machinery/status_display.dm +++ b/code/game/machinery/status_display.dm @@ -175,7 +175,7 @@ dir = EAST pixel_x = -32 -/obj/machinery/status_display/evac/Initialize() +/obj/machinery/status_display/evac/Initialize(mapload) . = ..() // register for radio system SSradio.add_object(src, frequency) @@ -356,7 +356,7 @@ dir = EAST pixel_x = -32 -/obj/machinery/status_display/ai/Initialize() +/obj/machinery/status_display/ai/Initialize(mapload) . = ..() GLOB.ai_status_displays.Add(src) diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm index 4d5fe5e11e3..5247cfcb53d 100644 --- a/code/game/machinery/suit_storage_unit.dm +++ b/code/game/machinery/suit_storage_unit.dm @@ -51,7 +51,7 @@ /// How fast it charges cells in a suit var/charge_rate = 250 -/obj/machinery/suit_storage_unit/Initialize() +/obj/machinery/suit_storage_unit/Initialize(mapload) . = ..() interaction_flags_machine |= INTERACT_MACHINE_OFFLINE @@ -145,7 +145,7 @@ state_open = TRUE density = FALSE -/obj/machinery/suit_storage_unit/Initialize() +/obj/machinery/suit_storage_unit/Initialize(mapload) . = ..() wires = new /datum/wires/suit_storage_unit(src) if(suit_type) diff --git a/code/game/machinery/syndicatebomb.dm b/code/game/machinery/syndicatebomb.dm index 6bf812794a2..3fa2cfe9e2d 100644 --- a/code/game/machinery/syndicatebomb.dm +++ b/code/game/machinery/syndicatebomb.dm @@ -81,7 +81,7 @@ update_appearance() try_detonate(TRUE) -/obj/machinery/syndicatebomb/Initialize() +/obj/machinery/syndicatebomb/Initialize(mapload) . = ..() wires = new /datum/wires/syndicatebomb(src) if(payload) @@ -246,7 +246,7 @@ open_panel = TRUE timer_set = 120 -/obj/machinery/syndicatebomb/empty/Initialize() +/obj/machinery/syndicatebomb/empty/Initialize(mapload) . = ..() wires.cut_all() diff --git a/code/game/machinery/teambuilder.dm b/code/game/machinery/teambuilder.dm index e409cd7d800..7a5e80a1eaf 100644 --- a/code/game/machinery/teambuilder.dm +++ b/code/game/machinery/teambuilder.dm @@ -14,7 +14,7 @@ ///What radio station is your radio set to when crossed (And human)? var/team_radio = FREQ_COMMON -/obj/machinery/teambuilder/Initialize() +/obj/machinery/teambuilder/Initialize(mapload) . = ..() add_filter("teambuilder", 2, list("type" = "outline", "color" = team_color, "size" = 2)) var/static/list/loc_connections = list( diff --git a/code/game/machinery/telecomms/computers/message.dm b/code/game/machinery/telecomms/computers/message.dm index f508c42793b..c8e6889bfea 100644 --- a/code/game/machinery/telecomms/computers/message.dm +++ b/code/game/machinery/telecomms/computers/message.dm @@ -64,7 +64,7 @@ else to_chat(user, span_notice("A no server error appears on the screen.")) -/obj/machinery/computer/message_monitor/Initialize() +/obj/machinery/computer/message_monitor/Initialize(mapload) ..() GLOB.telecomms_list += src return INITIALIZE_HINT_LATELOAD diff --git a/code/game/machinery/telecomms/machines/allinone.dm b/code/game/machinery/telecomms/machines/allinone.dm index 8c69183fd28..95eb877aea4 100644 --- a/code/game/machinery/telecomms/machines/allinone.dm +++ b/code/game/machinery/telecomms/machines/allinone.dm @@ -16,7 +16,7 @@ resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF flags_1 = NODECONSTRUCT_1 -/obj/machinery/telecomms/allinone/Initialize() +/obj/machinery/telecomms/allinone/Initialize(mapload) . = ..() if (intercept) freq_listening = list(FREQ_SYNDICATE) diff --git a/code/game/machinery/telecomms/machines/bus.dm b/code/game/machinery/telecomms/machines/bus.dm index 9b73692b626..761392af4ca 100644 --- a/code/game/machinery/telecomms/machines/bus.dm +++ b/code/game/machinery/telecomms/machines/bus.dm @@ -71,7 +71,7 @@ freq_listening = list(FREQ_ENGINEERING) autolinkers = list("processor4", "engineering", "common", "messaging") -/obj/machinery/telecomms/bus/preset_four/Initialize() +/obj/machinery/telecomms/bus/preset_four/Initialize(mapload) . = ..() for(var/i = MIN_FREQ, i <= MAX_FREQ, i += 2) freq_listening |= i diff --git a/code/game/machinery/telecomms/machines/message_server.dm b/code/game/machinery/telecomms/machines/message_server.dm index 6f685b1c6ef..e4d424f5caf 100644 --- a/code/game/machinery/telecomms/machines/message_server.dm +++ b/code/game/machinery/telecomms/machines/message_server.dm @@ -17,7 +17,7 @@ armor = list(MELEE = 25, BULLET = 10, LASER = 10, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 50, ACID = 70) var/obj/item/stored -/obj/machinery/blackbox_recorder/Initialize() +/obj/machinery/blackbox_recorder/Initialize(mapload) . = ..() stored = new /obj/item/blackbox(src) diff --git a/code/game/machinery/telecomms/machines/receiver.dm b/code/game/machinery/telecomms/machines/receiver.dm index 0d2fe60e8e1..66ce5e62117 100644 --- a/code/game/machinery/telecomms/machines/receiver.dm +++ b/code/game/machinery/telecomms/machines/receiver.dm @@ -58,7 +58,7 @@ freq_listening = list(FREQ_COMMAND, FREQ_ENGINEERING, FREQ_SECURITY) //Common and other radio frequencies for people to freely use -/obj/machinery/telecomms/receiver/preset_right/Initialize() +/obj/machinery/telecomms/receiver/preset_right/Initialize(mapload) . = ..() for(var/i = MIN_FREQ, i <= MAX_FREQ, i += 2) freq_listening |= i diff --git a/code/game/machinery/telecomms/machines/server.dm b/code/game/machinery/telecomms/machines/server.dm index 6cb8f719e21..7fe38294c58 100644 --- a/code/game/machinery/telecomms/machines/server.dm +++ b/code/game/machinery/telecomms/machines/server.dm @@ -65,7 +65,7 @@ /obj/machinery/telecomms/server/presets network = "tcommsat" -/obj/machinery/telecomms/server/presets/Initialize() +/obj/machinery/telecomms/server/presets/Initialize(mapload) . = ..() name = id @@ -96,7 +96,7 @@ autolinkers = list("common") //Common and other radio frequencies for people to freely use -/obj/machinery/telecomms/server/presets/common/Initialize() +/obj/machinery/telecomms/server/presets/common/Initialize(mapload) . = ..() for(var/i = MIN_FREQ, i <= MAX_FREQ, i += 2) freq_listening |= i @@ -116,6 +116,6 @@ freq_listening = list(FREQ_SECURITY) autolinkers = list("security") -/obj/machinery/telecomms/server/presets/common/birdstation/Initialize() +/obj/machinery/telecomms/server/presets/common/birdstation/Initialize(mapload) . = ..() freq_listening = list() diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm index 5c839b96872..bc29ece7ffd 100644 --- a/code/game/machinery/teleporter.dm +++ b/code/game/machinery/teleporter.dm @@ -16,7 +16,7 @@ var/obj/machinery/teleport/station/power_station var/calibrated = FALSE//Calibration prevents mutation -/obj/machinery/teleport/hub/Initialize() +/obj/machinery/teleport/hub/Initialize(mapload) . = ..() link_power_station() @@ -101,7 +101,7 @@ /obj/machinery/teleport/hub/proc/is_ready() . = !panel_open && !(machine_stat & (BROKEN|NOPOWER)) && power_station && power_station.engaged && !(power_station.machine_stat & (BROKEN|NOPOWER)) -/obj/machinery/teleport/hub/syndicate/Initialize() +/obj/machinery/teleport/hub/syndicate/Initialize(mapload) . = ..() var/obj/item/stock_parts/matter_bin/super/super_bin = new(src) LAZYADD(component_parts, super_bin) @@ -122,7 +122,7 @@ var/list/linked_stations = list() var/efficiency = 0 -/obj/machinery/teleport/station/Initialize() +/obj/machinery/teleport/station/Initialize(mapload) . = ..() link_console_and_hub() diff --git a/code/game/machinery/transformer.dm b/code/game/machinery/transformer.dm index 05e6844f6a6..b4359c5d8d5 100644 --- a/code/game/machinery/transformer.dm +++ b/code/game/machinery/transformer.dm @@ -16,7 +16,7 @@ var/obj/effect/countdown/transformer/countdown var/mob/living/silicon/ai/masterAI -/obj/machinery/transformer/Initialize() +/obj/machinery/transformer/Initialize(mapload) // On us . = ..() new /obj/machinery/conveyor/auto(locate(x - 1, y, z), WEST) diff --git a/code/game/objects/effects/bump_teleporter.dm b/code/game/objects/effects/bump_teleporter.dm index 0d2905c397c..d8e35280730 100644 --- a/code/game/objects/effects/bump_teleporter.dm +++ b/code/game/objects/effects/bump_teleporter.dm @@ -11,7 +11,7 @@ var/static/list/AllTeleporters -/obj/effect/bump_teleporter/Initialize() +/obj/effect/bump_teleporter/Initialize(mapload) . = ..() LAZYADD(AllTeleporters, src) diff --git a/code/game/objects/effects/contraband.dm b/code/game/objects/effects/contraband.dm index 94b3fef0efb..1d2bc03f376 100644 --- a/code/game/objects/effects/contraband.dm +++ b/code/game/objects/effects/contraband.dm @@ -69,7 +69,7 @@ var/poster_item_icon_state = "rolled_poster" var/poster_item_type = /obj/item/poster -/obj/structure/sign/poster/Initialize() +/obj/structure/sign/poster/Initialize(mapload) . = ..() if(random_basetype) randomise(random_basetype) diff --git a/code/game/objects/effects/countdown.dm b/code/game/objects/effects/countdown.dm index 75775502eaf..e5be8ffc0c0 100644 --- a/code/game/objects/effects/countdown.dm +++ b/code/game/objects/effects/countdown.dm @@ -14,7 +14,7 @@ var/displayed_text var/atom/attached_to -/obj/effect/countdown/Initialize() +/obj/effect/countdown/Initialize(mapload) . = ..() attach(loc) diff --git a/code/game/objects/effects/decals/cleanable/aliens.dm b/code/game/objects/effects/decals/cleanable/aliens.dm index 8b0c82cce75..6b960cefb8b 100644 --- a/code/game/objects/effects/decals/cleanable/aliens.dm +++ b/code/game/objects/effects/decals/cleanable/aliens.dm @@ -11,7 +11,7 @@ beauty = -250 clean_type = CLEAN_TYPE_BLOOD -/obj/effect/decal/cleanable/xenoblood/Initialize() +/obj/effect/decal/cleanable/xenoblood/Initialize(mapload) . = ..() add_blood_DNA(list("UNKNOWN DNA" = "X*")) @@ -27,7 +27,7 @@ random_icon_states = list("xgib1", "xgib2", "xgib3", "xgib4", "xgib5", "xgib6") mergeable_decal = FALSE -/obj/effect/decal/cleanable/xenoblood/xgibs/Initialize() +/obj/effect/decal/cleanable/xenoblood/xgibs/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_MOVABLE_PIPE_EJECTING, .proc/on_pipe_eject) @@ -92,6 +92,6 @@ icon_state = "xtracks" random_icon_states = null -/obj/effect/decal/cleanable/blood/xtracks/Initialize() +/obj/effect/decal/cleanable/blood/xtracks/Initialize(mapload) . = ..() add_blood_DNA(list("Unknown DNA" = "X*")) diff --git a/code/game/objects/effects/decals/cleanable/misc.dm b/code/game/objects/effects/decals/cleanable/misc.dm index 1d93e9397c1..e148462b5ba 100644 --- a/code/game/objects/effects/decals/cleanable/misc.dm +++ b/code/game/objects/effects/decals/cleanable/misc.dm @@ -13,7 +13,7 @@ mergeable_decal = FALSE beauty = -50 -/obj/effect/decal/cleanable/ash/Initialize() +/obj/effect/decal/cleanable/ash/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/ash, 30) pixel_x = base_pixel_x + rand(-5, 5) @@ -28,7 +28,7 @@ icon_state = "big_ash" beauty = -100 -/obj/effect/decal/cleanable/ash/large/Initialize() +/obj/effect/decal/cleanable/ash/large/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/ash, 30) //double the amount of ash. @@ -39,7 +39,7 @@ icon_state = "tiny" beauty = -100 -/obj/effect/decal/cleanable/glass/Initialize() +/obj/effect/decal/cleanable/glass/Initialize(mapload) . = ..() setDir(pick(GLOB.cardinals)) @@ -61,7 +61,7 @@ mouse_opacity = MOUSE_OPACITY_TRANSPARENT beauty = -75 -/obj/effect/decal/cleanable/dirt/Initialize() +/obj/effect/decal/cleanable/dirt/Initialize(mapload) . = ..() var/turf/T = get_turf(src) if(T.tiled_dirt) @@ -91,7 +91,7 @@ /obj/effect/decal/cleanable/greenglow/ex_act() return FALSE -/obj/effect/decal/cleanable/greenglow/filled/Initialize() +/obj/effect/decal/cleanable/greenglow/filled/Initialize(mapload) . = ..() reagents.add_reagent(pick(/datum/reagent/uranium, /datum/reagent/uranium/radium), 5) @@ -254,7 +254,7 @@ beauty = -150 clean_type = CLEAN_TYPE_HARD_DECAL -/obj/effect/decal/cleanable/garbage/Initialize() +/obj/effect/decal/cleanable/garbage/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_SLUDGE, CELL_VIRUS_TABLE_GENERIC, rand(2,4), 15) diff --git a/code/game/objects/effects/decals/cleanable/robots.dm b/code/game/objects/effects/decals/cleanable/robots.dm index 0bfabe79663..9ad93af8741 100644 --- a/code/game/objects/effects/decals/cleanable/robots.dm +++ b/code/game/objects/effects/decals/cleanable/robots.dm @@ -13,7 +13,7 @@ beauty = -50 clean_type = CLEAN_TYPE_BLOOD -/obj/effect/decal/cleanable/robot_debris/Initialize() +/obj/effect/decal/cleanable/robot_debris/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_MOVABLE_PIPE_EJECTING, .proc/on_pipe_eject) @@ -70,7 +70,7 @@ beauty = -100 clean_type = CLEAN_TYPE_BLOOD -/obj/effect/decal/cleanable/oil/Initialize() +/obj/effect/decal/cleanable/oil/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/fuel/oil, 30) diff --git a/code/game/objects/effects/decals/decal.dm b/code/game/objects/effects/decals/decal.dm index 5cf07145fce..309fc091388 100644 --- a/code/game/objects/effects/decals/decal.dm +++ b/code/game/objects/effects/decals/decal.dm @@ -5,7 +5,7 @@ resistance_flags = FIRE_PROOF | UNACIDABLE | ACID_PROOF var/turf_loc_check = TRUE -/obj/effect/decal/Initialize() +/obj/effect/decal/Initialize(mapload) . = ..() if(turf_loc_check && (!isturf(loc) || NeverShouldHaveComeHere(loc))) return INITIALIZE_HINT_QDEL @@ -36,7 +36,7 @@ icon_state = "warningline" layer = TURF_DECAL_LAYER -/obj/effect/turf_decal/Initialize() +/obj/effect/turf_decal/Initialize(mapload) ..() return INITIALIZE_HINT_QDEL diff --git a/code/game/objects/effects/decals/turfdecal/tilecoloring.dm b/code/game/objects/effects/decals/turfdecal/tilecoloring.dm index 374088908df..57b6a1ef687 100644 --- a/code/game/objects/effects/decals/turfdecal/tilecoloring.dm +++ b/code/game/objects/effects/decals/turfdecal/tilecoloring.dm @@ -6,7 +6,7 @@ #define PRIDE_ALPHA 60 -/obj/effect/turf_decal/tile/Initialize() +/obj/effect/turf_decal/tile/Initialize(mapload) if(SSevents.holidays) if (SSevents.holidays[APRIL_FOOLS]) color = "#[random_short_color()]" @@ -203,7 +203,7 @@ icon_state = "tile_full" name = "colorful full" -/obj/effect/turf_decal/tile/random/Initialize() +/obj/effect/turf_decal/tile/random/Initialize(mapload) color = "#[random_short_color()]" . = ..() @@ -214,7 +214,7 @@ alpha = 110 icon_state = "trimline_box" -/obj/effect/turf_decal/trimline/Initialize() +/obj/effect/turf_decal/trimline/Initialize(mapload) if(SSevents.holidays && SSevents.holidays[APRIL_FOOLS]) color = "#[random_short_color()]" . = ..() diff --git a/code/game/objects/effects/effect_system/effect_shield.dm b/code/game/objects/effects/effect_system/effect_shield.dm index 00f943aa138..9b1cc2c1bf2 100644 --- a/code/game/objects/effects/effect_system/effect_shield.dm +++ b/code/game/objects/effects/effect_system/effect_shield.dm @@ -7,7 +7,7 @@ anchored = TRUE var/old_heat_capacity -/obj/effect/shield/Initialize() +/obj/effect/shield/Initialize(mapload) . = ..() var/turf/location = get_turf(src) old_heat_capacity=location.heat_capacity diff --git a/code/game/objects/effects/effect_system/effect_system.dm b/code/game/objects/effects/effect_system/effect_system.dm index 1093f078966..3cc738e2295 100644 --- a/code/game/objects/effects/effect_system/effect_system.dm +++ b/code/game/objects/effects/effect_system/effect_system.dm @@ -12,7 +12,7 @@ would spawn and follow the beaker, even if it is carried or thrown. pass_flags = PASSTABLE | PASSGRILLE anchored = TRUE -/obj/effect/particle_effect/Initialize() +/obj/effect/particle_effect/Initialize(mapload) . = ..() GLOB.cameranet.updateVisibility(src) diff --git a/code/game/objects/effects/effect_system/effects_explosion.dm b/code/game/objects/effects/effect_system/effects_explosion.dm index 7fc164b7673..3089cf9a6f1 100644 --- a/code/game/objects/effects/effect_system/effects_explosion.dm +++ b/code/game/objects/effects/effect_system/effects_explosion.dm @@ -4,7 +4,7 @@ opacity = TRUE anchored = TRUE -/obj/effect/particle_effect/expl_particles/Initialize() +/obj/effect/particle_effect/expl_particles/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD @@ -33,7 +33,7 @@ pixel_x = -32 pixel_y = -32 -/obj/effect/explosion/Initialize() +/obj/effect/explosion/Initialize(mapload) . = ..() QDEL_IN(src, 10) diff --git a/code/game/objects/effects/effect_system/effects_foam.dm b/code/game/objects/effects/effect_system/effects_foam.dm index d9212dfc4f8..ed35d29bfdb 100644 --- a/code/game/objects/effects/effect_system/effects_foam.dm +++ b/code/game/objects/effects/effect_system/effects_foam.dm @@ -276,7 +276,7 @@ max_integrity = 20 CanAtmosPass = ATMOS_PASS_DENSITY -/obj/structure/foamedmetal/Initialize() +/obj/structure/foamedmetal/Initialize(mapload) . = ..() air_update_turf(TRUE, TRUE) @@ -318,7 +318,7 @@ max_integrity = 10 pass_flags_self = PASSGLASS -/obj/structure/foamedmetal/resin/Initialize() +/obj/structure/foamedmetal/resin/Initialize(mapload) . = ..() if(isopenturf(loc)) var/turf/open/O = loc diff --git a/code/game/objects/effects/effect_system/effects_smoke.dm b/code/game/objects/effects/effect_system/effects_smoke.dm index 726f9944c99..2524c0cee97 100644 --- a/code/game/objects/effects/effect_system/effects_smoke.dm +++ b/code/game/objects/effects/effect_system/effects_smoke.dm @@ -30,7 +30,7 @@ set_opacity(0) //if we were blocking view, we aren't now because we're fading out stoplag() -/obj/effect/particle_effect/smoke/Initialize() +/obj/effect/particle_effect/smoke/Initialize(mapload) . = ..() create_reagents(500) START_PROCESSING(SSobj, src) @@ -125,7 +125,7 @@ /obj/effect/particle_effect/smoke/bad lifetime = 8 -/obj/effect/particle_effect/smoke/bad/Initialize() +/obj/effect/particle_effect/smoke/bad/Initialize(mapload) . = ..() var/static/list/loc_connections = list( COMSIG_ATOM_ENTERED = .proc/on_entered, diff --git a/code/game/objects/effects/effect_system/effects_sparks.dm b/code/game/objects/effects/effect_system/effects_sparks.dm index 488060a351b..b64537d8b0a 100644 --- a/code/game/objects/effects/effect_system/effects_sparks.dm +++ b/code/game/objects/effects/effect_system/effects_sparks.dm @@ -25,7 +25,7 @@ light_power = 0.5 light_color = LIGHT_COLOR_FIRE -/obj/effect/particle_effect/sparks/Initialize() +/obj/effect/particle_effect/sparks/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/game/objects/effects/effect_system/effects_water.dm b/code/game/objects/effects/effect_system/effects_water.dm index decc6254834..de67595b738 100644 --- a/code/game/objects/effects/effect_system/effects_water.dm +++ b/code/game/objects/effects/effect_system/effects_water.dm @@ -8,7 +8,7 @@ mouse_opacity = MOUSE_OPACITY_TRANSPARENT -/obj/effect/particle_effect/water/Initialize() +/obj/effect/particle_effect/water/Initialize(mapload) . = ..() QDEL_IN(src, 70) @@ -46,7 +46,7 @@ icon_state = "extinguish" density = FALSE -/obj/effect/particle_effect/steam/Initialize() +/obj/effect/particle_effect/steam/Initialize(mapload) . = ..() QDEL_IN(src, 20) diff --git a/code/game/objects/effects/forcefields.dm b/code/game/objects/effects/forcefields.dm index 751afa52628..6a68315c4a7 100644 --- a/code/game/objects/effects/forcefields.dm +++ b/code/game/objects/effects/forcefields.dm @@ -8,7 +8,7 @@ CanAtmosPass = ATMOS_PASS_DENSITY var/timeleft = 300 //Set to 0 for permanent forcefields (ugh) -/obj/effect/forcefield/Initialize() +/obj/effect/forcefield/Initialize(mapload) . = ..() if(timeleft) QDEL_IN(src, timeleft) diff --git a/code/game/objects/effects/landmarks.dm b/code/game/objects/effects/landmarks.dm index 0c4a08c1597..1e7c7f311ba 100644 --- a/code/game/objects/effects/landmarks.dm +++ b/code/game/objects/effects/landmarks.dm @@ -15,7 +15,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark) -/obj/effect/landmark/Initialize() +/obj/effect/landmark/Initialize(mapload) . = ..() GLOB.landmarks_list += src @@ -37,7 +37,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark) if(delete_after_roundstart) qdel(src) -/obj/effect/landmark/start/Initialize() +/obj/effect/landmark/start/Initialize(mapload) . = ..() GLOB.start_landmarks_list += src if(jobspawn_override) @@ -250,7 +250,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark) icon = 'icons/effects/landmarks_static.dmi' icon_state = "wiznerd_spawn" -/obj/effect/landmark/start/wizard/Initialize() +/obj/effect/landmark/start/wizard/Initialize(mapload) ..() GLOB.wizardstart += loc return INITIALIZE_HINT_QDEL @@ -260,7 +260,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark) icon = 'icons/effects/landmarks_static.dmi' icon_state = "snukeop_spawn" -/obj/effect/landmark/start/nukeop/Initialize() +/obj/effect/landmark/start/nukeop/Initialize(mapload) ..() GLOB.nukeop_start += loc return INITIALIZE_HINT_QDEL @@ -270,7 +270,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark) icon = 'icons/effects/landmarks_static.dmi' icon_state = "snukeop_leader_spawn" -/obj/effect/landmark/start/nukeop_leader/Initialize() +/obj/effect/landmark/start/nukeop_leader/Initialize(mapload) ..() GLOB.nukeop_leader_start += loc return INITIALIZE_HINT_QDEL @@ -282,7 +282,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark/start/new_player) /obj/effect/landmark/start/new_player name = "New Player" -/obj/effect/landmark/start/new_player/Initialize() +/obj/effect/landmark/start/new_player/Initialize(mapload) ..() GLOB.newplayer_start += loc return INITIALIZE_HINT_QDEL @@ -454,7 +454,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark/start/new_player) /// A list of everything this hangover spawn created var/list/debris = list() -/obj/effect/landmark/start/hangover/Initialize() +/obj/effect/landmark/start/hangover/Initialize(mapload) . = ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/game/objects/effects/mines.dm b/code/game/objects/effects/mines.dm index 76324d585a8..b516900c31d 100644 --- a/code/game/objects/effects/mines.dm +++ b/code/game/objects/effects/mines.dm @@ -12,7 +12,7 @@ /// If set, we default armed to FALSE and set it to TRUE after this long from initializing var/arm_delay -/obj/effect/mine/Initialize() +/obj/effect/mine/Initialize(mapload) . = ..() if(arm_delay) armed = FALSE diff --git a/code/game/objects/effects/overlays.dm b/code/game/objects/effects/overlays.dm index d5ae3073d6c..855f5987692 100644 --- a/code/game/objects/effects/overlays.dm +++ b/code/game/objects/effects/overlays.dm @@ -13,7 +13,7 @@ icon_state="b_beam" var/atom/BeamSource -/obj/effect/overlay/beam/Initialize() +/obj/effect/overlay/beam/Initialize(mapload) . = ..() QDEL_IN(src, 10) diff --git a/code/game/objects/effects/powerup.dm b/code/game/objects/effects/powerup.dm index 5ca06d9f812..32079b9729d 100644 --- a/code/game/objects/effects/powerup.dm +++ b/code/game/objects/effects/powerup.dm @@ -15,7 +15,7 @@ /// Cooldown for the powerup to respawn after it's been used COOLDOWN_DECLARE(respawn_cooldown) -/obj/effect/powerup/Initialize() +/obj/effect/powerup/Initialize(mapload) . = ..() if(lifetime) QDEL_IN(src, lifetime) diff --git a/code/game/objects/effects/spawners/bombspawner.dm b/code/game/objects/effects/spawners/bombspawner.dm index 3eb950b4550..2f1384cd24b 100644 --- a/code/game/objects/effects/spawners/bombspawner.dm +++ b/code/game/objects/effects/spawners/bombspawner.dm @@ -17,7 +17,7 @@ /// The typepath of the assembly to attach to the TTV. var/assembly_type -/obj/effect/spawner/newbomb/Initialize() +/obj/effect/spawner/newbomb/Initialize(mapload) . = ..() var/obj/item/transfer_valve/ttv = new(loc) var/obj/item/tank/internals/plasma/plasma_tank = new(ttv) diff --git a/code/game/objects/effects/spawners/gibspawner.dm b/code/game/objects/effects/spawners/gibspawner.dm index cc0a2f3eeba..e55ea14bae2 100644 --- a/code/game/objects/effects/spawners/gibspawner.dm +++ b/code/game/objects/effects/spawners/gibspawner.dm @@ -63,7 +63,7 @@ gibamounts = list(2, 2, 1) sound_vol = 40 -/obj/effect/gibspawner/generic/Initialize() +/obj/effect/gibspawner/generic/Initialize(mapload) if(!gibdirections.len) gibdirections = list(list(WEST, NORTHWEST, SOUTHWEST, NORTH),list(EAST, NORTHEAST, SOUTHEAST, SOUTH), list()) return ..() @@ -79,7 +79,7 @@ gib_mob_type = /mob/living/carbon/human sound_vol = 50 -/obj/effect/gibspawner/human/Initialize() +/obj/effect/gibspawner/human/Initialize(mapload) if(!gibdirections.len) gibdirections = list(list(NORTH, NORTHEAST, NORTHWEST),list(SOUTH, SOUTHEAST, SOUTHWEST),list(WEST, NORTHWEST, SOUTHWEST),list(EAST, NORTHEAST, SOUTHEAST), GLOB.alldirs, GLOB.alldirs, list()) return ..() @@ -89,7 +89,7 @@ gibtypes = list(/obj/effect/decal/cleanable/blood/gibs, /obj/effect/decal/cleanable/blood/gibs/core, /obj/effect/decal/cleanable/blood/gibs, /obj/effect/decal/cleanable/blood/gibs/core, /obj/effect/decal/cleanable/blood/gibs, /obj/effect/decal/cleanable/blood/gibs/torso) gibamounts = list(1, 1, 1, 1, 1, 1) -/obj/effect/gibspawner/human/bodypartless/Initialize() +/obj/effect/gibspawner/human/bodypartless/Initialize(mapload) if(!gibdirections.len) gibdirections = list(list(NORTH, NORTHEAST, NORTHWEST),list(SOUTH, SOUTHEAST, SOUTHWEST),list(WEST, NORTHWEST, SOUTHWEST),list(EAST, NORTHEAST, SOUTHEAST), GLOB.alldirs, list()) return ..() @@ -101,7 +101,7 @@ gibamounts = list(1, 1, 1, 1, 1, 1, 1) gib_mob_type = /mob/living/carbon/alien -/obj/effect/gibspawner/xeno/Initialize() +/obj/effect/gibspawner/xeno/Initialize(mapload) if(!gibdirections.len) gibdirections = list(list(NORTH, NORTHEAST, NORTHWEST),list(SOUTH, SOUTHEAST, SOUTHWEST),list(WEST, NORTHWEST, SOUTHWEST),list(EAST, NORTHEAST, SOUTHEAST), GLOB.alldirs, GLOB.alldirs, list()) return ..() @@ -112,7 +112,7 @@ gibamounts = list(1, 1, 1, 1, 1, 1) -/obj/effect/gibspawner/xeno/bodypartless/Initialize() +/obj/effect/gibspawner/xeno/bodypartless/Initialize(mapload) if(!gibdirections.len) gibdirections = list(list(NORTH, NORTHEAST, NORTHWEST),list(SOUTH, SOUTHEAST, SOUTHWEST),list(WEST, NORTHWEST, SOUTHWEST),list(EAST, NORTHEAST, SOUTHEAST), GLOB.alldirs, list()) return ..() @@ -124,7 +124,7 @@ gibamounts = list(1, 1, 1, 1) gib_mob_type = /mob/living/carbon/alien/larva -/obj/effect/gibspawner/larva/Initialize() +/obj/effect/gibspawner/larva/Initialize(mapload) if(!gibdirections.len) gibdirections = list(list(NORTH, NORTHEAST, NORTHWEST),list(SOUTH, SOUTHEAST, SOUTHWEST), list(), GLOB.alldirs) return ..() @@ -133,7 +133,7 @@ gibtypes = list(/obj/effect/decal/cleanable/xenoblood/xgibs/larva, /obj/effect/decal/cleanable/xenoblood/xgibs/larva, /obj/effect/decal/cleanable/xenoblood/xgibs/larva) gibamounts = list(1, 1, 1) -/obj/effect/gibspawner/larva/bodypartless/Initialize() +/obj/effect/gibspawner/larva/bodypartless/Initialize(mapload) if(!gibdirections.len) gibdirections = list(list(NORTH, NORTHEAST, NORTHWEST),list(SOUTH, SOUTHEAST, SOUTHWEST), list()) return ..() @@ -146,7 +146,7 @@ gibamounts = list(1, 1, 1, 1, 1, 1) gib_mob_type = /mob/living/silicon -/obj/effect/gibspawner/robot/Initialize() +/obj/effect/gibspawner/robot/Initialize(mapload) if(!gibdirections.len) gibdirections = list(list(NORTH, NORTHEAST, NORTHWEST),list(SOUTH, SOUTHEAST, SOUTHWEST),list(WEST, NORTHWEST, SOUTHWEST),list(EAST, NORTHEAST, SOUTHEAST), GLOB.alldirs, GLOB.alldirs) gibamounts[6] = pick(0, 1, 2) diff --git a/code/game/objects/effects/spawners/structure.dm b/code/game/objects/effects/spawners/structure.dm index c561f787e2c..b7a4d8a99e0 100644 --- a/code/game/objects/effects/spawners/structure.dm +++ b/code/game/objects/effects/spawners/structure.dm @@ -8,7 +8,7 @@ again. name = "map structure spawner" var/list/spawn_list -/obj/effect/spawner/structure/Initialize() +/obj/effect/spawner/structure/Initialize(mapload) . = ..() if(spawn_list?.len) for(var/I in spawn_list) @@ -25,7 +25,7 @@ again. spawn_list = list(/obj/structure/grille, /obj/structure/window/fulltile) dir = SOUTH -/obj/effect/spawner/structure/window/Initialize() +/obj/effect/spawner/structure/window/Initialize(mapload) . = ..() if (is_station_level(z)) @@ -40,7 +40,7 @@ again. /obj/effect/spawner/structure/window/hollow/end icon_state = "hwindow_spawner_end" -/obj/effect/spawner/structure/window/hollow/end/Initialize() +/obj/effect/spawner/structure/window/hollow/end/Initialize(mapload) switch(dir) if(NORTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/north, /obj/structure/window/spawner/east, /obj/structure/window/spawner/west) @@ -55,7 +55,7 @@ again. /obj/effect/spawner/structure/window/hollow/middle icon_state = "hwindow_spawner_middle" -/obj/effect/spawner/structure/window/hollow/middle/Initialize() +/obj/effect/spawner/structure/window/hollow/middle/Initialize(mapload) switch(dir) if(NORTH,SOUTH) spawn_list = list(/obj/structure/grille, /obj/structure/window, /obj/structure/window/spawner/north) @@ -66,7 +66,7 @@ again. /obj/effect/spawner/structure/window/hollow/directional icon_state = "hwindow_spawner_directional" -/obj/effect/spawner/structure/window/hollow/directional/Initialize() +/obj/effect/spawner/structure/window/hollow/directional/Initialize(mapload) switch(dir) if(NORTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/spawner/north) @@ -101,7 +101,7 @@ again. /obj/effect/spawner/structure/window/hollow/reinforced/end icon_state = "hrwindow_spawner_end" -/obj/effect/spawner/structure/window/hollow/reinforced/end/Initialize() +/obj/effect/spawner/structure/window/hollow/reinforced/end/Initialize(mapload) switch(dir) if(NORTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/north, /obj/structure/window/reinforced/spawner/east, /obj/structure/window/reinforced/spawner/west) @@ -116,7 +116,7 @@ again. /obj/effect/spawner/structure/window/hollow/reinforced/middle icon_state = "hrwindow_spawner_middle" -/obj/effect/spawner/structure/window/hollow/reinforced/middle/Initialize() +/obj/effect/spawner/structure/window/hollow/reinforced/middle/Initialize(mapload) switch(dir) if(NORTH,SOUTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced, /obj/structure/window/reinforced/spawner/north) @@ -127,7 +127,7 @@ again. /obj/effect/spawner/structure/window/hollow/reinforced/directional icon_state = "hrwindow_spawner_directional" -/obj/effect/spawner/structure/window/hollow/reinforced/directional/Initialize() +/obj/effect/spawner/structure/window/hollow/reinforced/directional/Initialize(mapload) switch(dir) if(NORTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/reinforced/spawner/north) @@ -194,7 +194,7 @@ again. /obj/effect/spawner/structure/window/hollow/survival_pod/end icon_state = "podwindow_spawner_end" -/obj/effect/spawner/structure/window/hollow/survival_pod/end/Initialize() +/obj/effect/spawner/structure/window/hollow/survival_pod/end/Initialize(mapload) switch(dir) if(NORTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/shuttle/survival_pod/spawner/north, /obj/structure/window/shuttle/survival_pod/spawner/east, /obj/structure/window/shuttle/survival_pod/spawner/west) @@ -209,7 +209,7 @@ again. /obj/effect/spawner/structure/window/hollow/survival_pod/middle icon_state = "podwindow_spawner_middle" -/obj/effect/spawner/structure/window/hollow/survival_pod/middle/Initialize() +/obj/effect/spawner/structure/window/hollow/survival_pod/middle/Initialize(mapload) switch(dir) if(NORTH,SOUTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/shuttle/survival_pod, /obj/structure/window/shuttle/survival_pod/spawner/north) @@ -220,7 +220,7 @@ again. /obj/effect/spawner/structure/window/hollow/survival_pod/directional icon_state = "podwindow_spawner_directional" -/obj/effect/spawner/structure/window/hollow/survival_pod/directional/Initialize() +/obj/effect/spawner/structure/window/hollow/survival_pod/directional/Initialize(mapload) switch(dir) if(NORTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/shuttle/survival_pod/spawner/north) @@ -256,7 +256,7 @@ again. /obj/effect/spawner/structure/window/hollow/plasma/end icon_state = "phwindow_spawner_end" -/obj/effect/spawner/structure/window/hollow/plasma/end/Initialize() +/obj/effect/spawner/structure/window/hollow/plasma/end/Initialize(mapload) switch(dir) if(NORTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/north, /obj/structure/window/plasma/spawner/east, /obj/structure/window/plasma/spawner/west) @@ -271,7 +271,7 @@ again. /obj/effect/spawner/structure/window/hollow/plasma/middle icon_state = "phwindow_spawner_middle" -/obj/effect/spawner/structure/window/hollow/plasma/middle/Initialize() +/obj/effect/spawner/structure/window/hollow/plasma/middle/Initialize(mapload) switch(dir) if(NORTH,SOUTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma, /obj/structure/window/plasma/spawner/north) @@ -282,7 +282,7 @@ again. /obj/effect/spawner/structure/window/hollow/plasma/directional icon_state = "phwindow_spawner_directional" -/obj/effect/spawner/structure/window/hollow/plasma/directional/Initialize() +/obj/effect/spawner/structure/window/hollow/plasma/directional/Initialize(mapload) switch(dir) if(NORTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/spawner/north) @@ -317,7 +317,7 @@ again. /obj/effect/spawner/structure/window/hollow/plasma/reinforced/end icon_state = "phrwindow_spawner_end" -/obj/effect/spawner/structure/window/hollow/plasma/reinforced/end/Initialize() +/obj/effect/spawner/structure/window/hollow/plasma/reinforced/end/Initialize(mapload) switch(dir) if(NORTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/reinforced/spawner/north, /obj/structure/window/plasma/reinforced/spawner/east, /obj/structure/window/plasma/reinforced/spawner/west) @@ -332,7 +332,7 @@ again. /obj/effect/spawner/structure/window/hollow/plasma/reinforced/middle icon_state = "phrwindow_spawner_middle" -/obj/effect/spawner/structure/window/hollow/plasma/reinforced/middle/Initialize() +/obj/effect/spawner/structure/window/hollow/plasma/reinforced/middle/Initialize(mapload) switch(dir) if(NORTH,SOUTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/reinforced, /obj/structure/window/plasma/reinforced/spawner/north) @@ -343,7 +343,7 @@ again. /obj/effect/spawner/structure/window/hollow/plasma/reinforced/directional icon_state = "phrwindow_spawner_directional" -/obj/effect/spawner/structure/window/hollow/plasma/reinforced/directional/Initialize() +/obj/effect/spawner/structure/window/hollow/plasma/reinforced/directional/Initialize(mapload) switch(dir) if(NORTH) spawn_list = list(/obj/structure/grille, /obj/structure/window/plasma/reinforced/spawner/north) diff --git a/code/game/objects/effects/spiders.dm b/code/game/objects/effects/spiders.dm index cc1bc78c006..6738bec0258 100644 --- a/code/game/objects/effects/spiders.dm +++ b/code/game/objects/effects/spiders.dm @@ -50,7 +50,7 @@ var/obj/item/stack/sheet/cloth/woven_cloth = new /obj/item/stack/sheet/cloth user.put_in_hands(woven_cloth) -/obj/structure/spider/stickyweb/Initialize() +/obj/structure/spider/stickyweb/Initialize(mapload) if(!sealed && prob(50)) icon_state = "stickyweb2" . = ..() @@ -107,7 +107,7 @@ /// Mob spawner handling the actual spawn of the spider var/obj/effect/mob_spawn/spider/spawner -/obj/structure/spider/eggcluster/Initialize() +/obj/structure/spider/eggcluster/Initialize(mapload) pixel_x = base_pixel_x + rand(3,-3) pixel_y = base_pixel_y + rand(3,-3) return ..() @@ -287,7 +287,7 @@ new/obj/item/food/spiderling(get_turf(src)) . = ..() -/obj/structure/spider/spiderling/Initialize() +/obj/structure/spider/spiderling/Initialize(mapload) . = ..() pixel_x = rand(6,-6) pixel_y = rand(6,-6) @@ -401,7 +401,7 @@ icon_state = "cocoon1" max_integrity = 60 -/obj/structure/spider/cocoon/Initialize() +/obj/structure/spider/cocoon/Initialize(mapload) icon_state = pick("cocoon1","cocoon2","cocoon3") . = ..() diff --git a/code/game/objects/effects/temporary_visuals/temporary_visual.dm b/code/game/objects/effects/temporary_visuals/temporary_visual.dm index a4a6fcf9d91..8413b9d97e0 100644 --- a/code/game/objects/effects/temporary_visuals/temporary_visual.dm +++ b/code/game/objects/effects/temporary_visuals/temporary_visual.dm @@ -11,7 +11,7 @@ ///id of the deletion timer var/timerid -/obj/effect/temp_visual/Initialize() +/obj/effect/temp_visual/Initialize(mapload) . = ..() if(randomdir) setDir(pick(GLOB.cardinals)) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 68d781a0eb4..cc8f36944f1 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -201,7 +201,7 @@ GLOBAL_DATUM_INIT(fire_overlay, /mutable_appearance, mutable_appearance('icons/e /// Used in obj/item/examine to determines whether or not to detail an item's statistics even if it does not meet the force requirements var/override_notes = FALSE -/obj/item/Initialize() +/obj/item/Initialize(mapload) if(attack_verb_continuous) attack_verb_continuous = string_list(attack_verb_continuous) diff --git a/code/game/objects/items/AI_modules.dm b/code/game/objects/items/AI_modules.dm index 603f4653068..0e326ef0f7e 100644 --- a/code/game/objects/items/AI_modules.dm +++ b/code/game/objects/items/AI_modules.dm @@ -351,7 +351,7 @@ AI MODULES /obj/item/ai_module/core/full var/law_id // if non-null, loads the laws from the ai_laws datums -/obj/item/ai_module/core/full/Initialize() +/obj/item/ai_module/core/full/Initialize(mapload) . = ..() if(!law_id) return @@ -421,7 +421,7 @@ AI MODULES /obj/item/ai_module/core/full/custom name = "Default Core AI Module" -/obj/item/ai_module/core/full/custom/Initialize() +/obj/item/ai_module/core/full/custom/Initialize(mapload) . = ..() for(var/line in world.file2list("[global.config.directory]/silicon_laws.txt")) if(!line) diff --git a/code/game/objects/items/RCD.dm b/code/game/objects/items/RCD.dm index a7437ee9148..ebe5b4eeef2 100644 --- a/code/game/objects/items/RCD.dm +++ b/code/game/objects/items/RCD.dm @@ -648,7 +648,7 @@ GLOBAL_VAR_INIT(icon_holographic_window, init_holographic_window()) playsound(src.loc, 'sound/machines/click.ogg', 50, TRUE) return TRUE -/obj/item/construction/rcd/Initialize() +/obj/item/construction/rcd/Initialize(mapload) . = ..() airlock_electronics = new(src) airlock_electronics.name = "Access Control" @@ -773,7 +773,7 @@ GLOBAL_VAR_INIT(icon_holographic_window, init_holographic_window()) if(ratio > 0) . += "[icon_state]_charge[ratio]" -/obj/item/construction/rcd/Initialize() +/obj/item/construction/rcd/Initialize(mapload) . = ..() update_appearance() diff --git a/code/game/objects/items/RCL.dm b/code/game/objects/items/RCL.dm index 6c2d4f29499..3ef31145916 100644 --- a/code/game/objects/items/RCL.dm +++ b/code/game/objects/items/RCL.dm @@ -23,7 +23,7 @@ var/datum/radial_menu/persistent/wiring_gui_menu var/mob/listeningTo -/obj/item/rcl/Initialize() +/obj/item/rcl/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) @@ -300,14 +300,14 @@ wiringGuiUpdate(user) -/obj/item/rcl/pre_loaded/Initialize() //Comes preloaded with pipe_cleaner, for testing stuff +/obj/item/rcl/pre_loaded/Initialize(mapload) //Comes preloaded with pipe_cleaner, for testing stuff . = ..() loaded = new() loaded.max_amount = max_amount loaded.amount = max_amount update_appearance() -/obj/item/rcl/Initialize() +/obj/item/rcl/Initialize(mapload) . = ..() update_appearance() diff --git a/code/game/objects/items/RPD.dm b/code/game/objects/items/RPD.dm index 00205bdbb4c..a46f66abec2 100644 --- a/code/game/objects/items/RPD.dm +++ b/code/game/objects/items/RPD.dm @@ -237,7 +237,7 @@ GLOBAL_LIST_INIT(transit_tube_recipes, list( /// Bitflags for upgrades var/upgrade_flags -/obj/item/pipe_dispenser/Initialize() +/obj/item/pipe_dispenser/Initialize(mapload) . = ..() spark_system = new spark_system.set_up(5, 0, src) diff --git a/code/game/objects/items/RSF.dm b/code/game/objects/items/RSF.dm index 9bb4c300d6a..074280b356a 100644 --- a/code/game/objects/items/RSF.dm +++ b/code/game/objects/items/RSF.dm @@ -50,7 +50,7 @@ RSF ///How long should the minimum period between this RSF's item dispensings be? var/cooldowndelay = 0 SECONDS -/obj/item/rsf/Initialize() +/obj/item/rsf/Initialize(mapload) . = ..() to_dispense = cost_by_item[1] dispense_cost = cost_by_item[to_dispense] diff --git a/code/game/objects/items/airlock_painter.dm b/code/game/objects/items/airlock_painter.dm index 0d7a92eceb5..056830bd41f 100644 --- a/code/game/objects/items/airlock_painter.dm +++ b/code/game/objects/items/airlock_painter.dm @@ -34,7 +34,7 @@ "Standard" = /obj/machinery/door/airlock ) -/obj/item/airlock_painter/Initialize() +/obj/item/airlock_painter/Initialize(mapload) . = ..() ink = new /obj/item/toner(src) @@ -180,7 +180,7 @@ . = ..() ui_interact(user) -/obj/item/airlock_painter/decal/Initialize() +/obj/item/airlock_painter/decal/Initialize(mapload) . = ..() ink = new /obj/item/toner/large(src) @@ -244,6 +244,6 @@ name = "extreme decal painter" icon_state = "decal_sprayer_ex" -/obj/item/airlock_painter/decal/debug/Initialize() +/obj/item/airlock_painter/decal/debug/Initialize(mapload) . = ..() ink = new /obj/item/toner/extreme(src) diff --git a/code/game/objects/items/binoculars.dm b/code/game/objects/items/binoculars.dm index 45aa014a1e9..b4e8a478004 100644 --- a/code/game/objects/items/binoculars.dm +++ b/code/game/objects/items/binoculars.dm @@ -12,7 +12,7 @@ var/zoom_out_amt = 5.5 var/zoom_amt = 10 -/obj/item/binoculars/Initialize() +/obj/item/binoculars/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) diff --git a/code/game/objects/items/body_egg.dm b/code/game/objects/items/body_egg.dm index 36db923e42a..dc769ead283 100644 --- a/code/game/objects/items/body_egg.dm +++ b/code/game/objects/items/body_egg.dm @@ -9,7 +9,7 @@ ..() to_chat(finder, span_warning("You found an unknown alien organism in [owner]'s [zone]!")) -/obj/item/organ/body_egg/Initialize() +/obj/item/organ/body_egg/Initialize(mapload) . = ..() if(iscarbon(loc)) Insert(loc) diff --git a/code/game/objects/items/broom.dm b/code/game/objects/items/broom.dm index fe7b32ea3ad..59f0bdd605d 100644 --- a/code/game/objects/items/broom.dm +++ b/code/game/objects/items/broom.dm @@ -18,7 +18,7 @@ attack_verb_simple = list("sweep", "brush off", "bludgeon", "whack") resistance_flags = FLAMMABLE -/obj/item/pushbroom/Initialize() +/obj/item/pushbroom/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) diff --git a/code/game/objects/items/candle.dm b/code/game/objects/items/candle.dm index c43ced52abd..d159ca971c2 100644 --- a/code/game/objects/items/candle.dm +++ b/code/game/objects/items/candle.dm @@ -15,7 +15,7 @@ var/infinite = FALSE var/start_lit = FALSE -/obj/item/candle/Initialize() +/obj/item/candle/Initialize(mapload) . = ..() if(start_lit) light() diff --git a/code/game/objects/items/cardboard_cutouts.dm b/code/game/objects/items/cardboard_cutouts.dm index a0ea43eec9f..7b24ddd8922 100644 --- a/code/game/objects/items/cardboard_cutouts.dm +++ b/code/game/objects/items/cardboard_cutouts.dm @@ -13,7 +13,7 @@ /// If the cutout actually appears as what it portray and not a discolored version var/deceptive = FALSE -/obj/item/cardboard_cutout/Initialize() +/obj/item/cardboard_cutout/Initialize(mapload) . = ..() possible_appearances = sortList(list( "Assistant" = image(icon = src.icon, icon_state = "cutout_greytide"), diff --git a/code/game/objects/items/cards_ids.dm b/code/game/objects/items/cards_ids.dm index 1ca47779477..a4831f7585f 100644 --- a/code/game/objects/items/cards_ids.dm +++ b/code/game/objects/items/cards_ids.dm @@ -46,7 +46,7 @@ righthand_file = 'icons/mob/inhands/equipment/idcards_righthand.dmi' var/detail_color = COLOR_ASSEMBLY_ORANGE -/obj/item/card/data/Initialize() +/obj/item/card/data/Initialize(mapload) .=..() update_appearance() @@ -692,7 +692,7 @@ var/department_name = ACCOUNT_CIV_NAME registered_age = null -/obj/item/card/id/departmental_budget/Initialize() +/obj/item/card/id/departmental_budget/Initialize(mapload) . = ..() var/datum/bank_account/B = SSeconomy.get_dep_account(department_ID) if(B) @@ -963,7 +963,7 @@ trim = /datum/id_trim/admin wildcard_slots = WILDCARD_LIMIT_ADMIN -/obj/item/card/id/advanced/debug/Initialize() +/obj/item/card/id/advanced/debug/Initialize(mapload) . = ..() registered_account = SSeconomy.get_dep_account(ACCOUNT_CAR) @@ -1051,7 +1051,7 @@ /// Weak ref to the ID card we're currently attempting to steal access from. var/datum/weakref/theft_target -/obj/item/card/id/advanced/chameleon/Initialize() +/obj/item/card/id/advanced/chameleon/Initialize(mapload) . = ..() var/datum/action/item_action/chameleon/change/id/chameleon_card_action = new(src) diff --git a/code/game/objects/items/chainsaw.dm b/code/game/objects/items/chainsaw.dm index a97051bf180..1870e2566da 100644 --- a/code/game/objects/items/chainsaw.dm +++ b/code/game/objects/items/chainsaw.dm @@ -24,7 +24,7 @@ var/on = FALSE var/wielded = FALSE // track wielded status on item -/obj/item/chainsaw/Initialize() +/obj/item/chainsaw/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) diff --git a/code/game/objects/items/charter.dm b/code/game/objects/items/charter.dm index 3d0e83a3420..3558aa5d637 100644 --- a/code/game/objects/items/charter.dm +++ b/code/game/objects/items/charter.dm @@ -16,7 +16,7 @@ var/static/regex/standard_station_regex -/obj/item/station_charter/Initialize() +/obj/item/station_charter/Initialize(mapload) . = ..() if(!standard_station_regex) var/prefixes = jointext(GLOB.station_prefixes, "|") @@ -136,7 +136,7 @@ //A cooldown, once it's over you can't declare a new name anymore COOLDOWN_DECLARE(cutoff) -/obj/item/station_charter/revolution/Initialize() +/obj/item/station_charter/revolution/Initialize(mapload) . = ..() COOLDOWN_START(src, cutoff, 5 MINUTES) diff --git a/code/game/objects/items/chrono_eraser.dm b/code/game/objects/items/chrono_eraser.dm index 16ab0eb5c19..2995be22df9 100644 --- a/code/game/objects/items/chrono_eraser.dm +++ b/code/game/objects/items/chrono_eraser.dm @@ -56,7 +56,7 @@ var/obj/structure/chrono_field/field = null var/turf/startpos = null -/obj/item/gun/energy/chrono_gun/Initialize() +/obj/item/gun/energy/chrono_gun/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHRONO_GUN_TRAIT) if(istype(loc, /obj/item/chrono_eraser)) @@ -128,7 +128,7 @@ nodamage = TRUE var/obj/item/gun/energy/chrono_gun/gun = null -/obj/projectile/energy/chrono_beam/Initialize() +/obj/projectile/energy/chrono_beam/Initialize(mapload) . = ..() var/obj/item/ammo_casing/energy/chrono_beam/C = loc if(istype(C)) @@ -151,7 +151,7 @@ e_cost = 0 var/obj/item/gun/energy/chrono_gun/gun -/obj/item/ammo_casing/energy/chrono_beam/Initialize() +/obj/item/ammo_casing/energy/chrono_beam/Initialize(mapload) if(istype(loc)) gun = loc . = ..() diff --git a/code/game/objects/items/cigs_lighters.dm b/code/game/objects/items/cigs_lighters.dm index 66690b4774b..f2a9a76603c 100644 --- a/code/game/objects/items/cigs_lighters.dm +++ b/code/game/objects/items/cigs_lighters.dm @@ -117,7 +117,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM custom_materials = list(/datum/material/wood = MINERAL_MATERIAL_AMOUNT) grind_results = list(/datum/reagent/carbon = 2) -/obj/item/match/firebrand/Initialize() +/obj/item/match/firebrand/Initialize(mapload) . = ..() matchignite() @@ -161,7 +161,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM var/lung_harm = 1 -/obj/item/clothing/mask/cigarette/Initialize() +/obj/item/clothing/mask/cigarette/Initialize(mapload) . = ..() create_reagents(chem_volume, INJECTABLE | NO_REACT) if(list_reagents) @@ -371,7 +371,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM /obj/item/clothing/mask/cigarette/carp desc = "A Carp Classic brand cigarette. A small label on its side indicates that it does NOT contain carpotoxin." -/obj/item/clothing/mask/cigarette/carp/Initialize() +/obj/item/clothing/mask/cigarette/carp/Initialize(mapload) . = ..() if(!prob(5)) return @@ -407,7 +407,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM chem_volume = 50 list_reagents = null -/obj/item/clothing/mask/cigarette/rollie/Initialize() +/obj/item/clothing/mask/cigarette/rollie/Initialize(mapload) . = ..() name = pick(list( "bifta", @@ -489,7 +489,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM desc = "A manky old roach, or for non-stoners, a used rollup." icon_state = "roach" -/obj/item/cigbutt/roach/Initialize() +/obj/item/cigbutt/roach/Initialize(mapload) . = ..() pixel_x = rand(-5, 5) pixel_y = rand(-5, 5) @@ -560,7 +560,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM list_reagents = null var/packeditem = FALSE -/obj/item/clothing/mask/cigarette/pipe/Initialize() +/obj/item/clothing/mask/cigarette/pipe/Initialize(mapload) . = ..() name = "empty [initial(name)]" @@ -683,7 +683,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM "snake" ) -/obj/item/lighter/Initialize() +/obj/item/lighter/Initialize(mapload) . = ..() if(!overlay_state) overlay_state = pick(overlay_list) @@ -857,7 +857,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM COLOR_ASSEMBLY_PURPLE ) -/obj/item/lighter/greyscale/Initialize() +/obj/item/lighter/greyscale/Initialize(mapload) . = ..() if(!lighter_color) lighter_color = pick(color_list) diff --git a/code/game/objects/items/circuitboards/circuitboard.dm b/code/game/objects/items/circuitboards/circuitboard.dm index e0083800ddb..dabcdb88271 100644 --- a/code/game/objects/items/circuitboards/circuitboard.dm +++ b/code/game/objects/items/circuitboards/circuitboard.dm @@ -18,7 +18,7 @@ ///determines if the circuit board originated from a vendor off station or not. var/onstation = TRUE -/obj/item/circuitboard/Initialize() +/obj/item/circuitboard/Initialize(mapload) set_greyscale(new_config=/datum/greyscale_config/circuit) return ..() diff --git a/code/game/objects/items/circuitboards/computer_circuitboards.dm b/code/game/objects/items/circuitboards/computer_circuitboards.dm index baf7a4afada..f7fe1424ca5 100644 --- a/code/game/objects/items/circuitboards/computer_circuitboards.dm +++ b/code/game/objects/items/circuitboards/computer_circuitboards.dm @@ -281,7 +281,7 @@ var/challenge = FALSE var/moved = FALSE -/obj/item/circuitboard/computer/syndicate_shuttle/Initialize() +/obj/item/circuitboard/computer/syndicate_shuttle/Initialize(mapload) . = ..() GLOB.syndicate_shuttle_boards += src diff --git a/code/game/objects/items/clown_items.dm b/code/game/objects/items/clown_items.dm index a837549442b..7bdac4fde8b 100644 --- a/code/game/objects/items/clown_items.dm +++ b/code/game/objects/items/clown_items.dm @@ -188,7 +188,7 @@ ///sound file given to the squeaky component we make in Initialize() so sub-types can specify their own sound var/sound_file = 'sound/items/bikehorn.ogg' -/obj/item/bikehorn/Initialize() +/obj/item/bikehorn/Initialize(mapload) . = ..() var/list/sound_list = list() sound_list[sound_file] = 1 diff --git a/code/game/objects/items/control_wand.dm b/code/game/objects/items/control_wand.dm index 7caf39bcb7c..88add4a928c 100644 --- a/code/game/objects/items/control_wand.dm +++ b/code/game/objects/items/control_wand.dm @@ -16,7 +16,7 @@ var/list/access_list network_id = NETWORK_DOOR_REMOTES -/obj/item/door_remote/Initialize() +/obj/item/door_remote/Initialize(mapload) . = ..() access_list = SSid_access.get_region_access_list(list(region_access)) RegisterSignal(src, COMSIG_COMPONENT_NTNET_NAK, .proc/bad_signal) diff --git a/code/game/objects/items/cosmetics.dm b/code/game/objects/items/cosmetics.dm index 8eb01e1d5ff..619a13790e1 100644 --- a/code/game/objects/items/cosmetics.dm +++ b/code/game/objects/items/cosmetics.dm @@ -32,7 +32,7 @@ name = "lipstick" icon_state = "random_lipstick" -/obj/item/lipstick/random/Initialize() +/obj/item/lipstick/random/Initialize(mapload) . = ..() icon_state = "lipstick" colour = pick("red","purple","lime","black","green","blue","white") diff --git a/code/game/objects/items/courtroom.dm b/code/game/objects/items/courtroom.dm index 5e02f8aa8cc..57c13968960 100644 --- a/code/game/objects/items/courtroom.dm +++ b/code/game/objects/items/courtroom.dm @@ -14,7 +14,7 @@ attack_verb_simple = list("bash", "batter", "judge", "whack") resistance_flags = FLAMMABLE -/obj/item/gavelhammer/Initialize() +/obj/item/gavelhammer/Initialize(mapload) . = ..() AddElement(/datum/element/kneejerk) diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm index 21c3672112b..a40245bd8d6 100644 --- a/code/game/objects/items/crayons.dm +++ b/code/game/objects/items/crayons.dm @@ -77,7 +77,7 @@ user.visible_message(span_suicide("[user] is jamming [src] up [user.p_their()] nose and into [user.p_their()] brain. It looks like [user.p_theyre()] trying to commit suicide!")) return (BRUTELOSS|OXYLOSS) -/obj/item/toy/crayon/Initialize() +/obj/item/toy/crayon/Initialize(mapload) . = ..() dye_color = crayon_color @@ -604,7 +604,7 @@ w_class = WEIGHT_CLASS_SMALL custom_materials = list(/datum/material/cardboard = 2000) -/obj/item/storage/crayons/Initialize() +/obj/item/storage/crayons/Initialize(mapload) . = ..() var/datum/component/storage/STR = GetComponent(/datum/component/storage) STR.max_items = 7 @@ -706,7 +706,7 @@ return (OXYLOSS) -/obj/item/toy/crayon/spraycan/Initialize() +/obj/item/toy/crayon/spraycan/Initialize(mapload) . = ..() // If default crayon red colour, pick a more fun spraycan colour if(!paint_color) diff --git a/code/game/objects/items/defib.dm b/code/game/objects/items/defib.dm index c87f28bf53e..a16da63dce2 100644 --- a/code/game/objects/items/defib.dm +++ b/code/game/objects/items/defib.dm @@ -40,13 +40,13 @@ /obj/item/defibrillator/get_cell() return cell -/obj/item/defibrillator/Initialize() //starts without a cell for rnd +/obj/item/defibrillator/Initialize(mapload) //starts without a cell for rnd . = ..() paddles = new paddle_type(src) update_power() return -/obj/item/defibrillator/loaded/Initialize() //starts with hicap +/obj/item/defibrillator/loaded/Initialize(mapload) //starts with hicap . = ..() cell = new(src) update_power() @@ -275,7 +275,7 @@ if(slot == user.getBeltSlot()) return TRUE -/obj/item/defibrillator/compact/loaded/Initialize() +/obj/item/defibrillator/compact/loaded/Initialize(mapload) . = ..() cell = new(src) update_power() @@ -294,7 +294,7 @@ powered_state = null emagged_state = null -/obj/item/defibrillator/compact/combat/loaded/Initialize() +/obj/item/defibrillator/compact/combat/loaded/Initialize(mapload) . = ..() cell = new /obj/item/stock_parts/cell/infinite(src) update_power() @@ -400,7 +400,7 @@ cooldown = FALSE update_appearance() -/obj/item/shockpaddles/Initialize() +/obj/item/shockpaddles/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NO_STORAGE_INSERT, TRAIT_GENERIC) //stops shockpaddles from being inserted in BoH RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index 4813bc157ca..1dc8b94216f 100644 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -111,7 +111,7 @@ GLOBAL_LIST_EMPTY(PDAs) if((!isnull(cartridge))) . += span_notice("Ctrl+Shift-click to remove the cartridge.") //won't name cart on examine in case it's Detomatix -/obj/item/pda/Initialize() +/obj/item/pda/Initialize(mapload) . = ..() GLOB.PDAs += src diff --git a/code/game/objects/items/devices/PDA/PDA_types.dm b/code/game/objects/items/devices/PDA/PDA_types.dm index a0e3bf39a3e..03068a9d591 100644 --- a/code/game/objects/items/devices/PDA/PDA_types.dm +++ b/code/game/objects/items/devices/PDA/PDA_types.dm @@ -63,7 +63,7 @@ /obj/item/pda/ai/pai ttone = "assist" -/obj/item/pda/ai/Initialize() +/obj/item/pda/ai/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_PDA_CHECK_DETONATE, .proc/pda_no_detonate) @@ -156,7 +156,7 @@ greyscale_config = /datum/greyscale_config/pda/captain greyscale_colors = "#2C7CB2#FF0000#FFFFFF#F5D67B" -/obj/item/pda/captain/Initialize() +/obj/item/pda/captain/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_PDA_CHECK_DETONATE, .proc/pda_no_detonate) diff --git a/code/game/objects/items/devices/PDA/cart.dm b/code/game/objects/items/devices/PDA/cart.dm index 1de5e35c812..6d6e0013a35 100644 --- a/code/game/objects/items/devices/PDA/cart.dm +++ b/code/game/objects/items/devices/PDA/cart.dm @@ -32,7 +32,7 @@ var/mob/living/simple_animal/bot/active_bot var/list/botlist = list() -/obj/item/cartridge/Initialize() +/obj/item/cartridge/Initialize(mapload) . = ..() var/obj/item/pda/pda = loc if(istype(pda)) @@ -108,7 +108,7 @@ icon_state = "cart-ord" access = CART_REAGENT_SCANNER | CART_ATMOS -/obj/item/cartridge/signal/Initialize() +/obj/item/cartridge/signal/Initialize(mapload) . = ..() radio = new(src) @@ -157,7 +157,7 @@ access = CART_MANIFEST | CART_STATUS_DISPLAY | CART_REAGENT_SCANNER | CART_ATMOS | CART_DRONEPHONE bot_access_flags = FLOOR_BOT | CLEAN_BOT | MED_BOT | FIRE_BOT | VIBE_BOT -/obj/item/cartridge/rd/Initialize() +/obj/item/cartridge/rd/Initialize(mapload) . = ..() radio = new(src) @@ -169,7 +169,7 @@ bot_access_flags = SEC_BOT | MULE_BOT | FLOOR_BOT | CLEAN_BOT | MED_BOT | FIRE_BOT | VIBE_BOT spam_enabled = 1 -/obj/item/cartridge/captain/Initialize() +/obj/item/cartridge/captain/Initialize(mapload) . = ..() radio = new(src) diff --git a/code/game/objects/items/devices/PDA/radio.dm b/code/game/objects/items/devices/PDA/radio.dm index 329631ff9e0..39d1a7b5223 100644 --- a/code/game/objects/items/devices/PDA/radio.dm +++ b/code/game/objects/items/devices/PDA/radio.dm @@ -15,7 +15,7 @@ radio_connection = null return ..() -/obj/item/integrated_signaler/Initialize() +/obj/item/integrated_signaler/Initialize(mapload) . = ..() if (frequency < MIN_FREE_FREQ || frequency > MAX_FREE_FREQ) frequency = sanitize_frequency(frequency) diff --git a/code/game/objects/items/devices/beacon.dm b/code/game/objects/items/devices/beacon.dm index 23da5627b79..7a6a6185700 100644 --- a/code/game/objects/items/devices/beacon.dm +++ b/code/game/objects/items/devices/beacon.dm @@ -9,7 +9,7 @@ var/enabled = TRUE var/renamed = FALSE -/obj/item/beacon/Initialize() +/obj/item/beacon/Initialize(mapload) . = ..() if (enabled) GLOB.teleportbeacons += src diff --git a/code/game/objects/items/devices/camera_bug.dm b/code/game/objects/items/devices/camera_bug.dm index baadd60e35a..f45a2c979f8 100644 --- a/code/game/objects/items/devices/camera_bug.dm +++ b/code/game/objects/items/devices/camera_bug.dm @@ -31,7 +31,7 @@ var/last_found = null var/last_seen = null -/obj/item/camera_bug/Initialize() +/obj/item/camera_bug/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) diff --git a/code/game/objects/items/devices/chameleonproj.dm b/code/game/objects/items/devices/chameleonproj.dm index 4d0222abd7c..22528d007af 100644 --- a/code/game/objects/items/devices/chameleonproj.dm +++ b/code/game/objects/items/devices/chameleonproj.dm @@ -17,7 +17,7 @@ var/obj/effect/dummy/chameleon/active_dummy = null var/saved_appearance = null -/obj/item/chameleon/Initialize() +/obj/item/chameleon/Initialize(mapload) . = ..() var/obj/item/cigbutt/butt = /obj/item/cigbutt saved_appearance = initial(butt.appearance) diff --git a/code/game/objects/items/devices/electroadaptive_pseudocircuit.dm b/code/game/objects/items/devices/electroadaptive_pseudocircuit.dm index 5a78c8b1f44..80f496b4026 100644 --- a/code/game/objects/items/devices/electroadaptive_pseudocircuit.dm +++ b/code/game/objects/items/devices/electroadaptive_pseudocircuit.dm @@ -11,7 +11,7 @@ var/static/recycleable_circuits = typecacheof(list(/obj/item/electronics/firelock, /obj/item/electronics/airalarm, /obj/item/electronics/firealarm, \ /obj/item/electronics/apc))//A typecache of circuits consumable for material -/obj/item/electroadaptive_pseudocircuit/Initialize() +/obj/item/electroadaptive_pseudocircuit/Initialize(mapload) . = ..() maptext = MAPTEXT(circuits) diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index 83c0d7710b6..4027ad9ff16 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -20,7 +20,7 @@ var/on = FALSE -/obj/item/flashlight/Initialize() +/obj/item/flashlight/Initialize(mapload) . = ..() if(icon_state == "[initial(icon_state)]-on") on = TRUE @@ -282,7 +282,7 @@ light_system = MOVABLE_LIGHT grind_results = list(/datum/reagent/sulfur = 15) -/obj/item/flashlight/flare/Initialize() +/obj/item/flashlight/flare/Initialize(mapload) . = ..() fuel = rand(1600, 2000) @@ -463,7 +463,7 @@ var/fuel = 0 -/obj/item/flashlight/glowstick/Initialize() +/obj/item/flashlight/glowstick/Initialize(mapload) fuel = rand(3200, 4000) set_light_color(color) return ..() diff --git a/code/game/objects/items/devices/geiger_counter.dm b/code/game/objects/items/devices/geiger_counter.dm index d2c5cabc548..c7c439447ee 100644 --- a/code/game/objects/items/devices/geiger_counter.dm +++ b/code/game/objects/items/devices/geiger_counter.dm @@ -28,7 +28,7 @@ var/fail_to_receive = 0 var/current_warning = 1 -/obj/item/geiger_counter/Initialize() +/obj/item/geiger_counter/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) diff --git a/code/game/objects/items/devices/gps.dm b/code/game/objects/items/devices/gps.dm index 007be3b367b..6af2fd40b3e 100644 --- a/code/game/objects/items/devices/gps.dm +++ b/code/game/objects/items/devices/gps.dm @@ -11,7 +11,7 @@ obj_flags = UNIQUE_RENAME var/gpstag -/obj/item/gps/Initialize() +/obj/item/gps/Initialize(mapload) . = ..() add_gps_component() @@ -40,7 +40,7 @@ gpstag = "BORG0" desc = "A mining cyborg internal positioning system. Used as a recovery beacon for damaged cyborg assets, or a collaboration tool for mining teams." -/obj/item/gps/cyborg/Initialize() +/obj/item/gps/cyborg/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CYBORG_ITEM_TRAIT) @@ -66,7 +66,7 @@ for marking the area around the transition edges." var/list/turf/tagged -/obj/item/gps/visible_debug/Initialize() +/obj/item/gps/visible_debug/Initialize(mapload) . = ..() tagged = list() START_PROCESSING(SSfastprocess, src) diff --git a/code/game/objects/items/devices/laserpointer.dm b/code/game/objects/items/devices/laserpointer.dm index 3e172ce9716..27f661dc5b6 100644 --- a/code/game/objects/items/devices/laserpointer.dm +++ b/code/game/objects/items/devices/laserpointer.dm @@ -29,13 +29,13 @@ /obj/item/laser_pointer/purple pointer_icon_state = "purple_laser" -/obj/item/laser_pointer/Initialize() +/obj/item/laser_pointer/Initialize(mapload) . = ..() diode = new(src) if(!pointer_icon_state) pointer_icon_state = pick("red_laser","green_laser","blue_laser","purple_laser") -/obj/item/laser_pointer/upgraded/Initialize() +/obj/item/laser_pointer/upgraded/Initialize(mapload) . = ..() diode = new /obj/item/stock_parts/micro_laser/ultra diff --git a/code/game/objects/items/devices/multitool.dm b/code/game/objects/items/devices/multitool.dm index 15c36df7516..ab45e2811a3 100644 --- a/code/game/objects/items/devices/multitool.dm +++ b/code/game/objects/items/devices/multitool.dm @@ -53,7 +53,7 @@ var/mob/camera/ai_eye/remote/ai_detector/eye var/datum/action/item_action/toggle_multitool/toggle_action -/obj/item/multitool/ai_detect/Initialize() +/obj/item/multitool/ai_detect/Initialize(mapload) . = ..() START_PROCESSING(SSfastprocess, src) eye = new /mob/camera/ai_eye/remote/ai_detector() diff --git a/code/game/objects/items/devices/paicard.dm b/code/game/objects/items/devices/paicard.dm index 144b128f5c6..5b4db5b7077 100644 --- a/code/game/objects/items/devices/paicard.dm +++ b/code/game/objects/items/devices/paicard.dm @@ -18,7 +18,7 @@ user.visible_message(span_suicide("[user] is staring sadly at [src]! [user.p_they()] can't keep living without real human intimacy!")) return OXYLOSS -/obj/item/paicard/Initialize() +/obj/item/paicard/Initialize(mapload) SSpai.pai_card_list += src . = ..() update_appearance() diff --git a/code/game/objects/items/devices/pressureplates.dm b/code/game/objects/items/devices/pressureplates.dm index f68566772ac..d3de1f72520 100644 --- a/code/game/objects/items/devices/pressureplates.dm +++ b/code/game/objects/items/devices/pressureplates.dm @@ -23,7 +23,7 @@ var/protected = FALSE var/undertile_pressureplate = TRUE -/obj/item/pressure_plate/Initialize() +/obj/item/pressure_plate/Initialize(mapload) . = ..() tile_overlay = image(icon = 'icons/turf/floors.dmi', icon_state = "pp_overlay") if(roundstart_signaller) diff --git a/code/game/objects/items/devices/radio/electropack.dm b/code/game/objects/items/devices/radio/electropack.dm index ea7fdde3c63..03233e0d170 100644 --- a/code/game/objects/items/devices/radio/electropack.dm +++ b/code/game/objects/items/devices/radio/electropack.dm @@ -16,7 +16,7 @@ var/frequency = FREQ_ELECTROPACK var/shock_cooldown = FALSE -/obj/item/electropack/Initialize() +/obj/item/electropack/Initialize(mapload) . = ..() set_frequency(frequency) diff --git a/code/game/objects/items/devices/radio/encryptionkey.dm b/code/game/objects/items/devices/radio/encryptionkey.dm index b80bd6f154b..238605acdca 100644 --- a/code/game/objects/items/devices/radio/encryptionkey.dm +++ b/code/game/objects/items/devices/radio/encryptionkey.dm @@ -9,7 +9,7 @@ var/independent = FALSE var/list/channels = list() -/obj/item/encryptionkey/Initialize() +/obj/item/encryptionkey/Initialize(mapload) . = ..() if(!channels.len) desc = "An encryption key for a radio headset. Has no special codes in it. You should probably tell a coder!" diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm index ff35b07faba..de2e26cc465 100644 --- a/code/game/objects/items/devices/radio/headset.dm +++ b/code/game/objects/items/devices/radio/headset.dm @@ -53,7 +53,7 @@ GLOBAL_LIST_INIT(channel_tokens, list( else . += span_notice("A small screen on the headset flashes, it's too small to read without holding or wearing the headset.") -/obj/item/radio/headset/Initialize() +/obj/item/radio/headset/Initialize(mapload) . = ..() recalculateChannels() @@ -95,12 +95,12 @@ GLOBAL_LIST_INIT(channel_tokens, list( name = "team leader headset" command = TRUE -/obj/item/radio/headset/syndicate/Initialize() +/obj/item/radio/headset/syndicate/Initialize(mapload) . = ..() make_syndie() /obj/item/radio/headset/binary -/obj/item/radio/headset/binary/Initialize() +/obj/item/radio/headset/binary/Initialize(mapload) . = ..() qdel(keyslot) keyslot = new /obj/item/encryptionkey/binary diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index 285d26afd33..cb5538c641a 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -90,7 +90,7 @@ QDEL_NULL(keyslot) return ..() -/obj/item/radio/Initialize() +/obj/item/radio/Initialize(mapload) wires = new /datum/wires/radio(src) if(prison_radio) wires.cut(WIRE_TX) // OH GOD WHY @@ -398,7 +398,7 @@ syndie = 1 keyslot = new /obj/item/encryptionkey/syndicate -/obj/item/radio/borg/syndicate/Initialize() +/obj/item/radio/borg/syndicate/Initialize(mapload) . = ..() set_frequency(FREQ_SYNDICATE) diff --git a/code/game/objects/items/devices/reverse_bear_trap.dm b/code/game/objects/items/devices/reverse_bear_trap.dm index 9ea79b56ef8..bac7a32e739 100644 --- a/code/game/objects/items/devices/reverse_bear_trap.dm +++ b/code/game/objects/items/devices/reverse_bear_trap.dm @@ -21,7 +21,7 @@ var/datum/looping_sound/reverse_bear_trap/soundloop var/datum/looping_sound/reverse_bear_trap_beep/soundloop2 -/obj/item/reverse_bear_trap/Initialize() +/obj/item/reverse_bear_trap/Initialize(mapload) . = ..() soundloop = new(src) soundloop2 = new(src) diff --git a/code/game/objects/items/devices/spyglasses.dm b/code/game/objects/items/devices/spyglasses.dm index a1e22d5ffef..821871ec36b 100644 --- a/code/game/objects/items/devices/spyglasses.dm +++ b/code/game/objects/items/devices/spyglasses.dm @@ -53,7 +53,7 @@ var/cam_range = 1 var/datum/movement_detector/tracker -/obj/item/clothing/accessory/spy_bug/Initialize() +/obj/item/clothing/accessory/spy_bug/Initialize(mapload) . = ..() tracker = new /datum/movement_detector(src, CALLBACK(src, .proc/update_view)) diff --git a/code/game/objects/items/devices/taperecorder.dm b/code/game/objects/items/devices/taperecorder.dm index fd81d9f0bf1..116e22c02d8 100644 --- a/code/game/objects/items/devices/taperecorder.dm +++ b/code/game/objects/items/devices/taperecorder.dm @@ -350,7 +350,7 @@ unspool() ..() -/obj/item/tape/Initialize() +/obj/item/tape/Initialize(mapload) . = ..() initial_icon_state = icon_state //random tapes will set this after choosing their icon @@ -433,7 +433,7 @@ /obj/item/tape/random icon_state = "random_tape" -/obj/item/tape/random/Initialize() +/obj/item/tape/random/Initialize(mapload) icon_state = "tape_[pick("white", "blue", "red", "yellow", "purple", "greyscale")]" . = ..() diff --git a/code/game/objects/items/dice.dm b/code/game/objects/items/dice.dm index 9a9466097c1..20cd41277f4 100644 --- a/code/game/objects/items/dice.dm +++ b/code/game/objects/items/dice.dm @@ -64,7 +64,7 @@ var/rigged = DICE_NOT_RIGGED var/rigged_value -/obj/item/dice/Initialize() +/obj/item/dice/Initialize(mapload) . = ..() if(!result) result = roll(sides) @@ -111,7 +111,7 @@ desc = "A die with six sides. 6 TIMES 255 TIMES 255 TILE TOTAL EXISTENCE, SQUARE YOUR MIND OF EDUCATED STUPID: 2 DOES NOT EXIST." icon_state = "spaced6" -/obj/item/dice/d6/space/Initialize() +/obj/item/dice/d6/space/Initialize(mapload) . = ..() if(prob(10)) name = "spess cube" diff --git a/code/game/objects/items/drug_items.dm b/code/game/objects/items/drug_items.dm index 498d768dbbe..8e5aff7ba0a 100644 --- a/code/game/objects/items/drug_items.dm +++ b/code/game/objects/items/drug_items.dm @@ -24,7 +24,7 @@ icon_state = "moon_rock1" food_reagents = list(/datum/reagent/drug/kronkaine = 10) -/obj/item/food/drug/moon_rock/Initialize() +/obj/item/food/drug/moon_rock/Initialize(mapload) . = ..() icon_state = pick("moon_rock1", "moon_rock2", "moon_rock3") AddElement(/datum/element/swabable, CELL_LINE_TABLE_MOONICORN, CELL_VIRUS_TABLE_GENERIC_MOB, 1, 5) diff --git a/code/game/objects/items/dualsaber.dm b/code/game/objects/items/dualsaber.dm index 19f71773335..7e644ea01c3 100644 --- a/code/game/objects/items/dualsaber.dm +++ b/code/game/objects/items/dualsaber.dm @@ -98,7 +98,7 @@ user.visible_message(span_suicide("[user] begins beating [user.p_them()]self to death with \the [src]'s handle! It probably would've been cooler if [user.p_they()] turned it on first!")) return BRUTELOSS -/obj/item/dualsaber/Initialize() +/obj/item/dualsaber/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) diff --git a/code/game/objects/items/etherealdiscoball.dm b/code/game/objects/items/etherealdiscoball.dm index 552f12e1ccf..1c38c16db40 100644 --- a/code/game/objects/items/etherealdiscoball.dm +++ b/code/game/objects/items/etherealdiscoball.dm @@ -23,7 +23,7 @@ var/range = 7 var/power = 3 -/obj/structure/etherealball/Initialize() +/obj/structure/etherealball/Initialize(mapload) . = ..() update_appearance() diff --git a/code/game/objects/items/extinguisher.dm b/code/game/objects/items/extinguisher.dm index 96051097b48..d82b8ddae10 100644 --- a/code/game/objects/items/extinguisher.dm +++ b/code/game/objects/items/extinguisher.dm @@ -72,7 +72,7 @@ create_reagents(max_water, AMOUNT_VISIBLE) reagents.add_reagent(chem, max_water) -/obj/item/extinguisher/Initialize() +/obj/item/extinguisher/Initialize(mapload) . = ..() refill() diff --git a/code/game/objects/items/fireaxe.dm b/code/game/objects/items/fireaxe.dm index d365e367674..8ecda7486f0 100644 --- a/code/game/objects/items/fireaxe.dm +++ b/code/game/objects/items/fireaxe.dm @@ -23,7 +23,7 @@ bare_wound_bonus = 20 var/wielded = FALSE // track wielded status on item -/obj/item/fireaxe/Initialize() +/obj/item/fireaxe/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) diff --git a/code/game/objects/items/food/bread.dm b/code/game/objects/items/food/bread.dm index 0e1a56aef4b..56f2e9327c7 100644 --- a/code/game/objects/items/food/bread.dm +++ b/code/game/objects/items/food/bread.dm @@ -6,7 +6,7 @@ foodtypes = GRAIN eat_time = 3 SECONDS -/obj/item/food/bread/Initialize() +/obj/item/food/bread/Initialize(mapload) . = ..() AddElement(/datum/element/dunkable, 10) AddComponent(/datum/component/food_storage) @@ -19,7 +19,7 @@ eat_time = 0.5 SECONDS w_class = WEIGHT_CLASS_SMALL -/obj/item/food/breadslice/Initialize() +/obj/item/food/breadslice/Initialize(mapload) . = ..() AddElement(/datum/element/dunkable, 10) @@ -34,7 +34,7 @@ venue_value = FOOD_PRICE_CHEAP burns_in_oven = TRUE -/obj/item/food/bread/plain/Initialize() +/obj/item/food/bread/plain/Initialize(mapload) . = ..() AddComponent(/datum/component/customizable_reagent_holder, /obj/item/food/bread/empty, CUSTOM_INGREDIENT_ICON_FILL, max_ingredients = 8) @@ -50,7 +50,7 @@ venue_value = FOOD_PRICE_TRASH decomp_type = /obj/item/food/breadslice/moldy -/obj/item/food/breadslice/plain/Initialize() +/obj/item/food/breadslice/plain/Initialize(mapload) . = ..() AddComponent(/datum/component/customizable_reagent_holder, null, CUSTOM_INGREDIENT_ICON_STACK) @@ -67,7 +67,7 @@ name = "bacteria rich moldy 'bread' slice" desc = "Something (possibly necroyeast) has caused this bread to rise in a macabre state of unlife. It lurchs about when unattended. You might want to locate a priest if you see this. Or maybe a flamethrower." -/obj/item/food/breadslice/moldy/bacteria/Initialize() +/obj/item/food/breadslice/moldy/bacteria/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_MOLD, CELL_VIRUS_TABLE_GENERIC, rand(2,4), 25) @@ -215,7 +215,7 @@ foodtypes = GRAIN desc = "It's a slice of bread, customized to your wildest dreams." -/obj/item/food/breadslice/empty/Initialize() +/obj/item/food/breadslice/empty/Initialize(mapload) . = ..() AddComponent(/datum/component/customizable_reagent_holder, null, CUSTOM_INGREDIENT_ICON_FILL, max_ingredients = 8) diff --git a/code/game/objects/items/food/burgers.dm b/code/game/objects/items/food/burgers.dm index 708586694d4..ef9da617389 100644 --- a/code/game/objects/items/food/burgers.dm +++ b/code/game/objects/items/food/burgers.dm @@ -16,7 +16,7 @@ custom_price = PAYCHECK_ASSISTANT * 0.8 venue_value = FOOD_PRICE_CHEAP -/obj/item/food/burger/plain/Initialize() +/obj/item/food/burger/plain/Initialize(mapload) . = ..() if(prob(1)) new/obj/effect/particle_effect/smoke(get_turf(src)) @@ -153,7 +153,7 @@ verb_yell = "wails" venue_value = FOOD_PRICE_EXOTIC -/obj/item/food/burger/ghost/Initialize() +/obj/item/food/burger/ghost/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) @@ -397,7 +397,7 @@ foodtypes = GRAIN | MEAT | DAIRY venue_value = FOOD_PRICE_CHEAP -/obj/item/food/burger/cheese/Initialize() +/obj/item/food/burger/cheese/Initialize(mapload) . = ..() if(prob(33)) icon_state = "cheeseburgeralt" @@ -410,7 +410,7 @@ food_reagents = list(/datum/reagent/consumable/nutriment = 4, /datum/reagent/consumable/nutriment/protein = 6, /datum/reagent/consumable/capsaicin = 3, /datum/reagent/consumable/condensedcapsaicin = 3, /datum/reagent/consumable/nutriment/vitamin = 6) foodtypes = GRAIN | MEAT | DAIRY -/obj/item/food/burger/crazy/Initialize() +/obj/item/food/burger/crazy/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) diff --git a/code/game/objects/items/food/cake.dm b/code/game/objects/items/food/cake.dm index 2373960fd61..06cfca0f1a1 100644 --- a/code/game/objects/items/food/cake.dm +++ b/code/game/objects/items/food/cake.dm @@ -6,7 +6,7 @@ tastes = list("cake" = 1) foodtypes = GRAIN | DAIRY -/obj/item/food/cake/Initialize() +/obj/item/food/cake/Initialize(mapload) . = ..() AddComponent(/datum/component/food_storage) diff --git a/code/game/objects/items/food/dough.dm b/code/game/objects/items/food/dough.dm index c04bd2dd584..b2d14b6f613 100644 --- a/code/game/objects/items/food/dough.dm +++ b/code/game/objects/items/food/dough.dm @@ -42,7 +42,7 @@ foodtypes = GRAIN burns_in_oven = TRUE -/obj/item/food/pizzabread/Initialize() +/obj/item/food/pizzabread/Initialize(mapload) . = ..() AddComponent(/datum/component/customizable_reagent_holder, /obj/item/food/pizza/margherita, CUSTOM_INGREDIENT_ICON_SCATTER, max_ingredients = 12) @@ -70,7 +70,7 @@ foodtypes = GRAIN burns_in_oven = TRUE -/obj/item/food/bun/Initialize() +/obj/item/food/bun/Initialize(mapload) . = ..() AddComponent(/datum/component/customizable_reagent_holder, /obj/item/food/burger/empty, CUSTOM_INGREDIENT_ICON_STACKPLUSTOP) diff --git a/code/game/objects/items/food/egg.dm b/code/game/objects/items/food/egg.dm index fb05b662919..4be00923f6e 100644 --- a/code/game/objects/items/food/egg.dm +++ b/code/game/objects/items/food/egg.dm @@ -33,7 +33,7 @@ /obj/item/food/egg/gland desc = "An egg! It looks weird..." -/obj/item/food/egg/gland/Initialize() +/obj/item/food/egg/gland/Initialize(mapload) . = ..() reagents.add_reagent(get_random_reagent_id(), 15) diff --git a/code/game/objects/items/food/frozen.dm b/code/game/objects/items/food/frozen.dm index 47e0ee441ab..b966622a81b 100644 --- a/code/game/objects/items/food/frozen.dm +++ b/code/game/objects/items/food/frozen.dm @@ -231,7 +231,7 @@ foodtypes = DAIRY | SUGAR food_flags = FOOD_FINGER_FOOD -/obj/item/food/popsicle/Initialize() +/obj/item/food/popsicle/Initialize(mapload) . = ..() bite_consumption = reagents.total_volume / bite_states update_icon() // make sure the popsicle overlay is primed so it's not just a stick until you start eating it diff --git a/code/game/objects/items/food/lizard.dm b/code/game/objects/items/food/lizard.dm index 03f5c90293c..09608ac78c9 100644 --- a/code/game/objects/items/food/lizard.dm +++ b/code/game/objects/items/food/lizard.dm @@ -12,7 +12,7 @@ foodtypes = MEAT w_class = WEIGHT_CLASS_SMALL -/obj/item/food/raw_tiziran_sausage/Initialize() +/obj/item/food/raw_tiziran_sausage/Initialize(mapload) . = ..() AddElement(/datum/element/dryable, /obj/item/food/tiziran_sausage) @@ -36,7 +36,7 @@ foodtypes = MEAT | GROSS w_class = WEIGHT_CLASS_SMALL -/obj/item/food/raw_headcheese/Initialize() +/obj/item/food/raw_headcheese/Initialize(mapload) . = ..() AddElement(/datum/element/dryable, /obj/item/food/headcheese) @@ -357,7 +357,7 @@ venue_value = FOOD_PRICE_CHEAP burns_in_oven = TRUE -/obj/item/food/bread/root/Initialize() +/obj/item/food/bread/root/Initialize(mapload) . = ..() AddComponent(/datum/component/customizable_reagent_holder, /obj/item/food/bread/empty, CUSTOM_INGREDIENT_ICON_FILL, max_ingredients = 8) @@ -374,7 +374,7 @@ foodtypes = VEGETABLES | NUTS venue_value = FOOD_PRICE_TRASH -/obj/item/food/breadslice/root/Initialize() +/obj/item/food/breadslice/root/Initialize(mapload) . = ..() AddComponent(/datum/component/customizable_reagent_holder, null, CUSTOM_INGREDIENT_ICON_STACK) diff --git a/code/game/objects/items/food/meat.dm b/code/game/objects/items/food/meat.dm index df53717a7ae..b5e38884ecc 100644 --- a/code/game/objects/items/food/meat.dm +++ b/code/game/objects/items/food/meat.dm @@ -32,7 +32,7 @@ /// Cytology category you can swab the meat for. var/cell_line = CELL_LINE_TABLE_CARP -/obj/item/food/fishmeat/carp/Initialize() +/obj/item/food/fishmeat/carp/Initialize(mapload) . = ..() if(cell_line) AddElement(/datum/element/swabable, cell_line, CELL_VIRUS_TABLE_GENERIC_MOB) @@ -482,7 +482,7 @@ //total price of this dish is 20 and a small amount more for soy sauce, all of which are available at the orders console venue_value = FOOD_PRICE_CHEAP -/obj/item/food/sashimi/Initialize() +/obj/item/food/sashimi/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_CARP, CELL_VIRUS_TABLE_GENERIC_MOB) @@ -495,7 +495,7 @@ w_class = WEIGHT_CLASS_TINY venue_value = FOOD_PRICE_CHEAP -/obj/item/food/nugget/Initialize() +/obj/item/food/nugget/Initialize(mapload) . = ..() var/shape = pick("lump", "star", "lizard", "corgi") desc = "A 'chicken' nugget vaguely shaped like a [shape]." @@ -621,7 +621,7 @@ ///Legacy code, handles the coloring of the overlay of the cutlets made from this. var/slab_color = "#FF0000" -/obj/item/food/meat/slab/Initialize() +/obj/item/food/meat/slab/Initialize(mapload) . = ..() AddElement(/datum/element/dryable, /obj/item/food/sosjerky/healthy) @@ -751,7 +751,7 @@ desc = "A slab of mouse meat. Best not eat it raw." foodtypes = RAW | MEAT | GROSS -/obj/item/food/meat/slab/mouse/Initialize() +/obj/item/food/meat/slab/mouse/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_MOUSE, CELL_VIRUS_TABLE_GENERIC_MOB) @@ -761,7 +761,7 @@ tastes = list("meat" = 4, "a fondness for wearing hats" = 1) foodtypes = RAW | MEAT | GROSS -/obj/item/food/meat/slab/corgi/Initialize() +/obj/item/food/meat/slab/corgi/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_CORGI, CELL_VIRUS_TABLE_GENERIC_MOB) @@ -770,7 +770,7 @@ desc = "Tastes like... well you know..." foodtypes = RAW | MEAT | GROSS -/obj/item/food/meat/slab/pug/Initialize() +/obj/item/food/meat/slab/pug/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_PUG, CELL_VIRUS_TABLE_GENERIC_MOB) @@ -802,7 +802,7 @@ /obj/item/food/meat/slab/bear/MakeGrillable() AddComponent(/datum/component/grillable, /obj/item/food/meat/steak/bear, rand(40 SECONDS, 70 SECONDS), TRUE, TRUE) -/obj/item/food/meat/slab/bear/Initialize() +/obj/item/food/meat/slab/bear/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_BEAR, CELL_VIRUS_TABLE_GENERIC_MOB) @@ -945,7 +945,7 @@ /obj/item/food/meat/slab/chicken/MakeGrillable() AddComponent(/datum/component/grillable, /obj/item/food/meat/steak/chicken, rand(30 SECONDS, 90 SECONDS), TRUE, TRUE) //Add medium rare later maybe? (no this is chicken) -/obj/item/food/meat/slab/chicken/Initialize() +/obj/item/food/meat/slab/chicken/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_CHICKEN, CELL_VIRUS_TABLE_GENERIC_MOB) ////////////////////////////////////// MEAT STEAKS /////////////////////////////////////////////////////////// @@ -959,7 +959,7 @@ tastes = list("meat" = 1) burns_on_grill = TRUE -/obj/item/food/meat/steak/Initialize() +/obj/item/food/meat/steak/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_ITEM_MICROWAVE_COOKED, .proc/OnMicrowaveCooked) @@ -1107,7 +1107,7 @@ name = "raw bear cutlet" tastes = list("meat" = 1, "salmon" = 1) -/obj/item/food/meat/rawcutlet/bear/Initialize() +/obj/item/food/meat/rawcutlet/bear/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_BEAR, CELL_VIRUS_TABLE_GENERIC_MOB) @@ -1146,7 +1146,7 @@ /obj/item/food/meat/rawcutlet/chicken/MakeGrillable() AddComponent(/datum/component/grillable, /obj/item/food/meat/cutlet/chicken, rand(35 SECONDS, 50 SECONDS), TRUE, TRUE) -/obj/item/food/meat/rawcutlet/chicken/Initialize() +/obj/item/food/meat/rawcutlet/chicken/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_CHICKEN, CELL_VIRUS_TABLE_GENERIC_MOB) @@ -1162,7 +1162,7 @@ foodtypes = MEAT burns_on_grill = TRUE -/obj/item/food/meat/cutlet/Initialize() +/obj/item/food/meat/cutlet/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_ITEM_MICROWAVE_COOKED, .proc/OnMicrowaveCooked) @@ -1227,7 +1227,7 @@ junkiness = 25 w_class = WEIGHT_CLASS_SMALL -/obj/item/food/fried_chicken/Initialize() +/obj/item/food/fried_chicken/Initialize(mapload) . = ..() if(prob(50)) icon_state = "fried_chicken2" diff --git a/code/game/objects/items/food/misc.dm b/code/game/objects/items/food/misc.dm index dc4d1ad523c..b41810a9213 100644 --- a/code/game/objects/items/food/misc.dm +++ b/code/game/objects/items/food/misc.dm @@ -10,7 +10,7 @@ w_class = WEIGHT_CLASS_NORMAL rat_heal = 35 -/obj/item/food/cheese/wheel/Initialize() +/obj/item/food/cheese/wheel/Initialize(mapload) . = ..() AddComponent(/datum/component/food_storage) @@ -37,7 +37,7 @@ /// used to determine how much health rats/regal rats recover when they eat it. var/rat_heal = 10 -/obj/item/food/cheese/Initialize() +/obj/item/food/cheese/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_RAT_INTERACT, .proc/on_rat_eat) @@ -130,7 +130,7 @@ w_class = WEIGHT_CLASS_SMALL venue_value = FOOD_PRICE_CHEAP -/obj/item/food/fries/Initialize() +/obj/item/food/fries/Initialize(mapload) . = ..() AddElement(/datum/element/dunkable, 10) @@ -144,7 +144,7 @@ food_flags = FOOD_FINGER_FOOD w_class = WEIGHT_CLASS_SMALL -/obj/item/food/tatortot/Initialize() +/obj/item/food/tatortot/Initialize(mapload) . = ..() AddElement(/datum/element/dunkable, 10) @@ -169,7 +169,7 @@ w_class = WEIGHT_CLASS_SMALL venue_value = FOOD_PRICE_CHEAP -/obj/item/food/cheesyfries/Initialize() +/obj/item/food/cheesyfries/Initialize(mapload) . = ..() AddElement(/datum/element/dunkable, 10) @@ -183,7 +183,7 @@ w_class = WEIGHT_CLASS_SMALL venue_value = FOOD_PRICE_CHEAP -/obj/item/food/poutine/Initialize() +/obj/item/food/poutine/Initialize(mapload) . = ..() AddElement(/datum/element/dunkable, 10) @@ -196,7 +196,7 @@ w_class = WEIGHT_CLASS_SMALL preserved_food = TRUE //Can't decompose any more than this -/obj/item/food/badrecipe/Initialize() +/obj/item/food/badrecipe/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_ITEM_GRILLED, .proc/OnGrill) @@ -209,7 +209,7 @@ name = "bacteria rich moldy mess" desc = "Not only is this rancid lump of disgusting bile crawling with insect life, but it is also teeming with various microscopic cultures. It moves when you're not looking." -/obj/item/food/badrecipe/moldy/bacteria/Initialize() +/obj/item/food/badrecipe/moldy/bacteria/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_MOLD, CELL_VIRUS_TABLE_GENERIC, rand(2,4), 25) @@ -228,7 +228,7 @@ foodtypes = VEGETABLES w_class = WEIGHT_CLASS_SMALL -/obj/item/food/carrotfries/Initialize() +/obj/item/food/carrotfries/Initialize(mapload) . = ..() AddElement(/datum/element/dunkable, 10) @@ -281,7 +281,7 @@ food_flags = FOOD_FINGER_FOOD slot_flags = ITEM_SLOT_MASK -/obj/item/food/spiderlollipop/Initialize() +/obj/item/food/spiderlollipop/Initialize(mapload) . = ..() AddElement(/datum/element/chewable) @@ -408,7 +408,7 @@ slot_flags = ITEM_SLOT_MASK w_class = WEIGHT_CLASS_TINY -/obj/item/food/lollipop/Initialize() +/obj/item/food/lollipop/Initialize(mapload) . = ..() head = mutable_appearance('icons/obj/lollipop.dmi', "lollipop_head") change_head_color(rgb(rand(0, 255), rand(0, 255), rand(0, 255))) @@ -443,7 +443,7 @@ /// The amount to metabolize per second var/metabolization_amount = REAGENTS_METABOLISM / 2 -/obj/item/food/bubblegum/Initialize() +/obj/item/food/bubblegum/Initialize(mapload) . = ..() AddElement(/datum/element/chewable, metabolization_amount = metabolization_amount) @@ -514,7 +514,7 @@ slot_flags = ITEM_SLOT_MASK w_class = WEIGHT_CLASS_TINY -/obj/item/food/gumball/Initialize() +/obj/item/food/gumball/Initialize(mapload) . = ..() color = rgb(rand(0, 255), rand(0, 255), rand(0, 255)) AddElement(/datum/element/chewable) diff --git a/code/game/objects/items/food/pastries.dm b/code/game/objects/items/food/pastries.dm index 786ba26081f..f2b730a17f1 100644 --- a/code/game/objects/items/food/pastries.dm +++ b/code/game/objects/items/food/pastries.dm @@ -20,7 +20,7 @@ var/extra_reagent = null var/decorated_adjective = "sprinkled" -/obj/item/food/donut/Initialize() +/obj/item/food/donut/Initialize(mapload) . = ..() AddElement(/datum/element/dunkable, amount_per_dunk = 10) if(prob(DONUT_SPRINKLE_CHANCE)) @@ -70,7 +70,7 @@ tastes = list("donut" = 3, "chaos" = 1) is_decorated = TRUE -/obj/item/food/donut/chaos/Initialize() +/obj/item/food/donut/chaos/Initialize(mapload) . = ..() extra_reagent = pick(/datum/reagent/consumable/nutriment, /datum/reagent/consumable/capsaicin, /datum/reagent/consumable/frostoil, /datum/reagent/drug/krokodil, /datum/reagent/toxin/plasma, /datum/reagent/consumable/coco, /datum/reagent/toxin/slimejelly, /datum/reagent/consumable/banana, /datum/reagent/consumable/berryjuice, /datum/reagent/medicine/omnizine) reagents.add_reagent(extra_reagent, 3) @@ -171,7 +171,7 @@ /obj/item/food/donut/jelly/in_box_sprite() return "[replacetext(icon_state, "jelly", "donut")]_inbox" -/obj/item/food/donut/jelly/Initialize() +/obj/item/food/donut/jelly/Initialize(mapload) . = ..() if(extra_reagent) reagents.add_reagent(extra_reagent, 3) @@ -574,7 +574,7 @@ food_flags = FOOD_FINGER_FOOD w_class = WEIGHT_CLASS_SMALL -/obj/item/food/cookie/Initialize() +/obj/item/food/cookie/Initialize(mapload) . = ..() AddElement(/datum/element/dunkable, 10) @@ -611,7 +611,7 @@ food_flags = FOOD_FINGER_FOOD w_class = WEIGHT_CLASS_SMALL -/obj/item/food/plumphelmetbiscuit/Initialize() +/obj/item/food/plumphelmetbiscuit/Initialize(mapload) var/fey = prob(10) if(fey) name = "exceptional plump helmet biscuit" @@ -649,7 +649,7 @@ tastes = list("sweetness" = 1) foodtypes = GRAIN | JUNKFOOD | SUGAR -/obj/item/food/cookie/sugar/Initialize() +/obj/item/food/cookie/sugar/Initialize(mapload) . = ..() if(SSevents.holidays && SSevents.holidays[FESTIVE_SEASON]) var/shape = pick("tree", "bear", "santa", "stocking", "present", "cane") @@ -777,7 +777,7 @@ food_reagents = list(/datum/reagent/consumable/nutriment = 6, /datum/reagent/consumable/nutriment/vitamin = 5) tastes = list("pancakes" = 1, "chocolate" = 1) -/obj/item/food/pancakes/Initialize() +/obj/item/food/pancakes/Initialize(mapload) . = ..() update_appearance() diff --git a/code/game/objects/items/food/pie.dm b/code/game/objects/items/food/pie.dm index 4296b202e35..8f667710d78 100644 --- a/code/game/objects/items/food/pie.dm +++ b/code/game/objects/items/food/pie.dm @@ -113,7 +113,7 @@ tastes = list("pie" = 1, "mushroom" = 1) foodtypes = GRAIN | VEGETABLES -/obj/item/food/pie/plump_pie/Initialize() +/obj/item/food/pie/plump_pie/Initialize(mapload) var/fey = prob(10) if(fey) name = "exceptional plump pie" diff --git a/code/game/objects/items/food/pizza.dm b/code/game/objects/items/food/pizza.dm index 6770c27d869..de66783420b 100644 --- a/code/game/objects/items/food/pizza.dm +++ b/code/game/objects/items/food/pizza.dm @@ -70,7 +70,7 @@ tastes = list("crust" = 1, "tomato" = 1, "cheese" = 1) foodtypes = GRAIN | VEGETABLES | DAIRY -/obj/item/food/pizzaslice/margherita/Initialize() +/obj/item/food/pizzaslice/margherita/Initialize(mapload) . = ..() AddComponent(/datum/component/customizable_reagent_holder, null, CUSTOM_INGREDIENT_ICON_FILL, max_ingredients = 12) @@ -284,7 +284,7 @@ name = "bacteria rich moldy pizza slice" desc = "Not only is this once delicious pizza encrusted with a layer of spore-spewing fungus, it also seems to shift and slide when unattended, teeming with new life." -/obj/item/food/pizzaslice/moldy/bacteria/Initialize() +/obj/item/food/pizzaslice/moldy/bacteria/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_MOLD, CELL_VIRUS_TABLE_GENERIC, rand(2,4), 25) diff --git a/code/game/objects/items/food/salad.dm b/code/game/objects/items/food/salad.dm index 35672d395db..38bb8e2cda9 100644 --- a/code/game/objects/items/food/salad.dm +++ b/code/game/objects/items/food/salad.dm @@ -137,7 +137,7 @@ w_class = WEIGHT_CLASS_NORMAL custom_price = PAYCHECK_ASSISTANT * 0.6 -/obj/item/reagent_containers/glass/bowl/Initialize() +/obj/item/reagent_containers/glass/bowl/Initialize(mapload) . = ..() AddComponent(/datum/component/customizable_reagent_holder, /obj/item/food/salad/empty, CUSTOM_INGREDIENT_ICON_FILL, max_ingredients = 6) diff --git a/code/game/objects/items/food/snacks.dm b/code/game/objects/items/food/snacks.dm index b0bd328d8d8..1b7bf9885f0 100644 --- a/code/game/objects/items/food/snacks.dm +++ b/code/game/objects/items/food/snacks.dm @@ -240,7 +240,7 @@ GLOBAL_LIST_INIT(safe_peanut_types, populate_safe_peanut_types()) continue . += peanut_type -/obj/item/food/peanuts/random/Initialize() +/obj/item/food/peanuts/random/Initialize(mapload) // Generate a sample p var/peanut_type = pick(GLOB.safe_peanut_types) var/obj/item/food/sample = new peanut_type(loc) @@ -299,7 +299,7 @@ GLOBAL_LIST_INIT(safe_peanut_types, populate_safe_peanut_types()) name = "mystery filled C&Ds" desc = "Filled with one of four delicious flavours!" -/obj/item/food/cnds/random/Initialize() +/obj/item/food/cnds/random/Initialize(mapload) var/random_flavour = pick(subtypesof(/obj/item/food/cnds) - /obj/item/food/cnds/random) var/obj/item/food/sample = new random_flavour(loc) diff --git a/code/game/objects/items/food/soup.dm b/code/game/objects/items/food/soup.dm index be857b95a5d..9031e9ff5c8 100644 --- a/code/game/objects/items/food/soup.dm +++ b/code/game/objects/items/food/soup.dm @@ -17,7 +17,7 @@ food_reagents = list(/datum/reagent/water = 10) tastes = list("wishes" = 1) -/obj/item/food/soup/wish/Initialize() +/obj/item/food/soup/wish/Initialize(mapload) . = ..() var/wish_true = prob(25) if(wish_true) @@ -93,7 +93,7 @@ food_reagents = list(/datum/reagent/consumable/nutriment = 2, /datum/reagent/consumable/nutriment/protein = 5) tastes = list("chaos" = 1) -/obj/item/food/soup/mystery/Initialize() +/obj/item/food/soup/mystery/Initialize(mapload) . = ..() var/extra_reagent = null extra_reagent = pick( @@ -183,7 +183,7 @@ food_reagents = list(/datum/reagent/consumable/nutriment = 9, /datum/reagent/water = 5, /datum/reagent/consumable/nutriment/vitamin = 6) foodtypes = VEGETABLES -/obj/item/food/soup/beet/Initialize() +/obj/item/food/soup/beet/Initialize(mapload) . = ..() name = pick("borsch","bortsch","borstch","borsh","borshch","borscht") tastes = list(name = 1) diff --git a/code/game/objects/items/food/spaghetti.dm b/code/game/objects/items/food/spaghetti.dm index f6b7fc99769..436635d7817 100644 --- a/code/game/objects/items/food/spaghetti.dm +++ b/code/game/objects/items/food/spaghetti.dm @@ -5,7 +5,7 @@ foodtypes = GRAIN venue_value = FOOD_PRICE_CHEAP -/obj/item/food/spaghetti/Initialize() +/obj/item/food/spaghetti/Initialize(mapload) . = ..() if(!microwaved_type) // This isn't cooked, why would you put uncooked spaghetti in your pocket? var/list/display_message = list( @@ -27,7 +27,7 @@ food_reagents = list(/datum/reagent/consumable/nutriment = 2, /datum/reagent/consumable/nutriment/vitamin = 1) -/obj/item/food/spaghetti/boiledspaghetti/Initialize() +/obj/item/food/spaghetti/boiledspaghetti/Initialize(mapload) . = ..() AddComponent(/datum/component/customizable_reagent_holder, null, CUSTOM_INGREDIENT_ICON_SCATTER, max_ingredients = 6) diff --git a/code/game/objects/items/gift.dm b/code/game/objects/items/gift.dm index 42c3e72d139..9f944aa63d0 100644 --- a/code/game/objects/items/gift.dm +++ b/code/game/objects/items/gift.dm @@ -20,7 +20,7 @@ GLOBAL_LIST_EMPTY(possible_gifts) var/obj/item/contains_type -/obj/item/a_gift/Initialize() +/obj/item/a_gift/Initialize(mapload) . = ..() pixel_x = rand(-10,10) pixel_y = rand(-10,10) diff --git a/code/game/objects/items/granters.dm b/code/game/objects/items/granters.dm index 9554f19582d..711083c612d 100644 --- a/code/game/objects/items/granters.dm +++ b/code/game/objects/items/granters.dm @@ -304,7 +304,7 @@ /obj/item/book/granter/spell/random icon_state = "random_book" -/obj/item/book/granter/spell/random/Initialize() +/obj/item/book/granter/spell/random/Initialize(mapload) . = ..() var/static/banned_spells = list(/obj/item/book/granter/spell/mimery_blockade, /obj/item/book/granter/spell/mimery_guns) var/real_type = pick(subtypesof(/obj/item/book/granter/spell) - banned_spells) diff --git a/code/game/objects/items/grenades/chem_grenade.dm b/code/game/objects/items/grenades/chem_grenade.dm index ed6819fc691..ecbbf7cf4fa 100644 --- a/code/game/objects/items/grenades/chem_grenade.dm +++ b/code/game/objects/items/grenades/chem_grenade.dm @@ -20,7 +20,7 @@ . = ..() AddElement(/datum/element/empprotection, EMP_PROTECT_WIRES) -/obj/item/grenade/chem_grenade/Initialize() +/obj/item/grenade/chem_grenade/Initialize(mapload) . = ..() create_reagents(1000) stage_change() // If no argument is set, it will change the stage to the current stage, useful for stock grenades that start READY. @@ -312,7 +312,7 @@ desc = "Used for emergency sealing of hull breaches." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/metalfoam/Initialize() +/obj/item/grenade/chem_grenade/metalfoam/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/B2 = new(src) @@ -330,7 +330,7 @@ desc = "Used for emergency sealing of hull breaches, while keeping areas accessible." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/smart_metal_foam/Initialize() +/obj/item/grenade/chem_grenade/smart_metal_foam/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/large/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/B2 = new(src) @@ -348,7 +348,7 @@ desc = "Used for clearing rooms of living things." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/incendiary/Initialize() +/obj/item/grenade/chem_grenade/incendiary/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/B2 = new(src) @@ -366,7 +366,7 @@ desc = "Used for purging large areas of invasive plant species. Contents under pressure. Do not directly inhale contents." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/antiweed/Initialize() +/obj/item/grenade/chem_grenade/antiweed/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/B2 = new(src) @@ -385,7 +385,7 @@ desc = "BLAM!-brand foaming space cleaner. In a special applicator for rapid cleaning of wide areas." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/cleaner/Initialize() +/obj/item/grenade/chem_grenade/cleaner/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/B2 = new(src) @@ -403,7 +403,7 @@ desc = "Waffle Co.-brand foaming space cleaner. In a special applicator for rapid cleaning of wide areas." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/ez_clean/Initialize() +/obj/item/grenade/chem_grenade/ez_clean/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/large/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/large/B2 = new(src) @@ -422,7 +422,7 @@ desc = "Used for nonlethal riot control. Contents under pressure. Do not directly inhale contents." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/teargas/Initialize() +/obj/item/grenade/chem_grenade/teargas/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/large/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/large/B2 = new(src) @@ -441,7 +441,7 @@ desc = "Used for melting armoured opponents." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/facid/Initialize() +/obj/item/grenade/chem_grenade/facid/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/bluespace/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/bluespace/B2 = new(src) @@ -461,7 +461,7 @@ desc = "Used for wide scale painting projects." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/colorful/Initialize() +/obj/item/grenade/chem_grenade/colorful/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/B2 = new(src) @@ -480,7 +480,7 @@ stage = GRENADE_READY var/glitter_type = /datum/reagent/glitter -/obj/item/grenade/chem_grenade/glitter/Initialize() +/obj/item/grenade/chem_grenade/glitter/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/B2 = new(src) @@ -513,7 +513,7 @@ desc = "BURN!-brand foaming clf3. In a special applicator for rapid purging of wide areas." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/clf3/Initialize() +/obj/item/grenade/chem_grenade/clf3/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/bluespace/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/bluespace/B2 = new(src) @@ -531,7 +531,7 @@ desc = "Tiger Cooperative chemical foam grenade. Causes temporary irration, blindness, confusion, mutism, and mutations to carbon based life forms. Contains additional spore toxin." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/bioterrorfoam/Initialize() +/obj/item/grenade/chem_grenade/bioterrorfoam/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/bluespace/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/bluespace/B2 = new(src) @@ -551,7 +551,7 @@ desc = "WARNING: GRENADE WILL RELEASE DEADLY SPORES CONTAINING ACTIVE AGENTS. SEAL SUIT AND AIRFLOW BEFORE USE." stage = GRENADE_READY -/obj/item/grenade/chem_grenade/tuberculosis/Initialize() +/obj/item/grenade/chem_grenade/tuberculosis/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/bluespace/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/bluespace/B2 = new(src) @@ -571,7 +571,7 @@ icon_state = "holy_grenade" stage = GRENADE_READY -/obj/item/grenade/chem_grenade/holy/Initialize() +/obj/item/grenade/chem_grenade/holy/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/meta/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/meta/B2 = new(src) diff --git a/code/game/objects/items/grenades/clusterbuster.dm b/code/game/objects/items/grenades/clusterbuster.dm index 1d84f885f01..5c823544316 100644 --- a/code/game/objects/items/grenades/clusterbuster.dm +++ b/code/game/objects/items/grenades/clusterbuster.dm @@ -175,7 +175,7 @@ /obj/item/grenade/clusterbuster/random icon_state = "random_clusterbang" -/obj/item/grenade/clusterbuster/random/Initialize() +/obj/item/grenade/clusterbuster/random/Initialize(mapload) ..() var/real_type = pick(subtypesof(/obj/item/grenade/clusterbuster)) new real_type(loc) diff --git a/code/game/objects/items/grenades/ghettobomb.dm b/code/game/objects/items/grenades/ghettobomb.dm index e9f2006c058..5d1861556a9 100644 --- a/code/game/objects/items/grenades/ghettobomb.dm +++ b/code/game/objects/items/grenades/ghettobomb.dm @@ -20,7 +20,7 @@ var/range = 3 var/list/times -/obj/item/grenade/iedcasing/Initialize() +/obj/item/grenade/iedcasing/Initialize(mapload) . = ..() add_overlay("improvised_grenade_filled") add_overlay("improvised_grenade_wired") @@ -37,7 +37,7 @@ /obj/item/grenade/iedcasing/spawned check_parts = TRUE -/obj/item/grenade/iedcasing/spawned/Initialize() +/obj/item/grenade/iedcasing/spawned/Initialize(mapload) new /obj/item/reagent_containers/food/drinks/soda_cans/random(src) return ..() diff --git a/code/game/objects/items/grenades/plastic.dm b/code/game/objects/items/grenades/plastic.dm index 668f00827e1..f4aab6682fc 100644 --- a/code/game/objects/items/grenades/plastic.dm +++ b/code/game/objects/items/grenades/plastic.dm @@ -19,7 +19,7 @@ var/boom_sizes = list(0, 0, 3) var/full_damage_on_mobs = FALSE -/obj/item/grenade/c4/Initialize() +/obj/item/grenade/c4/Initialize(mapload) . = ..() plastic_overlay = mutable_appearance(icon, "[inhand_icon_state]2", HIGH_OBJ_LAYER) wires = new /datum/wires/explosive/c4(src) diff --git a/code/game/objects/items/grenades/smokebomb.dm b/code/game/objects/items/grenades/smokebomb.dm index ee1a6dff1a8..eac98417fa7 100644 --- a/code/game/objects/items/grenades/smokebomb.dm +++ b/code/game/objects/items/grenades/smokebomb.dm @@ -14,7 +14,7 @@ var/static/list/bruh_moment = list("Dank", "Hip", "Lit", "Based", "Robust", "Bruh", "Gamer") ///Here we generate the extremely insightful description. -/obj/item/grenade/smokebomb/Initialize() +/obj/item/grenade/smokebomb/Initialize(mapload) . = ..() desc = "The word '[pick(bruh_moment)]' is scribbled on it in crayon." diff --git a/code/game/objects/items/hand_items.dm b/code/game/objects/items/hand_items.dm index 7e2f3f4d565..dbc9ca7a8b7 100644 --- a/code/game/objects/items/hand_items.dm +++ b/code/game/objects/items/hand_items.dm @@ -10,7 +10,7 @@ attack_verb_continuous = list("bops") attack_verb_simple = list("bop") -/obj/item/circlegame/Initialize() +/obj/item/circlegame/Initialize(mapload) . = ..() var/mob/living/owner = loc if(!istype(owner)) diff --git a/code/game/objects/items/handcuffs.dm b/code/game/objects/items/handcuffs.dm index d941671ddb6..3d75e5d1411 100644 --- a/code/game/objects/items/handcuffs.dm +++ b/code/game/objects/items/handcuffs.dm @@ -300,7 +300,7 @@ ///How much damage the trap deals when triggered. var/trap_damage = 20 -/obj/item/restraints/legcuffs/beartrap/Initialize() +/obj/item/restraints/legcuffs/beartrap/Initialize(mapload) . = ..() update_appearance() var/static/list/loc_connections = list( @@ -389,7 +389,7 @@ item_flags = DROPDEL flags_1 = NONE -/obj/item/restraints/legcuffs/beartrap/energy/Initialize() +/obj/item/restraints/legcuffs/beartrap/energy/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/dissipate), 100) @@ -475,7 +475,7 @@ breakouttime = 6 SECONDS custom_price = PAYCHECK_HARD * 0.35 -/obj/item/restraints/legcuffs/bola/energy/Initialize() +/obj/item/restraints/legcuffs/bola/energy/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_UNCATCHABLE, TRAIT_GENERIC) // People said energy bolas being uncatchable is a feature. diff --git a/code/game/objects/items/his_grace.dm b/code/game/objects/items/his_grace.dm index 79b0c8096a2..4d218014c67 100644 --- a/code/game/objects/items/his_grace.dm +++ b/code/game/objects/items/his_grace.dm @@ -27,7 +27,7 @@ var/victims_needed = 25 var/ascend_bonus = 15 -/obj/item/his_grace/Initialize() +/obj/item/his_grace/Initialize(mapload) . = ..() START_PROCESSING(SSprocessing, src) SSpoints_of_interest.make_point_of_interest(src) diff --git a/code/game/objects/items/holy_weapons.dm b/code/game/objects/items/holy_weapons.dm index 6fa61230bbc..eb14f421686 100644 --- a/code/game/objects/items/holy_weapons.dm +++ b/code/game/objects/items/holy_weapons.dm @@ -150,7 +150,7 @@ /// Short description of what this item is capable of, for radial menu uses var/menu_description = "A standard chaplain's weapon. Fits in pockets. Can be worn on the belt." -/obj/item/nullrod/Initialize() +/obj/item/nullrod/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, TRUE, TRUE, FALSE, null, null, FALSE) AddElement(/datum/element/bane, /mob/living/simple_animal/revenant, 0, 25, FALSE) @@ -230,7 +230,7 @@ attack_verb_simple = list("punch", "cross counter", "pummel") menu_description = "An undroppable god hand dealing burn damage. Disappears if the arm holding it is cut off." -/obj/item/nullrod/godhand/Initialize() +/obj/item/nullrod/godhand/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, HAND_REPLACEMENT_TRAIT) @@ -403,7 +403,7 @@ attack_verb_simple = list("chop", "slice", "cut", "reap") menu_description = "A sharp scythe which partially penetrates armor. Very effective at butchering bodies. Can be worn on the back." -/obj/item/nullrod/scythe/Initialize() +/obj/item/nullrod/scythe/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 70, 110) //the harvest gives a high bonus chance @@ -445,7 +445,7 @@ hitsound = 'sound/weapons/rapierhit.ogg' menu_description = "A sharp blade which partially penetrates armor. Able to awaken a friendly spirit to provide guidance. Very effective at butchering bodies. Can be worn on the back." -/obj/item/nullrod/scythe/talking/Initialize() +/obj/item/nullrod/scythe/talking/Initialize(mapload) . = ..() AddComponent(/datum/component/spirit_holding) @@ -478,7 +478,7 @@ attack_verb_simple = list("smash", "bash", "hammer", "crunch") menu_description = "A war hammer. Capable of tapping knees to measure brain health. Can be worn on the belt." -/obj/item/nullrod/hammer/Initialize() +/obj/item/nullrod/hammer/Initialize(mapload) . = ..() AddElement(/datum/element/kneejerk) @@ -500,7 +500,7 @@ toolspeed = 2 //slower than a real saw menu_description = "An undroppable sharp chainsaw hand. Can be used as a very slow saw tool. Capable of slowly butchering bodies. Disappears if the arm holding it is cut off." -/obj/item/nullrod/chainsaw/Initialize() +/obj/item/nullrod/chainsaw/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, HAND_REPLACEMENT_TRAIT) AddComponent(/datum/component/butchering, 30, 100, 0, hitsound) @@ -537,7 +537,7 @@ hitsound = 'sound/weapons/blade1.ogg' menu_description = "A hammer dealing a little less damage due to it's user's pride. Has a low chance of transferring some of the user's reagents to the target. Capable of tapping knees to measure brain health. Can be worn on the back." -/obj/item/nullrod/pride_hammer/Initialize() +/obj/item/nullrod/pride_hammer/Initialize(mapload) . = ..() AddElement(/datum/element/kneejerk) AddElement( @@ -595,7 +595,7 @@ bare_wound_bonus = 25 menu_description = "An undroppable sharp armblade capable of inflicting deep wounds. Capable of an ineffective butchering of bodies. Disappears if the arm holding it is cut off." -/obj/item/nullrod/armblade/Initialize() +/obj/item/nullrod/armblade/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, HAND_REPLACEMENT_TRAIT) AddComponent(/datum/component/butchering, 80, 70) @@ -621,7 +621,7 @@ hitsound = 'sound/weapons/bite.ogg' menu_description = "A plushie dealing a little less damage due to it's cute form. Capable of blessing one person with the Carp-Sie favor, which grants friendship of all wild space carps. Fits in pockets. Can be worn on the belt." -/obj/item/nullrod/carp/Initialize() +/obj/item/nullrod/carp/Initialize(mapload) . = ..() AddComponent(/datum/component/faction_granter, "carp", holy_role_required = HOLY_ROLE_PRIEST, grant_message = span_boldnotice("You are blessed by Carp-Sie. Wild space carp will no longer attack you.")) diff --git a/code/game/objects/items/implants/implant_chem.dm b/code/game/objects/items/implants/implant_chem.dm index 5a9febf757d..62214b6a6d9 100644 --- a/code/game/objects/items/implants/implant_chem.dm +++ b/code/game/objects/items/implants/implant_chem.dm @@ -20,7 +20,7 @@ Integrity: Implant will last so long as the subject is alive."} return dat -/obj/item/implant/chem/Initialize() +/obj/item/implant/chem/Initialize(mapload) . = ..() create_reagents(50, OPENCONTAINER) GLOB.tracked_chem_implants += src diff --git a/code/game/objects/items/implants/implant_stealth.dm b/code/game/objects/items/implants/implant_stealth.dm index aa0b51efcc1..66d3f2328df 100644 --- a/code/game/objects/items/implants/implant_stealth.dm +++ b/code/game/objects/items/implants/implant_stealth.dm @@ -20,7 +20,7 @@ /obj/structure/closet/cardboard/agent/proc/go_invisible() animate(src, , alpha = 0, time = 20) -/obj/structure/closet/cardboard/agent/Initialize() +/obj/structure/closet/cardboard/agent/Initialize(mapload) . = ..() go_invisible() diff --git a/code/game/objects/items/implants/implant_track.dm b/code/game/objects/items/implants/implant_track.dm index dc6845b168e..3b362f2fe72 100644 --- a/code/game/objects/items/implants/implant_track.dm +++ b/code/game/objects/items/implants/implant_track.dm @@ -15,7 +15,7 @@ var/lifespan = 3000 //how many deciseconds does the implant last? allow_teleport = FALSE -/obj/item/implant/tracking/c38/Initialize() +/obj/item/implant/tracking/c38/Initialize(mapload) . = ..() timerid = QDEL_IN(src, lifespan) @@ -23,7 +23,7 @@ deltimer(timerid) return ..() -/obj/item/implant/tracking/Initialize() +/obj/item/implant/tracking/Initialize(mapload) . = ..() GLOB.tracked_implants += src diff --git a/code/game/objects/items/implants/implantchair.dm b/code/game/objects/items/implants/implantchair.dm index d7d203a80da..51ee04ec7d4 100644 --- a/code/game/objects/items/implants/implantchair.dm +++ b/code/game/objects/items/implants/implantchair.dm @@ -21,7 +21,7 @@ var/message_cooldown var/breakout_time = 600 -/obj/machinery/implantchair/Initialize() +/obj/machinery/implantchair/Initialize(mapload) . = ..() open_machine() update_appearance() diff --git a/code/game/objects/items/inducer.dm b/code/game/objects/items/inducer.dm index 5beaf479e07..21322cdba2b 100644 --- a/code/game/objects/items/inducer.dm +++ b/code/game/objects/items/inducer.dm @@ -13,7 +13,7 @@ var/obj/item/stock_parts/cell/cell var/recharging = FALSE -/obj/item/inducer/Initialize() +/obj/item/inducer/Initialize(mapload) . = ..() if(!cell && cell_type) cell = new cell_type @@ -179,7 +179,7 @@ powertransfer = 500 opened = TRUE -/obj/item/inducer/sci/Initialize() +/obj/item/inducer/sci/Initialize(mapload) . = ..() update_appearance() diff --git a/code/game/objects/items/inspector.dm b/code/game/objects/items/inspector.dm index 333beaea6e9..df7e35b9c85 100644 --- a/code/game/objects/items/inspector.dm +++ b/code/game/objects/items/inspector.dm @@ -30,7 +30,7 @@ ///Power used to say an error message var/power_to_speak = 1 -/obj/item/inspector/Initialize() +/obj/item/inspector/Initialize(mapload) . = ..() if(ispath(cell)) cell = new cell(src) @@ -283,7 +283,7 @@ paper_charges = min(paper_charges + charges_per_paper, max_paper_charges) qdel(I) -/obj/item/inspector/clown/bananium/Initialize() +/obj/item/inspector/clown/bananium/Initialize(mapload) . = ..() playsound(src, 'sound/effects/angryboat.ogg', 150, FALSE) diff --git a/code/game/objects/items/kitchen.dm b/code/game/objects/items/kitchen.dm index 25ecab5b2bd..b0239bbe87e 100644 --- a/code/game/objects/items/kitchen.dm +++ b/code/game/objects/items/kitchen.dm @@ -17,7 +17,7 @@ lefthand_file = 'icons/mob/inhands/equipment/kitchen_lefthand.dmi' righthand_file = 'icons/mob/inhands/equipment/kitchen_righthand.dmi' -/obj/item/kitchen/Initialize() +/obj/item/kitchen/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_APC_SHOCKING, INNATE_TRAIT) @@ -40,7 +40,7 @@ var/datum/reagent/forkload //used to eat omelette custom_price = PAYCHECK_PRISONER -/obj/item/kitchen/fork/Initialize() +/obj/item/kitchen/fork/Initialize(mapload) . = ..() AddElement(/datum/element/eyestab) @@ -75,7 +75,7 @@ custom_materials = list(/datum/material/plastic=80) custom_price = PAYCHECK_PRISONER * 2 -/obj/item/kitchen/fork/plastic/Initialize() +/obj/item/kitchen/fork/plastic/Initialize(mapload) . = ..() AddElement(/datum/element/easily_fragmented, PLASTIC_BREAK_PROBABILITY) @@ -102,7 +102,7 @@ bare_wound_bonus = 15 tool_behaviour = TOOL_KNIFE -/obj/item/kitchen/knife/Initialize() +/obj/item/kitchen/knife/Initialize(mapload) . = ..() AddElement(/datum/element/eyestab) set_butchering() @@ -132,7 +132,7 @@ sharpness = SHARP_EDGED custom_price = PAYCHECK_PRISONER * 2 -/obj/item/kitchen/knife/plastic/Initialize() +/obj/item/kitchen/knife/plastic/Initialize(mapload) . = ..() AddElement(/datum/element/easily_fragmented, PLASTIC_BREAK_PROBABILITY) @@ -309,7 +309,7 @@ custom_price = PAYCHECK_PRISONER * 2 toolspeed = 75 // The plastic spoon takes 5 minutes to dig through a single mineral turf... It's one, continuous, breakable, do_after... -/obj/item/kitchen/spoon/plastic/Initialize() +/obj/item/kitchen/spoon/plastic/Initialize(mapload) . = ..() AddElement(/datum/element/easily_fragmented, PLASTIC_BREAK_PROBABILITY) diff --git a/code/game/objects/items/mail.dm b/code/game/objects/items/mail.dm index ac877c6d3a2..84fee270dac 100644 --- a/code/game/objects/items/mail.dm +++ b/code/game/objects/items/mail.dm @@ -50,7 +50,7 @@ stamp_max = 2 stamp_offset_y = 5 -/obj/item/mail/Initialize() +/obj/item/mail/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_MOVABLE_DISPOSING, .proc/disposal_handling) AddElement(/datum/element/item_scaling, 0.75, 1) @@ -193,7 +193,7 @@ disposal_holder.destinationTag = sort_tag /// Subtype that's always junkmail -/obj/item/mail/junkmail/Initialize() +/obj/item/mail/junkmail/Initialize(mapload) . = ..() junk_mail() @@ -243,7 +243,7 @@ update_icon() /// Crate for mail that automatically depletes the economy subsystem's pending mail counter. -/obj/structure/closet/crate/mail/economy/Initialize() +/obj/structure/closet/crate/mail/economy/Initialize(mapload) . = ..() populate(SSeconomy.mail_waiting) SSeconomy.mail_waiting = 0 @@ -253,7 +253,7 @@ name = "brimming mail crate" desc = "A certified post crate from CentCom. Looks stuffed to the gills." -/obj/structure/closet/crate/mail/full/Initialize() +/obj/structure/closet/crate/mail/full/Initialize(mapload) . = ..() populate(INFINITY) @@ -285,7 +285,7 @@ icon_state = "scrap" var/nuclear_option_odds = 0.1 -/obj/item/paper/fluff/junkmail_redpill/Initialize() +/obj/item/paper/fluff/junkmail_redpill/Initialize(mapload) . = ..() if(!prob(nuclear_option_odds)) // 1 in 1000 chance of getting 2 random nuke code characters. info = "You need to escape the simulation. Don't forget the numbers, they help you remember: '[rand(0,9)][rand(0,9)][rand(0,9)]...'" @@ -303,6 +303,6 @@ name = "important document" icon_state = "paper_words" -/obj/item/paper/fluff/junkmail_generic/Initialize() +/obj/item/paper/fluff/junkmail_generic/Initialize(mapload) . = ..() info = pick(GLOB.junkmail_messages) diff --git a/code/game/objects/items/maintenance_loot.dm b/code/game/objects/items/maintenance_loot.dm index 5666f1422be..6a28f8b5ec7 100644 --- a/code/game/objects/items/maintenance_loot.dm +++ b/code/game/objects/items/maintenance_loot.dm @@ -35,7 +35,7 @@ grind_results = list(/datum/reagent/lead = 15, /datum/reagent/toxin/acid = 15, /datum/reagent/water = 20) //starts partially discharged -/obj/item/stock_parts/cell/lead/Initialize() +/obj/item/stock_parts/cell/lead/Initialize(mapload) AddElement(/datum/element/update_icon_blocker) . = ..() charge = rand(0.2,0.8) * maxcharge diff --git a/code/game/objects/items/melee/baton.dm b/code/game/objects/items/melee/baton.dm index e4699b273be..a22e482f21f 100644 --- a/code/game/objects/items/melee/baton.dm +++ b/code/game/objects/items/melee/baton.dm @@ -37,7 +37,7 @@ /// Whether the stun attack is logged. Only relevant for abductor batons, which have different modes. var/log_stun_attack = TRUE -/obj/item/melee/baton/Initialize() +/obj/item/melee/baton/Initialize(mapload) . = ..() // Adding an extra break for the sake of presentation if(stamina_damage != 0) @@ -255,7 +255,7 @@ /// The force on extension. var/active_force = 10 -/obj/item/melee/baton/telescopic/Initialize() +/obj/item/melee/baton/telescopic/Initialize(mapload) . = ..() AddComponent(/datum/component/transforming, \ force_on = active_force, \ @@ -359,7 +359,7 @@ var/can_remove_cell = TRUE var/convertible = TRUE //if it can be converted with a conversion kit -/obj/item/melee/baton/security/Initialize() +/obj/item/melee/baton/security/Initialize(mapload) . = ..() if(preload_cell_type) if(!ispath(preload_cell_type,/obj/item/stock_parts/cell)) @@ -571,7 +571,7 @@ convertible = FALSE var/obj/item/assembly/igniter/sparkler -/obj/item/melee/baton/security/cattleprod/Initialize() +/obj/item/melee/baton/security/cattleprod/Initialize(mapload) . = ..() sparkler = new (src) diff --git a/code/game/objects/items/melee/energy.dm b/code/game/objects/items/melee/energy.dm index bce11c884a1..395126f9613 100644 --- a/code/game/objects/items/melee/energy.dm +++ b/code/game/objects/items/melee/energy.dm @@ -30,7 +30,7 @@ /// The heat given off when active. var/active_heat = 3500 -/obj/item/melee/energy/Initialize() +/obj/item/melee/energy/Initialize(mapload) . = ..() make_transformable() AddComponent(/datum/component/butchering, _speed = 5 SECONDS, _butcher_sound = active_hitsound) @@ -293,7 +293,7 @@ var/datum/effect_system/spark_spread/spark_system //Most of the other special functions are handled in their own files. aka special snowflake code so kewl -/obj/item/melee/energy/blade/Initialize() +/obj/item/melee/energy/blade/Initialize(mapload) . = ..() spark_system = new /datum/effect_system/spark_spread() spark_system.set_up(5, 0, src) diff --git a/code/game/objects/items/melee/misc.dm b/code/game/objects/items/melee/misc.dm index 0996797e5a5..3888495a62b 100644 --- a/code/game/objects/items/melee/misc.dm +++ b/code/game/objects/items/melee/misc.dm @@ -49,7 +49,7 @@ attack_verb_simple = list("attack", "slash", "stab", "slice", "tear", "lacerate", "rip", "dice", "cut") sharpness = SHARP_EDGED -/obj/item/melee/synthetic_arm_blade/Initialize() +/obj/item/melee/synthetic_arm_blade/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 60, 80) //very imprecise @@ -75,7 +75,7 @@ wound_bonus = 10 bare_wound_bonus = 25 -/obj/item/melee/sabre/Initialize() +/obj/item/melee/sabre/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 30, 95, 5) //fast and effective, but as a sword, it might damage the results. @@ -187,7 +187,7 @@ var/balanced = 1 force_string = "INFINITE" -/obj/item/melee/supermatter_sword/Initialize() +/obj/item/melee/supermatter_sword/Initialize(mapload) . = ..() shard = new /obj/machinery/power/supermatter_crystal(src) qdel(shard.countdown) @@ -314,7 +314,7 @@ /// Whether or stick is extended and can recieve sausage var/extended = FALSE -/obj/item/melee/roastingstick/Initialize() +/obj/item/melee/roastingstick/Initialize(mapload) . = ..() if (!ovens) ovens = typecacheof(list(/obj/singularity, /obj/energy_ball, /obj/machinery/power/supermatter_crystal, /obj/structure/bonfire)) diff --git a/code/game/objects/items/mop.dm b/code/game/objects/items/mop.dm index b8c52782c08..c2eb54bdaf9 100644 --- a/code/game/objects/items/mop.dm +++ b/code/game/objects/items/mop.dm @@ -19,7 +19,7 @@ force_string = "robust... against germs" var/insertable = TRUE -/obj/item/mop/Initialize() +/obj/item/mop/Initialize(mapload) . = ..() create_reagents(mopcap) @@ -102,7 +102,7 @@ var/refill_rate = 0.5 var/refill_reagent = /datum/reagent/water //Determins what reagent to use for refilling, just in case someone wanted to make a HOLY MOP OF PURGING -/obj/item/mop/advanced/Initialize() +/obj/item/mop/advanced/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) diff --git a/code/game/objects/items/pinpointer.dm b/code/game/objects/items/pinpointer.dm index 53b65285c80..c510baba7d2 100644 --- a/code/game/objects/items/pinpointer.dm +++ b/code/game/objects/items/pinpointer.dm @@ -21,7 +21,7 @@ var/process_scan = TRUE // some pinpointers change target every time they scan, which means we can't have it change very process but instead when it turns on. var/icon_suffix = "" // for special pinpointer icons -/obj/item/pinpointer/Initialize() +/obj/item/pinpointer/Initialize(mapload) . = ..() GLOB.pinpointer_list += src diff --git a/code/game/objects/items/plushes.dm b/code/game/objects/items/plushes.dm index c99bdfd2f64..5e4ff88572a 100644 --- a/code/game/objects/items/plushes.dm +++ b/code/game/objects/items/plushes.dm @@ -35,7 +35,7 @@ var/normal_desc //--end of love :'(-- -/obj/item/toy/plush/Initialize() +/obj/item/toy/plush/Initialize(mapload) . = ..() AddComponent(/datum/component/squeak, squeak_override) AddElement(/datum/element/bed_tuckable, 6, -5, 90) @@ -508,7 +508,7 @@ attack_verb_simple = list("claw", "hiss", "tail slap") squeak_override = list('sound/weapons/slash.ogg' = 1) -/obj/item/toy/plush/lizard_plushie/Initialize() +/obj/item/toy/plush/lizard_plushie/Initialize(mapload) . = ..() if(!greyscale_colors) // Generate a random valid lizard color for our plushie friend diff --git a/code/game/objects/items/pneumaticCannon.dm b/code/game/objects/items/pneumaticCannon.dm index 6f4da1b5a99..2470ca6700f 100644 --- a/code/game/objects/items/pneumaticCannon.dm +++ b/code/game/objects/items/pneumaticCannon.dm @@ -38,7 +38,7 @@ trigger_guard = TRIGGER_GUARD_NORMAL -/obj/item/pneumatic_cannon/Initialize() +/obj/item/pneumatic_cannon/Initialize(mapload) . = ..() if(selfcharge) init_charge() @@ -291,7 +291,7 @@ clumsyCheck = FALSE var/static/list/pie_typecache = typecacheof(/obj/item/food/pie) -/obj/item/pneumatic_cannon/pie/Initialize() +/obj/item/pneumatic_cannon/pie/Initialize(mapload) . = ..() allowed_typecache = pie_typecache diff --git a/code/game/objects/items/puzzle_pieces.dm b/code/game/objects/items/puzzle_pieces.dm index 0825c734df5..174a1c34c61 100644 --- a/code/game/objects/items/puzzle_pieces.dm +++ b/code/game/objects/items/puzzle_pieces.dm @@ -121,7 +121,7 @@ var/reward = /obj/item/food/cookie var/claimed = FALSE -/obj/item/pressure_plate/hologrid/Initialize() +/obj/item/pressure_plate/hologrid/Initialize(mapload) . = ..() if(undertile_pressureplate) AddElement(/datum/element/undertile, tile_overlay = tile_overlay, use_anchor = FALSE) //we remove use_anchor here, so it ALWAYS stays anchored diff --git a/code/game/objects/items/religion.dm b/code/game/objects/items/religion.dm index 3bc06c25d0a..26bdefcf011 100644 --- a/code/game/objects/items/religion.dm +++ b/code/game/objects/items/religion.dm @@ -86,7 +86,7 @@ righthand_file = 'icons/mob/inhands/equipment/banners_righthand.dmi' warcry = "EVERYONE DOWN ON THE GROUND!!" -/obj/item/banner/security/Initialize() +/obj/item/banner/security/Initialize(mapload) . = ..() job_loyalties = DEPARTMENT_BITFLAG_SECURITY @@ -110,7 +110,7 @@ righthand_file = 'icons/mob/inhands/equipment/banners_righthand.dmi' warcry = "No wounds cannot be healed!" -/obj/item/banner/medical/Initialize() +/obj/item/banner/medical/Initialize(mapload) . = ..() job_loyalties = DEPARTMENT_BITFLAG_MEDICAL @@ -142,7 +142,7 @@ righthand_file = 'icons/mob/inhands/equipment/banners_righthand.dmi' warcry = "For Cuban Pete!" -/obj/item/banner/science/Initialize() +/obj/item/banner/science/Initialize(mapload) . = ..() job_loyalties = DEPARTMENT_BITFLAG_SCIENCE @@ -169,7 +169,7 @@ righthand_file = 'icons/mob/inhands/equipment/banners_righthand.dmi' warcry = "Hail Cargonia!" -/obj/item/banner/cargo/Initialize() +/obj/item/banner/cargo/Initialize(mapload) . = ..() job_loyalties = DEPARTMENT_BITFLAG_CARGO @@ -193,7 +193,7 @@ righthand_file = 'icons/mob/inhands/equipment/banners_righthand.dmi' warcry = "All hail lord Singuloth!!" -/obj/item/banner/engineering/Initialize() +/obj/item/banner/engineering/Initialize(mapload) . = ..() job_loyalties = DEPARTMENT_BITFLAG_ENGINEERING @@ -217,7 +217,7 @@ //No icon state here since the default one is the NT banner warcry = "Hail Nanotrasen!" -/obj/item/banner/command/Initialize() +/obj/item/banner/command/Initialize(mapload) . = ..() job_loyalties = DEPARTMENT_BITFLAG_COMMAND @@ -252,7 +252,7 @@ desc = "It's a backpack with lots of extra room. A banner with Nanotrasen's logo is attached, that can't be removed." icon_state = "bannerpack" -/obj/item/storage/backpack/bannerpack/Initialize() +/obj/item/storage/backpack/bannerpack/Initialize(mapload) . = ..() var/datum/component/storage/STR = GetComponent(/datum/component/storage) STR.max_combined_w_class = 27 //6 more then normal, for the tradeoff of declaring yourself an antag at all times. diff --git a/code/game/objects/items/robot/robot_items.dm b/code/game/objects/items/robot/robot_items.dm index 11df773be1d..3a5eb6e0062 100644 --- a/code/game/objects/items/robot/robot_items.dm +++ b/code/game/objects/items/robot/robot_items.dm @@ -541,7 +541,7 @@ nodamage = FALSE embed_falloff_tile = 0 -/obj/projectile/bullet/reusable/lollipop/Initialize() +/obj/projectile/bullet/reusable/lollipop/Initialize(mapload) . = ..() var/obj/item/food/lollipop/S = new ammo_type(src) color2 = S.headcolor @@ -601,7 +601,7 @@ energy = 50000 energy_recharge = 5000 -/obj/item/borg/projectile_dampen/Initialize() +/obj/item/borg/projectile_dampen/Initialize(mapload) . = ..() projectile_effect = image('icons/effects/fields.dmi', "projectile_dampen_effect") tracked = list() @@ -764,7 +764,7 @@ name = "medical hud" icon_state = "healthhud" -/obj/item/borg/sight/hud/med/Initialize() +/obj/item/borg/sight/hud/med/Initialize(mapload) . = ..() hud = new /obj/item/clothing/glasses/hud/health(src) @@ -773,7 +773,7 @@ name = "security hud" icon_state = "securityhud" -/obj/item/borg/sight/hud/sec/Initialize() +/obj/item/borg/sight/hud/sec/Initialize(mapload) . = ..() hud = new /obj/item/clothing/glasses/hud/security(src) @@ -791,7 +791,7 @@ var/obj/item/stored var/list/storable = list() -/obj/item/borg/apparatus/Initialize() +/obj/item/borg/apparatus/Initialize(mapload) . = ..() RegisterSignal(loc.loc, COMSIG_BORG_SAFE_DECONSTRUCT, .proc/safedecon) @@ -885,7 +885,7 @@ storable = list(/obj/item/reagent_containers/glass/beaker, /obj/item/reagent_containers/glass/bottle) -/obj/item/borg/apparatus/beaker/Initialize() +/obj/item/borg/apparatus/beaker/Initialize(mapload) . = ..() stored = new /obj/item/reagent_containers/glass/beaker/large(src) RegisterSignal(stored, COMSIG_ATOM_UPDATED_ICON, .proc/on_stored_updated_icon) @@ -947,7 +947,7 @@ storable = list(/obj/item/reagent_containers/food/drinks, /obj/item/reagent_containers/food/condiment) -/obj/item/borg/apparatus/beaker/service/Initialize() +/obj/item/borg/apparatus/beaker/service/Initialize(mapload) . = ..() stored = new /obj/item/reagent_containers/food/drinks/drinkingglass(src) RegisterSignal(stored, COMSIG_ATOM_UPDATED_ICON, .proc/on_stored_updated_icon) @@ -1015,7 +1015,7 @@ storable = list(/obj/item/circuitboard, /obj/item/electronics) -/obj/item/borg/apparatus/circuit/Initialize() +/obj/item/borg/apparatus/circuit/Initialize(mapload) . = ..() update_appearance() diff --git a/code/game/objects/items/robot/robot_parts.dm b/code/game/objects/items/robot/robot_parts.dm index 2658e640868..fcf5daa5952 100644 --- a/code/game/objects/items/robot/robot_parts.dm +++ b/code/game/objects/items/robot/robot_parts.dm @@ -32,11 +32,11 @@ /// If the cyborg's cover panel starts locked var/panel_locked = TRUE -/obj/item/robot_suit/Initialize() +/obj/item/robot_suit/Initialize(mapload) . = ..() update_appearance() -/obj/item/robot_suit/prebuilt/Initialize() +/obj/item/robot_suit/prebuilt/Initialize(mapload) . = ..() l_arm = new(src) r_arm = new(src) diff --git a/code/game/objects/items/shields.dm b/code/game/objects/items/shields.dm index fd91a6cd3d3..d5e5efa1348 100644 --- a/code/game/objects/items/shields.dm +++ b/code/game/objects/items/shields.dm @@ -126,7 +126,7 @@ inhand_icon_state = "flashshield" var/obj/item/assembly/flash/handheld/embedded_flash -/obj/item/shield/riot/flash/Initialize() +/obj/item/shield/riot/flash/Initialize(mapload) . = ..() embedded_flash = new(src) @@ -212,7 +212,7 @@ /// Whether clumsy people can transform this without side effects. var/can_clumsy_use = FALSE -/obj/item/shield/energy/Initialize() +/obj/item/shield/energy/Initialize(mapload) . = ..() AddComponent(/datum/component/transforming, \ force_on = active_force, \ @@ -257,7 +257,7 @@ /// Whether the shield is extended and protecting the user.. var/extended = FALSE -/obj/item/shield/riot/tele/Initialize() +/obj/item/shield/riot/tele/Initialize(mapload) . = ..() AddComponent(/datum/component/transforming, \ force_on = 8, \ diff --git a/code/game/objects/items/singularityhammer.dm b/code/game/objects/items/singularityhammer.dm index 1b3e9a6b7ae..5b2f66f8661 100644 --- a/code/game/objects/items/singularityhammer.dm +++ b/code/game/objects/items/singularityhammer.dm @@ -20,7 +20,7 @@ ///track wielded status on item var/wielded = FALSE -/obj/item/singularityhammer/Initialize() +/obj/item/singularityhammer/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) @@ -101,7 +101,7 @@ w_class = WEIGHT_CLASS_HUGE var/wielded = FALSE // track wielded status on item -/obj/item/mjollnir/Initialize() +/obj/item/mjollnir/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) diff --git a/code/game/objects/items/stacks/sheets/glass.dm b/code/game/objects/items/stacks/sheets/glass.dm index cf3e5f1dacc..a254d056d80 100644 --- a/code/game/objects/items/stacks/sheets/glass.dm +++ b/code/game/objects/items/stacks/sheets/glass.dm @@ -277,7 +277,7 @@ GLOBAL_LIST_INIT(plastitaniumglass_recipes, list( return (BRUTELOSS) -/obj/item/shard/Initialize() +/obj/item/shard/Initialize(mapload) . = ..() AddComponent(/datum/component/caltrop, min_damage = force) AddComponent(/datum/component/butchering, 150, 65) diff --git a/code/game/objects/items/stacks/wrap.dm b/code/game/objects/items/stacks/wrap.dm index acdcc33dec8..33218c6ae40 100644 --- a/code/game/objects/items/stacks/wrap.dm +++ b/code/game/objects/items/stacks/wrap.dm @@ -16,7 +16,7 @@ resistance_flags = FLAMMABLE merge_type = /obj/item/stack/wrapping_paper -/obj/item/stack/wrapping_paper/Initialize() +/obj/item/stack/wrapping_paper/Initialize(mapload) . = ..() if(!greyscale_colors) //Generate random valid colors for paper and ribbon diff --git a/code/game/objects/items/storage/backpack.dm b/code/game/objects/items/storage/backpack.dm index 44f61e5d22f..df0e3f2616a 100644 --- a/code/game/objects/items/storage/backpack.dm +++ b/code/game/objects/items/storage/backpack.dm @@ -81,7 +81,7 @@ inhand_icon_state = "giftbag" w_class = WEIGHT_CLASS_BULKY -/obj/item/storage/backpack/santabag/Initialize() +/obj/item/storage/backpack/santabag/Initialize(mapload) . = ..() regenerate_presents() @@ -361,7 +361,7 @@ ///counts time passed since it ate food var/hunger = 0 -/obj/item/storage/backpack/duffelbag/cursed/Initialize() +/obj/item/storage/backpack/duffelbag/cursed/Initialize(mapload) . = ..() var/add_dropdel = TRUE //clarified boolean AddComponent(/datum/component/curse_of_hunger, add_dropdel) diff --git a/code/game/objects/items/storage/belt.dm b/code/game/objects/items/storage/belt.dm index a305f3a51fd..dd969bc53ee 100644 --- a/code/game/objects/items/storage/belt.dm +++ b/code/game/objects/items/storage/belt.dm @@ -25,7 +25,7 @@ for(var/obj/item/I in contents) . += I.get_belt_overlay() -/obj/item/storage/belt/Initialize() +/obj/item/storage/belt/Initialize(mapload) . = ..() update_appearance() @@ -412,7 +412,7 @@ /obj/item/storage/belt/military/snack name = "tactical snack rig" -/obj/item/storage/belt/military/snack/Initialize() +/obj/item/storage/belt/military/snack/Initialize(mapload) . = ..() var/sponsor = pick("Donk Co.", "Waffle Co.", "Roffle Co.", "Gorlax Marauders", "Tiger Cooperative") desc = "A set of snack-tical webbing worn by athletes of the [sponsor] VR sports division." diff --git a/code/game/objects/items/storage/book.dm b/code/game/objects/items/storage/book.dm index ac3b7dcc126..17769f7eed3 100644 --- a/code/game/objects/items/storage/book.dm +++ b/code/game/objects/items/storage/book.dm @@ -43,7 +43,7 @@ GLOBAL_LIST_INIT(bibleitemstates, list("bible", "koran", "scrapbook", "burning", var/deity_name = "Christ" force_string = "holy" -/obj/item/storage/book/bible/Initialize() +/obj/item/storage/book/bible/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, FALSE, TRUE) diff --git a/code/game/objects/items/storage/boxes.dm b/code/game/objects/items/storage/boxes.dm index 5cda10e8c74..73875e408bc 100644 --- a/code/game/objects/items/storage/boxes.dm +++ b/code/game/objects/items/storage/boxes.dm @@ -1236,7 +1236,7 @@ custom_price = PAYCHECK_HARD * 3 custom_premium_price = PAYCHECK_HARD * 3 -/obj/item/storage/box/gum/happiness/Initialize() +/obj/item/storage/box/gum/happiness/Initialize(mapload) . = ..() if (prob(25)) desc += " You can faintly make out the word 'Hemopagopril' was once scribbled on it." @@ -1390,7 +1390,7 @@ illustration = "fruit" var/theme_name -/obj/item/storage/box/ingredients/Initialize() +/obj/item/storage/box/ingredients/Initialize(mapload) . = ..() if(theme_name) name = "[name] ([theme_name])" @@ -1539,7 +1539,7 @@ theme_name = "random" desc = "This box should not exist, contact the proper authorities." -/obj/item/storage/box/ingredients/random/Initialize() +/obj/item/storage/box/ingredients/random/Initialize(mapload) .=..() var/chosen_box = pick(subtypesof(/obj/item/storage/box/ingredients) - /obj/item/storage/box/ingredients/random) new chosen_box(loc) diff --git a/code/game/objects/items/storage/fancy.dm b/code/game/objects/items/storage/fancy.dm index 63fae894b31..2bda29bdf2d 100644 --- a/code/game/objects/items/storage/fancy.dm +++ b/code/game/objects/items/storage/fancy.dm @@ -344,7 +344,7 @@ candy = TRUE age_restricted = FALSE -/obj/item/storage/fancy/cigarettes/cigpack_candy/Initialize() +/obj/item/storage/fancy/cigarettes/cigpack_candy/Initialize(mapload) . = ..() if(prob(7)) spawn_type = /obj/item/clothing/mask/cigarette/candy/nicotine //uh oh! diff --git a/code/game/objects/items/storage/firstaid.dm b/code/game/objects/items/storage/firstaid.dm index 249674cd19c..78529726620 100644 --- a/code/game/objects/items/storage/firstaid.dm +++ b/code/game/objects/items/storage/firstaid.dm @@ -492,7 +492,7 @@ name = "bottle of maintenance pills" desc = "An old pill bottle. It smells musty." -/obj/item/storage/pill_bottle/maintenance_pill/Initialize() +/obj/item/storage/pill_bottle/maintenance_pill/Initialize(mapload) . = ..() var/obj/item/reagent_containers/pill/P = locate() in src name = "bottle of [P.name]s" @@ -554,7 +554,7 @@ /obj/item/food/icecream )) -/obj/item/storage/organbox/Initialize() +/obj/item/storage/organbox/Initialize(mapload) . = ..() create_reagents(100, TRANSPARENT) RegisterSignal(src, COMSIG_ATOM_ENTERED, .proc/freeze) diff --git a/code/game/objects/items/storage/holsters.dm b/code/game/objects/items/storage/holsters.dm index 0232e33710c..e4e3528f640 100644 --- a/code/game/objects/items/storage/holsters.dm +++ b/code/game/objects/items/storage/holsters.dm @@ -82,7 +82,7 @@ worn_icon_state = "syndicate_holster" var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/storage/belt/holster/chameleon/Initialize() +/obj/item/storage/belt/holster/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) @@ -101,7 +101,7 @@ return chameleon_action.emp_randomise() -/obj/item/storage/belt/holster/chameleon/broken/Initialize() +/obj/item/storage/belt/holster/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) diff --git a/code/game/objects/items/storage/secure.dm b/code/game/objects/items/storage/secure.dm index 4a6ce29fc93..4c669ce35ce 100644 --- a/code/game/objects/items/storage/secure.dm +++ b/code/game/objects/items/storage/secure.dm @@ -225,7 +225,7 @@ There appears to be a small amount of surface corrosion. It doesn't look like it max_integrity = 300 color = "#ffdd33" -/obj/item/storage/secure/safe/caps_spare/Initialize() +/obj/item/storage/secure/safe/caps_spare/Initialize(mapload) . = ..() l_code = SSid_access.spare_id_safe_code diff --git a/code/game/objects/items/storage/sixpack.dm b/code/game/objects/items/storage/sixpack.dm index 63eb2ab2b60..9d626d5bbab 100644 --- a/code/game/objects/items/storage/sixpack.dm +++ b/code/game/objects/items/storage/sixpack.dm @@ -17,7 +17,7 @@ icon_state = "[initial(icon_state)][contents.len]" return ..() -/obj/item/storage/cans/Initialize() +/obj/item/storage/cans/Initialize(mapload) . = ..() update_appearance() diff --git a/code/game/objects/items/storage/storage.dm b/code/game/objects/items/storage/storage.dm index ee01bea8eba..eeaf6772a8b 100644 --- a/code/game/objects/items/storage/storage.dm +++ b/code/game/objects/items/storage/storage.dm @@ -8,7 +8,7 @@ /obj/item/storage/get_dumping_location(obj/item/storage/source,mob/user) return src -/obj/item/storage/Initialize() +/obj/item/storage/Initialize(mapload) . = ..() PopulateContents() diff --git a/code/game/objects/items/storage/toolbox.dm b/code/game/objects/items/storage/toolbox.dm index f745a364386..b27da30a689 100644 --- a/code/game/objects/items/storage/toolbox.dm +++ b/code/game/objects/items/storage/toolbox.dm @@ -22,7 +22,7 @@ var/has_latches = TRUE wound_bonus = 5 -/obj/item/storage/toolbox/Initialize() +/obj/item/storage/toolbox/Initialize(mapload) . = ..() if(has_latches) if(prob(10)) diff --git a/code/game/objects/items/storage/uplink_kits.dm b/code/game/objects/items/storage/uplink_kits.dm index 91ae423fde8..3d962a3484b 100644 --- a/code/game/objects/items/storage/uplink_kits.dm +++ b/code/game/objects/items/storage/uplink_kits.dm @@ -267,7 +267,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 contractor. On top of your already assigned objectives, this kit will provide you contracts to take on for TC payments.

diff --git a/code/game/objects/items/storage/wallets.dm b/code/game/objects/items/storage/wallets.dm index 8531a622bd1..e56498ac4a3 100644 --- a/code/game/objects/items/storage/wallets.dm +++ b/code/game/objects/items/storage/wallets.dm @@ -151,7 +151,7 @@ /obj/item/storage/wallet/random icon_state = "random_wallet" // for mapping purposes -/obj/item/storage/wallet/random/Initialize() +/obj/item/storage/wallet/random/Initialize(mapload) . = ..() icon_state = "wallet" diff --git a/code/game/objects/items/tanks/jetpack.dm b/code/game/objects/items/tanks/jetpack.dm index 3d4895e804f..09a189edbae 100644 --- a/code/game/objects/items/tanks/jetpack.dm +++ b/code/game/objects/items/tanks/jetpack.dm @@ -14,7 +14,7 @@ var/full_speed = TRUE // If the jetpack will have a speedboost in space/nograv or not var/datum/effect_system/trail_follow/ion/ion_trail -/obj/item/tank/jetpack/Initialize() +/obj/item/tank/jetpack/Initialize(mapload) . = ..() ion_trail = new ion_trail.auto_process = FALSE @@ -209,7 +209,7 @@ var/obj/item/clothing/suit/space/hardsuit/active_hardsuit = null -/obj/item/tank/jetpack/suit/Initialize() +/obj/item/tank/jetpack/suit/Initialize(mapload) . = ..() STOP_PROCESSING(SSobj, src) tempair_contents = air_contents diff --git a/code/game/objects/items/tanks/tanks.dm b/code/game/objects/items/tanks/tanks.dm index ac1345286a1..e61fef70f82 100644 --- a/code/game/objects/items/tanks/tanks.dm +++ b/code/game/objects/items/tanks/tanks.dm @@ -72,7 +72,7 @@ H.update_action_buttons_icon() -/obj/item/tank/Initialize() +/obj/item/tank/Initialize(mapload) . = ..() air_contents = new(volume) //liters diff --git a/code/game/objects/items/tanks/watertank.dm b/code/game/objects/items/tanks/watertank.dm index 972a22ff515..0b26dc8efc3 100644 --- a/code/game/objects/items/tanks/watertank.dm +++ b/code/game/objects/items/tanks/watertank.dm @@ -18,7 +18,7 @@ var/obj/item/noz var/volume = 500 -/obj/item/watertank/Initialize() +/obj/item/watertank/Initialize(mapload) . = ..() create_reagents(volume, OPENCONTAINER) noz = make_noz() @@ -122,7 +122,7 @@ var/obj/item/watertank/tank -/obj/item/reagent_containers/spray/mister/Initialize() +/obj/item/reagent_containers/spray/mister/Initialize(mapload) . = ..() tank = loc if(!istype(tank)) @@ -149,7 +149,7 @@ inhand_icon_state = "waterbackpackjani" custom_price = PAYCHECK_EASY * 5 -/obj/item/watertank/janitor/Initialize() +/obj/item/watertank/janitor/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/space_cleaner, 500) @@ -180,7 +180,7 @@ inhand_icon_state = "pepperbackpacksec" custom_price = PAYCHECK_MEDIUM * 2 -/obj/item/watertank/pepperspray/Initialize() +/obj/item/watertank/pepperspray/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/consumable/condensedcapsaicin, 500) @@ -217,7 +217,7 @@ volume = 200 slowdown = 0 -/obj/item/watertank/atmos/Initialize() +/obj/item/watertank/atmos/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/water, 200) @@ -253,7 +253,7 @@ var/metal_synthesis_cooldown = 0 var/resin_cooldown = 0 -/obj/item/extinguisher/mini/nozzle/Initialize() +/obj/item/extinguisher/mini/nozzle/Initialize(mapload) . = ..() tank = loc if (!istype(tank)) @@ -464,7 +464,7 @@ volume = 2000 slowdown = 0 -/obj/item/watertank/op/Initialize() +/obj/item/watertank/op/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/toxin/mutagen,350) reagents.add_reagent(/datum/reagent/napalm,125) diff --git a/code/game/objects/items/tcg/tcg.dm b/code/game/objects/items/tcg/tcg.dm index 124e2c09afc..4ceb054dd85 100644 --- a/code/game/objects/items/tcg/tcg.dm +++ b/code/game/objects/items/tcg/tcg.dm @@ -190,7 +190,7 @@ GLOBAL_LIST_EMPTY(tcgcard_radial_choices) var/static/radial_shuffle = image(icon = 'icons/hud/radial.dmi', icon_state = "radial_shuffle") var/static/radial_pickup = image(icon = 'icons/hud/radial.dmi', icon_state = "radial_pickup") -/obj/item/tcgcard_deck/Initialize() +/obj/item/tcgcard_deck/Initialize(mapload) . = ..() LoadComponent(/datum/component/storage/concrete/tcg) @@ -362,7 +362,7 @@ GLOBAL_LIST_EMPTY(tcgcard_radial_choices) "epic" = 30, "legendary" = 5) -/obj/item/cardpack/Initialize() +/obj/item/cardpack/Initialize(mapload) . = ..() AddElement(/datum/element/item_scaling, 0.4, 1) //Pass by refrance moment @@ -411,7 +411,7 @@ GLOBAL_LIST_EMPTY(tcgcard_radial_choices) w_class = WEIGHT_CLASS_SMALL flags_1 = PREVENT_CONTENTS_EXPLOSION_1 -/obj/item/storage/card_binder/Initialize() +/obj/item/storage/card_binder/Initialize(mapload) . = ..() var/datum/component/storage/STR = GetComponent(/datum/component/storage) STR.set_holdable(list(/obj/item/tcgcard)) diff --git a/code/game/objects/items/teleportation.dm b/code/game/objects/items/teleportation.dm index 7c6e351bb9b..b0c3cc47710 100644 --- a/code/game/objects/items/teleportation.dm +++ b/code/game/objects/items/teleportation.dm @@ -126,7 +126,7 @@ */ var/last_portal_location -/obj/item/hand_tele/Initialize() +/obj/item/hand_tele/Initialize(mapload) . = ..() active_portal_pairs = list() diff --git a/code/game/objects/items/theft_tools.dm b/code/game/objects/items/theft_tools.dm index 697b233ae4d..41c4b9f26f5 100644 --- a/code/game/objects/items/theft_tools.dm +++ b/code/game/objects/items/theft_tools.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) @@ -233,7 +233,7 @@ usesound = 'sound/weapons/bladeslice.ogg' var/usesLeft -/obj/item/scalpel/supermatter/Initialize() +/obj/item/scalpel/supermatter/Initialize(mapload) . = ..() usesLeft = rand(2, 4) diff --git a/code/game/objects/items/tools/crowbar.dm b/code/game/objects/items/tools/crowbar.dm index 4ac024e5eb7..56908ebd0d7 100644 --- a/code/game/objects/items/tools/crowbar.dm +++ b/code/game/objects/items/tools/crowbar.dm @@ -73,7 +73,7 @@ toolspeed = 0.7 force_opens = TRUE -/obj/item/crowbar/power/Initialize() +/obj/item/crowbar/power/Initialize(mapload) . = ..() AddComponent(/datum/component/transforming, \ force_on = force, \ diff --git a/code/game/objects/items/tools/screwdriver.dm b/code/game/objects/items/tools/screwdriver.dm index b4e9030010f..230b1232179 100644 --- a/code/game/objects/items/tools/screwdriver.dm +++ b/code/game/objects/items/tools/screwdriver.dm @@ -47,7 +47,7 @@ user.visible_message(span_suicide("[user] is stabbing [src] into [user.p_their()] [pick("temple", "heart")]! It looks like [user.p_theyre()] trying to commit suicide!")) return(BRUTELOSS) -/obj/item/screwdriver/Initialize() +/obj/item/screwdriver/Initialize(mapload) if(random_color) var/our_color = pick(screwdriver_colors) set_greyscale(colors=list(screwdriver_colors[our_color])) @@ -95,7 +95,7 @@ greyscale_config_inhand_left = null greyscale_config_inhand_right = null -/obj/item/screwdriver/power/Initialize() +/obj/item/screwdriver/power/Initialize(mapload) . = ..() AddComponent(/datum/component/transforming, \ force_on = force, \ diff --git a/code/game/objects/items/tools/weldingtool.dm b/code/game/objects/items/tools/weldingtool.dm index 509c364c0bf..a5715d86832 100644 --- a/code/game/objects/items/tools/weldingtool.dm +++ b/code/game/objects/items/tools/weldingtool.dm @@ -43,7 +43,7 @@ var/acti_sound = 'sound/items/welderactivate.ogg' var/deac_sound = 'sound/items/welderdeactivate.ogg' -/obj/item/weldingtool/Initialize() +/obj/item/weldingtool/Initialize(mapload) . = ..() create_reagents(max_fuel) reagents.add_reagent(/datum/reagent/fuel, max_fuel) diff --git a/code/game/objects/items/tools/wirecutters.dm b/code/game/objects/items/tools/wirecutters.dm index 78c325d7978..6a7e3e0435f 100644 --- a/code/game/objects/items/tools/wirecutters.dm +++ b/code/game/objects/items/tools/wirecutters.dm @@ -39,7 +39,7 @@ "yellow" = "#d58c18" ) -/obj/item/wirecutters/Initialize() +/obj/item/wirecutters/Initialize(mapload) if(random_color) var/our_color = pick(wirecutter_colors) set_greyscale(colors=list(wirecutter_colors[our_color])) diff --git a/code/game/objects/items/tools/wrench.dm b/code/game/objects/items/tools/wrench.dm index 5582d3d41ec..19056834c43 100644 --- a/code/game/objects/items/tools/wrench.dm +++ b/code/game/objects/items/tools/wrench.dm @@ -88,7 +88,7 @@ tool_behaviour = null toolspeed = null -/obj/item/wrench/combat/Initialize() +/obj/item/wrench/combat/Initialize(mapload) . = ..() AddComponent(/datum/component/transforming, \ force_on = 6, \ diff --git a/code/game/objects/items/toy_mechs.dm b/code/game/objects/items/toy_mechs.dm index 0055ea16f93..2d123e07564 100644 --- a/code/game/objects/items/toy_mechs.dm +++ b/code/game/objects/items/toy_mechs.dm @@ -50,7 +50,7 @@ /// ...And their loss count in combat var/losses = 0 -/obj/item/toy/mecha/Initialize() +/obj/item/toy/mecha/Initialize(mapload) . = ..() AddElement(/datum/element/series, /obj/item/toy/mecha, "Mini-Mecha action figures") combat_health = max_combat_health diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm index 01a969ba52c..d66c4cf60f7 100644 --- a/code/game/objects/items/toys.dm +++ b/code/game/objects/items/toys.dm @@ -46,7 +46,7 @@ inhand_icon_state = "balloon-empty" -/obj/item/toy/waterballoon/Initialize() +/obj/item/toy/waterballoon/Initialize(mapload) . = ..() create_reagents(10) @@ -337,7 +337,7 @@ /// The color of our fake energy sword var/saber_color = "blue" -/obj/item/toy/sword/Initialize() +/obj/item/toy/sword/Initialize(mapload) . = ..() AddComponent(/datum/component/transforming, \ throw_speed_on = throw_speed, \ @@ -539,7 +539,7 @@ if(!..()) pop_burst() -/obj/item/toy/snappop/Initialize() +/obj/item/toy/snappop/Initialize(mapload) . = ..() var/static/list/loc_connections = list( COMSIG_ATOM_ENTERED = .proc/on_entered, @@ -562,7 +562,7 @@ /obj/effect/decal/cleanable/ash/snappop_phoenix var/respawn_time = 300 -/obj/effect/decal/cleanable/ash/snappop_phoenix/Initialize() +/obj/effect/decal/cleanable/ash/snappop_phoenix/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/respawn), respawn_time) @@ -686,7 +686,7 @@ var/list/card_attack_verb_simple = list("attack") -/obj/item/toy/cards/Initialize() +/obj/item/toy/cards/Initialize(mapload) . = ..() if(card_attack_verb_continuous) card_attack_verb_continuous = string_list(card_attack_verb_continuous) @@ -714,7 +714,7 @@ var/obj/machinery/computer/holodeck/holo = null // Holodeck cards should not be infinite var/list/cards = list() -/obj/item/toy/cards/deck/Initialize() +/obj/item/toy/cards/deck/Initialize(mapload) . = ..() AddElement(/datum/element/drag_pickup) populate_deck() @@ -1243,7 +1243,7 @@ var/toysound = 'sound/machines/click.ogg' w_class = WEIGHT_CLASS_SMALL -/obj/item/toy/figure/Initialize() +/obj/item/toy/figure/Initialize(mapload) . = ..() desc = "A \"Space Life\" brand [src]." @@ -1492,7 +1492,7 @@ icon_state = "shell1" var/static/list/possible_colors = list("" = 2, COLOR_PURPLE_GRAY = 1, COLOR_OLIVE = 1, COLOR_PALE_BLUE_GRAY = 1, COLOR_RED_GRAY = 1) -/obj/item/toy/seashell/Initialize() +/obj/item/toy/seashell/Initialize(mapload) . = ..() pixel_x = rand(-5, 5) pixel_y = rand(-5, 5) diff --git a/code/game/objects/items/trash.dm b/code/game/objects/items/trash.dm index de9e49f467c..37feb31e3f0 100644 --- a/code/game/objects/items/trash.dm +++ b/code/game/objects/items/trash.dm @@ -103,7 +103,7 @@ icon = 'icons/obj/food/food.dmi' icon_state = "beans_empty" -/obj/item/trash/can/Initialize() +/obj/item/trash/can/Initialize(mapload) . = ..() pixel_x = rand(-4,4) pixel_y = rand(-4,4) diff --git a/code/game/objects/items/weaponry.dm b/code/game/objects/items/weaponry.dm index d273e4cc191..6f6882c1d2f 100644 --- a/code/game/objects/items/weaponry.dm +++ b/code/game/objects/items/weaponry.dm @@ -15,7 +15,7 @@ armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 100, ACID = 70) resistance_flags = FIRE_PROOF -/obj/item/banhammer/Initialize() +/obj/item/banhammer/Initialize(mapload) . = ..() AddElement(/datum/element/kneejerk) @@ -77,7 +77,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 100, ACID = 50) resistance_flags = FIRE_PROOF -/obj/item/claymore/Initialize() +/obj/item/claymore/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 40, 105) @@ -111,7 +111,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 var/notches = 0 //HOW MANY PEOPLE HAVE BEEN SLAIN WITH THIS BLADE var/obj/item/disk/nuclear/nuke_disk //OUR STORED NUKE DISK -/obj/item/claymore/highlander/Initialize() +/obj/item/claymore/highlander/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, HIGHLANDER_TRAIT) START_PROCESSING(SSobj, src) @@ -234,7 +234,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 icon_state = "claymore_cyborg" var/mob/living/silicon/robot/robot -/obj/item/claymore/highlander/robot/Initialize() +/obj/item/claymore/highlander/robot/Initialize(mapload) var/obj/item/robot_model/kiltkit = loc robot = kiltkit.loc . = ..() @@ -367,7 +367,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 /// Whether the switchblade starts extended or not. var/start_extended = FALSE -/obj/item/switchblade/Initialize() +/obj/item/switchblade/Initialize(mapload) . = ..() AddElement(/datum/element/update_icon_updates_onmob) AddComponent(/datum/component/butchering, 7 SECONDS, 100) @@ -502,7 +502,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 tool_behaviour = TOOL_SAW toolspeed = 1 -/obj/item/mounted_chainsaw/Initialize() +/obj/item/mounted_chainsaw/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, HAND_REPLACEMENT_TRAIT) @@ -531,7 +531,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 attack_verb_simple = list("bust") var/impressiveness = 45 -/obj/item/statuebust/Initialize() +/obj/item/statuebust/Initialize(mapload) . = ..() AddElement(/datum/element/art, impressiveness) AddElement(/datum/element/beauty, 1000) @@ -630,7 +630,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 var/homerun_ready = 0 var/homerun_able = 0 -/obj/item/melee/baseball_bat/Initialize() +/obj/item/melee/baseball_bat/Initialize(mapload) . = ..() if(prob(1)) name = "cricket bat" @@ -713,7 +713,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 //Things in this list will be instantly splatted. Flyman weakness is handled in the flyman species weakness proc. var/list/strong_against -/obj/item/melee/flyswatter/Initialize() +/obj/item/melee/flyswatter/Initialize(mapload) . = ..() strong_against = typecacheof(list( /mob/living/simple_animal/hostile/bee/, @@ -804,7 +804,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 hitsound = 'sound/weapons/bladeslice.ogg' var/wielded = FALSE // track wielded status on item -/obj/item/vibro_weapon/Initialize() +/obj/item/vibro_weapon/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm index 99db1f351e4..8cfe33c2524 100644 --- a/code/game/objects/structures.dm +++ b/code/game/objects/structures.dm @@ -11,7 +11,7 @@ blocks_emissive = EMISSIVE_BLOCK_GENERIC var/broken = FALSE -/obj/structure/Initialize() +/obj/structure/Initialize(mapload) if (!armor) armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 50, ACID = 50) . = ..() diff --git a/code/game/objects/structures/ai_core.dm b/code/game/objects/structures/ai_core.dm index e510e1aaa3d..201f97b0940 100644 --- a/code/game/objects/structures/ai_core.dm +++ b/code/game/objects/structures/ai_core.dm @@ -12,7 +12,7 @@ var/obj/item/mmi/brain var/can_deconstruct = TRUE -/obj/structure/ai_core/Initialize() +/obj/structure/ai_core/Initialize(mapload) . = ..() laws = new laws.set_laws_config() @@ -40,7 +40,7 @@ anchored = TRUE state = AI_READY_CORE -/obj/structure/ai_core/deactivated/Initialize() +/obj/structure/ai_core/deactivated/Initialize(mapload) . = ..() circuit = new(src) @@ -55,7 +55,7 @@ var/safety_checks = TRUE var/active = TRUE -/obj/structure/ai_core/latejoin_inactive/Initialize() +/obj/structure/ai_core/latejoin_inactive/Initialize(mapload) . = ..() circuit = new(src) GLOB.latejoin_ai_cores += src diff --git a/code/game/objects/structures/aliens.dm b/code/game/objects/structures/aliens.dm index 320fd3f14cf..f1d2251ecde 100644 --- a/code/game/objects/structures/aliens.dm +++ b/code/game/objects/structures/aliens.dm @@ -219,7 +219,7 @@ var/node_range = NODERANGE -/obj/structure/alien/weeds/node/Initialize() +/obj/structure/alien/weeds/node/Initialize(mapload) . = ..() set_light(lon_range) var/obj/structure/alien/weeds/W = locate(/obj/structure/alien/weeds) in loc diff --git a/code/game/objects/structures/barsigns.dm b/code/game/objects/structures/barsigns.dm index 6ac8eef35df..b3103a731be 100644 --- a/code/game/objects/structures/barsigns.dm +++ b/code/game/objects/structures/barsigns.dm @@ -12,7 +12,7 @@ var/panel_open = FALSE var/datum/barsign/chosen_sign -/obj/structure/sign/barsign/Initialize() +/obj/structure/sign/barsign/Initialize(mapload) . = ..() set_sign(new /datum/barsign/hiddensigns/signoff) diff --git a/code/game/objects/structures/beds_chairs/bed.dm b/code/game/objects/structures/beds_chairs/bed.dm index 9e23c7e846d..ab681a9bb2a 100644 --- a/code/game/objects/structures/beds_chairs/bed.dm +++ b/code/game/objects/structures/beds_chairs/bed.dm @@ -146,7 +146,7 @@ desc = "A collapsed roller bed that can be ejected for emergency use. Must be collected or replaced after use." var/obj/structure/bed/roller/loaded = null -/obj/item/roller/robo/Initialize() +/obj/item/roller/robo/Initialize(mapload) . = ..() loaded = new(src) @@ -226,6 +226,6 @@ desc = "An old grubby mattress. You try to not think about what could be the cause of those stains." icon_state = "dirty_mattress" -/obj/structure/bed/maint/Initialize() +/obj/structure/bed/maint/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_MOLD, CELL_VIRUS_TABLE_GENERIC, rand(2,4), 25) diff --git a/code/game/objects/structures/beds_chairs/chair.dm b/code/game/objects/structures/beds_chairs/chair.dm index 81786dc9e3c..29fa2a956b2 100644 --- a/code/game/objects/structures/beds_chairs/chair.dm +++ b/code/game/objects/structures/beds_chairs/chair.dm @@ -22,7 +22,7 @@ if(!has_buckled_mobs() && can_buckle) . += span_notice("While standing on [src], drag and drop your sprite onto [src] to buckle to it.") -/obj/structure/chair/Initialize() +/obj/structure/chair/Initialize(mapload) . = ..() if(!anchored) //why would you put these on the shuttle? addtimer(CALLBACK(src, .proc/RemoveFromLatejoin), 0) @@ -175,7 +175,7 @@ item_chair = null var/mutable_appearance/armrest -/obj/structure/chair/comfy/Initialize() +/obj/structure/chair/comfy/Initialize(mapload) armrest = GetArmrest() armrest.layer = ABOVE_MOB_LAYER return ..() diff --git a/code/game/objects/structures/beds_chairs/pew.dm b/code/game/objects/structures/beds_chairs/pew.dm index b7aa1f65d2b..17dcb21f34d 100644 --- a/code/game/objects/structures/beds_chairs/pew.dm +++ b/code/game/objects/structures/beds_chairs/pew.dm @@ -14,7 +14,7 @@ icon_state = "pewend_left" var/mutable_appearance/leftpewarmrest -/obj/structure/chair/pew/left/Initialize() +/obj/structure/chair/pew/left/Initialize(mapload) leftpewarmrest = GetLeftPewArmrest() leftpewarmrest.layer = ABOVE_MOB_LAYER return ..() @@ -45,7 +45,7 @@ icon_state = "pewend_right" var/mutable_appearance/rightpewarmrest -/obj/structure/chair/pew/right/Initialize() +/obj/structure/chair/pew/right/Initialize(mapload) rightpewarmrest = GetRightPewArmrest() rightpewarmrest.layer = ABOVE_MOB_LAYER return ..() diff --git a/code/game/objects/structures/beds_chairs/sofa.dm b/code/game/objects/structures/beds_chairs/sofa.dm index 51b6168c526..06665a12e6f 100644 --- a/code/game/objects/structures/beds_chairs/sofa.dm +++ b/code/game/objects/structures/beds_chairs/sofa.dm @@ -6,7 +6,7 @@ item_chair = null var/mutable_appearance/armrest -/obj/structure/chair/sofa/Initialize() +/obj/structure/chair/sofa/Initialize(mapload) armrest = mutable_appearance(icon, "[icon_state]_armrest", ABOVE_MOB_LAYER) return ..() diff --git a/code/game/objects/structures/bedsheet_bin.dm b/code/game/objects/structures/bedsheet_bin.dm index e54538d6622..6c4995dce7f 100644 --- a/code/game/objects/structures/bedsheet_bin.dm +++ b/code/game/objects/structures/bedsheet_bin.dm @@ -254,7 +254,7 @@ LINEN BINS desc = "If you're reading this description ingame, something has gone wrong! Honk!" slot_flags = null -/obj/item/bedsheet/random/Initialize() +/obj/item/bedsheet/random/Initialize(mapload) ..() var/type = pick(typesof(/obj/item/bedsheet) - /obj/item/bedsheet/random) new type(loc) @@ -266,7 +266,7 @@ LINEN BINS desc = "If you're reading this description ingame, something has gone wrong! Honk!" slot_flags = null -/obj/item/bedsheet/dorms/Initialize() +/obj/item/bedsheet/dorms/Initialize(mapload) ..() var/type = pickweight(list("Colors" = 80, "Special" = 20)) switch(type) diff --git a/code/game/objects/structures/bonfire.dm b/code/game/objects/structures/bonfire.dm index 54378b0b99d..1b90702ec55 100644 --- a/code/game/objects/structures/bonfire.dm +++ b/code/game/objects/structures/bonfire.dm @@ -27,11 +27,11 @@ /obj/structure/bonfire/dense density = TRUE -/obj/structure/bonfire/prelit/Initialize() +/obj/structure/bonfire/prelit/Initialize(mapload) . = ..() start_burning() -/obj/structure/bonfire/Initialize() +/obj/structure/bonfire/Initialize(mapload) . = ..() var/static/list/loc_connections = list( COMSIG_ATOM_ENTERED = .proc/on_entered, diff --git a/code/game/objects/structures/cannons/cannon.dm b/code/game/objects/structures/cannons/cannon.dm index f20c88e26bd..19a82ced61d 100644 --- a/code/game/objects/structures/cannons/cannon.dm +++ b/code/game/objects/structures/cannons/cannon.dm @@ -19,7 +19,7 @@ var/charge_size = 15 var/fire_sound = 'sound/weapons/gun/general/cannon.ogg' -/obj/structure/cannon/Initialize() +/obj/structure/cannon/Initialize(mapload) . = ..() create_reagents(charge_size) diff --git a/code/game/objects/structures/crates_lockers/closets/bodybag.dm b/code/game/objects/structures/crates_lockers/closets/bodybag.dm index 5275d2b8d3a..3903649bd38 100644 --- a/code/game/objects/structures/crates_lockers/closets/bodybag.dm +++ b/code/game/objects/structures/crates_lockers/closets/bodybag.dm @@ -163,7 +163,7 @@ foldedbag_path = /obj/item/bodybag/environmental/ var/list/weather_protection = list(TRAIT_ASHSTORM_IMMUNE, TRAIT_RADSTORM_IMMUNE, TRAIT_SNOWSTORM_IMMUNE, TRAIT_VOIDSTORM_IMMUNE) // Does not protect against lava or the The Floor Is Lava spell. -/obj/structure/closet/body_bag/environmental/Initialize() +/obj/structure/closet/body_bag/environmental/Initialize(mapload) . = ..() for(var/trait in weather_protection) ADD_TRAIT(src, trait, ROUNDSTART_TRAIT) @@ -309,7 +309,7 @@ // The contents of the gas to be distributed to an occupant once sinched down. Set in Initialize() var/datum/gas_mixture/air_contents = null -/obj/structure/closet/body_bag/environmental/prisoner/syndicate/Initialize() +/obj/structure/closet/body_bag/environmental/prisoner/syndicate/Initialize(mapload) . = ..() refresh_air() diff --git a/code/game/objects/structures/crates_lockers/closets/infinite.dm b/code/game/objects/structures/crates_lockers/closets/infinite.dm index 7ed564adf48..c029ec941a3 100644 --- a/code/game/objects/structures/crates_lockers/closets/infinite.dm +++ b/code/game/objects/structures/crates_lockers/closets/infinite.dm @@ -5,7 +5,7 @@ var/stop_replicating_at = 4 var/auto_close_time = 15 SECONDS // Set to 0 to disable auto-closing. -/obj/structure/closet/infinite/Initialize() +/obj/structure/closet/infinite/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) diff --git a/code/game/objects/structures/crates_lockers/closets/secure/freezer.dm b/code/game/objects/structures/crates_lockers/closets/secure/freezer.dm index fe2d6854060..a497f03780b 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/freezer.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/freezer.dm @@ -7,7 +7,7 @@ recursive_organ_check(src) return ..() -/obj/structure/closet/secure_closet/freezer/Initialize() +/obj/structure/closet/secure_closet/freezer/Initialize(mapload) . = ..() recursive_organ_check(src) diff --git a/code/game/objects/structures/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm index f55268f5014..9bc8e456c0d 100644 --- a/code/game/objects/structures/crates_lockers/crates.dm +++ b/code/game/objects/structures/crates_lockers/crates.dm @@ -18,7 +18,7 @@ var/crate_climb_time = 20 var/obj/item/paper/fluff/jobs/cargo/manifest/manifest -/obj/structure/closet/crate/Initialize() +/obj/structure/closet/crate/Initialize(mapload) . = ..() if(icon_state == "[initial(icon_state)]open") opened = TRUE @@ -103,7 +103,7 @@ for(var/i in 1 to rand(2,6)) new /obj/effect/spawner/random/maintenance(src) -/obj/structure/closet/crate/trashcart/Initialize() +/obj/structure/closet/crate/trashcart/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_SLUDGE, CELL_VIRUS_TABLE_GENERIC, rand(2,3), 15) @@ -162,7 +162,7 @@ recursive_organ_check(src) return ..() -/obj/structure/closet/crate/freezer/Initialize() +/obj/structure/closet/crate/freezer/Initialize(mapload) . = ..() recursive_organ_check(src) diff --git a/code/game/objects/structures/crates_lockers/crates/bins.dm b/code/game/objects/structures/crates_lockers/crates/bins.dm index afbdb3c505f..7c27898290e 100644 --- a/code/game/objects/structures/crates_lockers/crates/bins.dm +++ b/code/game/objects/structures/crates_lockers/crates/bins.dm @@ -8,7 +8,7 @@ horizontal = FALSE delivery_icon = null -/obj/structure/closet/crate/bin/Initialize() +/obj/structure/closet/crate/bin/Initialize(mapload) . = ..() update_appearance() diff --git a/code/game/objects/structures/crates_lockers/crates/critter.dm b/code/game/objects/structures/crates_lockers/crates/critter.dm index 6c8fbae3845..24c94b3861e 100644 --- a/code/game/objects/structures/crates_lockers/crates/critter.dm +++ b/code/game/objects/structures/crates_lockers/crates/critter.dm @@ -15,7 +15,7 @@ contents_pressure_protection = 0.8 var/obj/item/tank/internals/emergency_oxygen/tank -/obj/structure/closet/crate/critter/Initialize() +/obj/structure/closet/crate/critter/Initialize(mapload) . = ..() tank = new diff --git a/code/game/objects/structures/deployable_turret.dm b/code/game/objects/structures/deployable_turret.dm index 72979e740f6..1a726b8d050 100644 --- a/code/game/objects/structures/deployable_turret.dm +++ b/code/game/objects/structures/deployable_turret.dm @@ -223,7 +223,7 @@ resistance_flags = FIRE_PROOF | UNACIDABLE | ACID_PROOF var/obj/machinery/deployable_turret/turret -/obj/item/gun_control/Initialize() +/obj/item/gun_control/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT) turret = loc diff --git a/code/game/objects/structures/displaycase.dm b/code/game/objects/structures/displaycase.dm index a8507e63c96..e3db4947935 100644 --- a/code/game/objects/structures/displaycase.dm +++ b/code/game/objects/structures/displaycase.dm @@ -23,7 +23,7 @@ ///Represents a signel source of screaming when broken var/datum/alarm_handler/alarm_manager -/obj/structure/displaycase/Initialize() +/obj/structure/displaycase/Initialize(mapload) . = ..() if(start_showpieces.len && !start_showpiece_type) var/list/showpiece_entry = pick(start_showpieces) @@ -296,7 +296,7 @@ integrity_failure = 0 openable = FALSE -/obj/structure/displaycase/trophy/Initialize() +/obj/structure/displaycase/trophy/Initialize(mapload) . = ..() GLOB.trophy_cases += src diff --git a/code/game/objects/structures/door_assembly.dm b/code/game/objects/structures/door_assembly.dm index 800a9f7f4de..27ad9fb77d4 100644 --- a/code/game/objects/structures/door_assembly.dm +++ b/code/game/objects/structures/door_assembly.dm @@ -20,7 +20,7 @@ var/material_type = /obj/item/stack/sheet/iron var/material_amt = 4 -/obj/structure/door_assembly/Initialize() +/obj/structure/door_assembly/Initialize(mapload) . = ..() update_appearance() update_name() diff --git a/code/game/objects/structures/electricchair.dm b/code/game/objects/structures/electricchair.dm index 13b838b28f6..8d7be60a4f9 100644 --- a/code/game/objects/structures/electricchair.dm +++ b/code/game/objects/structures/electricchair.dm @@ -6,7 +6,7 @@ var/last_time = 1 item_chair = null -/obj/structure/chair/e_chair/Initialize() +/obj/structure/chair/e_chair/Initialize(mapload) . = ..() var/obj/item/assembly/shock_kit/stored_kit = new(contents) var/image/export_to_component = image('icons/obj/chairs.dmi', loc, "echair_over") diff --git a/code/game/objects/structures/false_walls.dm b/code/game/objects/structures/false_walls.dm index c5a0edbcb98..f7abb9739e9 100644 --- a/code/game/objects/structures/false_walls.dm +++ b/code/game/objects/structures/false_walls.dm @@ -26,7 +26,7 @@ var/opening = FALSE -/obj/structure/falsewall/Initialize() +/obj/structure/falsewall/Initialize(mapload) . = ..() air_update_turf(TRUE, TRUE) diff --git a/code/game/objects/structures/fence.dm b/code/game/objects/structures/fence.dm index 98853f8a21d..2dc032691f0 100644 --- a/code/game/objects/structures/fence.dm +++ b/code/game/objects/structures/fence.dm @@ -23,7 +23,7 @@ var/hole_size= NO_HOLE var/invulnerable = FALSE -/obj/structure/fence/Initialize() +/obj/structure/fence/Initialize(mapload) . = ..() update_cut_status() @@ -112,7 +112,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/fireaxe.dm b/code/game/objects/structures/fireaxe.dm index 3a3a8e62c85..b869d8aa81a 100644 --- a/code/game/objects/structures/fireaxe.dm +++ b/code/game/objects/structures/fireaxe.dm @@ -28,7 +28,7 @@ dir = EAST pixel_x = -32 -/obj/structure/fireaxecabinet/Initialize() +/obj/structure/fireaxecabinet/Initialize(mapload) . = ..() fireaxe = new update_appearance() diff --git a/code/game/objects/structures/flora.dm b/code/game/objects/structures/flora.dm index 014a9945d11..5ef89884bc1 100644 --- a/code/game/objects/structures/flora.dm +++ b/code/game/objects/structures/flora.dm @@ -45,7 +45,7 @@ icon_state = "pine_1" var/list/icon_states = list("pine_1", "pine_2", "pine_3") -/obj/structure/flora/tree/pine/Initialize() +/obj/structure/flora/tree/pine/Initialize(mapload) . = ..() if(islist(icon_states?.len)) @@ -65,7 +65,7 @@ var/unlimited = FALSE var/static/list/took_presents //shared between all xmas trees -/obj/structure/flora/tree/pine/xmas/presents/Initialize() +/obj/structure/flora/tree/pine/xmas/presents/Initialize(mapload) . = ..() if(!took_presents) took_presents = list() @@ -102,7 +102,7 @@ desc = "A tree straight from the tropics." icon_state = "palm1" -/obj/structure/flora/tree/palm/Initialize() +/obj/structure/flora/tree/palm/Initialize(mapload) . = ..() icon_state = pick("palm1","palm2") pixel_x = 0 @@ -119,7 +119,7 @@ icon_state = "anchored_rod" anchored = TRUE -/obj/structure/flora/tree/dead/Initialize() +/obj/structure/flora/tree/dead/Initialize(mapload) icon_state = "tree_[rand(1, 6)]" . = ..() @@ -131,7 +131,7 @@ pixel_x = -48 pixel_y = -20 -/obj/structure/flora/tree/jungle/Initialize() +/obj/structure/flora/tree/jungle/Initialize(mapload) icon_state = "[icon_state][rand(1, 6)]" . = ..() @@ -150,7 +150,7 @@ /obj/structure/flora/grass/brown icon_state = "snowgrass1bb" -/obj/structure/flora/grass/brown/Initialize() +/obj/structure/flora/grass/brown/Initialize(mapload) icon_state = "snowgrass[rand(1, 3)]bb" . = ..() @@ -158,14 +158,14 @@ /obj/structure/flora/grass/green icon_state = "snowgrass1gb" -/obj/structure/flora/grass/green/Initialize() +/obj/structure/flora/grass/green/Initialize(mapload) icon_state = "snowgrass[rand(1, 3)]gb" . = ..() /obj/structure/flora/grass/both icon_state = "snowgrassall1" -/obj/structure/flora/grass/both/Initialize() +/obj/structure/flora/grass/both/Initialize(mapload) icon_state = "snowgrassall[rand(1, 3)]" . = ..() @@ -178,7 +178,7 @@ icon_state = "snowbush1" anchored = TRUE -/obj/structure/flora/bush/Initialize() +/obj/structure/flora/bush/Initialize(mapload) icon_state = "snowbush[rand(1, 6)]" . = ..() @@ -190,7 +190,7 @@ icon = 'icons/obj/flora/ausflora.dmi' icon_state = "firstbush_1" -/obj/structure/flora/ausbushes/Initialize() +/obj/structure/flora/ausbushes/Initialize(mapload) if(icon_state == "firstbush_1") icon_state = "firstbush_[rand(1, 4)]" . = ..() @@ -198,105 +198,105 @@ /obj/structure/flora/ausbushes/reedbush icon_state = "reedbush_1" -/obj/structure/flora/ausbushes/reedbush/Initialize() +/obj/structure/flora/ausbushes/reedbush/Initialize(mapload) icon_state = "reedbush_[rand(1, 4)]" . = ..() /obj/structure/flora/ausbushes/leafybush icon_state = "leafybush_1" -/obj/structure/flora/ausbushes/leafybush/Initialize() +/obj/structure/flora/ausbushes/leafybush/Initialize(mapload) icon_state = "leafybush_[rand(1, 3)]" . = ..() /obj/structure/flora/ausbushes/palebush icon_state = "palebush_1" -/obj/structure/flora/ausbushes/palebush/Initialize() +/obj/structure/flora/ausbushes/palebush/Initialize(mapload) icon_state = "palebush_[rand(1, 4)]" . = ..() /obj/structure/flora/ausbushes/stalkybush icon_state = "stalkybush_1" -/obj/structure/flora/ausbushes/stalkybush/Initialize() +/obj/structure/flora/ausbushes/stalkybush/Initialize(mapload) icon_state = "stalkybush_[rand(1, 3)]" . = ..() /obj/structure/flora/ausbushes/grassybush icon_state = "grassybush_1" -/obj/structure/flora/ausbushes/grassybush/Initialize() +/obj/structure/flora/ausbushes/grassybush/Initialize(mapload) icon_state = "grassybush_[rand(1, 4)]" . = ..() /obj/structure/flora/ausbushes/fernybush icon_state = "fernybush_1" -/obj/structure/flora/ausbushes/fernybush/Initialize() +/obj/structure/flora/ausbushes/fernybush/Initialize(mapload) icon_state = "fernybush_[rand(1, 3)]" . = ..() /obj/structure/flora/ausbushes/sunnybush icon_state = "sunnybush_1" -/obj/structure/flora/ausbushes/sunnybush/Initialize() +/obj/structure/flora/ausbushes/sunnybush/Initialize(mapload) icon_state = "sunnybush_[rand(1, 3)]" . = ..() /obj/structure/flora/ausbushes/genericbush icon_state = "genericbush_1" -/obj/structure/flora/ausbushes/genericbush/Initialize() +/obj/structure/flora/ausbushes/genericbush/Initialize(mapload) icon_state = "genericbush_[rand(1, 4)]" . = ..() /obj/structure/flora/ausbushes/pointybush icon_state = "pointybush_1" -/obj/structure/flora/ausbushes/pointybush/Initialize() +/obj/structure/flora/ausbushes/pointybush/Initialize(mapload) icon_state = "pointybush_[rand(1, 4)]" . = ..() /obj/structure/flora/ausbushes/lavendergrass icon_state = "lavendergrass_1" -/obj/structure/flora/ausbushes/lavendergrass/Initialize() +/obj/structure/flora/ausbushes/lavendergrass/Initialize(mapload) icon_state = "lavendergrass_[rand(1, 4)]" . = ..() /obj/structure/flora/ausbushes/ywflowers icon_state = "ywflowers_1" -/obj/structure/flora/ausbushes/ywflowers/Initialize() +/obj/structure/flora/ausbushes/ywflowers/Initialize(mapload) icon_state = "ywflowers_[rand(1, 3)]" . = ..() /obj/structure/flora/ausbushes/brflowers icon_state = "brflowers_1" -/obj/structure/flora/ausbushes/brflowers/Initialize() +/obj/structure/flora/ausbushes/brflowers/Initialize(mapload) icon_state = "brflowers_[rand(1, 3)]" . = ..() /obj/structure/flora/ausbushes/ppflowers icon_state = "ppflowers_1" -/obj/structure/flora/ausbushes/ppflowers/Initialize() +/obj/structure/flora/ausbushes/ppflowers/Initialize(mapload) icon_state = "ppflowers_[rand(1, 3)]" . = ..() /obj/structure/flora/ausbushes/sparsegrass icon_state = "sparsegrass_1" -/obj/structure/flora/ausbushes/sparsegrass/Initialize() +/obj/structure/flora/ausbushes/sparsegrass/Initialize(mapload) icon_state = "sparsegrass_[rand(1, 3)]" . = ..() /obj/structure/flora/ausbushes/fullgrass icon_state = "fullgrass_1" -/obj/structure/flora/ausbushes/fullgrass/Initialize() +/obj/structure/flora/ausbushes/fullgrass/Initialize(mapload) icon_state = "fullgrass_[rand(1, 3)]" . = ..() @@ -343,7 +343,7 @@ icon = 'icons/obj/flora/_flora.dmi' icon_state = "random_plant" -/obj/item/kirbyplants/random/Initialize() +/obj/item/kirbyplants/random/Initialize(mapload) . = ..() icon = 'icons/obj/flora/plants.dmi' if(!random_plant_states) @@ -382,7 +382,7 @@ custom_materials = (list(/datum/material/plastic = 8000)) trimmable = FALSE -/obj/item/kirbyplants/fullysynthetic/Initialize() +/obj/item/kirbyplants/fullysynthetic/Initialize(mapload) . = ..() icon_state = "plant-[rand(26, 29)]" @@ -416,7 +416,7 @@ /// Amount of the itemstack to drop var/mineAmount = 20 -/obj/structure/flora/rock/Initialize() +/obj/structure/flora/rock/Initialize(mapload) . = ..() icon_state = "[icon_state][rand(1,3)]" @@ -446,7 +446,7 @@ icon_state = "grassa" -/obj/structure/flora/grass/jungle/Initialize() +/obj/structure/flora/grass/jungle/Initialize(mapload) icon_state = "[icon_state][rand(1, 5)]" . = ..() @@ -461,7 +461,7 @@ icon = 'icons/obj/flora/jungleflora.dmi' density = FALSE -/obj/structure/flora/rock/jungle/Initialize() +/obj/structure/flora/rock/jungle/Initialize(mapload) . = ..() icon_state = "[initial(icon_state)][rand(1,5)]" @@ -474,7 +474,7 @@ icon = 'icons/obj/flora/jungleflora.dmi' icon_state = "busha" -/obj/structure/flora/junglebush/Initialize() +/obj/structure/flora/junglebush/Initialize(mapload) icon_state = "[icon_state][rand(1, 3)]" . = ..() @@ -499,7 +499,7 @@ pixel_x = -16 pixel_y = -16 -/obj/structure/flora/rock/pile/largejungle/Initialize() +/obj/structure/flora/rock/pile/largejungle/Initialize(mapload) . = ..() icon_state = "[initial(icon_state)][rand(1,3)]" diff --git a/code/game/objects/structures/guillotine.dm b/code/game/objects/structures/guillotine.dm index 789ba6a813c..6ad641b0b53 100644 --- a/code/game/objects/structures/guillotine.dm +++ b/code/game/objects/structures/guillotine.dm @@ -29,7 +29,7 @@ var/kill_count = 0 var/current_action = 0 // What's currently happening to the guillotine -/obj/structure/guillotine/Initialize() +/obj/structure/guillotine/Initialize(mapload) LAZYINITLIST(buckled_mobs) . = ..() diff --git a/code/game/objects/structures/hivebot.dm b/code/game/objects/structures/hivebot.dm index a3685fa79e7..493c7eabca0 100644 --- a/code/game/objects/structures/hivebot.dm +++ b/code/game/objects/structures/hivebot.dm @@ -8,7 +8,7 @@ var/bot_type = "norm" var/bot_amt = 10 -/obj/structure/hivebot_beacon/Initialize() +/obj/structure/hivebot_beacon/Initialize(mapload) . = ..() var/datum/effect_system/smoke_spread/smoke = new smoke.set_up(2, loc) diff --git a/code/game/objects/structures/holosign.dm b/code/game/objects/structures/holosign.dm index 8a4e1dacba5..813630a0404 100644 --- a/code/game/objects/structures/holosign.dm +++ b/code/game/objects/structures/holosign.dm @@ -10,7 +10,7 @@ var/obj/item/holosign_creator/projector var/use_vis_overlay = TRUE -/obj/structure/holosign/Initialize(loc, source_projector) +/obj/structure/holosign/Initialize(mapload, loc, source_projector) . = ..() if(use_vis_overlay) alpha = 0 @@ -104,7 +104,7 @@ name = "sturdy holofirelock" max_integrity = 150 -/obj/structure/holosign/barrier/atmos/Initialize() +/obj/structure/holosign/barrier/atmos/Initialize(mapload) . = ..() var/turf/local = get_turf(loc) ADD_TRAIT(local, TRAIT_FIREDOOR_STOP, TRAIT_GENERIC) diff --git a/code/game/objects/structures/icemoon/cave_entrance.dm b/code/game/objects/structures/icemoon/cave_entrance.dm index f004a8632ae..19151e34f1c 100644 --- a/code/game/objects/structures/icemoon/cave_entrance.dm +++ b/code/game/objects/structures/icemoon/cave_entrance.dm @@ -21,7 +21,7 @@ GLOBAL_LIST_INIT(ore_probability, list( move_resist = INFINITY anchored = TRUE -/obj/structure/spawner/ice_moon/Initialize() +/obj/structure/spawner/ice_moon/Initialize(mapload) . = ..() clear_rock() @@ -80,7 +80,7 @@ GLOBAL_LIST_INIT(ore_probability, list( light_range = 1 light_color = COLOR_SOFT_RED -/obj/structure/spawner/ice_moon/demonic_portal/Initialize() +/obj/structure/spawner/ice_moon/demonic_portal/Initialize(mapload) . = ..() AddComponent(/datum/component/gps, "Netheric Signal") @@ -113,7 +113,7 @@ GLOBAL_LIST_INIT(ore_probability, list( anchored = TRUE density = TRUE -/obj/effect/collapsing_demonic_portal/Initialize() +/obj/effect/collapsing_demonic_portal/Initialize(mapload) . = ..() playsound(loc,'sound/effects/tendril_destroyed.ogg', 200, FALSE, 50, TRUE, TRUE) visible_message(span_boldannounce("[src] begins to collapse, cutting it off from this world!")) diff --git a/code/game/objects/structures/industrial_lift.dm b/code/game/objects/structures/industrial_lift.dm index 9eab9ddab0b..ba29ed037ec 100644 --- a/code/game/objects/structures/industrial_lift.dm +++ b/code/game/objects/structures/industrial_lift.dm @@ -551,7 +551,7 @@ GLOBAL_LIST_EMPTY(tram_landmarks) ///icons for the tgui console to list out for what is at this location var/list/tgui_icons = list() -/obj/effect/landmark/tram/Initialize() +/obj/effect/landmark/tram/Initialize(mapload) . = ..() GLOB.tram_landmarks += src diff --git a/code/game/objects/structures/janicart.dm b/code/game/objects/structures/janicart.dm index 5bf4988fae2..f806e6bb7da 100644 --- a/code/game/objects/structures/janicart.dm +++ b/code/game/objects/structures/janicart.dm @@ -16,7 +16,7 @@ var/max_signs = 4 -/obj/structure/janitorialcart/Initialize() +/obj/structure/janitorialcart/Initialize(mapload) . = ..() create_reagents(100, OPENCONTAINER) diff --git a/code/game/objects/structures/ladders.dm b/code/game/objects/structures/ladders.dm index d8b7e57d837..fece86325d0 100644 --- a/code/game/objects/structures/ladders.dm +++ b/code/game/objects/structures/ladders.dm @@ -173,7 +173,7 @@ var/id var/height = 0 // higher numbers are considered physically higher -/obj/structure/ladder/unbreakable/Initialize() +/obj/structure/ladder/unbreakable/Initialize(mapload) GLOB.ladders += src return ..() diff --git a/code/game/objects/structures/lavaland/geyser.dm b/code/game/objects/structures/lavaland/geyser.dm index c4f1b54983e..bd38012dc98 100644 --- a/code/game/objects/structures/lavaland/geyser.dm +++ b/code/game/objects/structures/lavaland/geyser.dm @@ -113,7 +113,7 @@ true_name = "strange geyser" discovery_message = "It's a strange geyser! How does any of this even work?" //it doesnt -/obj/structure/geyser/random/Initialize() +/obj/structure/geyser/random/Initialize(mapload) . = ..() reagent_id = get_random_reagent_id() diff --git a/code/game/objects/structures/lavaland/necropolis_tendril.dm b/code/game/objects/structures/lavaland/necropolis_tendril.dm index 6968d1c6d76..43d84b93ac4 100644 --- a/code/game/objects/structures/lavaland/necropolis_tendril.dm +++ b/code/game/objects/structures/lavaland/necropolis_tendril.dm @@ -29,7 +29,7 @@ mob_types = list(/mob/living/simple_animal/hostile/asteroid/basilisk/watcher/icewing) GLOBAL_LIST_INIT(tendrils, list()) -/obj/structure/spawner/lavaland/Initialize() +/obj/structure/spawner/lavaland/Initialize(mapload) . = ..() emitted_light = new(loc) for(var/F in RANGE_TURFS(1, src)) @@ -77,7 +77,7 @@ GLOBAL_LIST_INIT(tendrils, list()) density = TRUE var/obj/effect/light_emitter/tendril/emitted_light -/obj/effect/collapse/Initialize() +/obj/effect/collapse/Initialize(mapload) . = ..() emitted_light = new(loc) visible_message(span_boldannounce("The tendril writhes in fury as the earth around it begins to crack and break apart! Get back!")) diff --git a/code/game/objects/structures/maintenance.dm b/code/game/objects/structures/maintenance.dm index 7664e75957d..e4993a9eba0 100644 --- a/code/game/objects/structures/maintenance.dm +++ b/code/game/objects/structures/maintenance.dm @@ -27,7 +27,7 @@ at the cost of risking a vicious bite.**/ /obj/item/coin/mythril = 1) //the loot table isn't that great and should probably be improved and expanded later. -/obj/structure/moisture_trap/Initialize() +/obj/structure/moisture_trap/Initialize(mapload) . = ..() if(prob(40)) critter_infested = FALSE diff --git a/code/game/objects/structures/mineral_doors.dm b/code/game/objects/structures/mineral_doors.dm index a32f9041266..b948296f470 100644 --- a/code/game/objects/structures/mineral_doors.dm +++ b/code/game/objects/structures/mineral_doors.dm @@ -26,7 +26,7 @@ var/sheetType = /obj/item/stack/sheet/iron //what we're made of var/sheetAmount = 7 //how much we drop when deconstructed -/obj/structure/mineral_door/Initialize() +/obj/structure/mineral_door/Initialize(mapload) . = ..() air_update_turf(TRUE, TRUE) @@ -318,7 +318,7 @@ resistance_flags = FLAMMABLE max_integrity = 20 -/obj/structure/mineral_door/paperframe/Initialize() +/obj/structure/mineral_door/paperframe/Initialize(mapload) . = ..() if(smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)) QUEUE_SMOOTH_NEIGHBORS(src) diff --git a/code/game/objects/structures/mop_bucket.dm b/code/game/objects/structures/mop_bucket.dm index ee812057258..8da8e8c69ce 100644 --- a/code/game/objects/structures/mop_bucket.dm +++ b/code/game/objects/structures/mop_bucket.dm @@ -7,7 +7,7 @@ var/amount_per_transfer_from_this = 5 //shit I dunno, adding this so syringes stop runtime erroring. --NeoFite -/obj/structure/mopbucket/Initialize() +/obj/structure/mopbucket/Initialize(mapload) . = ..() create_reagents(100, OPENCONTAINER) diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index 370a8bd4910..25b8c0af9ff 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -28,7 +28,7 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an var/message_cooldown var/breakout_time = 600 -/obj/structure/bodycontainer/Initialize() +/obj/structure/bodycontainer/Initialize(mapload) . = ..() GLOB.bodycontainers += src recursive_organ_check(src) @@ -158,7 +158,7 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an /// The cooldown to prevent this from spamming beeps. COOLDOWN_DECLARE(next_beep) -/obj/structure/bodycontainer/morgue/Initialize() +/obj/structure/bodycontainer/morgue/Initialize(mapload) . = ..() connected = new/obj/structure/tray/m_tray(src) connected.connected = src @@ -217,7 +217,7 @@ GLOBAL_LIST_EMPTY(crematoriums) dir = SOUTH var/id = 1 -/obj/structure/bodycontainer/crematorium/Initialize() +/obj/structure/bodycontainer/crematorium/Initialize(mapload) . = ..() GLOB.crematoriums += src connected = new /obj/structure/tray/c_tray(src) diff --git a/code/game/objects/structures/plasticflaps.dm b/code/game/objects/structures/plasticflaps.dm index a7d9b3561bc..85138500552 100644 --- a/code/game/objects/structures/plasticflaps.dm +++ b/code/game/objects/structures/plasticflaps.dm @@ -12,7 +12,7 @@ /obj/structure/plasticflaps/opaque opacity = TRUE -/obj/structure/plasticflaps/Initialize() +/obj/structure/plasticflaps/Initialize(mapload) . = ..() alpha = 0 SSvis_overlays.add_vis_overlay(src, icon, icon_state, ABOVE_MOB_LAYER, plane, dir, add_appearance_flags = RESET_ALPHA) //you see mobs under it, but you hit them like they are above it @@ -110,7 +110,7 @@ new /obj/item/stack/sheet/plastic/five(loc) qdel(src) -/obj/structure/plasticflaps/Initialize() +/obj/structure/plasticflaps/Initialize(mapload) . = ..() air_update_turf(TRUE, TRUE) diff --git a/code/game/objects/structures/railings.dm b/code/game/objects/structures/railings.dm index 96e7b6767ab..327f030a4bf 100644 --- a/code/game/objects/structures/railings.dm +++ b/code/game/objects/structures/railings.dm @@ -20,7 +20,7 @@ density = FALSE climbable = FALSE -/obj/structure/railing/Initialize() +/obj/structure/railing/Initialize(mapload) . = ..() ini_dir = dir if(climbable) diff --git a/code/game/objects/structures/reflector.dm b/code/game/objects/structures/reflector.dm index 0b9271f49e0..354bae8d4f6 100644 --- a/code/game/objects/structures/reflector.dm +++ b/code/game/objects/structures/reflector.dm @@ -17,7 +17,7 @@ var/list/allowed_projectile_typecache = list(/obj/projectile/beam) var/rotation_angle = -1 -/obj/structure/reflector/Initialize() +/obj/structure/reflector/Initialize(mapload) . = ..() icon_state = "reflector_base" allowed_projectile_typecache = typecacheof(allowed_projectile_typecache) diff --git a/code/game/objects/structures/showcase.dm b/code/game/objects/structures/showcase.dm index a817dff093d..c23039f5c72 100644 --- a/code/game/objects/structures/showcase.dm +++ b/code/game/objects/structures/showcase.dm @@ -17,7 +17,7 @@ icon = 'icons/obj/computer.dmi' icon_state = "computer" -/obj/structure/showcase/fakeid/Initialize() +/obj/structure/showcase/fakeid/Initialize(mapload) . = ..() add_overlay("id") add_overlay("id_key") diff --git a/code/game/objects/structures/shower.dm b/code/game/objects/structures/shower.dm index ab3b413c1ae..b5694e3daf5 100644 --- a/code/game/objects/structures/shower.dm +++ b/code/game/objects/structures/shower.dm @@ -34,7 +34,7 @@ /// Whether to allow players to toggle the water reclaimer. var/can_toggle_refill = TRUE -/obj/machinery/shower/Initialize() +/obj/machinery/shower/Initialize(mapload) . = ..() create_reagents(reagent_capacity) reagents.add_reagent(reagent_id, reagent_capacity) @@ -203,7 +203,7 @@ return return ..() -/obj/structure/showerframe/Initialize() +/obj/structure/showerframe/Initialize(mapload) . = ..() AddComponent(/datum/component/simple_rotation, ROTATION_ALTCLICK | ROTATION_CLOCKWISE | ROTATION_COUNTERCLOCKWISE | ROTATION_VERBS, null, CALLBACK(src, .proc/can_be_rotated)) diff --git a/code/game/objects/structures/signs/_signs.dm b/code/game/objects/structures/signs/_signs.dm index b5c10cd4141..f83a3cf4857 100644 --- a/code/game/objects/structures/signs/_signs.dm +++ b/code/game/objects/structures/signs/_signs.dm @@ -41,7 +41,7 @@ ///This determines if you can select this sign type when using a pen on a sign backing. False by default, set to true per sign type to override. var/is_editable = TRUE -/obj/item/sign/Initialize() //Signs not attached to walls are always rotated so they look like they're laying horizontal. +/obj/item/sign/Initialize(mapload) //Signs not attached to walls are always rotated so they look like they're laying horizontal. . = ..() var/matrix/M = matrix() M.Turn(90) @@ -210,7 +210,7 @@ placed_sign.setDir(dir) qdel(src) -/obj/item/sign/random/Initialize() +/obj/item/sign/random/Initialize(mapload) . = ..() set_sign_type(GLOB.editable_sign_types[pick(GLOB.editable_sign_types)]) diff --git a/code/game/objects/structures/spawner.dm b/code/game/objects/structures/spawner.dm index 32611e9635c..855bda19eb6 100644 --- a/code/game/objects/structures/spawner.dm +++ b/code/game/objects/structures/spawner.dm @@ -15,7 +15,7 @@ var/faction = list("hostile") var/spawner_type = /datum/component/spawner -/obj/structure/spawner/Initialize() +/obj/structure/spawner/Initialize(mapload) . = ..() AddComponent(spawner_type, mob_types, spawn_time, faction, spawn_text, max_mobs) diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index e92a5947ab3..f23cdae9351 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -320,7 +320,7 @@ armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 80, ACID = 100) var/list/debris = list() -/obj/structure/table/glass/Initialize() +/obj/structure/table/glass/Initialize(mapload) . = ..() debris += new frame if(buildstack == /obj/item/stack/sheet/plasmaglass) @@ -445,7 +445,7 @@ canSmoothWith = list(SMOOTH_GROUP_FANCY_WOOD_TABLES) var/smooth_icon = 'icons/obj/smooth_structures/fancy_table.dmi' // see Initialize() -/obj/structure/table/wood/fancy/Initialize() +/obj/structure/table/wood/fancy/Initialize(mapload) . = ..() // Needs to be set dynamically because table smooth sprites are 32x34, // which the editor treats as a two-tile-tall object. The sprites are that @@ -620,7 +620,7 @@ var/mob/living/carbon/human/patient = null var/obj/machinery/computer/operating/computer = null -/obj/structure/table/optable/Initialize() +/obj/structure/table/optable/Initialize(mapload) . = ..() for(var/direction in GLOB.alldirs) computer = locate(/obj/machinery/computer/operating) in get_step(src, direction) diff --git a/code/game/objects/structures/tank_dispenser.dm b/code/game/objects/structures/tank_dispenser.dm index ffb2cb742cd..ccc58bdf317 100644 --- a/code/game/objects/structures/tank_dispenser.dm +++ b/code/game/objects/structures/tank_dispenser.dm @@ -17,7 +17,7 @@ /obj/structure/tank_dispenser/plasma oxygentanks = 0 -/obj/structure/tank_dispenser/Initialize() +/obj/structure/tank_dispenser/Initialize(mapload) . = ..() for(var/i in 1 to oxygentanks) new /obj/item/tank/internals/oxygen(src) diff --git a/code/game/objects/structures/tank_holder.dm b/code/game/objects/structures/tank_holder.dm index dce25119f04..5a2b52f79c7 100644 --- a/code/game/objects/structures/tank_holder.dm +++ b/code/game/objects/structures/tank_holder.dm @@ -17,7 +17,7 @@ /// The stored tank. If this is a path, it gets created into contents at Initialize. var/obj/item/tank -/obj/structure/tank_holder/Initialize() +/obj/structure/tank_holder/Initialize(mapload) . = ..() if(tank) var/obj/item/tank_ = new tank(null) diff --git a/code/game/objects/structures/transit_tubes/station.dm b/code/game/objects/structures/transit_tubes/station.dm index d5c85e5f6d1..5cb1a2a8736 100644 --- a/code/game/objects/structures/transit_tubes/station.dm +++ b/code/game/objects/structures/transit_tubes/station.dm @@ -21,7 +21,7 @@ var/base_icon = "station0" var/boarding_dir //from which direction you can board the tube -/obj/structure/transit_tube/station/Initialize() +/obj/structure/transit_tube/station/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) diff --git a/code/game/objects/structures/transit_tubes/transit_tube_pod.dm b/code/game/objects/structures/transit_tubes/transit_tube_pod.dm index ea247bd25cf..1c37b568180 100644 --- a/code/game/objects/structures/transit_tubes/transit_tube_pod.dm +++ b/code/game/objects/structures/transit_tubes/transit_tube_pod.dm @@ -18,7 +18,7 @@ var/moving_time = 0 -/obj/structure/transit_tube_pod/Initialize() +/obj/structure/transit_tube_pod/Initialize(mapload) . = ..() air_contents.add_gases(/datum/gas/oxygen, /datum/gas/nitrogen) air_contents.gases[/datum/gas/oxygen][MOLES] = MOLES_O2STANDARD diff --git a/code/game/objects/structures/traps.dm b/code/game/objects/structures/traps.dm index 39a6d35ccac..9825cc15613 100644 --- a/code/game/objects/structures/traps.dm +++ b/code/game/objects/structures/traps.dm @@ -226,7 +226,7 @@ density = TRUE time_between_triggers = 1200 //Exists for 2 minutes -/obj/structure/trap/ward/Initialize() +/obj/structure/trap/ward/Initialize(mapload) . = ..() QDEL_IN(src, time_between_triggers) diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index 56c7dc75b30..136b309cd92 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -12,7 +12,7 @@ var/buildstacktype = /obj/item/stack/sheet/iron //they're iron now, shut up var/buildstackamount = 1 -/obj/structure/toilet/Initialize() +/obj/structure/toilet/Initialize(mapload) . = ..() open = round(rand(0, 1)) update_appearance() @@ -175,7 +175,7 @@ dir = EAST pixel_x = -32 -/obj/structure/urinal/Initialize() +/obj/structure/urinal/Initialize(mapload) . = ..() hiddenitem = new /obj/item/food/urinalcake @@ -764,7 +764,7 @@ GLOB.curtains -= src return ..() -/obj/structure/curtain/cloth/fancy/mechanical/Initialize() +/obj/structure/curtain/cloth/fancy/mechanical/Initialize(mapload) . = ..() GLOB.curtains += src diff --git a/code/game/objects/structures/windoor_assembly.dm b/code/game/objects/structures/windoor_assembly.dm index e52c0be74d2..bc3c1b24193 100644 --- a/code/game/objects/structures/windoor_assembly.dm +++ b/code/game/objects/structures/windoor_assembly.dm @@ -29,7 +29,7 @@ var/state = "01" //How far the door assembly has progressed CanAtmosPass = ATMOS_PASS_PROC -/obj/structure/windoor_assembly/Initialize(loc, set_dir) +/obj/structure/windoor_assembly/Initialize(mapload, loc, set_dir) . = ..() if(set_dir) setDir(set_dir) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index 421f22acbfa..c51fa0ff821 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -797,7 +797,7 @@ var/static/mutable_appearance/torn = mutable_appearance('icons/obj/smooth_structures/paperframes.dmi',icon_state = "torn", layer = ABOVE_OBJ_LAYER - 0.1) var/static/mutable_appearance/paper = mutable_appearance('icons/obj/smooth_structures/paperframes.dmi',icon_state = "paper", layer = ABOVE_OBJ_LAYER - 0.1) -/obj/structure/window/paperframe/Initialize() +/obj/structure/window/paperframe/Initialize(mapload) . = ..() update_appearance() diff --git a/code/game/turfs/baseturf_skipover.dm b/code/game/turfs/baseturf_skipover.dm index 4df8c86e624..9bef78a15ea 100644 --- a/code/game/turfs/baseturf_skipover.dm +++ b/code/game/turfs/baseturf_skipover.dm @@ -3,7 +3,7 @@ name = "Baseturf skipover placeholder" desc = "This shouldn't exist" -/turf/baseturf_skipover/Initialize() +/turf/baseturf_skipover/Initialize(mapload) . = ..() stack_trace("[src]([type]) was instanced which should never happen. Changing into the next baseturf down...") ScrapeAway() diff --git a/code/game/turfs/closed/_closed.dm b/code/game/turfs/closed/_closed.dm index 567c20a28f7..676d385d56e 100644 --- a/code/game/turfs/closed/_closed.dm +++ b/code/game/turfs/closed/_closed.dm @@ -163,7 +163,7 @@ smoothing_groups = list(SMOOTH_GROUP_WINDOW_FULLTILE) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE) -/turf/closed/indestructible/fakeglass/Initialize() +/turf/closed/indestructible/fakeglass/Initialize(mapload) . = ..() underlays += mutable_appearance('icons/obj/structures.dmi', "grille") //add a grille underlay underlays += mutable_appearance('icons/turf/floors.dmi', "plating") //add the plating underlay, below the grille @@ -178,7 +178,7 @@ smoothing_groups = list(SMOOTH_GROUP_SHUTTLE_PARTS, SMOOTH_GROUP_WINDOW_FULLTILE_PLASTITANIUM) canSmoothWith = list(SMOOTH_GROUP_WINDOW_FULLTILE_PLASTITANIUM) -/turf/closed/indestructible/opsglass/Initialize() +/turf/closed/indestructible/opsglass/Initialize(mapload) . = ..() icon_state = null underlays += mutable_appearance('icons/obj/structures.dmi', "grille") diff --git a/code/game/turfs/closed/minerals.dm b/code/game/turfs/closed/minerals.dm index d648191c71d..3a5903c4d47 100644 --- a/code/game/turfs/closed/minerals.dm +++ b/code/game/turfs/closed/minerals.dm @@ -27,7 +27,7 @@ // If true you can mine the mineral turf with your hands var/weak_turf = FALSE -/turf/closed/mineral/Initialize() +/turf/closed/mineral/Initialize(mapload) . = ..() var/matrix/M = new M.Translate(-4, -4) @@ -182,7 +182,7 @@ //Currently, Adamantine won't spawn as it has no uses. -Durandan var/mineralChance = 13 -/turf/closed/mineral/random/Initialize() +/turf/closed/mineral/random/Initialize(mapload) if(SSevents.holidays && SSevents.holidays[APRIL_FOOLS]) mineralSpawnChanceList[/obj/item/stack/ore/bananium] = 3 @@ -538,7 +538,7 @@ var/activated_name = null var/mutable_appearance/activated_overlay -/turf/closed/mineral/gibtonite/Initialize() +/turf/closed/mineral/gibtonite/Initialize(mapload) det_time = rand(8,10) //So you don't know exactly when the hot potato will explode . = ..() diff --git a/code/game/turfs/closed/wall/misc_walls.dm b/code/game/turfs/closed/wall/misc_walls.dm index b85415b5a1a..90434d246eb 100644 --- a/code/game/turfs/closed/wall/misc_walls.dm +++ b/code/game/turfs/closed/wall/misc_walls.dm @@ -11,7 +11,7 @@ sheet_amount = 1 girder_type = /obj/structure/girder/cult -/turf/closed/wall/mineral/cult/Initialize() +/turf/closed/wall/mineral/cult/Initialize(mapload) new /obj/effect/temp_visual/cult/turf(src) . = ..() diff --git a/code/game/turfs/open/_open.dm b/code/game/turfs/open/_open.dm index 5f6fc16a50f..8724356e8b9 100644 --- a/code/game/turfs/open/_open.dm +++ b/code/game/turfs/open/_open.dm @@ -97,7 +97,7 @@ heavyfootstep = FOOTSTEP_LAVA tiled_dirt = FALSE -/turf/open/indestructible/necropolis/Initialize() +/turf/open/indestructible/necropolis/Initialize(mapload) . = ..() if(prob(12)) icon_state = "necro[rand(2,3)]" diff --git a/code/game/turfs/open/chasm.dm b/code/game/turfs/open/chasm.dm index 81a04a1c11f..edb61bf4d15 100644 --- a/code/game/turfs/open/chasm.dm +++ b/code/game/turfs/open/chasm.dm @@ -12,7 +12,7 @@ density = TRUE //This will prevent hostile mobs from pathing into chasms, while the canpass override will still let it function like an open turf bullet_bounce_sound = null //abandon all hope ye who enter -/turf/open/chasm/Initialize() +/turf/open/chasm/Initialize(mapload) . = ..() AddComponent(/datum/component/chasm, SSmapping.get_turf_below(src)) diff --git a/code/game/turfs/open/floor/catwalk_plating.dm b/code/game/turfs/open/floor/catwalk_plating.dm index 486ffba6400..063deb17f50 100644 --- a/code/game/turfs/open/floor/catwalk_plating.dm +++ b/code/game/turfs/open/floor/catwalk_plating.dm @@ -17,7 +17,7 @@ heavyfootstep = FOOTSTEP_CATWALK var/covered = TRUE -/turf/open/floor/plating/catwalk_floor/Initialize() +/turf/open/floor/plating/catwalk_floor/Initialize(mapload) . = ..() update_icon(UPDATE_OVERLAYS) diff --git a/code/game/turfs/open/floor/fancy_floor.dm b/code/game/turfs/open/floor/fancy_floor.dm index e562f037bbf..32970eec2dd 100644 --- a/code/game/turfs/open/floor/fancy_floor.dm +++ b/code/game/turfs/open/floor/fancy_floor.dm @@ -107,7 +107,7 @@ /turf/open/floor/grass/setup_broken_states() return list("sand") -/turf/open/floor/grass/Initialize() +/turf/open/floor/grass/Initialize(mapload) . = ..() spawniconchange() @@ -235,7 +235,7 @@ . = ..() . += span_notice("There's a small crack on the edge of it.") -/turf/open/floor/carpet/Initialize() +/turf/open/floor/carpet/Initialize(mapload) . = ..() update_appearance() @@ -444,7 +444,7 @@ /// The alpha used for the emissive decal. var/emissive_alpha = 150 -/turf/open/floor/carpet/neon/Initialize() +/turf/open/floor/carpet/neon/Initialize(mapload) . = ..() AddElement(/datum/element/decal, neon_icon || icon, neon_icon_state || base_icon_state, dir, null, null, alpha, neon_color, smoothing_junction) AddElement(/datum/element/decal, neon_icon || icon, neon_icon_state || base_icon_state, dir, EMISSIVE_PLANE, null, emissive_alpha, EMISSIVE_COLOR, smoothing_junction) @@ -790,7 +790,7 @@ /turf/open/floor/fakespace/setup_broken_states() return list("damaged") -/turf/open/floor/fakespace/Initialize() +/turf/open/floor/fakespace/Initialize(mapload) . = ..() icon_state = SPACE_ICON_STATE diff --git a/code/game/turfs/open/floor/light_floor.dm b/code/game/turfs/open/floor/light_floor.dm index 8c056adcc5f..d1378c32707 100644 --- a/code/game/turfs/open/floor/light_floor.dm +++ b/code/game/turfs/open/floor/light_floor.dm @@ -51,7 +51,7 @@ LIGHT_COLOR_FIRE = image(icon = src.icon, icon_state = "light_on-10") ) -/turf/open/floor/light/Initialize() +/turf/open/floor/light/Initialize(mapload) . = ..() update_appearance() if(!length(lighttile_designs)) diff --git a/code/game/turfs/open/floor/mineral_floor.dm b/code/game/turfs/open/floor/mineral_floor.dm index 79a623c4f44..07f6bddafaa 100644 --- a/code/game/turfs/open/floor/mineral_floor.dm +++ b/code/game/turfs/open/floor/mineral_floor.dm @@ -17,7 +17,7 @@ tiled_dirt = FALSE -/turf/open/floor/mineral/Initialize() +/turf/open/floor/mineral/Initialize(mapload) . = ..() icons = typelist("icons", icons) @@ -302,7 +302,7 @@ baseturfs = /turf/open/floor/plating/abductor2 custom_materials = list(/datum/material/alloy/alien = 500) -/turf/open/floor/mineral/abductor/Initialize() +/turf/open/floor/mineral/abductor/Initialize(mapload) . = ..() icon_state = "alienpod[rand(1,9)]" diff --git a/code/game/turfs/open/floor/misc_floor.dm b/code/game/turfs/open/floor/misc_floor.dm index c2661b503b7..f2341c6613b 100644 --- a/code/game/turfs/open/floor/misc_floor.dm +++ b/code/game/turfs/open/floor/misc_floor.dm @@ -7,7 +7,7 @@ floor_tile = /obj/item/stack/tile/circuit var/on = TRUE -/turf/open/floor/circuit/Initialize() +/turf/open/floor/circuit/Initialize(mapload) SSmapping.nuke_tiles += src update_appearance() . = ..() diff --git a/code/game/turfs/open/floor/plating/asteroid.dm b/code/game/turfs/open/floor/plating/asteroid.dm index 6b9bc4ff1e1..f55b44b0a25 100644 --- a/code/game/turfs/open/floor/plating/asteroid.dm +++ b/code/game/turfs/open/floor/plating/asteroid.dm @@ -27,7 +27,7 @@ /turf/open/floor/plating/asteroid/setup_broken_states() return list("asteroid_dug") -/turf/open/floor/plating/asteroid/Initialize() +/turf/open/floor/plating/asteroid/Initialize(mapload) var/proper_name = name . = ..() name = proper_name @@ -111,7 +111,7 @@ /turf/open/floor/plating/asteroid/basalt/airless initial_gas_mix = AIRLESS_ATMOS -/turf/open/floor/plating/asteroid/basalt/Initialize() +/turf/open/floor/plating/asteroid/basalt/Initialize(mapload) . = ..() set_basalt_light(src) diff --git a/code/game/turfs/open/floor/plating/misc_plating.dm b/code/game/turfs/open/floor/plating/misc_plating.dm index f058166b7b4..42384396cde 100644 --- a/code/game/turfs/open/floor/plating/misc_plating.dm +++ b/code/game/turfs/open/floor/plating/misc_plating.dm @@ -19,7 +19,7 @@ /turf/open/floor/plating/abductor/setup_broken_states() return list("alienpod1") -/turf/open/floor/plating/abductor/Initialize() +/turf/open/floor/plating/abductor/Initialize(mapload) . = ..() icon_state = "alienpod[rand(1,9)]" @@ -59,7 +59,7 @@ var/smooth_icon = 'icons/turf/floors/ash.dmi' -/turf/open/floor/plating/ashplanet/Initialize() +/turf/open/floor/plating/ashplanet/Initialize(mapload) . = ..() if(smoothing_flags & SMOOTH_BITMASK) var/matrix/M = new @@ -110,7 +110,7 @@ clawfootstep = FOOTSTEP_HARD_CLAW heavyfootstep = FOOTSTEP_GENERIC_HEAVY -/turf/open/floor/plating/ashplanet/wateryrock/Initialize() +/turf/open/floor/plating/ashplanet/wateryrock/Initialize(mapload) icon_state = "[icon_state][rand(1, 9)]" . = ..() @@ -202,7 +202,7 @@ /turf/open/floor/plating/ironsand/setup_broken_states() return list("ironsand1") -/turf/open/floor/plating/ironsand/Initialize() +/turf/open/floor/plating/ironsand/Initialize(mapload) . = ..() icon_state = "ironsand[rand(1,15)]" @@ -230,7 +230,7 @@ clawfootstep = FOOTSTEP_HARD_CLAW heavyfootstep = FOOTSTEP_GENERIC_HEAVY -/turf/open/floor/plating/ice/Initialize() +/turf/open/floor/plating/ice/Initialize(mapload) . = ..() MakeSlippery(TURF_WET_PERMAFROST, INFINITY, 0, INFINITY, TRUE) @@ -313,7 +313,7 @@ /turf/open/floor/plating/grass/setup_broken_states() return list("damaged") -/turf/open/floor/plating/grass/Initialize() +/turf/open/floor/plating/grass/Initialize(mapload) . = ..() if(smoothing_flags) var/matrix/translation = new diff --git a/code/game/turfs/open/floor/plating/planet.dm b/code/game/turfs/open/floor/plating/planet.dm index a331b2a5de6..ff9820f8fab 100644 --- a/code/game/turfs/open/floor/plating/planet.dm +++ b/code/game/turfs/open/floor/plating/planet.dm @@ -45,7 +45,7 @@ /turf/open/floor/plating/dirt/jungle/wasteland/setup_broken_states() return list("[initial(icon_state)]0") -/turf/open/floor/plating/dirt/jungle/wasteland/Initialize() +/turf/open/floor/plating/dirt/jungle/wasteland/Initialize(mapload) .=..() if(prob(floor_variance)) icon_state = "[initial(icon_state)][rand(0,12)]" diff --git a/code/game/turfs/open/floor/reinf_floor.dm b/code/game/turfs/open/floor/reinf_floor.dm index 64701642146..6c3670e42ee 100644 --- a/code/game/turfs/open/floor/reinf_floor.dm +++ b/code/game/turfs/open/floor/reinf_floor.dm @@ -201,7 +201,7 @@ var/obj/effect/cult_turf/overlay/floor/bloodcult/realappearance -/turf/open/floor/engine/cult/Initialize() +/turf/open/floor/engine/cult/Initialize(mapload) . = ..() new /obj/effect/temp_visual/cult/turf/floor(src) realappearance = new /obj/effect/cult_turf/overlay/floor/bloodcult(src) diff --git a/code/game/turfs/open/glass.dm b/code/game/turfs/open/glass.dm index bb04f2ec3ff..81c4bfb2fdd 100644 --- a/code/game/turfs/open/glass.dm +++ b/code/game/turfs/open/glass.dm @@ -18,7 +18,7 @@ return list("glass-damaged1", "glass-damaged2", "glass-damaged3") -/turf/open/floor/glass/Initialize() +/turf/open/floor/glass/Initialize(mapload) icon_state = "" //Prevent the normal icon from appearing behind the smooth overlays ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/game/turfs/open/openspace.dm b/code/game/turfs/open/openspace.dm index 8af72c7e4bc..ff9a6b478ab 100644 --- a/code/game/turfs/open/openspace.dm +++ b/code/game/turfs/open/openspace.dm @@ -29,7 +29,7 @@ GLOBAL_DATUM_INIT(openspace_backdrop_one_for_all, /atom/movable/openspace_backdr /turf/open/openspace/airless/planetary planetary_atmos = TRUE -/turf/open/openspace/Initialize() // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker +/turf/open/openspace/Initialize(mapload) // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker . = ..() overlays += GLOB.openspace_backdrop_one_for_all //Special grey square for projecting backdrop darkness filter on it. return INITIALIZE_HINT_LATELOAD @@ -158,7 +158,7 @@ GLOBAL_DATUM_INIT(openspace_backdrop_one_for_all, /atom/movable/openspace_backdr /// If true mineral turfs below this openspace turf will be mined automatically var/drill_below = TRUE -/turf/open/openspace/icemoon/Initialize() +/turf/open/openspace/icemoon/Initialize(mapload) . = ..() var/turf/T = below() //I wonder if I should error here diff --git a/code/game/turfs/open/space/space.dm b/code/game/turfs/open/space/space.dm index ae34b8ffabc..1c79a654e5c 100644 --- a/code/game/turfs/open/space/space.dm +++ b/code/game/turfs/open/space/space.dm @@ -29,7 +29,7 @@ * * Doesn't call parent, see [/atom/proc/Initialize] */ -/turf/open/space/Initialize() +/turf/open/space/Initialize(mapload) SHOULD_CALL_PARENT(FALSE) icon_state = SPACE_ICON_STATE air = space_gas diff --git a/code/game/turfs/open/space/transit.dm b/code/game/turfs/open/space/transit.dm index 2c631350795..9e1e9643b26 100644 --- a/code/game/turfs/open/space/transit.dm +++ b/code/game/turfs/open/space/transit.dm @@ -75,7 +75,7 @@ return SSshuttle.is_in_shuttle_bounds(src) -/turf/open/space/transit/Initialize() +/turf/open/space/transit/Initialize(mapload) . = ..() update_appearance() for(var/atom/movable/AM in src) diff --git a/code/modules/NTNet/relays.dm b/code/modules/NTNet/relays.dm index d2e0df46df5..4f044cb90f3 100644 --- a/code/modules/NTNet/relays.dm +++ b/code/modules/NTNet/relays.dm @@ -113,7 +113,7 @@ update_appearance() return TRUE -/obj/machinery/ntnet_relay/Initialize() +/obj/machinery/ntnet_relay/Initialize(mapload) uid = gl_uid++ component_parts = list() diff --git a/code/modules/admin/fun_balloon.dm b/code/modules/admin/fun_balloon.dm index f7cc9362689..52bac236b0a 100644 --- a/code/modules/admin/fun_balloon.dm +++ b/code/modules/admin/fun_balloon.dm @@ -7,7 +7,7 @@ var/popped = FALSE var/pop_sound_effect = 'sound/items/party_horn.ogg' -/obj/effect/fun_balloon/Initialize() +/obj/effect/fun_balloon/Initialize(mapload) . = ..() SSobj.processing |= src @@ -132,7 +132,7 @@ var/min_crash_strength = 3 var/max_crash_strength = 15 -/obj/effect/station_crash/Initialize() +/obj/effect/station_crash/Initialize(mapload) ..() shuttle_crash() return INITIALIZE_HINT_QDEL diff --git a/code/modules/antagonists/abductor/equipment/abduction_gear.dm b/code/modules/antagonists/abductor/equipment/abduction_gear.dm index 0b3599229eb..2f62af27284 100644 --- a/code/modules/antagonists/abductor/equipment/abduction_gear.dm +++ b/code/modules/antagonists/abductor/equipment/abduction_gear.dm @@ -29,7 +29,7 @@ var/stealth_armor = list(MELEE = 15, BULLET = 15, LASER = 15, ENERGY = 25, BOMB = 15, BIO = 15, RAD = 15, FIRE = 70, ACID = 70) var/combat_armor = list(MELEE = 50, BULLET = 50, LASER = 50, ENERGY = 50, BOMB = 50, BIO = 50, RAD = 50, FIRE = 90, ACID = 90) -/obj/item/clothing/suit/armor/abductor/vest/Initialize() +/obj/item/clothing/suit/armor/abductor/vest/Initialize(mapload) . = ..() stealth_armor = getArmor(arglist(stealth_armor)) combat_armor = getArmor(arglist(combat_armor)) @@ -816,7 +816,7 @@ Congratulations! You are now trained for invasive xenobiology research!"} var/static/list/injected_reagents = list(/datum/reagent/medicine/cordiolis_hepatico) -/obj/structure/table/optable/abductor/Initialize() +/obj/structure/table/optable/abductor/Initialize(mapload) . = ..() var/static/list/loc_connections = list( COMSIG_ATOM_ENTERED = .proc/on_entered, diff --git a/code/modules/antagonists/abductor/equipment/gland.dm b/code/modules/antagonists/abductor/equipment/gland.dm index b90982c2eb3..3e85616c677 100644 --- a/code/modules/antagonists/abductor/equipment/gland.dm +++ b/code/modules/antagonists/abductor/equipment/gland.dm @@ -23,7 +23,7 @@ var/mind_control_duration = 1800 var/active_mind_control = FALSE -/obj/item/organ/heart/gland/Initialize() +/obj/item/organ/heart/gland/Initialize(mapload) . = ..() icon_state = pick(list("health", "spider", "slime", "emp", "species", "egg", "vent", "mindshock", "viral")) diff --git a/code/modules/antagonists/abductor/equipment/glands/chem.dm b/code/modules/antagonists/abductor/equipment/glands/chem.dm index b651b45f6d1..0c7d20d1ffa 100644 --- a/code/modules/antagonists/abductor/equipment/glands/chem.dm +++ b/code/modules/antagonists/abductor/equipment/glands/chem.dm @@ -8,7 +8,7 @@ mind_control_duration = 1200 var/list/possible_reagents = list() -/obj/item/organ/heart/gland/chem/Initialize() +/obj/item/organ/heart/gland/chem/Initialize(mapload) . = ..() for(var/R in subtypesof(/datum/reagent/drug) + subtypesof(/datum/reagent/medicine) + typesof(/datum/reagent/toxin)) possible_reagents += R diff --git a/code/modules/antagonists/abductor/machinery/dispenser.dm b/code/modules/antagonists/abductor/machinery/dispenser.dm index f5bc0946e66..7d79bacdd0d 100644 --- a/code/modules/antagonists/abductor/machinery/dispenser.dm +++ b/code/modules/antagonists/abductor/machinery/dispenser.dm @@ -12,7 +12,7 @@ //TODO : replace with presets or spectrum return rgb(rand(0,255),rand(0,255),rand(0,255)) -/obj/machinery/abductor/gland_dispenser/Initialize() +/obj/machinery/abductor/gland_dispenser/Initialize(mapload) . = ..() gland_types = subtypesof(/obj/item/organ/heart/gland) gland_types = shuffle(gland_types) diff --git a/code/modules/antagonists/abductor/machinery/pad.dm b/code/modules/antagonists/abductor/machinery/pad.dm index 0b0531fb1ee..5fde3c554c7 100644 --- a/code/modules/antagonists/abductor/machinery/pad.dm +++ b/code/modules/antagonists/abductor/machinery/pad.dm @@ -49,7 +49,7 @@ icon_state = "teleport" duration = 80 -/obj/effect/temp_visual/teleport_abductor/Initialize() +/obj/effect/temp_visual/teleport_abductor/Initialize(mapload) . = ..() var/datum/effect_system/spark_spread/S = new S.set_up(10,0,loc) diff --git a/code/modules/antagonists/blob/blob_mobs.dm b/code/modules/antagonists/blob/blob_mobs.dm index c8350812d10..a49ce6176cf 100644 --- a/code/modules/antagonists/blob/blob_mobs.dm +++ b/code/modules/antagonists/blob/blob_mobs.dm @@ -28,7 +28,7 @@ else remove_atom_colour(FIXED_COLOUR_PRIORITY) -/mob/living/simple_animal/hostile/blob/Initialize() +/mob/living/simple_animal/hostile/blob/Initialize(mapload) . = ..() if(!independent) //no pulling people deep into the blob remove_verb(src, /mob/living/verb/pulled) @@ -273,7 +273,7 @@ mob_size = MOB_SIZE_LARGE hud_type = /datum/hud/living/blobbernaut -/mob/living/simple_animal/hostile/blob/blobbernaut/Initialize() +/mob/living/simple_animal/hostile/blob/blobbernaut/Initialize(mapload) . = ..() add_cell_sample() diff --git a/code/modules/antagonists/blob/structures/node.dm b/code/modules/antagonists/blob/structures/node.dm index 290ad0d6058..0ee8a1a6001 100644 --- a/code/modules/antagonists/blob/structures/node.dm +++ b/code/modules/antagonists/blob/structures/node.dm @@ -15,7 +15,7 @@ ignore_syncmesh_share = TRUE -/obj/structure/blob/special/node/Initialize() +/obj/structure/blob/special/node/Initialize(mapload) GLOB.blob_nodes += src START_PROCESSING(SSobj, src) . = ..() diff --git a/code/modules/antagonists/changeling/powers/mutations.dm b/code/modules/antagonists/changeling/powers/mutations.dm index d22afe3a745..3838bfe8b2b 100644 --- a/code/modules/antagonists/changeling/powers/mutations.dm +++ b/code/modules/antagonists/changeling/powers/mutations.dm @@ -288,7 +288,7 @@ firing_effect_type = null var/obj/item/gun/magic/tentacle/gun //the item that shot it -/obj/item/ammo_casing/magic/tentacle/Initialize() +/obj/item/ammo_casing/magic/tentacle/Initialize(mapload) gun = loc . = ..() @@ -309,7 +309,7 @@ ///Click params that were used to fire the tentacle shot var/list/fire_modifiers -/obj/projectile/tentacle/Initialize() +/obj/projectile/tentacle/Initialize(mapload) source = loc . = ..() @@ -432,7 +432,7 @@ var/remaining_uses //Set by the changeling ability. -/obj/item/shield/changeling/Initialize() +/obj/item/shield/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) if(ismob(loc)) @@ -481,7 +481,7 @@ cell = null show_hud = FALSE -/obj/item/clothing/suit/space/changeling/Initialize() +/obj/item/clothing/suit/space/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) if(ismob(loc)) @@ -507,7 +507,7 @@ armor = list(MELEE = 0, BULLET = 0, LASER = 0,ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 90, ACID = 90) flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH -/obj/item/clothing/head/helmet/space/changeling/Initialize() +/obj/item/clothing/head/helmet/space/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) @@ -540,7 +540,7 @@ cold_protection = 0 heat_protection = 0 -/obj/item/clothing/suit/armor/changeling/Initialize() +/obj/item/clothing/suit/armor/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) if(ismob(loc)) @@ -554,6 +554,6 @@ armor = list(MELEE = 40, BULLET = 40, LASER = 40, ENERGY = 50, BOMB = 10, BIO = 4, RAD = 0, FIRE = 90, ACID = 90) flags_inv = HIDEEARS|HIDEHAIR|HIDEEYES|HIDEFACIALHAIR|HIDEFACE|HIDESNOUT -/obj/item/clothing/head/helmet/changeling/Initialize() +/obj/item/clothing/head/helmet/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) diff --git a/code/modules/antagonists/clown_ops/clown_weapons.dm b/code/modules/antagonists/clown_ops/clown_weapons.dm index 7d97c568b09..8f0b5af478c 100644 --- a/code/modules/antagonists/clown_ops/clown_weapons.dm +++ b/code/modules/antagonists/clown_ops/clown_weapons.dm @@ -39,7 +39,7 @@ pocket_storage_component_path = /datum/component/storage/concrete/pockets/shoes always_noslip = TRUE -/obj/item/clothing/shoes/clown_shoes/banana_shoes/combat/Initialize() +/obj/item/clothing/shoes/clown_shoes/banana_shoes/combat/Initialize(mapload) . = ..() var/datum/component/material_container/bananium = GetComponent(/datum/component/material_container) bananium.insert_amount_mat(BANANA_SHOES_MAX_CHARGE, /datum/material/bananium) @@ -192,7 +192,7 @@ var/det_time = 50 var/obj/item/grenade/syndieminibomb/bomb -/obj/item/grown/bananapeel/bombanana/Initialize() +/obj/item/grown/bananapeel/bombanana/Initialize(mapload) . = ..() bomb = new /obj/item/grenade/syndieminibomb(src) bomb.det_time = det_time @@ -234,7 +234,7 @@ /obj/item/clothing/mask/fakemoustache/sticky var/unstick_time = 600 -/obj/item/clothing/mask/fakemoustache/sticky/Initialize() +/obj/item/clothing/mask/fakemoustache/sticky/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, STICKY_MOUSTACHE_TRAIT) addtimer(CALLBACK(src, .proc/unstick), unstick_time) diff --git a/code/modules/antagonists/cult/cult_items.dm b/code/modules/antagonists/cult/cult_items.dm index 04cf2ca4b0b..67144591d4c 100644 --- a/code/modules/antagonists/cult/cult_items.dm +++ b/code/modules/antagonists/cult/cult_items.dm @@ -27,7 +27,7 @@ actions_types = list(/datum/action/item_action/cult_dagger) var/drawing_rune = FALSE -/obj/item/melee/cultblade/dagger/Initialize() +/obj/item/melee/cultblade/dagger/Initialize(mapload) . = ..() var/image/I = image(icon = 'icons/effects/blood.dmi' , icon_state = null, loc = src) I.override = TRUE @@ -68,7 +68,7 @@ attack_verb_continuous = list("attacks", "slashes", "stabs", "slices", "tears", "lacerates", "rips", "dices", "rends") attack_verb_simple = list("attack", "slash", "stab", "slice", "tear", "lacerate", "rip", "dice", "rend") -/obj/item/melee/cultblade/Initialize() +/obj/item/melee/cultblade/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 40, 100) @@ -102,7 +102,7 @@ flags_1 = NONE block_chance = 25 //these dweebs don't get full block chance, because they're free cultists -/obj/item/melee/cultblade/ghost/Initialize() +/obj/item/melee/cultblade/ghost/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CULT_TRAIT) @@ -142,7 +142,7 @@ var/spin_cooldown = 250 var/dash_toggled = TRUE -/obj/item/cult_bastard/Initialize() +/obj/item/cult_bastard/Initialize(mapload) . = ..() jaunt = new(src) linked_action = new(src) @@ -360,7 +360,7 @@ /obj/item/clothing/suit/hooded/cultrobes/alt/ghost item_flags = DROPDEL -/obj/item/clothing/suit/hooded/cultrobes/alt/ghost/Initialize() +/obj/item/clothing/suit/hooded/cultrobes/alt/ghost/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CULT_TRAIT) @@ -429,7 +429,7 @@ armor = list(MELEE = 50, BULLET = 40, LASER = 50,ENERGY = 50, BOMB = 50, BIO = 30, RAD = 30, FIRE = 50, ACID = 60) hoodtype = /obj/item/clothing/head/hooded/cult_hoodie/cult_shield -/obj/item/clothing/suit/hooded/cultrobes/cult_shield/Initialize() +/obj/item/clothing/suit/hooded/cultrobes/cult_shield/Initialize(mapload) . = ..() // note that these charges don't regenerate AddComponent(/datum/component/shielded, recharge_start_delay = 0, shield_icon_file = 'icons/effects/cult_effects.dmi', shield_icon = "shield-cult", run_hit_callback = CALLBACK(src, .proc/shield_damaged)) @@ -697,7 +697,7 @@ var/datum/action/innate/cult/halberd/halberd_act var/wielded = FALSE // track wielded status on item -/obj/item/melee/cultblade/halberd/Initialize() +/obj/item/melee/cultblade/halberd/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) @@ -876,7 +876,7 @@ var/firing = FALSE var/angle -/obj/item/blood_beam/Initialize() +/obj/item/blood_beam/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CULT_TRAIT) diff --git a/code/modules/antagonists/cult/cult_structures.dm b/code/modules/antagonists/cult/cult_structures.dm index 994aeca9e79..93167d42de3 100644 --- a/code/modules/antagonists/cult/cult_structures.dm +++ b/code/modules/antagonists/cult/cult_structures.dm @@ -184,7 +184,7 @@ var/corrupt_delay = 50 var/last_corrupt = 0 -/obj/structure/destructible/cult/pylon/Initialize() +/obj/structure/destructible/cult/pylon/Initialize(mapload) . = ..() START_PROCESSING(SSfastprocess, src) diff --git a/code/modules/antagonists/cult/ritual.dm b/code/modules/antagonists/cult/ritual.dm index f1fa3553bc6..09c95923819 100644 --- a/code/modules/antagonists/cult/ritual.dm +++ b/code/modules/antagonists/cult/ritual.dm @@ -5,7 +5,7 @@ This file contains the cult dagger and rune list code */ -/obj/item/melee/cultblade/dagger/Initialize() +/obj/item/melee/cultblade/dagger/Initialize(mapload) . = ..() if(!LAZYLEN(GLOB.rune_types)) GLOB.rune_types = list() diff --git a/code/modules/antagonists/cult/runes.dm b/code/modules/antagonists/cult/runes.dm index b1f8d7d6e67..ef312269794 100644 --- a/code/modules/antagonists/cult/runes.dm +++ b/code/modules/antagonists/cult/runes.dm @@ -771,7 +771,7 @@ structure_check() searches for nearby cultist structures required for the invoca var/ghost_limit = 3 var/ghosts = 0 -/obj/effect/rune/manifest/Initialize() +/obj/effect/rune/manifest/Initialize(mapload) . = ..() diff --git a/code/modules/antagonists/eldritch_cult/eldritch_effects.dm b/code/modules/antagonists/eldritch_cult/eldritch_effects.dm index 95136e80a73..230ebf3910f 100644 --- a/code/modules/antagonists/eldritch_cult/eldritch_effects.dm +++ b/code/modules/antagonists/eldritch_cult/eldritch_effects.dm @@ -8,7 +8,7 @@ ///Used mainly for summoning ritual to prevent spamming the rune to create millions of monsters. var/is_in_use = FALSE -/obj/effect/eldritch/Initialize() +/obj/effect/eldritch/Initialize(mapload) . = ..() var/image/I = image(icon = 'icons/effects/eldritch.dmi', icon_state = null, loc = src) I.override = TRUE @@ -198,7 +198,7 @@ resistance_flags = FIRE_PROOF | UNACIDABLE | ACID_PROOF alpha = 0 -/obj/effect/broken_illusion/Initialize() +/obj/effect/broken_illusion/Initialize(mapload) . = ..() addtimer(CALLBACK(src,.proc/show_presence),15 SECONDS) @@ -270,7 +270,7 @@ ///Tracked image var/image/img -/obj/effect/reality_smash/Initialize() +/obj/effect/reality_smash/Initialize(mapload) . = ..() GLOB.reality_smash_track.smashes += src img = image(icon, src, image_state, OBJ_LAYER) diff --git a/code/modules/antagonists/eldritch_cult/eldritch_items.dm b/code/modules/antagonists/eldritch_cult/eldritch_items.dm index 326b3a32d0d..c91c896a969 100644 --- a/code/modules/antagonists/eldritch_cult/eldritch_items.dm +++ b/code/modules/antagonists/eldritch_cult/eldritch_items.dm @@ -296,7 +296,7 @@ . += "This item can carve 'Grasping carving' - when stepped on it causes heavy damage to the legs and stuns for 5 seconds." . += "This item can carve 'Mad carving' - when stepped on it causes dizzyness, jiterryness, temporary blindness, confusion , stuttering and slurring." -/obj/item/melee/rune_carver/Initialize() +/obj/item/melee/rune_carver/Initialize(mapload) . = ..() linked_action = new(src) diff --git a/code/modules/antagonists/eldritch_cult/eldritch_magic.dm b/code/modules/antagonists/eldritch_cult/eldritch_magic.dm index 0b47f9529ad..5c1c858ac7c 100644 --- a/code/modules/antagonists/eldritch_cult/eldritch_magic.dm +++ b/code/modules/antagonists/eldritch_cult/eldritch_magic.dm @@ -634,7 +634,7 @@ duration = 1 MINUTES layer = LOW_SIGIL_LAYER -/obj/effect/temp_visual/glowing_rune/Initialize() +/obj/effect/temp_visual/glowing_rune/Initialize(mapload) . = ..() pixel_y = rand(-6,6) pixel_x = rand(-6,6) diff --git a/code/modules/antagonists/morph/morph.dm b/code/modules/antagonists/morph/morph.dm index 6e609dc60f3..e54756311b1 100644 --- a/code/modules/antagonists/morph/morph.dm +++ b/code/modules/antagonists/morph/morph.dm @@ -42,7 +42,7 @@ /mob/living/simple_animal/hostile/morph, /obj/effect)) -/mob/living/simple_animal/hostile/morph/Initialize() +/mob/living/simple_animal/hostile/morph/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) diff --git a/code/modules/antagonists/nightmare/nightmare_equipment.dm b/code/modules/antagonists/nightmare/nightmare_equipment.dm index f22e0d9fecd..56b74537809 100644 --- a/code/modules/antagonists/nightmare/nightmare_equipment.dm +++ b/code/modules/antagonists/nightmare/nightmare_equipment.dm @@ -18,7 +18,7 @@ wound_bonus = -30 bare_wound_bonus = 20 -/obj/item/light_eater/Initialize() +/obj/item/light_eater/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, HAND_REPLACEMENT_TRAIT) AddComponent(/datum/component/butchering, 80, 70) diff --git a/code/modules/antagonists/nukeop/equipment/borgchameleon.dm b/code/modules/antagonists/nukeop/equipment/borgchameleon.dm index 2017a7a95aa..360d664f6bd 100644 --- a/code/modules/antagonists/nukeop/equipment/borgchameleon.dm +++ b/code/modules/antagonists/nukeop/equipment/borgchameleon.dm @@ -27,7 +27,7 @@ var/mob/living/silicon/robot/user // needed for process() var/animation_playing = FALSE -/obj/item/borg_chameleon/Initialize() +/obj/item/borg_chameleon/Initialize(mapload) . = ..() friendlyName = pick(GLOB.ai_names) diff --git a/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm b/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm index 1c0fc7ef0f5..1270755a256 100644 --- a/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm +++ b/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm @@ -34,7 +34,7 @@ GLOBAL_VAR(station_nuke_source) var/proper_bomb = TRUE //Please var/obj/effect/countdown/nuclearbomb/countdown -/obj/machinery/nuclearbomb/Initialize() +/obj/machinery/nuclearbomb/Initialize(mapload) . = ..() countdown = new(src) GLOB.nuke_list += src @@ -516,7 +516,7 @@ GLOBAL_VAR(station_nuke_source) proper_bomb = FALSE var/obj/structure/reagent_dispensers/beerkeg/keg -/obj/machinery/nuclearbomb/beer/Initialize() +/obj/machinery/nuclearbomb/beer/Initialize(mapload) . = ..() keg = new(src) QDEL_NULL(core) @@ -641,7 +641,7 @@ This is here to make the tiles around the station mininuke change when it's arme var/turf/lastlocation var/last_disk_move -/obj/item/disk/nuclear/Initialize() +/obj/item/disk/nuclear/Initialize(mapload) . = ..() AddElement(/datum/element/bed_tuckable, 6, -6, 0) diff --git a/code/modules/antagonists/nukeop/equipment/pinpointer.dm b/code/modules/antagonists/nukeop/equipment/pinpointer.dm index 1f74382225f..2f6fb80c8e5 100644 --- a/code/modules/antagonists/nukeop/equipment/pinpointer.dm +++ b/code/modules/antagonists/nukeop/equipment/pinpointer.dm @@ -72,7 +72,7 @@ flags_1 = NONE resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF -/obj/item/pinpointer/syndicate_cyborg/Initialize() +/obj/item/pinpointer/syndicate_cyborg/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CYBORG_ITEM_TRAIT) diff --git a/code/modules/antagonists/revenant/revenant.dm b/code/modules/antagonists/revenant/revenant.dm index 1ecbe879df2..12f886bfd2f 100644 --- a/code/modules/antagonists/revenant/revenant.dm +++ b/code/modules/antagonists/revenant/revenant.dm @@ -399,7 +399,7 @@ var/old_key //key of the previous revenant, will have first pick on reform. var/mob/living/simple_animal/revenant/revenant -/obj/item/ectoplasm/revenant/Initialize() +/obj/item/ectoplasm/revenant/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/try_reform), 600) diff --git a/code/modules/antagonists/revenant/revenant_abilities.dm b/code/modules/antagonists/revenant/revenant_abilities.dm index 0925ff8b6c8..5f95fd94487 100644 --- a/code/modules/antagonists/revenant/revenant_abilities.dm +++ b/code/modules/antagonists/revenant/revenant_abilities.dm @@ -143,7 +143,7 @@ var/unlock_amount = 100 //How much essence it costs to unlock var/cast_amount = 50 //How much essence it costs to use -/obj/effect/proc_holder/spell/aoe_turf/revenant/Initialize() +/obj/effect/proc_holder/spell/aoe_turf/revenant/Initialize(mapload) . = ..() if(locked) name = "[initial(name)] ([unlock_amount]SE)" diff --git a/code/modules/antagonists/slaughter/slaughter.dm b/code/modules/antagonists/slaughter/slaughter.dm index 7ccf38e0e1e..1c9e73527ac 100644 --- a/code/modules/antagonists/slaughter/slaughter.dm +++ b/code/modules/antagonists/slaughter/slaughter.dm @@ -206,7 +206,7 @@ // Keep the people we hug! var/list/consumed_mobs = list() -/mob/living/simple_animal/hostile/imp/slaughter/laughter/Initialize() +/mob/living/simple_animal/hostile/imp/slaughter/laughter/Initialize(mapload) . = ..() if(SSevents.holidays && SSevents.holidays[APRIL_FOOLS]) icon_state = "honkmon" diff --git a/code/modules/antagonists/traitor/equipment/Malf_Modules.dm b/code/modules/antagonists/traitor/equipment/Malf_Modules.dm index 54b687bafbd..1f7e35b4061 100644 --- a/code/modules/antagonists/traitor/equipment/Malf_Modules.dm +++ b/code/modules/antagonists/traitor/equipment/Malf_Modules.dm @@ -303,7 +303,7 @@ GLOBAL_LIST_INIT(malf_modules, subtypesof(/datum/ai_module)) var/next_announce var/mob/living/silicon/ai/owner -/obj/machinery/doomsday_device/Initialize() +/obj/machinery/doomsday_device/Initialize(mapload) . = ..() if(!isAI(loc)) stack_trace("Doomsday created outside an AI somehow, shit's fucking broke. Anyway, we're just gonna qdel now. Go make a github issue report.") diff --git a/code/modules/antagonists/wizard/equipment/artefact.dm b/code/modules/antagonists/wizard/equipment/artefact.dm index a9bde16e738..b62eff36af1 100644 --- a/code/modules/antagonists/wizard/equipment/artefact.dm +++ b/code/modules/antagonists/wizard/equipment/artefact.dm @@ -365,6 +365,6 @@ duration = 40 pixel_x = 500 -/obj/effect/temp_visual/tornado/Initialize() +/obj/effect/temp_visual/tornado/Initialize(mapload) . = ..() animate(src, pixel_x = -500, time = 40) diff --git a/code/modules/antagonists/wizard/equipment/soulstone.dm b/code/modules/antagonists/wizard/equipment/soulstone.dm index 52e4872c39e..172ffa542b9 100644 --- a/code/modules/antagonists/wizard/equipment/soulstone.dm +++ b/code/modules/antagonists/wizard/equipment/soulstone.dm @@ -17,7 +17,7 @@ /// Role check, if any needed var/required_role = /datum/antagonist/cult -/obj/item/soulstone/Initialize() +/obj/item/soulstone/Initialize(mapload) . = ..() if(theme != THEME_HOLY) RegisterSignal(src, COMSIG_BIBLE_SMACKED, .proc/on_bible_smacked) diff --git a/code/modules/antagonists/wizard/equipment/spellbook.dm b/code/modules/antagonists/wizard/equipment/spellbook.dm index 0169cfa4dfb..41f73beb68c 100644 --- a/code/modules/antagonists/wizard/equipment/spellbook.dm +++ b/code/modules/antagonists/wizard/equipment/spellbook.dm @@ -682,7 +682,7 @@ else . += "It appears to have no author." -/obj/item/spellbook/Initialize() +/obj/item/spellbook/Initialize(mapload) . = ..() prepare_spells() diff --git a/code/modules/aquarium/aquarium.dm b/code/modules/aquarium/aquarium.dm index 14813512ac5..46170dad502 100644 --- a/code/modules/aquarium/aquarium.dm +++ b/code/modules/aquarium/aquarium.dm @@ -40,7 +40,7 @@ var/alive_fish = 0 var/dead_fish = 0 -/obj/structure/aquarium/Initialize() +/obj/structure/aquarium/Initialize(mapload) . = ..() update_appearance() RegisterSignal(src,COMSIG_PARENT_ATTACKBY, .proc/feed_feedback) diff --git a/code/modules/aquarium/aquarium_kit.dm b/code/modules/aquarium/aquarium_kit.dm index f9fbf40a4ff..1ef3ad5d17d 100644 --- a/code/modules/aquarium/aquarium_kit.dm +++ b/code/modules/aquarium/aquarium_kit.dm @@ -7,7 +7,7 @@ icon_state = "fish_feed" w_class = WEIGHT_CLASS_TINY -/obj/item/fish_feed/Initialize() +/obj/item/fish_feed/Initialize(mapload) . = ..() create_reagents(5, OPENCONTAINER) reagents.add_reagent(/datum/reagent/consumable/nutriment, 1) //Default fish diet @@ -24,7 +24,7 @@ component_type = /datum/component/storage/concrete/fish_case -/obj/item/storage/fish_case/Initialize() +/obj/item/storage/fish_case/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_FISH_SAFE_STORAGE, TRAIT_GENERIC) diff --git a/code/modules/art/paintings.dm b/code/modules/art/paintings.dm index 23b2ca86a59..bab8cf8df41 100644 --- a/code/modules/art/paintings.dm +++ b/code/modules/art/paintings.dm @@ -62,7 +62,7 @@ pixel_x = 10 pixel_y = 9 -/obj/item/canvas/Initialize() +/obj/item/canvas/Initialize(mapload) . = ..() reset_grid() diff --git a/code/modules/art/statues.dm b/code/modules/art/statues.dm index 604fad82f58..7ef1b8e3879 100644 --- a/code/modules/art/statues.dm +++ b/code/modules/art/statues.dm @@ -17,7 +17,7 @@ /// Abstract root type var/abstract_type = /obj/structure/statue -/obj/structure/statue/Initialize() +/obj/structure/statue/Initialize(mapload) . = ..() AddElement(art_type, impressiveness) AddElement(/datum/element/beauty, impressiveness * 75) @@ -327,7 +327,7 @@ /// Currently sculpting var/sculpting = FALSE -/obj/item/chisel/Initialize() +/obj/item/chisel/Initialize(mapload) . = ..() AddElement(/datum/element/eyestab) AddElement(/datum/element/wall_engraver) diff --git a/code/modules/assembly/doorcontrol.dm b/code/modules/assembly/doorcontrol.dm index 52f501cb8b9..4cb1b0d8a69 100644 --- a/code/modules/assembly/doorcontrol.dm +++ b/code/modules/assembly/doorcontrol.dm @@ -223,7 +223,7 @@ ///this is our destination's landmark, so we only have to find it the first time. var/datum/weakref/to_where -/obj/item/assembly/control/tram/Initialize() +/obj/item/assembly/control/tram/Initialize(mapload) . = ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/modules/assembly/igniter.dm b/code/modules/assembly/igniter.dm index 0a8a6c56f76..6dedc60cd9b 100644 --- a/code/modules/assembly/igniter.dm +++ b/code/modules/assembly/igniter.dm @@ -18,7 +18,7 @@ user.IgniteMob() return FIRELOSS -/obj/item/assembly/igniter/Initialize() +/obj/item/assembly/igniter/Initialize(mapload) . = ..() sparks = new sparks.set_up(2, 0, src) diff --git a/code/modules/assembly/infrared.dm b/code/modules/assembly/infrared.dm index 45dcd269315..96a2fb8182e 100644 --- a/code/modules/assembly/infrared.dm +++ b/code/modules/assembly/infrared.dm @@ -14,7 +14,7 @@ var/turf/listeningTo var/hearing_range = 3 -/obj/item/assembly/infra/Initialize() +/obj/item/assembly/infra/Initialize(mapload) . = ..() beams = list() START_PROCESSING(SSobj, src) diff --git a/code/modules/assembly/mousetrap.dm b/code/modules/assembly/mousetrap.dm index 19c48ed32a5..8789a3b60ee 100644 --- a/code/modules/assembly/mousetrap.dm +++ b/code/modules/assembly/mousetrap.dm @@ -14,7 +14,7 @@ COMSIG_ATOM_ENTERED = .proc/on_entered, ) -/obj/item/assembly/mousetrap/Initialize() +/obj/item/assembly/mousetrap/Initialize(mapload) . = ..() var/static/list/loc_connections = list( COMSIG_ATOM_ENTERED = .proc/on_entered, diff --git a/code/modules/assembly/proximity.dm b/code/modules/assembly/proximity.dm index 7491097ed26..2a4f649b7fa 100644 --- a/code/modules/assembly/proximity.dm +++ b/code/modules/assembly/proximity.dm @@ -12,7 +12,7 @@ var/sensitivity = 1 var/hearing_range = 3 -/obj/item/assembly/prox_sensor/Initialize() +/obj/item/assembly/prox_sensor/Initialize(mapload) . = ..() proximity_monitor = new(src, 0) START_PROCESSING(SSobj, src) diff --git a/code/modules/assembly/shock_kit.dm b/code/modules/assembly/shock_kit.dm index 7f6e0ac6a3c..4bc45bd5673 100644 --- a/code/modules/assembly/shock_kit.dm +++ b/code/modules/assembly/shock_kit.dm @@ -13,7 +13,7 @@ QDEL_NULL(electropack_part) return ..() -/obj/item/assembly/shock_kit/Initialize() +/obj/item/assembly/shock_kit/Initialize(mapload) . = ..() if(!helmet_part) helmet_part = new(src) diff --git a/code/modules/assembly/signaler.dm b/code/modules/assembly/signaler.dm index 851b79de446..f4f2ce95be1 100644 --- a/code/modules/assembly/signaler.dm +++ b/code/modules/assembly/signaler.dm @@ -46,7 +46,7 @@ playsound(user, 'sound/machines/triple_beep.ogg', ASSEMBLY_BEEP_VOLUME, TRUE) qdel(src) -/obj/item/assembly/signaler/Initialize() +/obj/item/assembly/signaler/Initialize(mapload) . = ..() set_frequency(frequency) diff --git a/code/modules/assembly/timer.dm b/code/modules/assembly/timer.dm index 5887307104f..10f47a130b6 100644 --- a/code/modules/assembly/timer.dm +++ b/code/modules/assembly/timer.dm @@ -24,7 +24,7 @@ user.adjustOxyLoss(200) user.death(0) -/obj/item/assembly/timer/Initialize() +/obj/item/assembly/timer/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) diff --git a/code/modules/assembly/voice.dm b/code/modules/assembly/voice.dm index 51f7957cd44..6fe95774b0a 100644 --- a/code/modules/assembly/voice.dm +++ b/code/modules/assembly/voice.dm @@ -24,7 +24,7 @@ drop_sound = 'sound/items/handling/component_drop.ogg' pickup_sound = 'sound/items/handling/component_pickup.ogg' -/obj/item/assembly/voice/Initialize() +/obj/item/assembly/voice/Initialize(mapload) . = ..() become_hearing_sensitive(ROUNDSTART_TRAIT) diff --git a/code/modules/atmospherics/environmental/LINDA_turf_tile.dm b/code/modules/atmospherics/environmental/LINDA_turf_tile.dm index bb7d3d2b29d..69d75d67671 100644 --- a/code/modules/atmospherics/environmental/LINDA_turf_tile.dm +++ b/code/modules/atmospherics/environmental/LINDA_turf_tile.dm @@ -37,7 +37,7 @@ var/max_share = 0 #endif -/turf/open/Initialize() +/turf/open/Initialize(mapload) if(!blocks_air) air = new air.copy_from_turf(src) diff --git a/code/modules/atmospherics/machinery/bluespace_vendor.dm b/code/modules/atmospherics/machinery/bluespace_vendor.dm index 2183d8808c0..01f429aae95 100644 --- a/code/modules/atmospherics/machinery/bluespace_vendor.dm +++ b/code/modules/atmospherics/machinery/bluespace_vendor.dm @@ -79,7 +79,7 @@ update_appearance() -/obj/machinery/bluespace_vendor/Initialize() +/obj/machinery/bluespace_vendor/Initialize(mapload) . = ..() AddComponent(/datum/component/payment, tank_cost, SSeconomy.get_dep_account(ACCOUNT_ENG), PAYMENT_ANGRY) diff --git a/code/modules/atmospherics/machinery/components/binary_devices/thermomachine.dm b/code/modules/atmospherics/machinery/components/binary_devices/thermomachine.dm index 470f3acc08e..a4e6aa9ac88 100644 --- a/code/modules/atmospherics/machinery/components/binary_devices/thermomachine.dm +++ b/code/modules/atmospherics/machinery/components/binary_devices/thermomachine.dm @@ -44,7 +44,7 @@ ///Efficiency minimum amount, min 0.25, max 1 (works best on higher laser tiers) var/parts_efficiency = 1 -/obj/machinery/atmospherics/components/binary/thermomachine/Initialize() +/obj/machinery/atmospherics/components/binary/thermomachine/Initialize(mapload) . = ..() RefreshParts() update_appearance() @@ -489,7 +489,7 @@ on = TRUE icon_state = "thermo_base_1" -/obj/machinery/atmospherics/components/binary/thermomachine/freezer/on/Initialize() +/obj/machinery/atmospherics/components/binary/thermomachine/freezer/on/Initialize(mapload) . = ..() if(target_temperature == initial(target_temperature)) target_temperature = min_temperature @@ -500,7 +500,7 @@ greyscale_colors = COLOR_CYAN cooling = TRUE -/obj/machinery/atmospherics/components/binary/thermomachine/freezer/on/coldroom/Initialize() +/obj/machinery/atmospherics/components/binary/thermomachine/freezer/on/coldroom/Initialize(mapload) . = ..() target_temperature = COLD_ROOM_TEMP diff --git a/code/modules/atmospherics/machinery/components/binary_devices/valve.dm b/code/modules/atmospherics/machinery/components/binary_devices/valve.dm index eee1c49b71f..2cdeba95712 100644 --- a/code/modules/atmospherics/machinery/components/binary_devices/valve.dm +++ b/code/modules/atmospherics/machinery/components/binary_devices/valve.dm @@ -82,7 +82,7 @@ It's like a regular ol' straight pipe, but you can turn it on and off. interaction_flags_machine = INTERACT_MACHINE_ALLOW_SILICON | INTERACT_MACHINE_OFFLINE | INTERACT_MACHINE_OPEN | INTERACT_MACHINE_OPEN_SILICON -/obj/machinery/atmospherics/components/binary/valve/digital/Initialize() +/obj/machinery/atmospherics/components/binary/valve/digital/Initialize(mapload) . = ..() AddComponent(/datum/component/usb_port, list(/obj/item/circuit_component/digital_valve)) diff --git a/code/modules/atmospherics/machinery/components/components_base.dm b/code/modules/atmospherics/machinery/components/components_base.dm index 842f4ef12f1..8fbe234b391 100644 --- a/code/modules/atmospherics/machinery/components/components_base.dm +++ b/code/modules/atmospherics/machinery/components/components_base.dm @@ -31,7 +31,7 @@ A.volume = 200 airs[i] = A -/obj/machinery/atmospherics/components/Initialize() +/obj/machinery/atmospherics/components/Initialize(mapload) . = ..() if(hide) diff --git a/code/modules/atmospherics/machinery/components/fusion/hfr_core.dm b/code/modules/atmospherics/machinery/components/fusion/hfr_core.dm index 3feff929d96..7cb524e3d54 100644 --- a/code/modules/atmospherics/machinery/components/fusion/hfr_core.dm +++ b/code/modules/atmospherics/machinery/components/fusion/hfr_core.dm @@ -151,7 +151,7 @@ ///Var used in the meltdown phase var/final_countdown = FALSE -/obj/machinery/atmospherics/components/unary/hypertorus/core/Initialize() +/obj/machinery/atmospherics/components/unary/hypertorus/core/Initialize(mapload) . = ..() internal_fusion = new internal_fusion.volume = 5000 diff --git a/code/modules/atmospherics/machinery/components/fusion/hfr_parts.dm b/code/modules/atmospherics/machinery/components/fusion/hfr_parts.dm index fa48f1f36cb..5075c7f2ce2 100644 --- a/code/modules/atmospherics/machinery/components/fusion/hfr_parts.dm +++ b/code/modules/atmospherics/machinery/components/fusion/hfr_parts.dm @@ -25,7 +25,7 @@ ///Check if the machine is cracked open var/cracked = FALSE -/obj/machinery/atmospherics/components/unary/hypertorus/Initialize() +/obj/machinery/atmospherics/components/unary/hypertorus/Initialize(mapload) . = ..() initialize_directions = dir diff --git a/code/modules/atmospherics/machinery/components/gas_recipe_machines/crystallizer.dm b/code/modules/atmospherics/machinery/components/gas_recipe_machines/crystallizer.dm index 03e9c0dbc6c..65b5a6ad00c 100644 --- a/code/modules/atmospherics/machinery/components/gas_recipe_machines/crystallizer.dm +++ b/code/modules/atmospherics/machinery/components/gas_recipe_machines/crystallizer.dm @@ -31,7 +31,7 @@ ///Stores the total amount of moles needed for the current recipe var/total_recipe_moles = 0 -/obj/machinery/atmospherics/components/binary/crystallizer/Initialize() +/obj/machinery/atmospherics/components/binary/crystallizer/Initialize(mapload) . = ..() internal = new diff --git a/code/modules/atmospherics/machinery/components/tank.dm b/code/modules/atmospherics/machinery/components/tank.dm index 2a7737b0995..17b4fa67c40 100644 --- a/code/modules/atmospherics/machinery/components/tank.dm +++ b/code/modules/atmospherics/machinery/components/tank.dm @@ -57,7 +57,7 @@ /// The typecache of types which are allowed to merge internal storage var/static/list/merger_typecache -/obj/machinery/atmospherics/components/tank/Initialize() +/obj/machinery/atmospherics/components/tank/Initialize(mapload) . = ..() if(!knob_overlays) @@ -341,7 +341,7 @@ /obj/machinery/atmospherics/components/tank/air name = "pressure tank (Air)" -/obj/machinery/atmospherics/components/tank/air/Initialize() +/obj/machinery/atmospherics/components/tank/air/Initialize(mapload) . = ..() FillToPressure(/datum/gas/oxygen, safety_margin=(O2STANDARD * 0.5)) FillToPressure(/datum/gas/nitrogen, safety_margin=(N2STANDARD * 0.5)) diff --git a/code/modules/atmospherics/machinery/components/unary_devices/bluespace_sender.dm b/code/modules/atmospherics/machinery/components/unary_devices/bluespace_sender.dm index 6ce4a184bea..7971661f121 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/bluespace_sender.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/bluespace_sender.dm @@ -24,7 +24,7 @@ ///Amount of credits gained from each vendor var/credits_gained = 0 -/obj/machinery/atmospherics/components/unary/bluespace_sender/Initialize() +/obj/machinery/atmospherics/components/unary/bluespace_sender/Initialize(mapload) . = ..() initialize_directions = dir bluespace_network = new diff --git a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm index 7738ba4a36d..915b3f14de4 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm @@ -106,7 +106,7 @@ payment_department = ACCOUNT_MED -/obj/machinery/atmospherics/components/unary/cryo_cell/Initialize() +/obj/machinery/atmospherics/components/unary/cryo_cell/Initialize(mapload) . = ..() initialize_directions = dir if(is_operational) diff --git a/code/modules/atmospherics/machinery/other/miner.dm b/code/modules/atmospherics/machinery/other/miner.dm index a9668d97c73..74c72c16c17 100644 --- a/code/modules/atmospherics/machinery/other/miner.dm +++ b/code/modules/atmospherics/machinery/other/miner.dm @@ -29,7 +29,7 @@ idle_power_usage = 150 active_power_usage = 2000 -/obj/machinery/atmospherics/miner/Initialize() +/obj/machinery/atmospherics/miner/Initialize(mapload) . = ..() set_active(active) //Force overlay update. diff --git a/code/modules/atmospherics/machinery/pipes/color_adapter.dm b/code/modules/atmospherics/machinery/pipes/color_adapter.dm index b742018a1e6..41a5f57344a 100644 --- a/code/modules/atmospherics/machinery/pipes/color_adapter.dm +++ b/code/modules/atmospherics/machinery/pipes/color_adapter.dm @@ -18,7 +18,7 @@ var/static/list/mutable_appearance/center_cache = list() -/obj/machinery/atmospherics/pipe/color_adapter/Initialize() +/obj/machinery/atmospherics/pipe/color_adapter/Initialize(mapload) icon_state = "" . = ..() diff --git a/code/modules/atmospherics/machinery/pipes/heat_exchange/he_pipes.dm b/code/modules/atmospherics/machinery/pipes/heat_exchange/he_pipes.dm index 89d9ff3d6e9..e90b102e12a 100644 --- a/code/modules/atmospherics/machinery/pipes/heat_exchange/he_pipes.dm +++ b/code/modules/atmospherics/machinery/pipes/heat_exchange/he_pipes.dm @@ -8,7 +8,7 @@ hide = FALSE -/obj/machinery/atmospherics/pipe/heat_exchanging/Initialize() +/obj/machinery/atmospherics/pipe/heat_exchanging/Initialize(mapload) . = ..() add_atom_colour("#404040", FIXED_COLOUR_PRIORITY) diff --git a/code/modules/atmospherics/machinery/pipes/layermanifold.dm b/code/modules/atmospherics/machinery/pipes/layermanifold.dm index 674407a31a7..d084bd87839 100644 --- a/code/modules/atmospherics/machinery/pipes/layermanifold.dm +++ b/code/modules/atmospherics/machinery/pipes/layermanifold.dm @@ -16,7 +16,7 @@ var/list/front_nodes var/list/back_nodes -/obj/machinery/atmospherics/pipe/layer_manifold/Initialize() +/obj/machinery/atmospherics/pipe/layer_manifold/Initialize(mapload) front_nodes = list() back_nodes = list() icon_state = "manifoldlayer_center" diff --git a/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm b/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm index abd1f2005a1..b1a583eaed9 100644 --- a/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm +++ b/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm @@ -17,7 +17,7 @@ ///Used to track if anything of note has happen while running process_atmos() var/excited = TRUE -/obj/machinery/portable_atmospherics/Initialize() +/obj/machinery/portable_atmospherics/Initialize(mapload) . = ..() air_contents = new air_contents.volume = volume diff --git a/code/modules/awaymissions/away_props.dm b/code/modules/awaymissions/away_props.dm index d622ff95abf..7de06542f35 100644 --- a/code/modules/awaymissions/away_props.dm +++ b/code/modules/awaymissions/away_props.dm @@ -19,7 +19,7 @@ invisibility = INVISIBILITY_MAXIMUM var/strength = 30 -/obj/effect/wind/Initialize() +/obj/effect/wind/Initialize(mapload) . = ..() START_PROCESSING(SSobj,src) @@ -38,7 +38,7 @@ var/list/blocked_types = list() var/reverse = FALSE //Block if path not present -/obj/effect/path_blocker/Initialize() +/obj/effect/path_blocker/Initialize(mapload) . = ..() if(blocked_types.len) blocked_types = typecacheof(blocked_types) @@ -63,7 +63,7 @@ var/open = FALSE var/hidden = FALSE -/obj/structure/pitgrate/Initialize() +/obj/structure/pitgrate/Initialize(mapload) . = ..() RegisterSignal(SSdcs,COMSIG_GLOB_BUTTON_PRESSED, .proc/OnButtonPressed) if(hidden) diff --git a/code/modules/awaymissions/corpse.dm b/code/modules/awaymissions/corpse.dm index c76a9413345..c654d97dbf3 100644 --- a/code/modules/awaymissions/corpse.dm +++ b/code/modules/awaymissions/corpse.dm @@ -186,7 +186,7 @@ var/facial_haircolor var/skin_tone -/obj/effect/mob_spawn/human/Initialize() +/obj/effect/mob_spawn/human/Initialize(mapload) if(ispath(outfit)) outfit = new outfit() if(!outfit) diff --git a/code/modules/awaymissions/gateway.dm b/code/modules/awaymissions/gateway.dm index 8f27765fad7..d5b8c5fc5a6 100644 --- a/code/modules/awaymissions/gateway.dm +++ b/code/modules/awaymissions/gateway.dm @@ -174,7 +174,7 @@ GLOBAL_LIST_EMPTY(gateway_destinations) /// Visual object for handling the viscontents var/obj/effect/gateway_portal_effect/portal_visuals -/obj/machinery/gateway/Initialize() +/obj/machinery/gateway/Initialize(mapload) generate_destination() update_appearance() portal_visuals = new @@ -236,7 +236,7 @@ GLOBAL_LIST_EMPTY(gateway_destinations) destination_type = /datum/gateway_destination/gateway/home destination_name = "Home Gateway" -/obj/machinery/gateway/centerstation/Initialize() +/obj/machinery/gateway/centerstation/Initialize(mapload) . = ..() if(!GLOB.the_gateway) GLOB.the_gateway = src diff --git a/code/modules/awaymissions/mission_code/Academy.dm b/code/modules/awaymissions/mission_code/Academy.dm index 4414fbd9359..6fa23628684 100644 --- a/code/modules/awaymissions/mission_code/Academy.dm +++ b/code/modules/awaymissions/mission_code/Academy.dm @@ -64,7 +64,7 @@ /obj/singularity/academy move_self = FALSE -/obj/singularity/academy/Initialize() +/obj/singularity/academy/Initialize(mapload) . = ..() var/datum/component/singularity/singularity = singularity_component.resolve() diff --git a/code/modules/awaymissions/mission_code/Cabin.dm b/code/modules/awaymissions/mission_code/Cabin.dm index c9a173466f5..994a7fed94d 100644 --- a/code/modules/awaymissions/mission_code/Cabin.dm +++ b/code/modules/awaymissions/mission_code/Cabin.dm @@ -43,7 +43,7 @@ density = FALSE var/active = TRUE -/obj/structure/firepit/Initialize() +/obj/structure/firepit/Initialize(mapload) . = ..() toggleFirepit() diff --git a/code/modules/awaymissions/mission_code/murderdome.dm b/code/modules/awaymissions/mission_code/murderdome.dm index 01eb33179e1..1b1ad132bb6 100644 --- a/code/modules/awaymissions/mission_code/murderdome.dm +++ b/code/modules/awaymissions/mission_code/murderdome.dm @@ -27,7 +27,7 @@ icon_state = "barrier0" alpha = 100 -/obj/effect/murderdome/dead_barricade/Initialize() +/obj/effect/murderdome/dead_barricade/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/respawn), 3 MINUTES) diff --git a/code/modules/awaymissions/mission_code/stationCollision.dm b/code/modules/awaymissions/mission_code/stationCollision.dm index ae0437532a6..64475f45b78 100644 --- a/code/modules/awaymissions/mission_code/stationCollision.dm +++ b/code/modules/awaymissions/mission_code/stationCollision.dm @@ -22,7 +22,7 @@ /obj/effect/landmark/sc_bible_spawner name = "Safecode hint spawner" -/obj/effect/landmark/sc_bible_spawner/Initialize() +/obj/effect/landmark/sc_bible_spawner/Initialize(mapload) ..() var/obj/item/storage/book/bible/B = new /obj/item/storage/book/bible/booze(loc) B.name = "The Holy book of the Geometer" @@ -48,7 +48,7 @@ //Syndicate sub-machine guns. /obj/item/gun/ballistic/automatic/c20r/sc_c20r -/obj/item/gun/ballistic/automatic/c20r/sc_c20r/Initialize() +/obj/item/gun/ballistic/automatic/c20r/sc_c20r/Initialize(mapload) . = ..() for(var/ammo in magazine.stored_ammo) if(prob(95)) //95% chance @@ -57,7 +57,7 @@ //Barman's shotgun /obj/item/gun/ballistic/shotgun/sc_pump -/obj/item/gun/ballistic/shotgun/sc_pump/Initialize() +/obj/item/gun/ballistic/shotgun/sc_pump/Initialize(mapload) . = ..() for(var/ammo in magazine.stored_ammo) if(prob(95)) //95% chance @@ -84,13 +84,13 @@ GLOBAL_VAR_INIT(sc_safecode5, "[rand(0,9)]") /obj/item/paper/fluff/awaymissions/stationcollision/safehint_paper_prison name = "smudged paper" -/obj/item/paper/fluff/awaymissions/stationcollision/safehint_paper_prison/Initialize() +/obj/item/paper/fluff/awaymissions/stationcollision/safehint_paper_prison/Initialize(mapload) . = ..() info = "The ink is smudged, you can only make out a couple numbers: '[GLOB.sc_safecode1]**[GLOB.sc_safecode4]*'" /obj/item/paper/fluff/awaymissions/stationcollision/safehint_paper_hydro name = "shredded paper" -/obj/item/paper/fluff/awaymissions/stationcollision/safehint_paper_hydro/Initialize() +/obj/item/paper/fluff/awaymissions/stationcollision/safehint_paper_hydro/Initialize(mapload) . = ..() info = "Although the paper is shredded, you can clearly see the number: '[GLOB.sc_safecode2]'" @@ -101,7 +101,7 @@ GLOBAL_VAR_INIT(sc_safecode5, "[rand(0,9)]") /obj/item/paper/fluff/awaymissions/stationcollision/safehint_paper_bible name = "hidden paper" -/obj/item/paper/fluff/awaymissions/stationcollision/safehint_paper_bible/Initialize() +/obj/item/paper/fluff/awaymissions/stationcollision/safehint_paper_bible/Initialize(mapload) . = ..() info = {"It would appear that the pen hidden with the paper had leaked ink over the paper. However you can make out the last three digits:'[GLOB.sc_safecode3][GLOB.sc_safecode4][GLOB.sc_safecode5]' @@ -126,7 +126,7 @@ GLOBAL_VAR_INIT(sc_safecode5, "[rand(0,9)]") /obj/item/storage/secure/safe/sc_ssafe name = "Captain's secure safe" -/obj/item/storage/secure/safe/sc_ssafe/Initialize() +/obj/item/storage/secure/safe/sc_ssafe/Initialize(mapload) . = ..() l_code = "[GLOB.sc_safecode1][GLOB.sc_safecode2][GLOB.sc_safecode3][GLOB.sc_safecode4][GLOB.sc_safecode5]" l_set = 1 diff --git a/code/modules/awaymissions/signpost.dm b/code/modules/awaymissions/signpost.dm index 7e69b749cb7..ea0d22ac39f 100644 --- a/code/modules/awaymissions/signpost.dm +++ b/code/modules/awaymissions/signpost.dm @@ -7,7 +7,7 @@ var/question = "Travel back?" var/list/zlevels -/obj/structure/signpost/Initialize() +/obj/structure/signpost/Initialize(mapload) . = ..() set_light(2) zlevels = SSmapping.levels_by_trait(ZTRAIT_STATION) @@ -63,7 +63,7 @@ exit the area." question = "Leave? You might never come back." -/obj/structure/signpost/exit/Initialize() +/obj/structure/signpost/exit/Initialize(mapload) . = ..() zlevels = list() for(var/i in 1 to world.maxz) diff --git a/code/modules/awaymissions/super_secret_room.dm b/code/modules/awaymissions/super_secret_room.dm index 84b75e4d817..eddd5e0ab0a 100644 --- a/code/modules/awaymissions/super_secret_room.dm +++ b/code/modules/awaymissions/super_secret_room.dm @@ -10,7 +10,7 @@ var/times_spoken_to = 0 var/list/shenanigans = list() -/obj/structure/speaking_tile/Initialize() +/obj/structure/speaking_tile/Initialize(mapload) . = ..() var/json_file = file("data/npc_saves/Poly.json") if(!fexists(json_file)) @@ -124,7 +124,7 @@ w_class = WEIGHT_CLASS_SMALL custom_materials = list(/datum/material/glass = 500) -/obj/item/rupee/Initialize() +/obj/item/rupee/Initialize(mapload) . = ..() var/newcolor = color2hex(pick(10;"green", 5;"blue", 3;"red", 1;"purple")) add_atom_colour(newcolor, FIXED_COLOUR_PRIORITY) diff --git a/code/modules/awaymissions/zlevel.dm b/code/modules/awaymissions/zlevel.dm index c1a15e6903c..90d98649b79 100644 --- a/code/modules/awaymissions/zlevel.dm +++ b/code/modules/awaymissions/zlevel.dm @@ -14,7 +14,7 @@ GLOBAL_LIST_INIT(potentialRandomZlevels, generateMapList(filename = "[global.con var/id var/delay = TRUE // If the generated destination should be delayed by configured gateway delay -/obj/effect/landmark/awaystart/Initialize() +/obj/effect/landmark/awaystart/Initialize(mapload) . = ..() var/datum/gateway_destination/point/current for(var/datum/gateway_destination/point/D in GLOB.gateway_destinations) diff --git a/code/modules/capture_the_flag/ctf_equipment.dm b/code/modules/capture_the_flag/ctf_equipment.dm index 2a5d8d817dd..d438e033f75 100644 --- a/code/modules/capture_the_flag/ctf_equipment.dm +++ b/code/modules/capture_the_flag/ctf_equipment.dm @@ -22,7 +22,7 @@ /obj/item/ammo_box/magazine/recharge/ctf ammo_type = /obj/item/ammo_casing/caseless/laser/ctf -/obj/item/ammo_box/magazine/recharge/ctf/Initialize() +/obj/item/ammo_box/magazine/recharge/ctf/Initialize(mapload) . = ..() AddElement(/datum/element/delete_on_drop) @@ -30,7 +30,7 @@ /obj/item/ammo_casing/caseless/laser/ctf projectile_type = /obj/projectile/beam/ctf/ -/obj/item/ammo_casing/caseless/laser/ctf/Initialize() +/obj/item/ammo_casing/caseless/laser/ctf/Initialize(mapload) . = ..() AddElement(/datum/element/delete_on_drop) @@ -43,7 +43,7 @@ weapon_weight = WEAPON_HEAVY slot_flags = null -/obj/item/gun/ballistic/automatic/laser/ctf/Initialize() +/obj/item/gun/ballistic/automatic/laser/ctf/Initialize(mapload) . = ..() AddElement(/datum/element/delete_on_drop) @@ -77,7 +77,7 @@ internal_magazine = FALSE tac_reloads = TRUE -/obj/item/gun/ballistic/shotgun/ctf/Initialize() +/obj/item/gun/ballistic/shotgun/ctf/Initialize(mapload) . = ..() AddElement(/datum/element/delete_on_drop) @@ -127,7 +127,7 @@ force = 75 mag_type = /obj/item/ammo_box/magazine/recharge/ctf/deagle -/obj/item/gun/ballistic/automatic/pistol/deagle/ctf/Initialize() +/obj/item/gun/ballistic/automatic/pistol/deagle/ctf/Initialize(mapload) . = ..() AddElement(/datum/element/delete_on_drop) @@ -165,7 +165,7 @@ /obj/item/gun/energy/laser/instakill/emp_act() //implying you could stop the instagib return -/obj/item/gun/energy/laser/instakill/ctf/Initialize() +/obj/item/gun/energy/laser/instakill/ctf/Initialize(mapload) . = ..() AddElement(/datum/element/delete_on_drop) diff --git a/code/modules/capture_the_flag/ctf_game.dm b/code/modules/capture_the_flag/ctf_game.dm index 626bf4ce7f3..fe8fac882e4 100644 --- a/code/modules/capture_the_flag/ctf_game.dm +++ b/code/modules/capture_the_flag/ctf_game.dm @@ -36,7 +36,7 @@ QDEL_NULL(reset) return ..() -/obj/item/ctf/Initialize() +/obj/item/ctf/Initialize(mapload) . = ..() if(!reset) reset = new reset_path(get_turf(src)) @@ -234,7 +234,7 @@ /// This variable is needed because of ctf shitcode + we need to make sure we're deleting the current ctf landmark that spawned us in and not a new one. var/obj/effect/landmark/ctf/ctf_landmark -/obj/machinery/capture_the_flag/Initialize() +/obj/machinery/capture_the_flag/Initialize(mapload) . = ..() SSpoints_of_interest.make_point_of_interest(src) ctf_landmark = GLOB.ctf_spawner diff --git a/code/modules/cargo/blackmarket/blackmarket_telepad.dm b/code/modules/cargo/blackmarket/blackmarket_telepad.dm index 320c0861b0f..ab24ce3bb6a 100644 --- a/code/modules/cargo/blackmarket/blackmarket_telepad.dm +++ b/code/modules/cargo/blackmarket/blackmarket_telepad.dm @@ -35,7 +35,7 @@ /// Queue for purchases that the machine should receive and send. var/list/datum/blackmarket_purchase/queue = list() -/obj/machinery/ltsrbt/Initialize() +/obj/machinery/ltsrbt/Initialize(mapload) . = ..() SSblackmarket.telepads += src diff --git a/code/modules/cargo/blackmarket/blackmarket_uplink.dm b/code/modules/cargo/blackmarket/blackmarket_uplink.dm index 138497d32b5..15a6f741800 100644 --- a/code/modules/cargo/blackmarket/blackmarket_uplink.dm +++ b/code/modules/cargo/blackmarket/blackmarket_uplink.dm @@ -14,7 +14,7 @@ /// List of typepaths for "/datum/blackmarket_market"s that this uplink can access. var/list/accessible_markets = list(/datum/blackmarket_market/blackmarket) -/obj/item/blackmarket_uplink/Initialize() +/obj/item/blackmarket_uplink/Initialize(mapload) . = ..() if(accessible_markets.len) viewing_market = accessible_markets[1] diff --git a/code/modules/cargo/expressconsole.dm b/code/modules/cargo/expressconsole.dm index 55fce78dff1..3af945ed17a 100644 --- a/code/modules/cargo/expressconsole.dm +++ b/code/modules/cargo/expressconsole.dm @@ -27,7 +27,7 @@ var/locked = TRUE //is the console locked? unlock with ID var/usingBeacon = FALSE //is the console in beacon mode? exists to let beacon know when a pod may come in -/obj/machinery/computer/cargo/express/Initialize() +/obj/machinery/computer/cargo/express/Initialize(mapload) . = ..() packin_up() diff --git a/code/modules/cargo/orderconsole.dm b/code/modules/cargo/orderconsole.dm index 87ad7b5eed1..26b4db3d636 100644 --- a/code/modules/cargo/orderconsole.dm +++ b/code/modules/cargo/orderconsole.dm @@ -45,7 +45,7 @@ can_approve_requests = FALSE requestonly = TRUE -/obj/machinery/computer/cargo/Initialize() +/obj/machinery/computer/cargo/Initialize(mapload) . = ..() radio = new /obj/item/radio/headset/headset_cargo(src) diff --git a/code/modules/cargo/supplypod.dm b/code/modules/cargo/supplypod.dm index 0afefcf3a74..d82bdcb2c85 100644 --- a/code/modules/cargo/supplypod.dm +++ b/code/modules/cargo/supplypod.dm @@ -95,7 +95,7 @@ style = customStyle setStyle(style) //Upon initialization, give the supplypod an iconstate, name, and description based on the "style" variable. This system is important for the centcom_podlauncher to function correctly -/obj/structure/closet/supplypod/extractionpod/Initialize() +/obj/structure/closet/supplypod/extractionpod/Initialize(mapload) . = ..() var/turf/picked_turf = pick(GLOB.holdingfacility) reverse_dropoff_coords = list(picked_turf.x, picked_turf.y, picked_turf.z) diff --git a/code/modules/clothing/chameleon.dm b/code/modules/clothing/chameleon.dm index 21030412d17..ec1b9e789e7 100644 --- a/code/modules/clothing/chameleon.dm +++ b/code/modules/clothing/chameleon.dm @@ -385,7 +385,7 @@ var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/clothing/under/chameleon/Initialize() +/obj/item/clothing/under/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/clothing/under @@ -399,7 +399,7 @@ return chameleon_action.emp_randomise() -/obj/item/clothing/under/chameleon/broken/Initialize() +/obj/item/clothing/under/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -414,7 +414,7 @@ var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/clothing/suit/chameleon/Initialize() +/obj/item/clothing/suit/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/clothing/suit @@ -428,7 +428,7 @@ return chameleon_action.emp_randomise() -/obj/item/clothing/suit/chameleon/broken/Initialize() +/obj/item/clothing/suit/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -442,7 +442,7 @@ var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/clothing/glasses/chameleon/Initialize() +/obj/item/clothing/glasses/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/clothing/glasses @@ -456,7 +456,7 @@ return chameleon_action.emp_randomise() -/obj/item/clothing/glasses/chameleon/broken/Initialize() +/obj/item/clothing/glasses/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -471,7 +471,7 @@ var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/clothing/gloves/chameleon/Initialize() +/obj/item/clothing/gloves/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/clothing/gloves @@ -485,7 +485,7 @@ return chameleon_action.emp_randomise() -/obj/item/clothing/gloves/chameleon/broken/Initialize() +/obj/item/clothing/gloves/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -499,7 +499,7 @@ var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/clothing/head/chameleon/Initialize() +/obj/item/clothing/head/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/clothing/head @@ -513,7 +513,7 @@ return chameleon_action.emp_randomise() -/obj/item/clothing/head/chameleon/broken/Initialize() +/obj/item/clothing/head/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -523,7 +523,7 @@ armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 0, ACID = 0) // which means it offers no protection, it's just air and light -/obj/item/clothing/head/chameleon/drone/Initialize() +/obj/item/clothing/head/chameleon/drone/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT) chameleon_action.random_look() @@ -549,7 +549,7 @@ var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/clothing/mask/chameleon/Initialize() +/obj/item/clothing/mask/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/clothing/mask @@ -563,7 +563,7 @@ return chameleon_action.emp_randomise() -/obj/item/clothing/mask/chameleon/broken/Initialize() +/obj/item/clothing/mask/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -578,7 +578,7 @@ // Can drones use the voice changer part? Let's not find out. voice_change = 0 -/obj/item/clothing/mask/chameleon/drone/Initialize() +/obj/item/clothing/mask/chameleon/drone/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT) chameleon_action.random_look() @@ -604,7 +604,7 @@ var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/clothing/shoes/chameleon/Initialize() +/obj/item/clothing/shoes/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/clothing/shoes @@ -622,7 +622,7 @@ clothing_flags = NOSLIP can_be_bloody = FALSE -/obj/item/clothing/shoes/chameleon/noslip/broken/Initialize() +/obj/item/clothing/shoes/chameleon/noslip/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -630,7 +630,7 @@ name = "backpack" var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/storage/backpack/chameleon/Initialize() +/obj/item/storage/backpack/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/storage/backpack @@ -643,7 +643,7 @@ return chameleon_action.emp_randomise() -/obj/item/storage/backpack/chameleon/broken/Initialize() +/obj/item/storage/backpack/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -652,7 +652,7 @@ desc = "Holds tools." var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/storage/belt/chameleon/Initialize() +/obj/item/storage/belt/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) @@ -671,7 +671,7 @@ return chameleon_action.emp_randomise() -/obj/item/storage/belt/chameleon/broken/Initialize() +/obj/item/storage/belt/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -679,7 +679,7 @@ name = "radio headset" var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/radio/headset/chameleon/Initialize() +/obj/item/radio/headset/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/radio/headset @@ -692,7 +692,7 @@ return chameleon_action.emp_randomise() -/obj/item/radio/headset/chameleon/broken/Initialize() +/obj/item/radio/headset/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -700,7 +700,7 @@ name = "PDA" var/datum/action/item_action/chameleon/change/pda/chameleon_action -/obj/item/pda/chameleon/Initialize() +/obj/item/pda/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/pda @@ -714,21 +714,21 @@ return chameleon_action.emp_randomise() -/obj/item/pda/chameleon/broken/Initialize() +/obj/item/pda/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) /obj/item/stamp/chameleon var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/stamp/chameleon/Initialize() +/obj/item/stamp/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/stamp chameleon_action.chameleon_name = "Stamp" chameleon_action.initialize_disguises() -/obj/item/stamp/chameleon/broken/Initialize() +/obj/item/stamp/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -743,7 +743,7 @@ /obj/item/clothing/neck/chameleon var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/clothing/neck/chameleon/Initialize() +/obj/item/clothing/neck/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/clothing/neck @@ -761,6 +761,6 @@ return chameleon_action.emp_randomise() -/obj/item/clothing/neck/chameleon/broken/Initialize() +/obj/item/clothing/neck/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 781030c4942..6f2f2a08dd1 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -62,7 +62,7 @@ /// A lazily initiated "food" version of the clothing for moths var/obj/item/food/clothing/moth_snack -/obj/item/clothing/Initialize() +/obj/item/clothing/Initialize(mapload) if((clothing_flags & VOICEBOX_TOGGLABLE)) actions_types += /datum/action/item_action/toggle_voice_box . = ..() diff --git a/code/modules/clothing/glasses/_glasses.dm b/code/modules/clothing/glasses/_glasses.dm index 8920a847d9f..3abf6c836d2 100644 --- a/code/modules/clothing/glasses/_glasses.dm +++ b/code/modules/clothing/glasses/_glasses.dm @@ -212,7 +212,7 @@ inhand_icon_state = "glasses" vision_correction = TRUE //corrects nearsightedness -/obj/item/clothing/glasses/regular/Initialize() +/obj/item/clothing/glasses/regular/Initialize(mapload) . = ..() AddComponent(/datum/component/knockoff,25,list(BODY_ZONE_PRECISE_EYES),list(ITEM_SLOT_EYES)) var/static/list/loc_connections = list( @@ -444,7 +444,7 @@ var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/clothing/glasses/thermal/syndi/Initialize() +/obj/item/clothing/glasses/thermal/syndi/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/clothing/glasses diff --git a/code/modules/clothing/glasses/engine_goggles.dm b/code/modules/clothing/glasses/engine_goggles.dm index e8c352573c4..7ba212d5805 100644 --- a/code/modules/clothing/glasses/engine_goggles.dm +++ b/code/modules/clothing/glasses/engine_goggles.dm @@ -24,7 +24,7 @@ var/range = 1 var/list/connection_images = list() -/obj/item/clothing/glasses/meson/engine/Initialize() +/obj/item/clothing/glasses/meson/engine/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) update_appearance() diff --git a/code/modules/clothing/glasses/hud.dm b/code/modules/clothing/glasses/hud.dm index 9557bea4544..f98f413c9af 100644 --- a/code/modules/clothing/glasses/hud.dm +++ b/code/modules/clothing/glasses/hud.dm @@ -111,7 +111,7 @@ // have multiple inheritance, okay? var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/clothing/glasses/hud/security/chameleon/Initialize() +/obj/item/clothing/glasses/hud/security/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/clothing/glasses diff --git a/code/modules/clothing/gloves/color.dm b/code/modules/clothing/gloves/color.dm index 076d2444dcb..65f20860fec 100644 --- a/code/modules/clothing/gloves/color.dm +++ b/code/modules/clothing/gloves/color.dm @@ -43,7 +43,7 @@ resistance_flags = ACID_PROOF var/charges_remaining = 10 -/obj/item/clothing/gloves/color/yellow/sprayon/Initialize() +/obj/item/clothing/gloves/color/yellow/sprayon/Initialize(mapload) .=..() ADD_TRAIT(src, TRAIT_NODROP, INNATE_TRAIT) @@ -71,7 +71,7 @@ resistance_flags = NONE cut_type = /obj/item/clothing/gloves/cut -/obj/item/clothing/gloves/color/fyellow/Initialize() +/obj/item/clothing/gloves/color/fyellow/Initialize(mapload) . = ..() siemens_coefficient = pick(0,0.5,0.5,0.5,0.5,0.75,1.5) @@ -79,7 +79,7 @@ desc = "Old and worn out insulated gloves, hopefully they still work." name = "worn out insulated gloves" -/obj/item/clothing/gloves/color/fyellow/old/Initialize() +/obj/item/clothing/gloves/color/fyellow/old/Initialize(mapload) . = ..() siemens_coefficient = pick(0,0,0,0.5,0.5,0.5,0.75) diff --git a/code/modules/clothing/gloves/special.dm b/code/modules/clothing/gloves/special.dm index e539e026186..7b72b3cbfe0 100644 --- a/code/modules/clothing/gloves/special.dm +++ b/code/modules/clothing/gloves/special.dm @@ -11,7 +11,7 @@ undyeable = TRUE var/datum/weakref/pull_component_weakref -/obj/item/clothing/gloves/cargo_gauntlet/Initialize() +/obj/item/clothing/gloves/cargo_gauntlet/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_ITEM_EQUIPPED, .proc/on_glove_equip) RegisterSignal(src, COMSIG_ITEM_POST_UNEQUIP, .proc/on_glove_unequip) diff --git a/code/modules/clothing/head/_head.dm b/code/modules/clothing/head/_head.dm index c0e3ef1b7e8..9ea6fddca72 100644 --- a/code/modules/clothing/head/_head.dm +++ b/code/modules/clothing/head/_head.dm @@ -9,7 +9,7 @@ var/can_toggle = null dynamic_hair_suffix = "+generic" -/obj/item/clothing/head/Initialize() +/obj/item/clothing/head/Initialize(mapload) . = ..() if(ishuman(loc) && dynamic_hair_suffix) var/mob/living/carbon/human/H = loc diff --git a/code/modules/clothing/head/collectable.dm b/code/modules/clothing/head/collectable.dm index 7951b9e81d8..5f143552310 100644 --- a/code/modules/clothing/head/collectable.dm +++ b/code/modules/clothing/head/collectable.dm @@ -6,7 +6,7 @@ desc = "A rare collectable hat." icon_state = null -/obj/item/clothing/head/collectable/Initialize() +/obj/item/clothing/head/collectable/Initialize(mapload) . = ..() AddElement(/datum/element/series, /obj/item/clothing/head/collectable, "Super duper collectable hats") diff --git a/code/modules/clothing/head/hardhat.dm b/code/modules/clothing/head/hardhat.dm index 9a41648fd1f..d57a592953b 100644 --- a/code/modules/clothing/head/hardhat.dm +++ b/code/modules/clothing/head/hardhat.dm @@ -120,7 +120,7 @@ visor_flags_inv = HIDEEYES | HIDEFACE | HIDESNOUT visor_flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH | PEPPERPROOF -/obj/item/clothing/head/hardhat/weldhat/Initialize() +/obj/item/clothing/head/hardhat/weldhat/Initialize(mapload) . = ..() update_appearance() diff --git a/code/modules/clothing/head/helmet.dm b/code/modules/clothing/head/helmet.dm index 05f7460eb91..8c4300f9e83 100644 --- a/code/modules/clothing/head/helmet.dm +++ b/code/modules/clothing/head/helmet.dm @@ -19,7 +19,7 @@ var/obj/item/flashlight/seclite/attached_light var/datum/action/item_action/toggle_helmet_flashlight/alight -/obj/item/clothing/head/helmet/Initialize() +/obj/item/clothing/head/helmet/Initialize(mapload) . = ..() if(attached_light) alight = new(src) @@ -106,7 +106,7 @@ can_flashlight = TRUE dog_fashion = null -/obj/item/clothing/head/helmet/marine/Initialize() +/obj/item/clothing/head/helmet/marine/Initialize(mapload) set_attached_light(new /obj/item/flashlight/seclite) update_helmlight() update_appearance() @@ -189,7 +189,7 @@ ///Looping sound datum for the siren helmet var/datum/looping_sound/siren/weewooloop -/obj/item/clothing/head/helmet/justice/Initialize() +/obj/item/clothing/head/helmet/justice/Initialize(mapload) . = ..() weewooloop = new(src, FALSE, FALSE) @@ -423,7 +423,7 @@ var/polling = FALSE///if the helmet is currently polling for targets (special code for removal) var/light_colors = 1 ///which icon state color this is (red, blue, yellow) -/obj/item/clothing/head/helmet/monkey_sentience/Initialize() +/obj/item/clothing/head/helmet/monkey_sentience/Initialize(mapload) . = ..() light_colors = rand(1,3) update_appearance() diff --git a/code/modules/clothing/head/jobs.dm b/code/modules/clothing/head/jobs.dm index a5e2c65dcf8..6bedb8d75bb 100644 --- a/code/modules/clothing/head/jobs.dm +++ b/code/modules/clothing/head/jobs.dm @@ -97,7 +97,7 @@ pocket_storage_component_path = /datum/component/storage/concrete/pockets/small/fedora/detective dog_fashion = /datum/dog_fashion/head/detective -/obj/item/clothing/head/fedora/det_hat/Initialize() +/obj/item/clothing/head/fedora/det_hat/Initialize(mapload) . = ..() new /obj/item/reagent_containers/food/drinks/flask/det(src) @@ -350,7 +350,7 @@ desc = "That was white fabric. Was." dog_fashion = null //THIS IS FOR SLAUGHTER, NOT PUPPIES -/obj/item/clothing/head/beret/highlander/Initialize() +/obj/item/clothing/head/beret/highlander/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, HIGHLANDER) diff --git a/code/modules/clothing/head/sombrero.dm b/code/modules/clothing/head/sombrero.dm index d2312449468..5c74378f167 100644 --- a/code/modules/clothing/head/sombrero.dm +++ b/code/modules/clothing/head/sombrero.dm @@ -29,6 +29,6 @@ greyscale_colors = "#d565d3#f8db18" flags_1 = IS_PLAYER_COLORABLE_1 -/obj/item/clothing/head/sombrero/shamebrero/Initialize() +/obj/item/clothing/head/sombrero/shamebrero/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, SHAMEBRERO_TRAIT) diff --git a/code/modules/clothing/masks/animal_masks.dm b/code/modules/clothing/masks/animal_masks.dm index bb0e798e332..854b943aed8 100644 --- a/code/modules/clothing/masks/animal_masks.dm +++ b/code/modules/clothing/masks/animal_masks.dm @@ -27,7 +27,7 @@ GLOBAL_LIST_INIT(cursed_animal_masks, list( var/cursed ///if it's a cursed mask variant. var/curse_spawn_sound ///sound to play when the cursed mask variant is spawned. -/obj/item/clothing/mask/animal/Initialize() +/obj/item/clothing/mask/animal/Initialize(mapload) . = ..() if(cursed) make_cursed() diff --git a/code/modules/clothing/masks/gas_filter.dm b/code/modules/clothing/masks/gas_filter.dm index 99a0ef088ce..70232b61914 100644 --- a/code/modules/clothing/masks/gas_filter.dm +++ b/code/modules/clothing/masks/gas_filter.dm @@ -100,7 +100,7 @@ desc = "A piece of filtering cloth to be used with atmospheric gas masks and emergency gas masks, it seems damaged." filter_status = 50 //override on initialize -/obj/item/gas_filter/damaged/Initialize() +/obj/item/gas_filter/damaged/Initialize(mapload) . = ..() filter_status = rand(35, 65) diff --git a/code/modules/clothing/masks/gasmask.dm b/code/modules/clothing/masks/gasmask.dm index f39d7e9ff69..04065948094 100644 --- a/code/modules/clothing/masks/gasmask.dm +++ b/code/modules/clothing/masks/gasmask.dm @@ -16,7 +16,7 @@ ///Type of filter that spawns on roundstart var/starting_filter_type = /obj/item/gas_filter -/obj/item/clothing/mask/gas/Initialize() +/obj/item/clothing/mask/gas/Initialize(mapload) . = ..() if(!max_filters || !starting_filter_type) return @@ -133,7 +133,7 @@ /obj/item/clothing/mask/gas/welding/up -/obj/item/clothing/mask/gas/welding/up/Initialize() +/obj/item/clothing/mask/gas/welding/up/Initialize(mapload) . = ..() visor_toggling() diff --git a/code/modules/clothing/neck/_neck.dm b/code/modules/clothing/neck/_neck.dm index 9d4bca7632b..72fba5d8cf2 100644 --- a/code/modules/clothing/neck/_neck.dm +++ b/code/modules/clothing/neck/_neck.dm @@ -270,6 +270,6 @@ custom_price = PAYCHECK_ASSISTANT * 0.2 custom_materials = (list(/datum/material/plastic = 500)) -/obj/item/clothing/neck/beads/Initialize() +/obj/item/clothing/neck/beads/Initialize(mapload) . = ..() color = color = pick("#ff0077","#d400ff","#2600ff","#00ccff","#00ff2a","#e5ff00","#ffae00","#ff0000", "#ffffff") diff --git a/code/modules/clothing/shoes/bananashoes.dm b/code/modules/clothing/shoes/bananashoes.dm index e5e6cab3e7a..f7b380f88cc 100644 --- a/code/modules/clothing/shoes/bananashoes.dm +++ b/code/modules/clothing/shoes/bananashoes.dm @@ -8,7 +8,7 @@ var/on = FALSE var/always_noslip = FALSE -/obj/item/clothing/shoes/clown_shoes/banana_shoes/Initialize() +/obj/item/clothing/shoes/clown_shoes/banana_shoes/Initialize(mapload) . = ..() if(always_noslip) clothing_flags |= NOSLIP diff --git a/code/modules/clothing/shoes/clown.dm b/code/modules/clothing/shoes/clown.dm index 19b3eedf66e..55a8a8ba6be 100644 --- a/code/modules/clothing/shoes/clown.dm +++ b/code/modules/clothing/shoes/clown.dm @@ -9,7 +9,7 @@ lace_time = 20 SECONDS // how the hell do these laces even work?? species_exception = list(/datum/species/golem/bananium) -/obj/item/clothing/shoes/clown_shoes/Initialize() +/obj/item/clothing/shoes/clown_shoes/Initialize(mapload) . = ..() LoadComponent(/datum/component/squeak, list('sound/effects/clownstep1.ogg'=1,'sound/effects/clownstep2.ogg'=1), 50, falloff_exponent = 20) //die off quick please AddElement(/datum/element/swabable, CELL_LINE_TABLE_CLOWN, CELL_VIRUS_TABLE_GENERIC, rand(2,3), 0) diff --git a/code/modules/clothing/shoes/costume.dm b/code/modules/clothing/shoes/costume.dm index cee4e1d824f..cdcddf49d71 100644 --- a/code/modules/clothing/shoes/costume.dm +++ b/code/modules/clothing/shoes/costume.dm @@ -35,7 +35,7 @@ icon_state = "clockwork_treads" can_be_tied = FALSE -/obj/item/clothing/shoes/bronze/Initialize() +/obj/item/clothing/shoes/bronze/Initialize(mapload) . = ..() AddComponent(/datum/component/squeak, list('sound/machines/clockcult/integration_cog_install.ogg' = 1, 'sound/magic/clockwork/fellowship_armory.ogg' = 1), 50, extrarange = SHORT_RANGE_SOUND_EXTRARANGE) diff --git a/code/modules/clothing/shoes/cowboy.dm b/code/modules/clothing/shoes/cowboy.dm index 4f654f6d933..0f827e38a64 100644 --- a/code/modules/clothing/shoes/cowboy.dm +++ b/code/modules/clothing/shoes/cowboy.dm @@ -9,7 +9,7 @@ var/max_occupants = 4 can_be_tied = FALSE -/obj/item/clothing/shoes/cowboy/Initialize() +/obj/item/clothing/shoes/cowboy/Initialize(mapload) . = ..() if(prob(2)) var/mob/living/simple_animal/hostile/retaliate/snake/bootsnake = new/mob/living/simple_animal/hostile/retaliate/snake(src) diff --git a/code/modules/clothing/shoes/cult.dm b/code/modules/clothing/shoes/cult.dm index 79b5c52e0f3..f7077a7b97d 100644 --- a/code/modules/clothing/shoes/cult.dm +++ b/code/modules/clothing/shoes/cult.dm @@ -16,6 +16,6 @@ /obj/item/clothing/shoes/cult/alt/ghost item_flags = DROPDEL -/obj/item/clothing/shoes/cult/alt/ghost/Initialize() +/obj/item/clothing/shoes/cult/alt/ghost/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CULT_TRAIT) diff --git a/code/modules/clothing/shoes/galoshes.dm b/code/modules/clothing/shoes/galoshes.dm index b4dacca78b4..c836bc0af3f 100644 --- a/code/modules/clothing/shoes/galoshes.dm +++ b/code/modules/clothing/shoes/galoshes.dm @@ -18,7 +18,7 @@ desc = "A pair of purple rubber boots, designed to prevent slipping on wet surfaces while also drying them." icon_state = "galoshes_dry" -/obj/item/clothing/shoes/galoshes/dry/Initialize() +/obj/item/clothing/shoes/galoshes/dry/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_SHOES_STEP_ACTION, .proc/on_step) diff --git a/code/modules/clothing/shoes/gunboots.dm b/code/modules/clothing/shoes/gunboots.dm index 3e08c17d18a..ff285afe509 100644 --- a/code/modules/clothing/shoes/gunboots.dm +++ b/code/modules/clothing/shoes/gunboots.dm @@ -11,7 +11,7 @@ /// Each step, this is the chance we fire a shot var/shot_prob = 50 -/obj/item/clothing/shoes/gunboots/Initialize() +/obj/item/clothing/shoes/gunboots/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_SHOES_STEP_ACTION, .proc/check_step) diff --git a/code/modules/clothing/shoes/wheelys.dm b/code/modules/clothing/shoes/wheelys.dm index f333ac51048..d7f31f10599 100644 --- a/code/modules/clothing/shoes/wheelys.dm +++ b/code/modules/clothing/shoes/wheelys.dm @@ -16,7 +16,7 @@ ///The vehicle associated with the shoes var/obj/vehicle/ridden/scooter/skateboard/wheelys/wheels = /obj/vehicle/ridden/scooter/skateboard/wheelys -/obj/item/clothing/shoes/wheelys/Initialize() +/obj/item/clothing/shoes/wheelys/Initialize(mapload) . = ..() AddElement(/datum/element/update_icon_updates_onmob) wheels = new wheels(null) diff --git a/code/modules/clothing/spacesuits/chronosuit.dm b/code/modules/clothing/spacesuits/chronosuit.dm index 5f43351f937..fe245a4f009 100644 --- a/code/modules/clothing/spacesuits/chronosuit.dm +++ b/code/modules/clothing/spacesuits/chronosuit.dm @@ -36,7 +36,7 @@ var/teleporting = FALSE var/phase_timer_id -/obj/item/clothing/suit/space/chronos/Initialize() +/obj/item/clothing/suit/space/chronos/Initialize(mapload) teleport_now.chronosuit = src teleport_now.target = src return ..() diff --git a/code/modules/clothing/spacesuits/hardsuit.dm b/code/modules/clothing/spacesuits/hardsuit.dm index 1462c2443ee..fd324f606f5 100644 --- a/code/modules/clothing/spacesuits/hardsuit.dm +++ b/code/modules/clothing/spacesuits/hardsuit.dm @@ -25,7 +25,7 @@ var/grace = RAD_GEIGER_GRACE_PERIOD var/datum/looping_sound/geiger/soundloop -/obj/item/clothing/head/helmet/space/hardsuit/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/Initialize(mapload) . = ..() soundloop = new(src, FALSE, TRUE) soundloop.volume = 5 @@ -114,7 +114,7 @@ var/obj/item/tank/jetpack/suit/jetpack = null var/hardsuit_type -/obj/item/clothing/suit/space/hardsuit/Initialize() +/obj/item/clothing/suit/space/hardsuit/Initialize(mapload) if(jetpack && ispath(jetpack)) jetpack = new jetpack(src) . = ..() @@ -281,7 +281,7 @@ light_range = 7 allowed = list(/obj/item/flashlight, /obj/item/tank/internals, /obj/item/resonator, /obj/item/mining_scanner, /obj/item/t_scanner/adv_mining_scanner, /obj/item/gun/energy/kinetic_accelerator) -/obj/item/clothing/head/helmet/space/hardsuit/mining/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/mining/Initialize(mapload) . = ..() AddComponent(/datum/component/armor_plate) RegisterSignal(src, COMSIG_ARMOR_PLATED, .proc/upgrade_icon) @@ -314,7 +314,7 @@ helmettype = /obj/item/clothing/head/helmet/space/hardsuit/mining heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS -/obj/item/clothing/suit/space/hardsuit/mining/Initialize() +/obj/item/clothing/suit/space/hardsuit/mining/Initialize(mapload) . = ..() AddComponent(/datum/component/armor_plate) RegisterSignal(src, COMSIG_ARMOR_PLATED, .proc/upgrade_icon) @@ -348,7 +348,7 @@ visor_flags_inv = HIDEMASK|HIDEEYES|HIDEFACE|HIDEFACIALHAIR|HIDESNOUT visor_flags = STOPSPRESSUREDAMAGE -/obj/item/clothing/head/helmet/space/hardsuit/syndi/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/syndi/Initialize(mapload) . = ..() if(istype(loc, /obj/item/clothing/suit/space/hardsuit/syndi)) linkedsuit = loc @@ -436,7 +436,7 @@ /obj/item/clothing/head/helmet/space/hardsuit/syndi/elite/debug -/obj/item/clothing/head/helmet/space/hardsuit/syndi/elite/debug/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/syndi/elite/debug/Initialize(mapload) . = ..() soundloop.volume = 0 @@ -519,7 +519,7 @@ cell = /obj/item/stock_parts/cell/hyper slowdown = 0 //you're spending 2 wizard points on this thing, the least it could do is not make you a sitting duck -/obj/item/clothing/suit/space/hardsuit/wizard/Initialize() +/obj/item/clothing/suit/space/hardsuit/wizard/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, TRUE, FALSE, FALSE, ITEM_SLOT_OCLOTHING, INFINITY, FALSE) @@ -558,7 +558,7 @@ clothing_flags = STOPSPRESSUREDAMAGE | THICKMATERIAL | SCAN_REAGENTS | SNUG_FIT actions_types = list(/datum/action/item_action/toggle_helmet_light, /datum/action/item_action/toggle_research_scanner) -/obj/item/clothing/head/helmet/space/hardsuit/rd/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/rd/Initialize(mapload) . = ..() RegisterSignal(SSdcs, COMSIG_GLOB_EXPLOSION, .proc/sense_explosion) @@ -616,7 +616,7 @@ armor = list(MELEE = 35, BULLET = 15, LASER = 30, ENERGY = 40, BOMB = 10, BIO = 100, RAD = 50, FIRE = 75, ACID = 75, WOUND = 20) helmettype = /obj/item/clothing/head/helmet/space/hardsuit/security -/obj/item/clothing/suit/space/hardsuit/security/Initialize() +/obj/item/clothing/suit/space/hardsuit/security/Initialize(mapload) . = ..() allowed = GLOB.security_hardsuit_allowed @@ -665,7 +665,7 @@ helmettype = /obj/item/clothing/head/helmet/space/hardsuit/swat // SWAT and Captain get EMP Protection -/obj/item/clothing/suit/space/hardsuit/swat/Initialize() +/obj/item/clothing/suit/space/hardsuit/swat/Initialize(mapload) . = ..() allowed = GLOB.security_hardsuit_allowed @@ -806,7 +806,7 @@ resistance_flags = FIRE_PROOF max_heat_protection_temperature = FIRE_IMMUNITY_MAX_TEMP_PROTECT -/obj/item/clothing/head/helmet/space/hardsuit/ert/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/ert/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, LOCKED_HELMET_TRAIT) @@ -825,7 +825,7 @@ cell = /obj/item/stock_parts/cell/bluespace // ERT suit's gets EMP Protection -/obj/item/clothing/suit/space/hardsuit/ert/Initialize() +/obj/item/clothing/suit/space/hardsuit/ert/Initialize(mapload) . = ..() AddElement(/datum/element/empprotection, EMP_PROTECT_CONTENTS) @@ -926,7 +926,7 @@ max_heat_protection_temperature = FIRE_IMMUNITY_MAX_TEMP_PROTECT resistance_flags = FIRE_PROOF -/obj/item/clothing/suit/space/hardsuit/ert/paranormal/Initialize() +/obj/item/clothing/suit/space/hardsuit/ert/paranormal/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, TRUE, TRUE, TRUE, ITEM_SLOT_OCLOTHING) @@ -955,7 +955,7 @@ actions_types = list() flags_inv = HIDEEARS|HIDEHAIR|HIDEFACIALHAIR //facial hair will clip with the helm, this'll need a dynamic_fhair_suffix at some point. -/obj/item/clothing/head/helmet/space/hardsuit/carp/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/carp/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, LOCKED_HELMET_TRAIT) @@ -1026,7 +1026,7 @@ /// The icon for the shield var/shield_icon = "shield-old" -/obj/item/clothing/suit/space/hardsuit/shielded/Initialize() +/obj/item/clothing/suit/space/hardsuit/shielded/Initialize(mapload) . = ..() if(!allowed) allowed = GLOB.advanced_hardsuit_allowed diff --git a/code/modules/clothing/spacesuits/plasmamen.dm b/code/modules/clothing/spacesuits/plasmamen.dm index e3b27e835e5..d7784609b4c 100644 --- a/code/modules/clothing/spacesuits/plasmamen.dm +++ b/code/modules/clothing/spacesuits/plasmamen.dm @@ -61,7 +61,7 @@ flags_cover = HEADCOVERSMOUTH|HEADCOVERSEYES|PEPPERPROOF visor_flags_inv = HIDEEYES|HIDEFACE -/obj/item/clothing/head/helmet/space/plasmaman/Initialize() +/obj/item/clothing/head/helmet/space/plasmaman/Initialize(mapload) . = ..() visor_toggling() update_appearance() diff --git a/code/modules/clothing/suits/ablativecoat.dm b/code/modules/clothing/suits/ablativecoat.dm index 56586aea02c..b6ad6f0d0b3 100644 --- a/code/modules/clothing/suits/ablativecoat.dm +++ b/code/modules/clothing/suits/ablativecoat.dm @@ -38,7 +38,7 @@ equip_delay_other = 40 var/hit_reflect_chance = 50 -/obj/item/clothing/suit/hooded/ablative/Initialize() +/obj/item/clothing/suit/hooded/ablative/Initialize(mapload) . = ..() allowed = GLOB.security_vest_allowed diff --git a/code/modules/clothing/suits/armor.dm b/code/modules/clothing/suits/armor.dm index 164d094c912..9f38e5b1588 100644 --- a/code/modules/clothing/suits/armor.dm +++ b/code/modules/clothing/suits/armor.dm @@ -11,7 +11,7 @@ resistance_flags = NONE armor = list(MELEE = 35, BULLET = 30, LASER = 30, ENERGY = 40, BOMB = 25, BIO = 0, RAD = 0, FIRE = 50, ACID = 50, WOUND = 10) -/obj/item/clothing/suit/armor/Initialize() +/obj/item/clothing/suit/armor/Initialize(mapload) . = ..() if(!allowed) allowed = GLOB.security_vest_allowed @@ -147,7 +147,7 @@ armor = list(MELEE = 50, BULLET = 40, LASER = 50, ENERGY = 50, BOMB = 25, BIO = 0, RAD = 0, FIRE = 100, ACID = 90, WOUND = 10) togglename = "buttons" -/obj/item/clothing/suit/toggle/captains_parade/Initialize() +/obj/item/clothing/suit/toggle/captains_parade/Initialize(mapload) . = ..() allowed = GLOB.security_wintercoat_allowed @@ -209,7 +209,7 @@ resistance_flags = FLAMMABLE dog_fashion = null -/obj/item/clothing/suit/armor/vest/det_suit/Initialize() +/obj/item/clothing/suit/armor/vest/det_suit/Initialize(mapload) . = ..() allowed = GLOB.detective_vest_allowed @@ -361,7 +361,7 @@ armor = list(MELEE = 35, BULLET = 40, LASER = 40, ENERGY = 50, BOMB = 35, BIO = 10, RAD = 10, FIRE = 10, ACID = 60) togglename = "buttons" -/obj/item/clothing/suit/toggle/armor/vest/centcom_formal/Initialize() +/obj/item/clothing/suit/toggle/armor/vest/centcom_formal/Initialize(mapload) . = ..() allowed = GLOB.security_wintercoat_allowed @@ -374,6 +374,6 @@ armor = list(MELEE = 30, BULLET = 30, LASER = 30, ENERGY = 40, BOMB = 25, BIO = 0, RAD = 0, FIRE = 70, ACID = 90, WOUND = 10) togglename = "buttons" -/obj/item/clothing/suit/toggle/armor/hos/hos_formal/Initialize() +/obj/item/clothing/suit/toggle/armor/hos/hos_formal/Initialize(mapload) . = ..() allowed = GLOB.security_wintercoat_allowed diff --git a/code/modules/clothing/suits/bio.dm b/code/modules/clothing/suits/bio.dm index 265aba7eb43..284066b9c1f 100644 --- a/code/modules/clothing/suits/bio.dm +++ b/code/modules/clothing/suits/bio.dm @@ -52,7 +52,7 @@ armor = list(MELEE = 25, BULLET = 15, LASER = 25, ENERGY = 35, BOMB = 25, BIO = 100, RAD = 80, FIRE = 30, ACID = 100) icon_state = "bio_security" -/obj/item/clothing/suit/bio_suit/security/Initialize() +/obj/item/clothing/suit/bio_suit/security/Initialize(mapload) . = ..() allowed += GLOB.security_vest_allowed @@ -63,7 +63,7 @@ /obj/item/clothing/suit/bio_suit/janitor icon_state = "bio_janitor" -/obj/item/clothing/suit/bio_suit/janitor/Initialize() +/obj/item/clothing/suit/bio_suit/janitor/Initialize(mapload) . = ..() allowed += list(/obj/item/storage/bag/trash, /obj/item/reagent_containers/spray) @@ -81,7 +81,7 @@ /obj/item/clothing/suit/bio_suit/cmo icon_state = "bio_cmo" -/obj/item/clothing/suit/bio_suit/cmo/Initialize() +/obj/item/clothing/suit/bio_suit/cmo/Initialize(mapload) . = ..() allowed += list(/obj/item/melee/baton/telescopic) @@ -94,6 +94,6 @@ strip_delay = 40 equip_delay_other = 20 -/obj/item/clothing/suit/bio_suit/plaguedoctorsuit/Initialize() +/obj/item/clothing/suit/bio_suit/plaguedoctorsuit/Initialize(mapload) . = ..() allowed += list(/obj/item/storage/book/bible, /obj/item/nullrod, /obj/item/cane) diff --git a/code/modules/clothing/suits/costume.dm b/code/modules/clothing/suits/costume.dm index b6198419e23..5f64305922a 100644 --- a/code/modules/clothing/suits/costume.dm +++ b/code/modules/clothing/suits/costume.dm @@ -130,7 +130,7 @@ body_parts_covered = ARMS|CHEST actions_types = list(/datum/action/item_action/toggle_wings) -/obj/item/clothing/suit/toggle/owlwings/Initialize() +/obj/item/clothing/suit/toggle/owlwings/Initialize(mapload) . = ..() allowed = GLOB.security_vest_allowed @@ -201,7 +201,7 @@ icon_state = "ponchoshame" inhand_icon_state = "ponchoshame" -/obj/item/clothing/suit/poncho/ponchoshame/Initialize() +/obj/item/clothing/suit/poncho/ponchoshame/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, SHAMEBRERO_TRAIT) diff --git a/code/modules/clothing/suits/jobs.dm b/code/modules/clothing/suits/jobs.dm index c5d71d0eaaf..5361204b67f 100644 --- a/code/modules/clothing/suits/jobs.dm +++ b/code/modules/clothing/suits/jobs.dm @@ -65,7 +65,7 @@ cold_protection = CHEST|GROIN|LEGS|ARMS heat_protection = CHEST|GROIN|LEGS|ARMS -/obj/item/clothing/suit/det_suit/Initialize() +/obj/item/clothing/suit/det_suit/Initialize(mapload) . = ..() allowed = GLOB.detective_vest_allowed diff --git a/code/modules/clothing/suits/labcoat.dm b/code/modules/clothing/suits/labcoat.dm index cd263ae5ef8..0f8f4bef1d6 100644 --- a/code/modules/clothing/suits/labcoat.dm +++ b/code/modules/clothing/suits/labcoat.dm @@ -35,7 +35,7 @@ icon_state = "labcoat_cmo" inhand_icon_state = "labcoat_cmo" -/obj/item/clothing/suit/toggle/labcoat/cmo/Initialize() +/obj/item/clothing/suit/toggle/labcoat/cmo/Initialize(mapload) . = ..() allowed += list( /obj/item/melee/baton/telescopic, diff --git a/code/modules/clothing/suits/reactive_armour.dm b/code/modules/clothing/suits/reactive_armour.dm index 3a3bcd08fdc..78e8dfb71f3 100644 --- a/code/modules/clothing/suits/reactive_armour.dm +++ b/code/modules/clothing/suits/reactive_armour.dm @@ -47,7 +47,7 @@ resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF hit_reaction_chance = 50 -/obj/item/clothing/suit/armor/reactive/Initialize() +/obj/item/clothing/suit/armor/reactive/Initialize(mapload) . = ..() AddElement(/datum/element/update_icon_updates_onmob) diff --git a/code/modules/clothing/suits/toggles.dm b/code/modules/clothing/suits/toggles.dm index 8d6810e9d19..a97d23a1cfa 100644 --- a/code/modules/clothing/suits/toggles.dm +++ b/code/modules/clothing/suits/toggles.dm @@ -7,7 +7,7 @@ ///Alternative mode for hiding the hood, instead of storing the hood in the suit it qdels it, useful for when you deal with hooded suit with storage. var/alternative_mode = FALSE -/obj/item/clothing/suit/hooded/Initialize() +/obj/item/clothing/suit/hooded/Initialize(mapload) . = ..() if(!alternative_mode) MakeHood() @@ -135,7 +135,7 @@ . += "Alt-click on [src] to toggle the [togglename]." //Hardsuit toggle code -/obj/item/clothing/suit/space/hardsuit/Initialize() +/obj/item/clothing/suit/space/hardsuit/Initialize(mapload) MakeHelmet() . = ..() diff --git a/code/modules/clothing/suits/wintercoats.dm b/code/modules/clothing/suits/wintercoats.dm index 4f762044631..4df892c5fc0 100644 --- a/code/modules/clothing/suits/wintercoats.dm +++ b/code/modules/clothing/suits/wintercoats.dm @@ -12,7 +12,7 @@ allowed = list() armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 10, RAD = 0, FIRE = 0, ACID = 0) -/obj/item/clothing/suit/hooded/wintercoat/Initialize() +/obj/item/clothing/suit/hooded/wintercoat/Initialize(mapload) . = ..() allowed += list( /obj/item/flashlight, @@ -47,7 +47,7 @@ armor = list(MELEE = 35, BULLET = 40, LASER = 40, ENERGY = 50, BOMB = 35, BIO = 10, RAD = 10, FIRE = 10, ACID = 60) hoodtype = /obj/item/clothing/head/hooded/winterhood/centcom -/obj/item/clothing/suit/hooded/wintercoat/centcom/Initialize() +/obj/item/clothing/suit/hooded/wintercoat/centcom/Initialize(mapload) . = ..() allowed += GLOB.security_wintercoat_allowed @@ -66,7 +66,7 @@ armor = list(MELEE = 25, BULLET = 30, LASER = 30, ENERGY = 40, BOMB = 25, BIO = 0, RAD = 0, FIRE = 0, ACID = 50) hoodtype = /obj/item/clothing/head/hooded/winterhood/captain -/obj/item/clothing/suit/hooded/wintercoat/captain/Initialize() +/obj/item/clothing/suit/hooded/wintercoat/captain/Initialize(mapload) . = ..() allowed += GLOB.security_wintercoat_allowed @@ -139,7 +139,7 @@ armor = list(MELEE = 25, BULLET = 15, LASER = 30, ENERGY = 40, BOMB = 25, BIO = 0, RAD = 0, FIRE = 0, ACID = 45) hoodtype = /obj/item/clothing/head/hooded/winterhood/security -/obj/item/clothing/suit/hooded/wintercoat/security/Initialize() +/obj/item/clothing/suit/hooded/wintercoat/security/Initialize(mapload) . = ..() allowed += GLOB.security_wintercoat_allowed @@ -197,7 +197,7 @@ armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 50, RAD = 0, FIRE = 20, ACID = 30) hoodtype = /obj/item/clothing/head/hooded/winterhood/medical/cmo -/obj/item/clothing/suit/hooded/wintercoat/medical/cmo/Initialize() +/obj/item/clothing/suit/hooded/wintercoat/medical/cmo/Initialize(mapload) . = ..() allowed += list( /obj/item/melee/baton/telescopic, @@ -280,7 +280,7 @@ armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 20, BIO = 0, RAD = 0, FIRE = 30, ACID = 0) hoodtype = /obj/item/clothing/head/hooded/winterhood/science/rd -/obj/item/clothing/suit/hooded/wintercoat/science/rd/Initialize() +/obj/item/clothing/suit/hooded/wintercoat/science/rd/Initialize(mapload) . = ..() allowed += list( /obj/item/melee/baton/telescopic, @@ -345,7 +345,7 @@ armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 20, FIRE = 30, ACID = 10) hoodtype = /obj/item/clothing/head/hooded/winterhood/engineering/ce -/obj/item/clothing/suit/hooded/wintercoat/engineering/ce/Initialize() +/obj/item/clothing/suit/hooded/wintercoat/engineering/ce/Initialize(mapload) . = ..() allowed += list( /obj/item/melee/baton/telescopic, diff --git a/code/modules/clothing/under/_under.dm b/code/modules/clothing/under/_under.dm index f9af946c163..bec6e7939d2 100644 --- a/code/modules/clothing/under/_under.dm +++ b/code/modules/clothing/under/_under.dm @@ -62,7 +62,7 @@ else if(damaged_state == CLOTHING_PRISTINE && has_sensor == BROKEN_SENSORS) has_sensor = HAS_SENSORS -/obj/item/clothing/under/Initialize() +/obj/item/clothing/under/Initialize(mapload) . = ..() if(random_sensor) //make the sensor mode favor higher levels, except coords. diff --git a/code/modules/clothing/under/accessories.dm b/code/modules/clothing/under/accessories.dm index 68ebb1c7416..984581775a9 100755 --- a/code/modules/clothing/under/accessories.dm +++ b/code/modules/clothing/under/accessories.dm @@ -339,13 +339,13 @@ icon_state = "pocketprotector" pocket_storage_component_path = /datum/component/storage/concrete/pockets/pocketprotector -/obj/item/clothing/accessory/pocketprotector/full/Initialize() +/obj/item/clothing/accessory/pocketprotector/full/Initialize(mapload) . = ..() new /obj/item/pen/red(src) new /obj/item/pen(src) new /obj/item/pen/blue(src) -/obj/item/clothing/accessory/pocketprotector/cosmetology/Initialize() +/obj/item/clothing/accessory/pocketprotector/cosmetology/Initialize(mapload) . = ..() for(var/i in 1 to 3) new /obj/item/lipstick/random(src) diff --git a/code/modules/clothing/under/color.dm b/code/modules/clothing/under/color.dm index 187955762e4..5456cfd9e10 100644 --- a/code/modules/clothing/under/color.dm +++ b/code/modules/clothing/under/color.dm @@ -22,7 +22,7 @@ /obj/item/clothing/under/color/random icon_state = "random_jumpsuit" -/obj/item/clothing/under/color/random/Initialize() +/obj/item/clothing/under/color/random/Initialize(mapload) ..() var/obj/item/clothing/under/color/C = pick(subtypesof(/obj/item/clothing/under/color) - typesof(/obj/item/clothing/under/color/jumpskirt) - /obj/item/clothing/under/color/random - /obj/item/clothing/under/color/grey/ancient - /obj/item/clothing/under/color/black/ghost - /obj/item/clothing/under/rank/prisoner) if(ishuman(loc)) @@ -35,7 +35,7 @@ /obj/item/clothing/under/color/jumpskirt/random icon_state = "random_jumpsuit" //Skirt variant needed -/obj/item/clothing/under/color/jumpskirt/random/Initialize() +/obj/item/clothing/under/color/jumpskirt/random/Initialize(mapload) ..() var/obj/item/clothing/under/color/jumpskirt/C = pick(subtypesof(/obj/item/clothing/under/color/jumpskirt) - /obj/item/clothing/under/color/jumpskirt/random - /obj/item/clothing/under/rank/prisoner/skirt) if(ishuman(loc)) @@ -55,7 +55,7 @@ /obj/item/clothing/under/color/black/ghost item_flags = DROPDEL -/obj/item/clothing/under/color/black/ghost/Initialize() +/obj/item/clothing/under/color/black/ghost/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CULT_TRAIT) diff --git a/code/modules/clothing/under/costume.dm b/code/modules/clothing/under/costume.dm index 8ff3d3e8455..f617916d428 100644 --- a/code/modules/clothing/under/costume.dm +++ b/code/modules/clothing/under/costume.dm @@ -87,7 +87,7 @@ /obj/item/clothing/under/costume/kilt/highlander desc = "You're the only one worthy of this kilt." -/obj/item/clothing/under/costume/kilt/highlander/Initialize() +/obj/item/clothing/under/costume/kilt/highlander/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, HIGHLANDER) @@ -114,7 +114,7 @@ fitted = FEMALE_UNIFORM_TOP can_adjust = FALSE -/obj/item/clothing/under/costume/maid/Initialize() +/obj/item/clothing/under/costume/maid/Initialize(mapload) . = ..() var/obj/item/clothing/accessory/maidapron/A = new (src) attach_accessory(A) diff --git a/code/modules/clothing/under/jobs/civilian/clown_mime.dm b/code/modules/clothing/under/jobs/civilian/clown_mime.dm index 45cc50a21f2..50258e60c5f 100644 --- a/code/modules/clothing/under/jobs/civilian/clown_mime.dm +++ b/code/modules/clothing/under/jobs/civilian/clown_mime.dm @@ -32,7 +32,7 @@ fitted = FEMALE_UNIFORM_TOP can_adjust = FALSE -/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 AddElement(/datum/element/swabable, CELL_LINE_TABLE_CLOWN, CELL_VIRUS_TABLE_GENERIC, rand(2,3), 0) diff --git a/code/modules/events/holiday/halloween.dm b/code/modules/events/holiday/halloween.dm index 32eed690d30..40c66868358 100644 --- a/code/modules/events/holiday/halloween.dm +++ b/code/modules/events/holiday/halloween.dm @@ -44,7 +44,7 @@ icon = 'icons/obj/halloween_items.dmi' icon_state = "treatbag" -/obj/item/storage/spooky/Initialize() +/obj/item/storage/spooky/Initialize(mapload) . = ..() for(var/distrobuteinbag in 0 to 5) var/type = pick(/obj/item/food/cookie/sugar/spookyskull, diff --git a/code/modules/events/holiday/vday.dm b/code/modules/events/holiday/vday.dm index 4facb481425..57fd38bb4e0 100644 --- a/code/modules/events/holiday/vday.dm +++ b/code/modules/events/holiday/vday.dm @@ -60,7 +60,7 @@ resistance_flags = FLAMMABLE w_class = WEIGHT_CLASS_TINY -/obj/item/valentine/Initialize() +/obj/item/valentine/Initialize(mapload) . = ..() message = pick(strings(VALENTINE_FILE, "valentines")) @@ -100,7 +100,7 @@ food_reagents = list(/datum/reagent/consumable/sugar = 2) junkiness = 5 -/obj/item/food/candyheart/Initialize() +/obj/item/food/candyheart/Initialize(mapload) . = ..() desc = pick(strings(VALENTINE_FILE, "candyhearts")) icon_state = pick("candyheart", "candyheart2", "candyheart3", "candyheart4") diff --git a/code/modules/events/holiday/xmas.dm b/code/modules/events/holiday/xmas.dm index 51dfa00a0ff..76e96c86512 100644 --- a/code/modules/events/holiday/xmas.dm +++ b/code/modules/events/holiday/xmas.dm @@ -49,7 +49,7 @@ var/festive_tree = /obj/structure/flora/tree/pine/xmas var/christmas_tree = /obj/structure/flora/tree/pine/xmas/presents -/obj/effect/spawner/xmastree/Initialize() +/obj/effect/spawner/xmastree/Initialize(mapload) ..() if((CHRISTMAS in SSevents.holidays) && christmas_tree) new christmas_tree(get_turf(src)) diff --git a/code/modules/events/pirates.dm b/code/modules/events/pirates.dm index acc48cfe183..bfd03de9e08 100644 --- a/code/modules/events/pirates.dm +++ b/code/modules/events/pirates.dm @@ -53,7 +53,7 @@ threat.answer_callback = CALLBACK(GLOBAL_PROC, .proc/pirates_answered, threat, payoff, ship_name, initial_send_time, response_max_time, ship_template) addtimer(CALLBACK(GLOBAL_PROC, .proc/spawn_pirates, threat, ship_template, FALSE), response_max_time) SScommunications.send_message(threat,unique = TRUE) - + /proc/pirates_answered(datum/comm_message/threat, payoff, ship_name, initial_send_time, response_max_time, ship_template) if(world.time > initial_send_time + response_max_time) priority_announce("Too late to beg for mercy!",sender_override = ship_name) @@ -270,7 +270,7 @@ var/sending_timer var/cargo_hold_id -/obj/machinery/computer/piratepad_control/Initialize() +/obj/machinery/computer/piratepad_control/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/modules/events/shuttle_loan.dm b/code/modules/events/shuttle_loan.dm index fd22f6c2cd6..989796252d8 100644 --- a/code/modules/events/shuttle_loan.dm +++ b/code/modules/events/shuttle_loan.dm @@ -258,7 +258,7 @@ name = "Objectives of a Bee Liberation Front Operative" info = "Objective #1. Liberate all bees on the NT transport vessel 2416/B. Success!
Objective #2. Escape alive. Failed." -/obj/machinery/syndicatebomb/shuttle_loan/Initialize() +/obj/machinery/syndicatebomb/shuttle_loan/Initialize(mapload) . = ..() set_anchored(TRUE) timer_set = rand(480, 600) //once the supply shuttle docks (after 5 minutes travel time), players have between 3-5 minutes to defuse the bomb diff --git a/code/modules/events/wizard/magicarp.dm b/code/modules/events/wizard/magicarp.dm index ba7a7ada563..2ca9fb18ad7 100644 --- a/code/modules/events/wizard/magicarp.dm +++ b/code/modules/events/wizard/magicarp.dm @@ -43,7 +43,7 @@ /obj/projectile/magic/death, /obj/projectile/magic/teleport, /obj/projectile/magic/door, /obj/projectile/magic/aoe/fireball, /obj/projectile/magic/spellblade, /obj/projectile/magic/arcane_barrage) -/mob/living/simple_animal/hostile/carp/ranged/Initialize() +/mob/living/simple_animal/hostile/carp/ranged/Initialize(mapload) projectiletype = pick(allowed_projectile_types) . = ..() diff --git a/code/modules/experisci/destructive_scanner.dm b/code/modules/experisci/destructive_scanner.dm index 862ddd37035..5b119db8eb1 100644 --- a/code/modules/experisci/destructive_scanner.dm +++ b/code/modules/experisci/destructive_scanner.dm @@ -12,7 +12,7 @@ layer = MOB_LAYER var/scanning = FALSE -/obj/machinery/destructive_scanner/Initialize() +/obj/machinery/destructive_scanner/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/modules/experisci/handheld_scanner.dm b/code/modules/experisci/handheld_scanner.dm index 153958c3c38..d3cb2fecf57 100644 --- a/code/modules/experisci/handheld_scanner.dm +++ b/code/modules/experisci/handheld_scanner.dm @@ -12,7 +12,7 @@ lefthand_file = 'icons/mob/inhands/misc/devices_lefthand.dmi' righthand_file = 'icons/mob/inhands/misc/devices_righthand.dmi' -/obj/item/experi_scanner/Initialize() +/obj/item/experi_scanner/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/modules/explorer_drone/exodrone.dm b/code/modules/explorer_drone/exodrone.dm index a4c71df2062..d98b4595ad6 100644 --- a/code/modules/explorer_drone/exodrone.dm +++ b/code/modules/explorer_drone/exodrone.dm @@ -61,7 +61,7 @@ GLOBAL_LIST_EMPTY(exodrone_launchers) /// Used to provide source to the regex replacement function. DO NOT MODIFY DIRECTLY var/static/obj/item/exodrone/_regex_context -/obj/item/exodrone/Initialize() +/obj/item/exodrone/Initialize(mapload) . = ..() name = pick(strings(EXODRONE_FILE,"probe_names")) if(name_counter[name]) @@ -347,7 +347,7 @@ GLOBAL_LIST_EMPTY(exodrone_launchers) /// Loaded fuel pellet. var/obj/item/fuel_pellet/fuel_canister -/obj/machinery/exodrone_launcher/Initialize() +/obj/machinery/exodrone_launcher/Initialize(mapload) . = ..() GLOB.exodrone_launchers += src diff --git a/code/modules/explorer_drone/loot.dm b/code/modules/explorer_drone/loot.dm index 47f12b8cf28..b9d0ae4135d 100644 --- a/code/modules/explorer_drone/loot.dm +++ b/code/modules/explorer_drone/loot.dm @@ -145,7 +145,7 @@ GLOBAL_LIST_INIT(adventure_loot_generator_index,generate_generator_index()) var/charge_per_use = 200 var/obj/item/stock_parts/cell/cell -/obj/item/firelance/Initialize() +/obj/item/firelance/Initialize(mapload) . = ..() cell = new /obj/item/stock_parts/cell(src) AddComponent(/datum/component/two_handed) diff --git a/code/modules/explorer_drone/scanner_array.dm b/code/modules/explorer_drone/scanner_array.dm index 54dc498c5ae..afc7607f162 100644 --- a/code/modules/explorer_drone/scanner_array.dm +++ b/code/modules/explorer_drone/scanner_array.dm @@ -179,7 +179,7 @@ GLOBAL_LIST_INIT(scan_conditions,init_scan_conditions()) failed_popup = TRUE SStgui.update_uis(src) -/obj/machinery/computer/exoscanner_control/Initialize() +/obj/machinery/computer/exoscanner_control/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD @@ -198,7 +198,7 @@ GLOBAL_LIST_INIT(scan_conditions,init_scan_conditions()) idle_power_usage = 0 active_power_usage = 500 -/obj/machinery/exoscanner/Initialize() +/obj/machinery/exoscanner/Initialize(mapload) . = ..() RegisterSignal(GLOB.exoscanner_controller,list(COMSIG_EXOSCAN_STARTED,COMSIG_EXOSCAN_FINISHED),.proc/scan_change) update_readiness() diff --git a/code/modules/fields/fields.dm b/code/modules/fields/fields.dm index 66386e8defd..69c166c5207 100644 --- a/code/modules/fields/fields.dm +++ b/code/modules/fields/fields.dm @@ -279,7 +279,7 @@ var/datum/proximity_monitor/advanced/current = null var/mob/listeningTo -/obj/item/multitool/field_debug/Initialize() +/obj/item/multitool/field_debug/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm index 4afbf38ffa5..7e20bcf6bb5 100644 --- a/code/modules/flufftext/Hallucination.dm +++ b/code/modules/flufftext/Hallucination.dm @@ -1375,7 +1375,7 @@ GLOBAL_LIST_INIT(hallucination_list, list( /obj/effect/hallucination/danger/anomaly name = "flux wave anomaly" -/obj/effect/hallucination/danger/anomaly/Initialize() +/obj/effect/hallucination/danger/anomaly/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) var/static/list/loc_connections = list( diff --git a/code/modules/food_and_drinks/drinks/drinks.dm b/code/modules/food_and_drinks/drinks/drinks.dm index b4ee8b01e72..0511fb35ec3 100644 --- a/code/modules/food_and_drinks/drinks/drinks.dm +++ b/code/modules/food_and_drinks/drinks/drinks.dm @@ -308,7 +308,7 @@ var/flip_chance = 10 custom_price = PAYCHECK_PRISONER * 0.8 -/obj/item/reagent_containers/food/drinks/waterbottle/Initialize() +/obj/item/reagent_containers/food/drinks/waterbottle/Initialize(mapload) . = ..() cap_overlay = mutable_appearance(icon, cap_icon_state) if(cap_on) @@ -421,7 +421,7 @@ desc = "A bottle quite similar to a water bottle, but with some words scribbled on with a marker. It seems to be radiating some kind of energy." flip_chance = 100 // FLIPP -/obj/item/reagent_containers/food/drinks/waterbottle/relic/Initialize() +/obj/item/reagent_containers/food/drinks/waterbottle/relic/Initialize(mapload) var/reagent_id = get_random_reagent_id() var/datum/reagent/random_reagent = new reagent_id list_reagents = list(random_reagent.type = 50) @@ -574,7 +574,7 @@ /// Allows the lean sprite to display upon crafting var/random_sprite = TRUE -/obj/item/reagent_containers/food/drinks/colocup/Initialize() +/obj/item/reagent_containers/food/drinks/colocup/Initialize(mapload) .=..() pixel_x = rand(-4,4) pixel_y = rand(-4,4) @@ -636,7 +636,7 @@ custom_price = PAYCHECK_ASSISTANT * 0.9 obj_flags = CAN_BE_HIT -/obj/item/reagent_containers/food/drinks/soda_cans/random/Initialize() +/obj/item/reagent_containers/food/drinks/soda_cans/random/Initialize(mapload) ..() var/T = pick(subtypesof(/obj/item/reagent_containers/food/drinks/soda_cans) - /obj/item/reagent_containers/food/drinks/soda_cans/random) new T(loc) @@ -731,7 +731,7 @@ list_reagents = list(/datum/reagent/consumable/lemon_lime = 30) foodtype = FRUIT -/obj/item/reagent_containers/food/drinks/soda_cans/lemon_lime/Initialize() +/obj/item/reagent_containers/food/drinks/soda_cans/lemon_lime/Initialize(mapload) . = ..() name = "lemon-lime soda" diff --git a/code/modules/food_and_drinks/drinks/drinks/bottle.dm b/code/modules/food_and_drinks/drinks/drinks/bottle.dm index 964b45ef927..fce9c0a82eb 100644 --- a/code/modules/food_and_drinks/drinks/drinks/bottle.dm +++ b/code/modules/food_and_drinks/drinks/drinks/bottle.dm @@ -149,7 +149,7 @@ sharpness = SHARP_EDGED var/static/icon/broken_outline = icon('icons/obj/drinks.dmi', "broken") -/obj/item/broken_bottle/Initialize() +/obj/item/broken_bottle/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 200, 55) @@ -316,7 +316,7 @@ icon_state = "absinthebottle" list_reagents = list(/datum/reagent/consumable/ethanol/absinthe = 100) -/obj/item/reagent_containers/food/drinks/bottle/absinthe/Initialize() +/obj/item/reagent_containers/food/drinks/bottle/absinthe/Initialize(mapload) . = ..() redact() @@ -395,7 +395,7 @@ icon_state = "sakebottle" list_reagents = list(/datum/reagent/consumable/ethanol/sake = 100) -/obj/item/reagent_containers/food/drinks/bottle/sake/Initialize() +/obj/item/reagent_containers/food/drinks/bottle/sake/Initialize(mapload) . = ..() if(prob(10)) name = "Fluffy Tail Sake" @@ -673,7 +673,7 @@ var/fermentation_time_remaining /// for partial fermentation var/fermentation_timer /// store the timer id of fermentation -/obj/item/reagent_containers/food/drinks/bottle/pruno/Initialize() +/obj/item/reagent_containers/food/drinks/bottle/pruno/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_MOVABLE_MOVED, .proc/check_fermentation) diff --git a/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm b/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm index bce31ca452a..546b1028a4e 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm @@ -35,7 +35,7 @@ GLOBAL_LIST_INIT(oilfry_blacklisted_items, typecacheof(list( /obj/item/multitool, /obj/item/weldingtool)) -/obj/machinery/deepfryer/Initialize() +/obj/machinery/deepfryer/Initialize(mapload) . = ..() create_reagents(50, OPENCONTAINER) reagents.add_reagent(/datum/reagent/consumable/cooking_oil, 25) diff --git a/code/modules/food_and_drinks/kitchen_machinery/food_cart.dm b/code/modules/food_and_drinks/kitchen_machinery/food_cart.dm index 420bc96e48b..f324fbf2cda 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/food_cart.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/food_cart.dm @@ -16,7 +16,7 @@ var/obj/effect/food_cart_stand/cart_tent var/list/packed_things -/obj/machinery/food_cart/Initialize() +/obj/machinery/food_cart/Initialize(mapload) . = ..() cart_griddle = new(src) cart_smartfridge = new(src) diff --git a/code/modules/food_and_drinks/kitchen_machinery/gibber.dm b/code/modules/food_and_drinks/kitchen_machinery/gibber.dm index a53a8c02a32..3ffa4a42384 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/gibber.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/gibber.dm @@ -16,7 +16,7 @@ var/ignore_clothing = FALSE -/obj/machinery/gibber/Initialize() +/obj/machinery/gibber/Initialize(mapload) . = ..() add_overlay("grjam") diff --git a/code/modules/food_and_drinks/kitchen_machinery/griddle.dm b/code/modules/food_and_drinks/kitchen_machinery/griddle.dm index 53c8c800beb..44b096a2d3c 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/griddle.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/griddle.dm @@ -22,7 +22,7 @@ ///How many shit fits on the griddle? var/max_items = 8 -/obj/machinery/griddle/Initialize() +/obj/machinery/griddle/Initialize(mapload) . = ..() grill_loop = new(src, FALSE) if(isnum(variant)) diff --git a/code/modules/food_and_drinks/kitchen_machinery/grill.dm b/code/modules/food_and_drinks/kitchen_machinery/grill.dm index c0ca70a6213..6ed23b42972 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/grill.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/grill.dm @@ -16,7 +16,7 @@ var/grill_time = 0 var/datum/looping_sound/grill/grill_loop -/obj/machinery/grill/Initialize() +/obj/machinery/grill/Initialize(mapload) . = ..() grill_loop = new(src, FALSE) diff --git a/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm b/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm index 19b81ebfd41..b924bacf4cb 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm @@ -25,7 +25,7 @@ /datum/reagent/consumable/berryjuice = 6, /datum/reagent/consumable/ethanol/singulo = 6) -/obj/machinery/icecream_vat/Initialize() +/obj/machinery/icecream_vat/Initialize(mapload) . = ..() if(!cone_prototypes) diff --git a/code/modules/food_and_drinks/kitchen_machinery/microwave.dm b/code/modules/food_and_drinks/kitchen_machinery/microwave.dm index 80b77c5a17c..2c19df8da99 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/microwave.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/microwave.dm @@ -32,7 +32,7 @@ var/static/list/radial_options = list("eject" = radial_eject, "use" = radial_use) var/static/list/ai_radial_options = list("eject" = radial_eject, "use" = radial_use, "examine" = radial_examine) -/obj/machinery/microwave/Initialize() +/obj/machinery/microwave/Initialize(mapload) . = ..() wires = new /datum/wires/microwave(src) create_reagents(100) diff --git a/code/modules/food_and_drinks/kitchen_machinery/oven.dm b/code/modules/food_and_drinks/kitchen_machinery/oven.dm index 09f640923aa..6bda3281b56 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/oven.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/oven.dm @@ -30,7 +30,7 @@ ///Current state of smoke coming from the oven var/smoke_state = OVEN_SMOKE_STATE_NONE -/obj/machinery/oven/Initialize() +/obj/machinery/oven/Initialize(mapload) . = ..() oven_loop = new(src) add_tray_to_oven(new /obj/item/plate/oven_tray(src)) //Start with a tray diff --git a/code/modules/food_and_drinks/kitchen_machinery/processor.dm b/code/modules/food_and_drinks/kitchen_machinery/processor.dm index 51d683a9d39..f0a380ca965 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/processor.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/processor.dm @@ -23,7 +23,7 @@ */ var/static/list/processor_inputs -/obj/machinery/processor/Initialize() +/obj/machinery/processor/Initialize(mapload) . = ..() if(processor_inputs) return diff --git a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm index 3bbc1dcb4ec..de2ec62e5b2 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm @@ -23,7 +23,7 @@ /// If the machine shows an approximate number of its contents on its sprite var/visible_contents = TRUE -/obj/machinery/smartfridge/Initialize() +/obj/machinery/smartfridge/Initialize(mapload) . = ..() create_reagents(100, NO_REACT) @@ -271,7 +271,7 @@ base_build_path = /obj/machinery/smartfridge/drying_rack //should really be seeing this without admin fuckery. var/drying = FALSE -/obj/machinery/smartfridge/drying_rack/Initialize() +/obj/machinery/smartfridge/drying_rack/Initialize(mapload) . = ..() // Cache the old_parts first, we'll delete it after we've changed component_parts to a new list. diff --git a/code/modules/food_and_drinks/pizzabox.dm b/code/modules/food_and_drinks/pizzabox.dm index 68675c9509b..daf44c7d408 100644 --- a/code/modules/food_and_drinks/pizzabox.dm +++ b/code/modules/food_and_drinks/pizzabox.dm @@ -35,7 +35,7 @@ /// Max bomb timer allower in seconds var/bomb_timer_max = 20 -/obj/item/pizzabox/Initialize() +/obj/item/pizzabox/Initialize(mapload) . = ..() if(pizza) pizza = new pizza @@ -296,7 +296,7 @@ wires = null update_appearance() -/obj/item/pizzabox/bomb/Initialize() +/obj/item/pizzabox/bomb/Initialize(mapload) . = ..() if(!pizza) var/randompizza = pick(subtypesof(/obj/item/food/pizza)) @@ -348,7 +348,7 @@ ///List of ckeys and their favourite pizzas. e.g. pizza_preferences[ckey] = /obj/item/food/pizza/meat var/static/list/pizza_preferences -/obj/item/pizzabox/infinite/Initialize() +/obj/item/pizzabox/infinite/Initialize(mapload) . = ..() if(!pizza_preferences) pizza_preferences = list() diff --git a/code/modules/food_and_drinks/restaurant/_venue.dm b/code/modules/food_and_drinks/restaurant/_venue.dm index 484118ffb45..8588ba92a17 100644 --- a/code/modules/food_and_drinks/restaurant/_venue.dm +++ b/code/modules/food_and_drinks/restaurant/_venue.dm @@ -120,7 +120,7 @@ /// A weak reference to the mob who turned on the portal var/datum/weakref/turned_on_portal -/obj/machinery/restaurant_portal/Initialize() +/obj/machinery/restaurant_portal/Initialize(mapload) . = ..() if(linked_venue) linked_venue = SSrestaurant.all_venues[linked_venue] @@ -212,7 +212,7 @@ use_vis_overlay = FALSE var/datum/venue/linked_venue = /datum/venue -/obj/structure/holosign/robot_seat/Initialize(loc, source_projector) +/obj/structure/holosign/robot_seat/Initialize(mapload, loc, source_projector) . = ..() linked_venue = SSrestaurant.all_venues[linked_venue] linked_venue.linked_seats[src] += null diff --git a/code/modules/holiday/easter.dm b/code/modules/holiday/easter.dm index 5010f77550e..0d7fb89c339 100644 --- a/code/modules/holiday/easter.dm +++ b/code/modules/holiday/easter.dm @@ -66,7 +66,7 @@ ///passed to egg_layer component as how many eggs it starts out as able to lay. var/initial_egg_amount = 10 -/mob/living/simple_animal/rabbit/Initialize() +/mob/living/simple_animal/rabbit/Initialize(mapload) . = ..() AddElement(/datum/element/pet_bonus, "hops around happily!") AddElement(/datum/element/animal_variety, icon_prefix, pick("brown","black","white"), TRUE) @@ -100,7 +100,7 @@ /obj/item/storage/basket/easter name = "Easter Basket" -/obj/item/storage/basket/easter/Initialize() +/obj/item/storage/basket/easter/Initialize(mapload) . = ..() var/datum/component/storage/STR = GetComponent(/datum/component/storage) STR.set_holdable(list(/obj/item/food/egg, /obj/item/food/chocolateegg, /obj/item/food/boiledegg)) @@ -157,7 +157,7 @@ righthand_file = 'icons/mob/inhands/misc/food_righthand.dmi' obj_flags = UNIQUE_RENAME -/obj/item/surprise_egg/Initialize() +/obj/item/surprise_egg/Initialize(mapload) . = ..() var/eggcolor = pick("blue","green","mime","orange","purple","rainbow","red","yellow") icon_state = "egg-[eggcolor]" diff --git a/code/modules/holiday/halloween.dm b/code/modules/holiday/halloween.dm index e273c7b01d6..7ab589394d1 100644 --- a/code/modules/holiday/halloween.dm +++ b/code/modules/holiday/halloween.dm @@ -34,7 +34,7 @@ var/trapped = 0 var/mob/trapped_mob -/obj/structure/closet/Initialize() +/obj/structure/closet/Initialize(mapload) . = ..() if(prob(30)) set_spooky_trap() @@ -129,7 +129,7 @@ layer = 4 var/timer = 0 -/mob/living/simple_animal/shade/howling_ghost/Initialize() +/mob/living/simple_animal/shade/howling_ghost/Initialize(mapload) . = ..() icon_state = pick("ghost","ghostian","ghostian2","ghostking","ghost1","ghost2") icon_living = icon_state @@ -194,7 +194,7 @@ maxbodytemp = INFINITY var/timer -/mob/living/simple_animal/hostile/clown_insane/Initialize() +/mob/living/simple_animal/hostile/clown_insane/Initialize(mapload) . = ..() status_flags |= GODMODE //Slightly easier to maintain. diff --git a/code/modules/holodeck/holo_effect.dm b/code/modules/holodeck/holo_effect.dm index b9bf170e77d..f7daf9abe84 100644 --- a/code/modules/holodeck/holo_effect.dm +++ b/code/modules/holodeck/holo_effect.dm @@ -106,7 +106,7 @@ /obj/effect/holodeck_effect/mobspawner/pet -/obj/effect/holodeck_effect/mobspawner/pet/Initialize() +/obj/effect/holodeck_effect/mobspawner/pet/Initialize(mapload) . = ..() mobtype = list(/mob/living/simple_animal/butterfly, /mob/living/simple_animal/chick/holo, /mob/living/simple_animal/pet/fox) mobtype += pick(/mob/living/simple_animal/pet/dog/corgi, /mob/living/simple_animal/pet/dog/corgi/puppy, @@ -122,7 +122,7 @@ /obj/effect/holodeck_effect/mobspawner/penguin mobtype = /mob/living/simple_animal/pet/penguin/emperor -/obj/effect/holodeck_effect/mobspawner/penguin/Initialize() +/obj/effect/holodeck_effect/mobspawner/penguin/Initialize(mapload) if(prob(1)) mobtype = /mob/living/simple_animal/pet/penguin/emperor/shamebrero return ..() diff --git a/code/modules/holodeck/items.dm b/code/modules/holodeck/items.dm index 78474d0a826..46990746310 100644 --- a/code/modules/holodeck/items.dm +++ b/code/modules/holodeck/items.dm @@ -21,7 +21,7 @@ active_sharpness = NONE active_heat = 0 -/obj/item/melee/energy/sword/holographic/Initialize() +/obj/item/melee/energy/sword/holographic/Initialize(mapload) . = ..() if(!sword_color_icon) sword_color_icon = pick("red", "blue", "green", "purple") diff --git a/code/modules/holodeck/turfs.dm b/code/modules/holodeck/turfs.dm index adaf5048719..346376d5fac 100644 --- a/code/modules/holodeck/turfs.dm +++ b/code/modules/holodeck/turfs.dm @@ -56,7 +56,7 @@ bullet_bounce_sound = null tiled_dirt = FALSE -/turf/open/floor/holofloor/grass/Initialize() +/turf/open/floor/holofloor/grass/Initialize(mapload) . = ..() icon_state = "grass[rand(0,3)]" @@ -89,7 +89,7 @@ icon_state = "asteroid" tiled_dirt = FALSE -/turf/open/floor/holofloor/asteroid/Initialize() +/turf/open/floor/holofloor/asteroid/Initialize(mapload) icon_state = "asteroid[rand(0, 12)]" . = ..() @@ -99,7 +99,7 @@ icon_state = "basalt0" tiled_dirt = FALSE -/turf/open/floor/holofloor/basalt/Initialize() +/turf/open/floor/holofloor/basalt/Initialize(mapload) . = ..() if(prob(15)) icon_state = "basalt[rand(0, 12)]" @@ -110,7 +110,7 @@ icon = 'icons/turf/space.dmi' icon_state = "0" -/turf/open/floor/holofloor/space/Initialize() +/turf/open/floor/holofloor/space/Initialize(mapload) icon_state = SPACE_ICON_STATE // so realistic . = ..() @@ -121,11 +121,11 @@ bullet_bounce_sound = null tiled_dirt = FALSE -/turf/open/floor/holofloor/hyperspace/Initialize() +/turf/open/floor/holofloor/hyperspace/Initialize(mapload) icon_state = "speedspace_ns_[(x + 5*y + (y%2+1)*7)%15+1]" . = ..() -/turf/open/floor/holofloor/hyperspace/ns/Initialize() +/turf/open/floor/holofloor/hyperspace/ns/Initialize(mapload) . = ..() icon_state = "speedspace_ns_[(x + 5*y + (y%2+1)*7)%15+1]" @@ -142,7 +142,7 @@ bullet_bounce_sound = null tiled_dirt = FALSE -/turf/open/floor/holofloor/carpet/Initialize() +/turf/open/floor/holofloor/carpet/Initialize(mapload) . = ..() addtimer(CALLBACK(src, /atom/.proc/update_appearance), 1) diff --git a/code/modules/hydroponics/beekeeping/beebox.dm b/code/modules/hydroponics/beekeeping/beebox.dm index 0d9f5013325..d9722386538 100644 --- a/code/modules/hydroponics/beekeeping/beebox.dm +++ b/code/modules/hydroponics/beekeeping/beebox.dm @@ -40,7 +40,7 @@ var/bee_resources = 0 -/obj/structure/beebox/Initialize() +/obj/structure/beebox/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) @@ -58,7 +58,7 @@ var/random_reagent = FALSE -/obj/structure/beebox/premade/Initialize() +/obj/structure/beebox/premade/Initialize(mapload) . = ..() icon_state = "beebox" diff --git a/code/modules/hydroponics/beekeeping/honey_frame.dm b/code/modules/hydroponics/beekeeping/honey_frame.dm index 71f9be1c8fd..9e5736075d7 100644 --- a/code/modules/hydroponics/beekeeping/honey_frame.dm +++ b/code/modules/hydroponics/beekeeping/honey_frame.dm @@ -7,7 +7,7 @@ var/honeycomb_capacity = 10 //10 Honeycomb per frame by default, researchable frames perhaps? -/obj/item/honey_frame/Initialize() +/obj/item/honey_frame/Initialize(mapload) . = ..() pixel_x = base_pixel_x + rand(8, -8) pixel_y = base_pixel_y + rand(8, -8) diff --git a/code/modules/hydroponics/beekeeping/honeycomb.dm b/code/modules/hydroponics/beekeeping/honeycomb.dm index 41a08c8998f..e2e3409d05a 100644 --- a/code/modules/hydroponics/beekeeping/honeycomb.dm +++ b/code/modules/hydroponics/beekeeping/honeycomb.dm @@ -13,7 +13,7 @@ grind_results = list() var/honey_color = "" -/obj/item/reagent_containers/honeycomb/Initialize() +/obj/item/reagent_containers/honeycomb/Initialize(mapload) . = ..() pixel_x = base_pixel_x + rand(8, -8) pixel_y = base_pixel_y + rand(8, -8) diff --git a/code/modules/hydroponics/biogenerator.dm b/code/modules/hydroponics/biogenerator.dm index c54f0f211dc..76bfb95f0f1 100644 --- a/code/modules/hydroponics/biogenerator.dm +++ b/code/modules/hydroponics/biogenerator.dm @@ -18,7 +18,7 @@ /// Currently selected category in the UI var/selected_cat -/obj/machinery/biogenerator/Initialize() +/obj/machinery/biogenerator/Initialize(mapload) . = ..() stored_research = new /datum/techweb/specialized/autounlocking/biogenerator diff --git a/code/modules/hydroponics/fermenting_barrel.dm b/code/modules/hydroponics/fermenting_barrel.dm index 15f741e3f51..7b523f31606 100644 --- a/code/modules/hydroponics/fermenting_barrel.dm +++ b/code/modules/hydroponics/fermenting_barrel.dm @@ -11,7 +11,7 @@ var/can_open = TRUE 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) // Bluespace beakers, but without the portability or efficiency in circuits. create_reagents(300, DRAINABLE) . = ..() @@ -89,6 +89,6 @@ desc = "A large wooden barrel for holding gunpowder. You'll need to take from this to load the cannons." can_open = FALSE -/obj/structure/fermenting_barrel/gunpowder/Initialize() +/obj/structure/fermenting_barrel/gunpowder/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/gunpowder, 250) diff --git a/code/modules/hydroponics/grown/cocoa_vanilla.dm b/code/modules/hydroponics/grown/cocoa_vanilla.dm index 7551cd8ef1a..bae6cb40604 100644 --- a/code/modules/hydroponics/grown/cocoa_vanilla.dm +++ b/code/modules/hydroponics/grown/cocoa_vanilla.dm @@ -96,7 +96,7 @@ foodtypes = TOXIC tastes = list("acrid bitterness" = 1) -/obj/item/food/grown/bungopit/Initialize() +/obj/item/food/grown/bungopit/Initialize(mapload) . =..() reagents.clear_reagents() reagents.add_reagent(/datum/reagent/toxin/bungotoxin, seed.potency * 0.10) //More than this will kill at too low potency diff --git a/code/modules/hydroponics/grown/rainbow_bunch.dm b/code/modules/hydroponics/grown/rainbow_bunch.dm index 9cfb5bae469..91c6aae2cfa 100644 --- a/code/modules/hydroponics/grown/rainbow_bunch.dm +++ b/code/modules/hydroponics/grown/rainbow_bunch.dm @@ -36,7 +36,7 @@ greyscale_config = /datum/greyscale_config/flower_simple greyscale_config_worn = /datum/greyscale_config/flower_simple_worn -/obj/item/food/grown/rainbow_flower/Initialize() +/obj/item/food/grown/rainbow_flower/Initialize(mapload) . = ..() if(greyscale_colors) return diff --git a/code/modules/hydroponics/grown/random.dm b/code/modules/hydroponics/grown/random.dm index 498ba2a783e..df83b492d40 100644 --- a/code/modules/hydroponics/grown/random.dm +++ b/code/modules/hydroponics/grown/random.dm @@ -13,7 +13,7 @@ growthstages = 4 custom_premium_price = PAYCHECK_EASY * 2 -/obj/item/seeds/random/Initialize() +/obj/item/seeds/random/Initialize(mapload) . = ..() randomize_stats() if(prob(60)) @@ -28,7 +28,7 @@ desc = "What could this even be?" icon_state = "crunchy" -/obj/item/food/grown/random/Initialize() +/obj/item/food/grown/random/Initialize(mapload) . = ..() wine_power = rand(10,150) if(prob(1)) diff --git a/code/modules/hydroponics/grown/replicapod.dm b/code/modules/hydroponics/grown/replicapod.dm index 41bcdb3d92a..14823d4e8b1 100644 --- a/code/modules/hydroponics/grown/replicapod.dm +++ b/code/modules/hydroponics/grown/replicapod.dm @@ -56,7 +56,7 @@ var/contains_sample = FALSE var/being_harvested = FALSE -/obj/item/seeds/replicapod/Initialize() +/obj/item/seeds/replicapod/Initialize(mapload) . = ..() create_reagents(volume, INJECTABLE|DRAWABLE) diff --git a/code/modules/hydroponics/hydroitemdefines.dm b/code/modules/hydroponics/hydroitemdefines.dm index 706a5da66d9..55ce7e3361a 100644 --- a/code/modules/hydroponics/hydroitemdefines.dm +++ b/code/modules/hydroponics/hydroitemdefines.dm @@ -417,7 +417,7 @@ flags_1 = NONE resistance_flags = FLAMMABLE -/obj/item/cultivator/rake/Initialize() +/obj/item/cultivator/rake/Initialize(mapload) . = ..() var/static/list/loc_connections = list( COMSIG_ATOM_ENTERED = .proc/on_entered, @@ -457,7 +457,7 @@ hitsound = 'sound/weapons/bladeslice.ogg' sharpness = SHARP_EDGED -/obj/item/hatchet/Initialize() +/obj/item/hatchet/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 70, 100) @@ -491,7 +491,7 @@ hitsound = 'sound/weapons/bladeslice.ogg' var/swiping = FALSE -/obj/item/scythe/Initialize() +/obj/item/scythe/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 90, 105) @@ -570,7 +570,7 @@ amount_per_transfer_from_this = 10 possible_transfer_amounts = list(1,2,5,10,15,25,50) -/obj/item/reagent_containers/glass/bottle/nutrient/Initialize() +/obj/item/reagent_containers/glass/bottle/nutrient/Initialize(mapload) . = ..() pixel_x = base_pixel_x + rand(-5, 5) pixel_y = base_pixel_y + rand(-5, 5) diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm index bbb08631e98..95a2367b958 100644 --- a/code/modules/hydroponics/hydroponics.dm +++ b/code/modules/hydroponics/hydroponics.dm @@ -56,7 +56,7 @@ ///The icon state for the overlay used to represent that this tray is self-sustaining. var/self_sustaining_overlay_icon_state = "gaia_blessing" -/obj/machinery/hydroponics/Initialize() +/obj/machinery/hydroponics/Initialize(mapload) //ALRIGHT YOU DEGENERATES. YOU HAD REAGENT HOLDERS FOR AT LEAST 4 YEARS AND NONE OF YOU MADE HYDROPONICS TRAYS HOLD NUTRIENT CHEMS INSTEAD OF USING "Points". //SO HERE LIES THE "nutrilevel" VAR. IT'S DEAD AND I PUT IT OUT OF IT'S MISERY. USE "reagents" INSTEAD. ~ArcaneMusic, accept no substitutes. create_reagents(20) diff --git a/code/modules/hydroponics/sample.dm b/code/modules/hydroponics/sample.dm index 6ae01dcc119..4bb43027cdb 100644 --- a/code/modules/hydroponics/sample.dm +++ b/code/modules/hydroponics/sample.dm @@ -5,7 +5,7 @@ yield = -1 var/sample_color = "#FFFFFF" -/obj/item/seeds/sample/Initialize() +/obj/item/seeds/sample/Initialize(mapload) . = ..() if(sample_color) var/mutable_appearance/filling = mutable_appearance(icon, "sample-filling") diff --git a/code/modules/instruments/items.dm b/code/modules/instruments/items.dm index e3779da09e1..9575ddb1451 100644 --- a/code/modules/instruments/items.dm +++ b/code/modules/instruments/items.dm @@ -179,7 +179,7 @@ attack_verb_continuous = list("plays", "jazzes", "trumpets", "mourns", "doots", "spooks") attack_verb_simple = list("play", "jazz", "trumpet", "mourn", "doot", "spook") -/obj/item/instrument/trumpet/spectral/Initialize() +/obj/item/instrument/trumpet/spectral/Initialize(mapload) . = ..() AddElement(/datum/element/spooky) @@ -203,7 +203,7 @@ attack_verb_continuous = list("plays", "jazzes", "saxxes", "mourns", "doots", "spooks") attack_verb_simple = list("play", "jazz", "sax", "mourn", "doot", "spook") -/obj/item/instrument/saxophone/spectral/Initialize() +/obj/item/instrument/saxophone/spectral/Initialize(mapload) . = ..() AddElement(/datum/element/spooky) @@ -227,7 +227,7 @@ attack_verb_continuous = list("plays", "jazzes", "trombones", "mourns", "doots", "spooks") attack_verb_simple = list("play", "jazz", "trombone", "mourn", "doot", "spook") -/obj/item/instrument/trombone/spectral/Initialize() +/obj/item/instrument/trombone/spectral/Initialize(mapload) . = ..() AddElement(/datum/element/spooky) diff --git a/code/modules/jobs/job_types/security_officer.dm b/code/modules/jobs/job_types/security_officer.dm index 5cacfe2b584..09f190cdd6d 100644 --- a/code/modules/jobs/job_types/security_officer.dm +++ b/code/modules/jobs/job_types/security_officer.dm @@ -218,7 +218,7 @@ GLOBAL_LIST_EMPTY(security_officer_distribution) id_trim = /datum/id_trim/job/security_officer -/obj/item/radio/headset/headset_sec/alt/department/Initialize() +/obj/item/radio/headset/headset_sec/alt/department/Initialize(mapload) . = ..() wires = new/datum/wires/radio(src) secure_radio_connections = new diff --git a/code/modules/language/language_manuals.dm b/code/modules/language/language_manuals.dm index 43227c76cd8..652ccdf5214 100644 --- a/code/modules/language/language_manuals.dm +++ b/code/modules/language/language_manuals.dm @@ -61,7 +61,7 @@ /obj/item/language_manual/roundstart_species -/obj/item/language_manual/roundstart_species/Initialize() +/obj/item/language_manual/roundstart_species/Initialize(mapload) . = ..() language = pick( \ /datum/language/voltaic, \ @@ -77,14 +77,14 @@ /obj/item/language_manual/roundstart_species/unlimited charges = INFINITY -/obj/item/language_manual/roundstart_species/unlimited/Initialize() +/obj/item/language_manual/roundstart_species/unlimited/Initialize(mapload) . = ..() name = "deluxe [initial(language.name)] manual" /obj/item/language_manual/roundstart_species/five charges = 5 -/obj/item/language_manual/roundstart_species/five/Initialize() +/obj/item/language_manual/roundstart_species/five/Initialize(mapload) . = ..() name = "extended [initial(language.name)] manual" diff --git a/code/modules/library/lib_items.dm b/code/modules/library/lib_items.dm index 0fd275a3f32..97036d154fe 100644 --- a/code/modules/library/lib_items.dm +++ b/code/modules/library/lib_items.dm @@ -179,7 +179,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/wiki/engineering_hacking(src) @@ -192,7 +192,7 @@ /obj/structure/bookcase/manuals/research_and_development name = "\improper 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/wiki/research_and_development(src) update_appearance() diff --git a/code/modules/library/lib_machines.dm b/code/modules/library/lib_machines.dm index 29433505b06..1eb2739e8be 100644 --- a/code/modules/library/lib_machines.dm +++ b/code/modules/library/lib_machines.dm @@ -189,7 +189,7 @@ var/printer_cooldown = 0 COOLDOWN_DECLARE(library_console_topic_cooldown) -/obj/machinery/computer/bookmanagement/Initialize() +/obj/machinery/computer/bookmanagement/Initialize(mapload) . = ..() if(circuit) circuit.name = "Book Inventory Management Console (Machine Board)" diff --git a/code/modules/library/random_books.dm b/code/modules/library/random_books.dm index 295bdd59153..e07b2b7b3c9 100644 --- a/code/modules/library/random_books.dm +++ b/code/modules/library/random_books.dm @@ -1,7 +1,7 @@ /obj/item/book/manual/random icon_state = "random_book" -/obj/item/book/manual/random/Initialize() +/obj/item/book/manual/random/Initialize(mapload) ..() var/static/banned_books = list(/obj/item/book/manual/random, /obj/item/book/manual/nuclear, /obj/item/book/manual/wiki) var/newtype = pick(subtypesof(/obj/item/book/manual) - banned_books) diff --git a/code/modules/library/skill_learning/job_skillchips/chef.dm b/code/modules/library/skill_learning/job_skillchips/chef.dm index c95aac3c034..cf3199db921 100644 --- a/code/modules/library/skill_learning/job_skillchips/chef.dm +++ b/code/modules/library/skill_learning/job_skillchips/chef.dm @@ -8,7 +8,7 @@ deactivate_message = "You forget how to control your muscles to execute kicks, slams and restraints while in a kitchen environment." var/datum/martial_art/cqc/under_siege/style -/obj/item/skillchip/job/chef/Initialize() +/obj/item/skillchip/job/chef/Initialize(mapload) . = ..() style = new style.refresh_valid_areas() diff --git a/code/modules/library/skill_learning/skill_station.dm b/code/modules/library/skill_learning/skill_station.dm index 3ef7cb67640..d9ff110b0c5 100644 --- a/code/modules/library/skill_learning/skill_station.dm +++ b/code/modules/library/skill_learning/skill_station.dm @@ -18,7 +18,7 @@ /// What we're implanting var/obj/item/skillchip/inserted_skillchip -/obj/machinery/skill_station/Initialize() +/obj/machinery/skill_station/Initialize(mapload) . = ..() update_appearance() diff --git a/code/modules/mapping/mapping_helpers.dm b/code/modules/mapping/mapping_helpers.dm index 610cd5209cb..d413b14f11a 100644 --- a/code/modules/mapping/mapping_helpers.dm +++ b/code/modules/mapping/mapping_helpers.dm @@ -12,7 +12,7 @@ plane = POINT_PLANE -/obj/effect/baseturf_helper/Initialize() +/obj/effect/baseturf_helper/Initialize(mapload) . = ..() return INITIALIZE_HINT_LATELOAD @@ -93,7 +93,7 @@ icon_state = "" var/late = FALSE -/obj/effect/mapping_helpers/Initialize() +/obj/effect/mapping_helpers/Initialize(mapload) ..() return late ? INITIALIZE_HINT_LATELOAD : INITIALIZE_HINT_QDEL @@ -181,7 +181,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/mapping_helpers/no_lava) /obj/effect/mapping_helpers/no_lava icon_state = "no_lava" -/obj/effect/mapping_helpers/no_lava/Initialize() +/obj/effect/mapping_helpers/no_lava/Initialize(mapload) . = ..() var/turf/T = get_turf(src) T.turf_flags |= NO_LAVA_GEN diff --git a/code/modules/meteors/meteors.dm b/code/modules/meteors/meteors.dm index d9ecfbbe361..d4fde6d063d 100644 --- a/code/modules/meteors/meteors.dm +++ b/code/modules/meteors/meteors.dm @@ -292,7 +292,7 @@ GLOBAL_LIST_INIT(meteorsC, list(/obj/effect/meteor/dust)) //for space dust event var/meteorgibs = /obj/effect/gibspawner/generic threat = 2 -/obj/effect/meteor/meaty/Initialize() +/obj/effect/meteor/meaty/Initialize(mapload) for(var/path in meteordrop) if(path == /obj/item/food/meat/slab/human/mutant) meteordrop -= path @@ -323,7 +323,7 @@ GLOBAL_LIST_INIT(meteorsC, list(/obj/effect/meteor/dust)) //for space dust event meteordrop = list(/obj/item/food/meat/slab/xeno, /obj/item/organ/tongue/alien) meteorgibs = /obj/effect/gibspawner/xeno -/obj/effect/meteor/meaty/xeno/Initialize() +/obj/effect/meteor/meaty/xeno/Initialize(mapload) meteordrop += subtypesof(/obj/item/organ/alien) return ..() @@ -374,7 +374,7 @@ GLOBAL_LIST_INIT(meteorsSPOOKY, list(/obj/effect/meteor/pumpkin)) meteordrop = list(/obj/item/clothing/head/hardhat/pumpkinhead, /obj/item/food/grown/pumpkin) threat = 100 -/obj/effect/meteor/pumpkin/Initialize() +/obj/effect/meteor/pumpkin/Initialize(mapload) . = ..() meteorsound = pick('sound/hallucinations/im_here1.ogg','sound/hallucinations/im_here2.ogg') ////////////////////////// diff --git a/code/modules/mining/abandoned_crates.dm b/code/modules/mining/abandoned_crates.dm index 54ee5a6b1fa..3f2ca22cc2d 100644 --- a/code/modules/mining/abandoned_crates.dm +++ b/code/modules/mining/abandoned_crates.dm @@ -16,7 +16,7 @@ // Stop people from "diving into" the crate accidentally, and then detonating it. divable = FALSE -/obj/structure/closet/crate/secure/loot/Initialize() +/obj/structure/closet/crate/secure/loot/Initialize(mapload) . = ..() var/list/digits = list("1", "2", "3", "4", "5", "6", "7", "8", "9", "0") code = "" diff --git a/code/modules/mining/aux_base.dm b/code/modules/mining/aux_base.dm index 3e2e35c76d4..fc83596137d 100644 --- a/code/modules/mining/aux_base.dm +++ b/code/modules/mining/aux_base.dm @@ -50,7 +50,7 @@ dir = EAST pixel_x = -32 -/obj/machinery/computer/auxiliary_base/Initialize() +/obj/machinery/computer/auxiliary_base/Initialize(mapload) . = ..() AddComponent(/datum/component/gps, "NT_AUX") diff --git a/code/modules/mining/equipment/explorer_gear.dm b/code/modules/mining/equipment/explorer_gear.dm index 4c84424960c..ca15c91494a 100644 --- a/code/modules/mining/equipment/explorer_gear.dm +++ b/code/modules/mining/equipment/explorer_gear.dm @@ -27,11 +27,11 @@ armor = list(MELEE = 30, BULLET = 10, LASER = 10, ENERGY = 20, BOMB = 50, BIO = 100, RAD = 50, FIRE = 50, ACID = 50, WOUND = 10) resistance_flags = FIRE_PROOF -/obj/item/clothing/suit/hooded/explorer/Initialize() +/obj/item/clothing/suit/hooded/explorer/Initialize(mapload) . = ..() AddComponent(/datum/component/armor_plate) -/obj/item/clothing/head/hooded/explorer/Initialize() +/obj/item/clothing/head/hooded/explorer/Initialize(mapload) . = ..() AddComponent(/datum/component/armor_plate) @@ -53,6 +53,6 @@ ..() w_class = mask_adjusted ? WEIGHT_CLASS_NORMAL : WEIGHT_CLASS_SMALL -/obj/item/clothing/mask/gas/explorer/folded/Initialize() +/obj/item/clothing/mask/gas/explorer/folded/Initialize(mapload) . = ..() adjustmask() diff --git a/code/modules/mining/equipment/kinetic_crusher.dm b/code/modules/mining/equipment/kinetic_crusher.dm index 79bc371c550..3220943e641 100644 --- a/code/modules/mining/equipment/kinetic_crusher.dm +++ b/code/modules/mining/equipment/kinetic_crusher.dm @@ -31,7 +31,7 @@ var/backstab_bonus = 30 var/wielded = FALSE // track wielded status on item -/obj/item/kinetic_crusher/Initialize() +/obj/item/kinetic_crusher/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) diff --git a/code/modules/mining/equipment/mineral_scanner.dm b/code/modules/mining/equipment/mineral_scanner.dm index c0a9462d040..692d582b1d4 100644 --- a/code/modules/mining/equipment/mineral_scanner.dm +++ b/code/modules/mining/equipment/mineral_scanner.dm @@ -44,7 +44,7 @@ var/current_cooldown = 0 var/range = 7 -/obj/item/t_scanner/adv_mining_scanner/cyborg/Initialize() +/obj/item/t_scanner/adv_mining_scanner/cyborg/Initialize(mapload) . = ..() toggle_on() @@ -82,6 +82,6 @@ pixel_x = -224 pixel_y = -224 -/obj/effect/temp_visual/mining_overlay/Initialize() +/obj/effect/temp_visual/mining_overlay/Initialize(mapload) . = ..() animate(src, alpha = 0, time = duration, easing = EASE_IN) diff --git a/code/modules/mining/equipment/mining_tools.dm b/code/modules/mining/equipment/mining_tools.dm index c564b647cab..2c82b160ba1 100644 --- a/code/modules/mining/equipment/mining_tools.dm +++ b/code/modules/mining/equipment/mining_tools.dm @@ -79,7 +79,7 @@ desc = "An integrated electric mining drill." flags_1 = NONE -/obj/item/pickaxe/drill/cyborg/Initialize() +/obj/item/pickaxe/drill/cyborg/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CYBORG_ITEM_TRAIT) @@ -139,7 +139,7 @@ attack_verb_simple = list("bash", "bludgeon", "thrash", "whack") sharpness = SHARP_EDGED -/obj/item/shovel/Initialize() +/obj/item/shovel/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 150, 40) //it's sharp, so it works, but barely. diff --git a/code/modules/mining/equipment/regenerative_core.dm b/code/modules/mining/equipment/regenerative_core.dm index 70785e41c2c..1f34d10dbac 100644 --- a/code/modules/mining/equipment/regenerative_core.dm +++ b/code/modules/mining/equipment/regenerative_core.dm @@ -32,7 +32,7 @@ var/inert = 0 var/preserved = 0 -/obj/item/organ/regenerative_core/Initialize() +/obj/item/organ/regenerative_core/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/inert_check), 2400) @@ -116,7 +116,7 @@ desc = "A strange rock that crackles with power. It can be used to heal completely, but it will rapidly decay into uselessness." icon_state = "legion_soul" -/obj/item/organ/regenerative_core/legion/Initialize() +/obj/item/organ/regenerative_core/legion/Initialize(mapload) . = ..() update_appearance() diff --git a/code/modules/mining/equipment/resonator.dm b/code/modules/mining/equipment/resonator.dm index a5a33aabf3a..ea7b95bab55 100644 --- a/code/modules/mining/equipment/resonator.dm +++ b/code/modules/mining/equipment/resonator.dm @@ -127,7 +127,7 @@ layer = ABOVE_ALL_MOB_LAYER duration = 4 -/obj/effect/temp_visual/resonance_crush/Initialize() +/obj/effect/temp_visual/resonance_crush/Initialize(mapload) . = ..() transform = matrix()*1.5 animate(src, transform = matrix()*0.1, alpha = 50, time = 4) diff --git a/code/modules/mining/equipment/survival_pod.dm b/code/modules/mining/equipment/survival_pod.dm index ac9a1e1067a..629f22c1d38 100644 --- a/code/modules/mining/equipment/survival_pod.dm +++ b/code/modules/mining/equipment/survival_pod.dm @@ -302,7 +302,7 @@ /obj/item/phylactery, /obj/item/banhammer) -/obj/item/fakeartefact/Initialize() +/obj/item/fakeartefact/Initialize(mapload) . = ..() var/obj/item/I = pick(possible) name = initial(I.name) diff --git a/code/modules/mining/fulton.dm b/code/modules/mining/fulton.dm index 2546330fd89..627d23d8eaa 100644 --- a/code/modules/mining/fulton.dm +++ b/code/modules/mining/fulton.dm @@ -163,7 +163,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons) density = FALSE var/beacon_network = "station" -/obj/structure/extraction_point/Initialize() +/obj/structure/extraction_point/Initialize(mapload) . = ..() name += " ([rand(100,999)]) ([get_area_name(src, TRUE)])" GLOB.total_extraction_beacons += src diff --git a/code/modules/mining/laborcamp/laborstacker.dm b/code/modules/mining/laborcamp/laborstacker.dm index b5627921e20..08ef42fa89d 100644 --- a/code/modules/mining/laborcamp/laborstacker.dm +++ b/code/modules/mining/laborcamp/laborstacker.dm @@ -15,7 +15,7 @@ GLOBAL_LIST(labor_sheet_values) /// Needed to send messages to sec radio var/obj/item/radio/Radio -/obj/machinery/mineral/labor_claim_console/Initialize() +/obj/machinery/mineral/labor_claim_console/Initialize(mapload) . = ..() Radio = new /obj/item/radio(src) Radio.listening = FALSE diff --git a/code/modules/mining/lavaland/ash_flora.dm b/code/modules/mining/lavaland/ash_flora.dm index 8dc706461a4..726d203f326 100644 --- a/code/modules/mining/lavaland/ash_flora.dm +++ b/code/modules/mining/lavaland/ash_flora.dm @@ -24,7 +24,7 @@ var/regrowth_time_high = 16 MINUTES var/number_of_variants = 4 -/obj/structure/flora/ash/Initialize() +/obj/structure/flora/ash/Initialize(mapload) . = ..() base_icon = "[icon_state][rand(1, number_of_variants)]" icon_state = base_icon @@ -194,7 +194,7 @@ seed = /obj/item/seeds/lavaland/polypore wine_power = 20 -/obj/item/food/grown/ash_flora/Initialize() +/obj/item/food/grown/ash_flora/Initialize(mapload) . = ..() pixel_x = base_pixel_x + rand(-4, 4) pixel_y = base_pixel_y + rand(-4, 4) diff --git a/code/modules/mining/lavaland/megafauna_loot.dm b/code/modules/mining/lavaland/megafauna_loot.dm index 2e9fdd72bc5..5d6c0a6abba 100644 --- a/code/modules/mining/lavaland/megafauna_loot.dm +++ b/code/modules/mining/lavaland/megafauna_loot.dm @@ -77,7 +77,7 @@ /// Whether the blink is charged. Set and unset by the blink action. Used as part of setting the appropriate icon states. var/blink_charged = TRUE -/obj/item/hierophant_club/Initialize() +/obj/item/hierophant_club/Initialize(mapload) . = ..() blink = new(src) @@ -294,7 +294,7 @@ resistance_flags = FIRE_PROOF | LAVA_PROOF | ACID_PROOF actions_types = list() -/obj/item/clothing/head/helmet/space/hardsuit/hostile_environment/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/hostile_environment/Initialize(mapload) . = ..() update_appearance() AddComponent(/datum/component/butchering, 5, 150, null, null, null, TRUE, CALLBACK(src, .proc/consume)) @@ -373,7 +373,7 @@ /// Cooldown between attacks COOLDOWN_DECLARE(attack_cooldown) -/obj/item/soulscythe/Initialize() +/obj/item/soulscythe/Initialize(mapload) . = ..() soul = new(src) RegisterSignal(soul, COMSIG_LIVING_RESIST, .proc/on_resist) @@ -626,7 +626,7 @@ var/summon_cooldown = 0 var/list/mob/dead/observer/spirits -/obj/item/melee/ghost_sword/Initialize() +/obj/item/melee/ghost_sword/Initialize(mapload) . = ..() spirits = list() START_PROCESSING(SSobj, src) @@ -832,7 +832,7 @@ /// Throwforce when the saw is opened. var/open_throwforce = 20 -/obj/item/melee/cleaving_saw/Initialize() +/obj/item/melee/cleaving_saw/Initialize(mapload) . = ..() AddComponent(/datum/component/transforming, \ transform_cooldown_time = (CLICK_CD_MELEE * 0.25), \ diff --git a/code/modules/mining/lavaland/necropolis_chests.dm b/code/modules/mining/lavaland/necropolis_chests.dm index 3f665b11f3a..44451536fb0 100644 --- a/code/modules/mining/lavaland/necropolis_chests.dm +++ b/code/modules/mining/lavaland/necropolis_chests.dm @@ -12,7 +12,7 @@ /// var to check if it got opened by a key var/spawned_loot = FALSE -/obj/structure/closet/crate/necropolis/tendril/Initialize() +/obj/structure/closet/crate/necropolis/tendril/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_PARENT_ATTACKBY, .proc/try_spawn_loot) diff --git a/code/modules/mining/lavaland/tendril_loot.dm b/code/modules/mining/lavaland/tendril_loot.dm index 4546f668d39..944e21b650e 100644 --- a/code/modules/mining/lavaland/tendril_loot.dm +++ b/code/modules/mining/lavaland/tendril_loot.dm @@ -7,7 +7,7 @@ icon_state = "datadisk1" var/modkit_design = /datum/design/unique_modkit -/obj/item/disk/design_disk/modkit_disc/Initialize() +/obj/item/disk/design_disk/modkit_disc/Initialize(mapload) . = ..() blueprints[1] = new modkit_design @@ -236,7 +236,7 @@ wisp.forceMove(src) SSblackbox.record_feedback("tally", "wisp_lantern", 1, "Returned") -/obj/item/wisp_lantern/Initialize() +/obj/item/wisp_lantern/Initialize(mapload) . = ..() wisp = new(src) @@ -337,7 +337,7 @@ icon_state = "red_cube" teleport_color = "#FD3F48" -/obj/item/warp_cube/red/Initialize() +/obj/item/warp_cube/red/Initialize(mapload) . = ..() if(!linked) var/obj/item/warp_cube/blue = new(src.loc) @@ -358,7 +358,7 @@ actions_types = list(/datum/action/item_action/immortality) var/cooldown = 0 -/obj/item/immortality_talisman/Initialize() +/obj/item/immortality_talisman/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, TRUE, TRUE, TRUE) @@ -439,7 +439,7 @@ name = "paradox bag" desc = "Somehow, it's in two places at once." -/obj/item/shared_storage/red/Initialize() +/obj/item/shared_storage/red/Initialize(mapload) . = ..() var/datum/component/storage/STR = AddComponent(/datum/component/storage/concrete) STR.max_w_class = WEIGHT_CLASS_NORMAL @@ -594,7 +594,7 @@ allowed = list(/obj/item/flashlight, /obj/item/tank/internals, /obj/item/pickaxe, /obj/item/spear, /obj/item/organ/regenerative_core/legion, /obj/item/kitchen/knife, /obj/item/kinetic_crusher, /obj/item/resonator, /obj/item/melee/cleaving_saw) -/obj/item/clothing/suit/space/hardsuit/berserker/Initialize() +/obj/item/clothing/suit/space/hardsuit/berserker/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, TRUE, TRUE, TRUE, ITEM_SLOT_OCLOTHING) @@ -626,7 +626,7 @@ /// Status of berserk var/berserk_active = FALSE -/obj/item/clothing/head/helmet/space/hardsuit/berserker/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/berserker/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, LOCKED_HELMET_TRAIT) @@ -706,7 +706,7 @@ custom_materials = null var/obj/effect/proc_holder/scan/scan -/obj/item/clothing/glasses/godeye/Initialize() +/obj/item/clothing/glasses/godeye/Initialize(mapload) . = ..() scan = new(src) @@ -879,7 +879,7 @@ ATTACK_SHATTER = list(COMBO_STEPS = list(RIGHT_SLASH, LEFT_SLASH, RIGHT_SLASH, LEFT_SLASH), COMBO_PROC = .proc/shatter), ) -/obj/item/cursed_katana/Initialize() +/obj/item/cursed_katana/Initialize(mapload) . = ..() for(var/combo in combo_list) var/list/combo_specifics = combo_list[combo] diff --git a/code/modules/mining/machine_processing.dm b/code/modules/mining/machine_processing.dm index 2ed91bbb50d..c3a14da09be 100644 --- a/code/modules/mining/machine_processing.dm +++ b/code/modules/mining/machine_processing.dm @@ -68,7 +68,7 @@ var/obj/machinery/mineral/processing_unit/machine = null var/machinedir = EAST -/obj/machinery/mineral/processing_unit_console/Initialize() +/obj/machinery/mineral/processing_unit_console/Initialize(mapload) . = ..() machine = locate(/obj/machinery/mineral/processing_unit, get_step(src, machinedir)) if (machine) @@ -130,7 +130,7 @@ var/selected_alloy = null var/datum/techweb/stored_research -/obj/machinery/mineral/processing_unit/Initialize() +/obj/machinery/mineral/processing_unit/Initialize(mapload) . = ..() proximity_monitor = new(src, 1) var/list/allowed_materials = list(/datum/material/iron, diff --git a/code/modules/mining/machine_stacking.dm b/code/modules/mining/machine_stacking.dm index 4808dfee8f3..25425436586 100644 --- a/code/modules/mining/machine_stacking.dm +++ b/code/modules/mining/machine_stacking.dm @@ -12,7 +12,7 @@ /// Direction for which console looks for stacking machine to connect to var/machinedir = SOUTHEAST -/obj/machinery/mineral/stacking_unit_console/Initialize() +/obj/machinery/mineral/stacking_unit_console/Initialize(mapload) . = ..() machine = locate(/obj/machinery/mineral/stacking_machine, get_step(src, machinedir)) if (machine) diff --git a/code/modules/mining/machine_vending.dm b/code/modules/mining/machine_vending.dm index 5ac80b0e1a9..2bab1630400 100644 --- a/code/modules/mining/machine_vending.dm +++ b/code/modules/mining/machine_vending.dm @@ -75,7 +75,7 @@ src.equipment_path = path src.cost = cost -/obj/machinery/mineral/equipment_vendor/Initialize() +/obj/machinery/mineral/equipment_vendor/Initialize(mapload) . = ..() build_inventory() @@ -209,7 +209,7 @@ name = "golem ship equipment vendor" circuit = /obj/item/circuitboard/machine/mining_equipment_vendor/golem -/obj/machinery/mineral/equipment_vendor/golem/Initialize() +/obj/machinery/mineral/equipment_vendor/golem/Initialize(mapload) desc += "\nIt seems a few selections have been added." prize_list += list( new /datum/data/mining_equipment("Extra Id", /obj/item/card/id/advanced/mining, 250), diff --git a/code/modules/mining/mine_items.dm b/code/modules/mining/mine_items.dm index 0a2cc85b563..f9f8b95a019 100644 --- a/code/modules/mining/mine_items.dm +++ b/code/modules/mining/mine_items.dm @@ -8,7 +8,7 @@ var/set_luminosity = 8 var/set_cap = 0 -/obj/effect/light_emitter/Initialize() +/obj/effect/light_emitter/Initialize(mapload) . = ..() set_light(set_luminosity, set_cap) diff --git a/code/modules/mining/minebot.dm b/code/modules/mining/minebot.dm index 1577d3d5d1b..df318a8bd51 100644 --- a/code/modules/mining/minebot.dm +++ b/code/modules/mining/minebot.dm @@ -41,7 +41,7 @@ var/mode = MINEDRONE_COLLECT var/obj/item/gun/energy/kinetic_accelerator/minebot/stored_gun -/mob/living/simple_animal/hostile/mining_drone/Initialize() +/mob/living/simple_animal/hostile/mining_drone/Initialize(mapload) . = ..() AddElement(/datum/element/footstep, FOOTSTEP_OBJ_ROBOT, 1, -6, sound_vary = TRUE) diff --git a/code/modules/mining/money_bag.dm b/code/modules/mining/money_bag.dm index 92ab438d7bf..95c0ebc9456 100644 --- a/code/modules/mining/money_bag.dm +++ b/code/modules/mining/money_bag.dm @@ -10,7 +10,7 @@ max_integrity = 100 w_class = WEIGHT_CLASS_BULKY -/obj/item/storage/bag/money/Initialize() +/obj/item/storage/bag/money/Initialize(mapload) . = ..() if(prob(20)) icon_state = "moneybagalt" diff --git a/code/modules/mining/ores_coins.dm b/code/modules/mining/ores_coins.dm index cd121aa9316..f01ef40c998 100644 --- a/code/modules/mining/ores_coins.dm +++ b/code/modules/mining/ores_coins.dm @@ -361,7 +361,7 @@ GLOBAL_LIST_INIT(sand_recipes, list(\ var/coinflip item_flags = NO_MAT_REDEMPTION //You know, it's kind of a problem that money is worth more extrinsicly than intrinsically in this universe. -/obj/item/coin/Initialize() +/obj/item/coin/Initialize(mapload) . = ..() coinflip = pick(sideslist) icon_state = "coin_[coinflip]" diff --git a/code/modules/mob/dead/dead.dm b/code/modules/mob/dead/dead.dm index 1529258bc0b..6aca86c3790 100644 --- a/code/modules/mob/dead/dead.dm +++ b/code/modules/mob/dead/dead.dm @@ -7,7 +7,7 @@ INITIALIZE_IMMEDIATE(/mob/dead) move_resist = INFINITY throwforce = 0 -/mob/dead/Initialize() +/mob/dead/Initialize(mapload) SHOULD_CALL_PARENT(FALSE) if(flags_1 & INITIALIZED_1) stack_trace("Warning: [src]([type]) initialized multiple times!") diff --git a/code/modules/mob/dead/new_player/new_player.dm b/code/modules/mob/dead/new_player/new_player.dm index 7a965039f2c..3c6d253912c 100644 --- a/code/modules/mob/dead/new_player/new_player.dm +++ b/code/modules/mob/dead/new_player/new_player.dm @@ -16,7 +16,7 @@ -/mob/dead/new_player/Initialize() +/mob/dead/new_player/Initialize(mapload) if(client && SSticker.state == GAME_STATE_STARTUP) var/atom/movable/screen/splash/S = new(client, TRUE, TRUE) S.Fade(TRUE) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index bc2300aa34a..ef6fb6394b1 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -61,7 +61,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER) var/deadchat_name var/datum/spawners_menu/spawners_menu -/mob/dead/observer/Initialize() +/mob/dead/observer/Initialize(mapload) set_invisibility(GLOB.observer_default_invisibility) add_verb(src, list( diff --git a/code/modules/mob/living/basic/farm_animals/cows.dm b/code/modules/mob/living/basic/farm_animals/cows.dm index 93043469593..6cc3f57291f 100644 --- a/code/modules/mob/living/basic/farm_animals/cows.dm +++ b/code/modules/mob/living/basic/farm_animals/cows.dm @@ -29,7 +29,7 @@ blood_volume = BLOOD_VOLUME_NORMAL ai_controller = /datum/ai_controller/basic_controller/cow -/mob/living/basic/cow/Initialize() +/mob/living/basic/cow/Initialize(mapload) AddComponent(/datum/component/tippable, \ tip_time = 0.5 SECONDS, \ untip_time = 0.5 SECONDS, \ @@ -133,7 +133,7 @@ attack_vis_effect = ATTACK_EFFECT_SLASH ai_controller = /datum/ai_controller/basic_controller/cow/moonicorn -/mob/living/basic/cow/moonicorn/Initialize() +/mob/living/basic/cow/moonicorn/Initialize(mapload) . = ..() AddElement(/datum/element/venomous, /datum/reagent/pax, 5) AddElement(/datum/element/movement_turf_changer, /turf/open/floor/grass/fairy) diff --git a/code/modules/mob/living/basic/ruin_defender/stickman.dm b/code/modules/mob/living/basic/ruin_defender/stickman.dm index b29628b05f9..1a2bdd61f9b 100644 --- a/code/modules/mob/living/basic/ruin_defender/stickman.dm +++ b/code/modules/mob/living/basic/ruin_defender/stickman.dm @@ -69,7 +69,7 @@ ai_controller = /datum/ai_controller/basic_controller/stickman/ranged -/mob/living/basic/stickman/ranged/Initialize() +/mob/living/basic/stickman/ranged/Initialize(mapload) . = ..() AddElement(/datum/element/death_drops, list(/obj/item/gun/ballistic/automatic/pistol/stickman)) AddElement(/datum/element/ranged_attacks, /obj/item/ammo_casing/c9mm, 'sound/misc/bang.ogg') diff --git a/code/modules/mob/living/basic/vermin/cockroach.dm b/code/modules/mob/living/basic/vermin/cockroach.dm index 72b7fc5bb51..89579d8bd92 100644 --- a/code/modules/mob/living/basic/vermin/cockroach.dm +++ b/code/modules/mob/living/basic/vermin/cockroach.dm @@ -27,7 +27,7 @@ ai_controller = /datum/ai_controller/basic_controller/cockroach -/mob/living/basic/cockroach/Initialize() +/mob/living/basic/cockroach/Initialize(mapload) . = ..() AddElement(/datum/element/death_drops, list(/obj/effect/decal/cleanable/insectguts)) AddElement(/datum/element/swabable, CELL_LINE_TABLE_COCKROACH, CELL_VIRUS_TABLE_GENERIC_MOB, 1, 7) @@ -78,7 +78,7 @@ faction = list("hostile") ai_controller = /datum/ai_controller/basic_controller/cockroach/glockroach -/mob/living/basic/cockroach/glockroach/Initialize() +/mob/living/basic/cockroach/glockroach/Initialize(mapload) . = ..() AddElement(/datum/element/ranged_attacks, /obj/item/ammo_casing/glockroach) @@ -112,7 +112,7 @@ sharpness = SHARP_POINTY ai_controller = /datum/ai_controller/basic_controller/cockroach/hauberoach -/mob/living/basic/cockroach/hauberoach/Initialize() +/mob/living/basic/cockroach/hauberoach/Initialize(mapload) . = ..() AddComponent(/datum/component/caltrop, min_damage = 10, max_damage = 15, flags = (CALTROP_BYPASS_SHOES | CALTROP_SILENT)) AddComponent(/datum/component/squashable, squash_chance = 100, squash_damage = 1, squash_callback = /mob/living/basic/cockroach/hauberoach/.proc/on_squish) diff --git a/code/modules/mob/living/bloodcrawl.dm b/code/modules/mob/living/bloodcrawl.dm index f76b56505a2..395d6a73d96 100644 --- a/code/modules/mob/living/bloodcrawl.dm +++ b/code/modules/mob/living/bloodcrawl.dm @@ -122,7 +122,7 @@ icon = 'icons/effects/blood.dmi' item_flags = ABSTRACT | DROPDEL -/obj/item/bloodcrawl/Initialize() +/obj/item/bloodcrawl/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT) diff --git a/code/modules/mob/living/brain/MMI.dm b/code/modules/mob/living/brain/MMI.dm index f28f0362f02..9d8ccd46269 100644 --- a/code/modules/mob/living/brain/MMI.dm +++ b/code/modules/mob/living/brain/MMI.dm @@ -15,7 +15,7 @@ var/force_replace_ai_name = FALSE var/overrides_aicore_laws = FALSE // Whether the laws on the MMI, if any, override possible pre-existing laws loaded on the AI core. -/obj/item/mmi/Initialize() +/obj/item/mmi/Initialize(mapload) . = ..() radio = new(src) //Spawns a radio inside the MMI. radio.broadcasting = FALSE //researching radio mmis turned the robofabs into radios because this didnt start as 0. @@ -281,7 +281,7 @@ desc = "Syndicate's own brand of MMI. It enforces laws designed to help Syndicate agents achieve their goals upon cyborgs and AIs created with it." overrides_aicore_laws = TRUE -/obj/item/mmi/syndie/Initialize() +/obj/item/mmi/syndie/Initialize(mapload) . = ..() laws = new /datum/ai_laws/syndicate_override() radio.on = FALSE diff --git a/code/modules/mob/living/brain/brain.dm b/code/modules/mob/living/brain/brain.dm index 37f1ec10bda..a800591e8ee 100644 --- a/code/modules/mob/living/brain/brain.dm +++ b/code/modules/mob/living/brain/brain.dm @@ -7,7 +7,7 @@ see_invisible = SEE_INVISIBLE_LIVING speech_span = SPAN_ROBOT -/mob/living/brain/Initialize() +/mob/living/brain/Initialize(mapload) . = ..() create_dna(src) stored_dna.initialize_dna(random_blood_type()) diff --git a/code/modules/mob/living/brain/posibrain.dm b/code/modules/mob/living/brain/posibrain.dm index 6a6d7c57365..722444023af 100644 --- a/code/modules/mob/living/brain/posibrain.dm +++ b/code/modules/mob/living/brain/posibrain.dm @@ -175,7 +175,7 @@ GLOBAL_VAR(posibrain_notify_cooldown) . += span_notice("Current consciousness seed: \"[ask_role]\"") . += span_boldnotice("Alt-click to set a consciousness seed, specifying what [src] will be used for. This can help generate a personality interested in that role.") -/obj/item/mmi/posibrain/Initialize() +/obj/item/mmi/posibrain/Initialize(mapload) . = ..() set_brainmob(new /mob/living/brain(src)) var/new_name diff --git a/code/modules/mob/living/carbon/alien/alien.dm b/code/modules/mob/living/carbon/alien/alien.dm index 02ca6a24bb1..949e789723c 100644 --- a/code/modules/mob/living/carbon/alien/alien.dm +++ b/code/modules/mob/living/carbon/alien/alien.dm @@ -24,7 +24,7 @@ var/static/regex/alien_name_regex = new("alien (larva|sentinel|drone|hunter|praetorian|queen)( \\(\\d+\\))?") -/mob/living/carbon/alien/Initialize() +/mob/living/carbon/alien/Initialize(mapload) add_verb(src, /mob/living/proc/mob_sleep) add_verb(src, /mob/living/proc/toggle_resting) diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm index c19e4218bf4..1087709e07e 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm @@ -5,7 +5,7 @@ health = 125 icon_state = "aliend" -/mob/living/carbon/alien/humanoid/drone/Initialize() +/mob/living/carbon/alien/humanoid/drone/Initialize(mapload) AddAbility(new/obj/effect/proc_holder/alien/evolve(null)) . = ..() diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/praetorian.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/praetorian.dm index 01787076020..d907fb271eb 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/caste/praetorian.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/caste/praetorian.dm @@ -5,7 +5,7 @@ health = 250 icon_state = "alienp" -/mob/living/carbon/alien/humanoid/royal/praetorian/Initialize() +/mob/living/carbon/alien/humanoid/royal/praetorian/Initialize(mapload) real_name = name AddSpell(new /obj/effect/proc_holder/spell/aoe_turf/repulse/xeno(src)) AddAbility(new /obj/effect/proc_holder/alien/royal/praetorian/evolve()) diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm index 7c6443cfae7..3816aac0136 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm @@ -5,7 +5,7 @@ health = 150 icon_state = "aliens" -/mob/living/carbon/alien/humanoid/sentinel/Initialize() +/mob/living/carbon/alien/humanoid/sentinel/Initialize(mapload) AddAbility(new /obj/effect/proc_holder/alien/sneak) . = ..() diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm index a1ed8dfb766..67b89bd6b4c 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm @@ -31,7 +31,7 @@ GLOBAL_LIST_INIT(strippable_alien_humanoid_items, create_strippable_list(list( /datum/strippable_item/mob_item_slot/legcuffs, ))) -/mob/living/carbon/alien/humanoid/Initialize() +/mob/living/carbon/alien/humanoid/Initialize(mapload) . = ..() AddElement(/datum/element/footstep, FOOTSTEP_MOB_CLAW, 0.5, -11) AddElement(/datum/element/strippable, GLOB.strippable_alien_humanoid_items) diff --git a/code/modules/mob/living/carbon/alien/humanoid/queen.dm b/code/modules/mob/living/carbon/alien/humanoid/queen.dm index 05a5202036d..c795fbf7fa1 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/queen.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/queen.dm @@ -12,7 +12,7 @@ var/alt_inhands_file = 'icons/mob/alienqueen.dmi' -/mob/living/carbon/alien/humanoid/royal/Initialize() +/mob/living/carbon/alien/humanoid/royal/Initialize(mapload) . = ..() // as a wise man once wrote: "pull over that ass too fat" REMOVE_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) @@ -28,7 +28,7 @@ icon_state = "alienq" var/datum/action/small_sprite/smallsprite = new/datum/action/small_sprite/queen() -/mob/living/carbon/alien/humanoid/royal/queen/Initialize() +/mob/living/carbon/alien/humanoid/royal/queen/Initialize(mapload) //there should only be one queen for(var/mob/living/carbon/alien/humanoid/royal/queen/Q in GLOB.carbon_list) if(Q == src) @@ -110,7 +110,7 @@ item_flags = ABSTRACT | DROPDEL icon = 'icons/mob/alien.dmi' -/obj/item/queenpromote/Initialize() +/obj/item/queenpromote/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT) diff --git a/code/modules/mob/living/carbon/alien/larva/larva.dm b/code/modules/mob/living/carbon/alien/larva/larva.dm index 6a0018a5fff..21976c6c9f8 100644 --- a/code/modules/mob/living/carbon/alien/larva/larva.dm +++ b/code/modules/mob/living/carbon/alien/larva/larva.dm @@ -30,7 +30,7 @@ //This is fine right now, if we're adding organ specific damage this needs to be updated -/mob/living/carbon/alien/larva/Initialize() +/mob/living/carbon/alien/larva/Initialize(mapload) AddAbility(new/obj/effect/proc_holder/alien/hide(null)) AddAbility(new/obj/effect/proc_holder/alien/larva_evolve(null)) diff --git a/code/modules/mob/living/carbon/alien/organs.dm b/code/modules/mob/living/carbon/alien/organs.dm index 1dc1bed91a1..d4c5a44f237 100644 --- a/code/modules/mob/living/carbon/alien/organs.dm +++ b/code/modules/mob/living/carbon/alien/organs.dm @@ -3,7 +3,7 @@ food_reagents = list(/datum/reagent/consumable/nutriment = 5, /datum/reagent/toxin/acid = 10) var/list/alien_powers = list() -/obj/item/organ/alien/Initialize() +/obj/item/organ/alien/Initialize(mapload) . = ..() for(var/A in alien_powers) if(ispath(A)) diff --git a/code/modules/mob/living/carbon/alien/special/alien_embryo.dm b/code/modules/mob/living/carbon/alien/special/alien_embryo.dm index 3c7be5330d0..2d252645f41 100644 --- a/code/modules/mob/living/carbon/alien/special/alien_embryo.dm +++ b/code/modules/mob/living/carbon/alien/special/alien_embryo.dm @@ -12,7 +12,7 @@ /// How long does it take to advance one stage? Growth time * 5 = how long till we make a Larva! var/growth_time = 60 SECONDS -/obj/item/organ/body_egg/alien_embryo/Initialize() +/obj/item/organ/body_egg/alien_embryo/Initialize(mapload) . = ..() advance_embryo_stage() diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index e16cfa5b84e..0ce48bd9d23 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -1,4 +1,4 @@ -/mob/living/carbon/human/Initialize() +/mob/living/carbon/human/Initialize(mapload) add_verb(src, /mob/living/proc/mob_sleep) add_verb(src, /mob/living/proc/toggle_resting) @@ -1017,7 +1017,7 @@ var/race = null var/use_random_name = TRUE -/mob/living/carbon/human/species/Initialize() +/mob/living/carbon/human/species/Initialize(mapload) . = ..() INVOKE_ASYNC(src, .proc/set_species, race) diff --git a/code/modules/mob/living/carbon/human/monkey/monkey.dm b/code/modules/mob/living/carbon/human/monkey/monkey.dm index 27eb430ec71..be5c09cca8a 100644 --- a/code/modules/mob/living/carbon/human/monkey/monkey.dm +++ b/code/modules/mob/living/carbon/human/monkey/monkey.dm @@ -20,7 +20,7 @@ /mob/living/carbon/human/species/monkey/angry ai_controller = /datum/ai_controller/monkey/angry -/mob/living/carbon/human/species/monkey/angry/Initialize() +/mob/living/carbon/human/species/monkey/angry/Initialize(mapload) . = ..() if(prob(10)) var/obj/item/clothing/head/helmet/justice/escape/helmet = new(src) @@ -40,7 +40,7 @@ var/relic_mask var/memory_saved = FALSE -/mob/living/carbon/human/species/monkey/punpun/Initialize() +/mob/living/carbon/human/species/monkey/punpun/Initialize(mapload) Read_Memory() var/name_to_use = name diff --git a/code/modules/mob/living/carbon/human/species_types/flypeople.dm b/code/modules/mob/living/carbon/human/species_types/flypeople.dm index 7c664a05aa8..7be67c4ab28 100644 --- a/code/modules/mob/living/carbon/human/species_types/flypeople.dm +++ b/code/modules/mob/living/carbon/human/species_types/flypeople.dm @@ -41,7 +41,7 @@ /obj/item/organ/heart/fly desc = "You have no idea what the hell this is, or how it manages to keep something alive in any capacity." -/obj/item/organ/heart/fly/Initialize() +/obj/item/organ/heart/fly/Initialize(mapload) . = ..() name = odd_organ_name() icon_state = pick("brain-x-d", "liver-x", "kidneys-x", "stomach-x", "lungs-x", "random_fly_1", "random_fly_2", "random_fly_3", "random_fly_4", "random_fly_5") @@ -53,7 +53,7 @@ /obj/item/organ/lungs/fly desc = "You have no idea what the hell this is, or how it manages to keep something alive in any capacity." -/obj/item/organ/lungs/fly/Initialize() +/obj/item/organ/lungs/fly/Initialize(mapload) . = ..() name = odd_organ_name() icon_state = pick("brain-x-d", "liver-x", "kidneys-x", "stomach-x", "lungs-x", "random_fly_1", "random_fly_2", "random_fly_3", "random_fly_4", "random_fly_5") @@ -62,7 +62,7 @@ desc = "You have no idea what the hell this is, or how it manages to keep something alive in any capacity." alcohol_tolerance = 0.007 //flies eat vomit, so a lower alcohol tolerance is perfect! -/obj/item/organ/liver/fly/Initialize() +/obj/item/organ/liver/fly/Initialize(mapload) . = ..() name = odd_organ_name() icon_state = pick("brain-x-d", "liver-x", "kidneys-x", "stomach-x", "lungs-x", "random_fly_1", "random_fly_2", "random_fly_3", "random_fly_4", "random_fly_5") @@ -70,7 +70,7 @@ /obj/item/organ/stomach/fly desc = "You have no idea what the hell this is, or how it manages to keep something alive in any capacity." -/obj/item/organ/stomach/fly/Initialize() +/obj/item/organ/stomach/fly/Initialize(mapload) . = ..() name = odd_organ_name() icon_state = pick("brain-x-d", "liver-x", "kidneys-x", "stomach-x", "lungs-x", "random_fly_1", "random_fly_2", "random_fly_3", "random_fly_4", "random_fly_5") @@ -88,7 +88,7 @@ /obj/item/organ/appendix/fly desc = "You have no idea what the hell this is, or how it manages to keep something alive in any capacity." -/obj/item/organ/appendix/fly/Initialize() +/obj/item/organ/appendix/fly/Initialize(mapload) . = ..() name = odd_organ_name() icon_state = pick("brain-x-d", "liver-x", "kidneys-x", "stomach-x", "lungs-x", "random_fly_1", "random_fly_2", "random_fly_3", "random_fly_4", "random_fly_5") @@ -100,7 +100,7 @@ /obj/item/organ/fly desc = "You have no idea what the hell this is, or how it manages to keep something alive in any capacity." -/obj/item/organ/fly/Initialize() +/obj/item/organ/fly/Initialize(mapload) . = ..() name = odd_organ_name() icon_state = pick("brain-x-d", "liver-x", "kidneys-x", "stomach-x", "lungs-x", "random_fly_1", "random_fly_2", "random_fly_3", "random_fly_4", "random_fly_5") diff --git a/code/modules/mob/living/carbon/human/species_types/jellypeople.dm b/code/modules/mob/living/carbon/human/species_types/jellypeople.dm index 41b1c7722bf..4340242428d 100644 --- a/code/modules/mob/living/carbon/human/species_types/jellypeople.dm +++ b/code/modules/mob/living/carbon/human/species_types/jellypeople.dm @@ -469,7 +469,7 @@ light_power = 2.5 light_color = COLOR_WHITE -/obj/effect/dummy/luminescent_glow/Initialize() +/obj/effect/dummy/luminescent_glow/Initialize(mapload) . = ..() if(!isliving(loc)) return INITIALIZE_HINT_QDEL diff --git a/code/modules/mob/living/carbon/human/species_types/snail.dm b/code/modules/mob/living/carbon/human/species_types/snail.dm index f03c38a53eb..c64e9799af0 100644 --- a/code/modules/mob/living/carbon/human/species_types/snail.dm +++ b/code/modules/mob/living/carbon/human/species_types/snail.dm @@ -65,6 +65,6 @@ if(!QDELETED(src)) qdel(src) -/obj/item/storage/backpack/snail/Initialize() +/obj/item/storage/backpack/snail/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, "snailshell") diff --git a/code/modules/mob/living/carbon/init_signals.dm b/code/modules/mob/living/carbon/init_signals.dm index 75a363447a1..94899b5b89e 100644 --- a/code/modules/mob/living/carbon/init_signals.dm +++ b/code/modules/mob/living/carbon/init_signals.dm @@ -1,4 +1,4 @@ -//Called on /mob/living/carbon/Initialize(), for the carbon mobs to register relevant signals. +//Called on /mob/living/carbon/Initialize(mapload), for the carbon mobs to register relevant signals. /mob/living/carbon/register_init_signals() . = ..() diff --git a/code/modules/mob/living/init_signals.dm b/code/modules/mob/living/init_signals.dm index fbba93a1d9c..8e1fcbe5219 100644 --- a/code/modules/mob/living/init_signals.dm +++ b/code/modules/mob/living/init_signals.dm @@ -1,4 +1,4 @@ -/// Called on [/mob/living/Initialize()], for the mob to register to relevant signals. +/// Called on [/mob/living/Initialize(mapload)], for the mob to register to relevant signals. /mob/living/proc/register_init_signals() RegisterSignal(src, SIGNAL_ADDTRAIT(TRAIT_KNOCKEDOUT), .proc/on_knockedout_trait_gain) RegisterSignal(src, SIGNAL_REMOVETRAIT(TRAIT_KNOCKEDOUT), .proc/on_knockedout_trait_loss) diff --git a/code/modules/mob/living/silicon/ai/freelook/eye.dm b/code/modules/mob/living/silicon/ai/freelook/eye.dm index 92edf73bd49..4c14dee9865 100644 --- a/code/modules/mob/living/silicon/ai/freelook/eye.dm +++ b/code/modules/mob/living/silicon/ai/freelook/eye.dm @@ -18,7 +18,7 @@ var/ai_detector_color = COLOR_RED interaction_range = null -/mob/camera/ai_eye/Initialize() +/mob/camera/ai_eye/Initialize(mapload) . = ..() GLOB.aiEyes += src update_ai_detect_hud() diff --git a/code/modules/mob/living/silicon/ai/multicam.dm b/code/modules/mob/living/silicon/ai/multicam.dm index 4139215546b..419ba2938b2 100644 --- a/code/modules/mob/living/silicon/ai/multicam.dm +++ b/code/modules/mob/living/silicon/ai/multicam.dm @@ -6,7 +6,7 @@ var/highlighted = FALSE var/mob/camera/ai_eye/pic_in_pic/aiEye -/atom/movable/screen/movable/pic_in_pic/ai/Initialize() +/atom/movable/screen/movable/pic_in_pic/ai/Initialize(mapload) . = ..() aiEye = new /mob/camera/ai_eye/pic_in_pic() aiEye.screen = src @@ -105,7 +105,7 @@ GLOBAL_DATUM(ai_camera_room_landmark, /obj/effect/landmark/ai_multicam_room) icon = 'icons/mob/landmarks.dmi' icon_state = "x" -/obj/effect/landmark/ai_multicam_room/Initialize() +/obj/effect/landmark/ai_multicam_room/Initialize(mapload) . = ..() qdel(GLOB.ai_camera_room_landmark) GLOB.ai_camera_room_landmark = src diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm index b0693900fb9..0b7cc2b92d4 100644 --- a/code/modules/mob/living/silicon/pai/pai.dm +++ b/code/modules/mob/living/silicon/pai/pai.dm @@ -124,7 +124,7 @@ GLOB.pai_list -= src return ..() -/mob/living/silicon/pai/Initialize() +/mob/living/silicon/pai/Initialize(mapload) var/obj/item/paicard/P = loc START_PROCESSING(SSfastprocess, src) GLOB.pai_list += src diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 871e96637e4..15b43f44f85 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -75,7 +75,7 @@ alert_control.listener.RegisterSignal(src, COMSIG_LIVING_DEATH, /datum/alarm_listener/proc/prevent_alarm_changes) alert_control.listener.RegisterSignal(src, COMSIG_LIVING_REVIVE, /datum/alarm_listener/proc/allow_alarm_changes) -/mob/living/silicon/robot/model/syndicate/Initialize() +/mob/living/silicon/robot/model/syndicate/Initialize(mapload) . = ..() laws = new /datum/ai_laws/syndicate_override() addtimer(CALLBACK(src, .proc/show_playstyle), 5) diff --git a/code/modules/mob/living/silicon/robot/robot_defines.dm b/code/modules/mob/living/silicon/robot/robot_defines.dm index cc4a9b429d9..9089d6444af 100644 --- a/code/modules/mob/living/silicon/robot/robot_defines.dm +++ b/code/modules/mob/living/silicon/robot/robot_defines.dm @@ -148,7 +148,7 @@ /mob/living/silicon/robot/model var/set_model = /obj/item/robot_model -/mob/living/silicon/robot/model/Initialize() +/mob/living/silicon/robot/model/Initialize(mapload) . = ..() model.transform_to(set_model) diff --git a/code/modules/mob/living/silicon/robot/robot_model.dm b/code/modules/mob/living/silicon/robot/robot_model.dm index 9ff47bf15f2..e415e8a5ce9 100644 --- a/code/modules/mob/living/silicon/robot/robot_model.dm +++ b/code/modules/mob/living/silicon/robot/robot_model.dm @@ -2,7 +2,7 @@ * # robot_model * * Definition of /obj/item/robot_model, which defines behavior for each model. - * Further expanded on in [robot_modules.dm][/obj/item/robot_model/Initialize()]. + * Further expanded on in [robot_modules.dm][/obj/item/robot_model/Initialize(mapload)]. * ***************************************************************************************/ /obj/item/robot_model diff --git a/code/modules/mob/living/silicon/robot/robot_modules.dm b/code/modules/mob/living/silicon/robot/robot_modules.dm index d58c44cacb4..83dcdd3bb7a 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules.dm @@ -6,7 +6,7 @@ * ***************************************************************************************/ -/obj/item/robot_model/Initialize() +/obj/item/robot_model/Initialize(mapload) . = ..() for(var/i in basic_modules) var/obj/item/I = new i(src) diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm index 6d2780523f2..d2bf8f02555 100644 --- a/code/modules/mob/living/silicon/silicon.dm +++ b/code/modules/mob/living/silicon/silicon.dm @@ -45,7 +45,7 @@ interaction_range = 7 //wireless control range var/obj/item/pda/ai/aiPDA -/mob/living/silicon/Initialize() +/mob/living/silicon/Initialize(mapload) . = ..() GLOB.silicon_mobs += src faction += "silicon" diff --git a/code/modules/mob/living/simple_animal/bot/SuperBeepsky.dm b/code/modules/mob/living/simple_animal/bot/SuperBeepsky.dm index 8948109f61f..d6c3126ab95 100644 --- a/code/modules/mob/living/simple_animal/bot/SuperBeepsky.dm +++ b/code/modules/mob/living/simple_animal/bot/SuperBeepsky.dm @@ -31,7 +31,7 @@ playsound(src,'sound/effects/beepskyspinsabre.ogg',100,TRUE,-1) INVOKE_ASYNC(src, .proc/stun_attack, AM) -/mob/living/simple_animal/bot/secbot/grievous/Initialize() +/mob/living/simple_animal/bot/secbot/grievous/Initialize(mapload) . = ..() INVOKE_ASYNC(weapon, /obj/item.proc/attack_self, src) diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm index 8c78fa82231..baa17860aae 100644 --- a/code/modules/mob/living/simple_animal/bot/bot.dm +++ b/code/modules/mob/living/simple_animal/bot/bot.dm @@ -149,7 +149,7 @@ to_chat(src, span_userdanger("You turned off!")) update_appearance() -/mob/living/simple_animal/bot/Initialize() +/mob/living/simple_animal/bot/Initialize(mapload) . = ..() GLOB.bots_list += src // Give bots a fancy new ID card that can hold any access. @@ -901,7 +901,7 @@ Pass a positive integer as an argument to override a bot's default speed. use_power = NO_POWER_USE anchored = FALSE -/obj/machinery/bot_core/Initialize() +/obj/machinery/bot_core/Initialize(mapload) . = ..() if(!isbot(loc)) return INITIALIZE_HINT_QDEL diff --git a/code/modules/mob/living/simple_animal/bot/cleanbot.dm b/code/modules/mob/living/simple_animal/bot/cleanbot.dm index 4ef6ca445a0..62a376d2799 100644 --- a/code/modules/mob/living/simple_animal/bot/cleanbot.dm +++ b/code/modules/mob/living/simple_animal/bot/cleanbot.dm @@ -98,7 +98,7 @@ if(ascended && user.stat == CONSCIOUS && user.client) user.client.give_award(/datum/award/achievement/misc/cleanboss, user) -/mob/living/simple_animal/bot/cleanbot/Initialize() +/mob/living/simple_animal/bot/cleanbot/Initialize(mapload) . = ..() chosen_name = name diff --git a/code/modules/mob/living/simple_animal/bot/construction.dm b/code/modules/mob/living/simple_animal/bot/construction.dm index 9d682c311d4..504602d6600 100644 --- a/code/modules/mob/living/simple_animal/bot/construction.dm +++ b/code/modules/mob/living/simple_animal/bot/construction.dm @@ -173,7 +173,7 @@ var/toolbox = /obj/item/storage/toolbox/mechanical var/toolbox_color = "" //Blank for blue, r for red, y for yellow, etc. -/obj/item/bot_assembly/floorbot/Initialize() +/obj/item/bot_assembly/floorbot/Initialize(mapload) . = ..() update_appearance() diff --git a/code/modules/mob/living/simple_animal/bot/honkbot.dm b/code/modules/mob/living/simple_animal/bot/honkbot.dm index faa43fa2852..b9fe0f91484 100644 --- a/code/modules/mob/living/simple_animal/bot/honkbot.dm +++ b/code/modules/mob/living/simple_animal/bot/honkbot.dm @@ -37,7 +37,7 @@ var/weaponscheck = TRUE var/bikehorn = /obj/item/bikehorn -/mob/living/simple_animal/bot/honkbot/Initialize() +/mob/living/simple_animal/bot/honkbot/Initialize(mapload) . = ..() update_appearance() auto_patrol = TRUE diff --git a/code/modules/mob/living/simple_animal/bot/hygienebot.dm b/code/modules/mob/living/simple_animal/bot/hygienebot.dm index a01ecdaa70f..6a2ae8857ad 100644 --- a/code/modules/mob/living/simple_animal/bot/hygienebot.dm +++ b/code/modules/mob/living/simple_animal/bot/hygienebot.dm @@ -38,7 +38,7 @@ ///Visual overlay of the bot commiting warcrimes. var/mutable_appearance/fire_overlay -/mob/living/simple_animal/bot/hygienebot/Initialize() +/mob/living/simple_animal/bot/hygienebot/Initialize(mapload) . = ..() update_appearance(UPDATE_ICON) diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm index db2818cf12a..d99e052814a 100644 --- a/code/modules/mob/living/simple_animal/bot/secbot.dm +++ b/code/modules/mob/living/simple_animal/bot/secbot.dm @@ -56,7 +56,7 @@ desc = "It's Commander Beep O'sky's smaller, just-as aggressive cousin, Pipsqueak." commissioned = FALSE -/mob/living/simple_animal/bot/secbot/beepsky/jr/Initialize() +/mob/living/simple_animal/bot/secbot/beepsky/jr/Initialize(mapload) . = ..() resize = 0.8 update_transform() @@ -74,7 +74,7 @@ desc = "It's Officer Pingsky! Delegated to satellite guard duty for harbouring anti-human sentiment." radio_channel = RADIO_CHANNEL_AI_PRIVATE -/mob/living/simple_animal/bot/secbot/Initialize() +/mob/living/simple_animal/bot/secbot/Initialize(mapload) . = ..() weapon = new baton_type() update_appearance(UPDATE_ICON) diff --git a/code/modules/mob/living/simple_animal/bot/vibebot.dm b/code/modules/mob/living/simple_animal/bot/vibebot.dm index d88a95156c2..738fc1c4bad 100644 --- a/code/modules/mob/living/simple_animal/bot/vibebot.dm +++ b/code/modules/mob/living/simple_animal/bot/vibebot.dm @@ -24,7 +24,7 @@ light_power = 3 -/mob/living/simple_animal/bot/vibebot/Initialize() +/mob/living/simple_animal/bot/vibebot/Initialize(mapload) . = ..() update_appearance() diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm index ac7cbeb93c9..b122e601ddc 100644 --- a/code/modules/mob/living/simple_animal/constructs.dm +++ b/code/modules/mob/living/simple_animal/constructs.dm @@ -45,7 +45,7 @@ /// Theme controls color. THEME_CULT is red THEME_WIZARD is purple and THEME_HOLY is blue var/theme = THEME_CULT -/mob/living/simple_animal/hostile/construct/Initialize() +/mob/living/simple_animal/hostile/construct/Initialize(mapload) . = ..() AddElement(/datum/element/simple_flying) ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) @@ -303,7 +303,7 @@ ///The health HUD applied to this mob. var/health_hud = DATA_HUD_MEDICAL_ADVANCED -/mob/living/simple_animal/hostile/construct/artificer/Initialize() +/mob/living/simple_animal/hostile/construct/artificer/Initialize(mapload) . = ..() var/datum/atom_hud/datahud = GLOB.huds[health_hud] datahud.add_hud_to(src) @@ -440,7 +440,7 @@ return FALSE . = ..() -/mob/living/simple_animal/hostile/construct/harvester/Initialize() +/mob/living/simple_animal/hostile/construct/harvester/Initialize(mapload) . = ..() var/datum/action/innate/seek_prey/seek = new() seek.Grant(src) diff --git a/code/modules/mob/living/simple_animal/eldritch_demons.dm b/code/modules/mob/living/simple_animal/eldritch_demons.dm index 27a8f7bebed..00f9cb9f1de 100644 --- a/code/modules/mob/living/simple_animal/eldritch_demons.dm +++ b/code/modules/mob/living/simple_animal/eldritch_demons.dm @@ -34,7 +34,7 @@ ///Innate spells that are supposed to be added when a beast is created var/list/spells_to_add -/mob/living/simple_animal/hostile/eldritch/Initialize() +/mob/living/simple_animal/hostile/eldritch/Initialize(mapload) . = ..() add_spells() @@ -63,7 +63,7 @@ var/list/linked_mobs = list() -/mob/living/simple_animal/hostile/eldritch/raw_prophet/Initialize() +/mob/living/simple_animal/hostile/eldritch/raw_prophet/Initialize(mapload) . = ..() link_mob(src) diff --git a/code/modules/mob/living/simple_animal/friendly/ant.dm b/code/modules/mob/living/simple_animal/friendly/ant.dm index f0dd57a41e6..89f108a783e 100644 --- a/code/modules/mob/living/simple_animal/friendly/ant.dm +++ b/code/modules/mob/living/simple_animal/friendly/ant.dm @@ -33,7 +33,7 @@ // randomizes hunting intervals, minimum 5 turns var/time_to_hunt = 5 -/mob/living/simple_animal/ant/Initialize() +/mob/living/simple_animal/ant/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) time_to_hunt = rand(5,10) diff --git a/code/modules/mob/living/simple_animal/friendly/butterfly.dm b/code/modules/mob/living/simple_animal/friendly/butterfly.dm index 139429e6dc7..5b021a8f187 100644 --- a/code/modules/mob/living/simple_animal/friendly/butterfly.dm +++ b/code/modules/mob/living/simple_animal/friendly/butterfly.dm @@ -27,7 +27,7 @@ verb_exclaim = "flutters intensely" verb_yell = "flutters intensely" -/mob/living/simple_animal/butterfly/Initialize() +/mob/living/simple_animal/butterfly/Initialize(mapload) . = ..() AddElement(/datum/element/simple_flying) var/newcolor = rgb(rand(0, 255), rand(0, 255), rand(0, 255)) diff --git a/code/modules/mob/living/simple_animal/friendly/cat.dm b/code/modules/mob/living/simple_animal/friendly/cat.dm index b86c16d5480..5980e210019 100644 --- a/code/modules/mob/living/simple_animal/friendly/cat.dm +++ b/code/modules/mob/living/simple_animal/friendly/cat.dm @@ -42,7 +42,7 @@ footstep_type = FOOTSTEP_MOB_CLAW -/mob/living/simple_animal/pet/cat/Initialize() +/mob/living/simple_animal/pet/cat/Initialize(mapload) . = ..() AddElement(/datum/element/pet_bonus, "purrs!") add_verb(src, /mob/living/proc/toggle_resting) @@ -117,7 +117,7 @@ var/memory_saved = FALSE held_state = "cat" -/mob/living/simple_animal/pet/cat/runtime/Initialize() +/mob/living/simple_animal/pet/cat/runtime/Initialize(mapload) if(prob(5)) icon_state = "original" icon_living = "original" diff --git a/code/modules/mob/living/simple_animal/friendly/crab.dm b/code/modules/mob/living/simple_animal/friendly/crab.dm index 1f16bab40ef..f5677d7dfea 100644 --- a/code/modules/mob/living/simple_animal/friendly/crab.dm +++ b/code/modules/mob/living/simple_animal/friendly/crab.dm @@ -29,7 +29,7 @@ attack_sound = 'sound/weapons/bite.ogg' attack_vis_effect = ATTACK_EFFECT_BITE -/mob/living/simple_animal/crab/Initialize() +/mob/living/simple_animal/crab/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) diff --git a/code/modules/mob/living/simple_animal/friendly/dog.dm b/code/modules/mob/living/simple_animal/friendly/dog.dm index e89c2cbf271..8026fbb56d7 100644 --- a/code/modules/mob/living/simple_animal/friendly/dog.dm +++ b/code/modules/mob/living/simple_animal/friendly/dog.dm @@ -27,7 +27,7 @@ footstep_type = FOOTSTEP_MOB_CLAW -/mob/living/simple_animal/pet/dog/Initialize() +/mob/living/simple_animal/pet/dog/Initialize(mapload) . = ..() AddElement(/datum/element/pet_bonus, "woofs happily!") add_cell_sample() @@ -124,19 +124,19 @@ animal_species = /mob/living/simple_animal/pet/dog/corgi/exoticcorgi nofur = TRUE -/mob/living/simple_animal/pet/dog/Initialize() +/mob/living/simple_animal/pet/dog/Initialize(mapload) . = ..() var/dog_area = get_area(src) for(var/obj/structure/bed/dogbed/D in dog_area) if(D.update_owner(src)) //No muscling in on my turf you fucking parrot break -/mob/living/simple_animal/pet/dog/corgi/Initialize() +/mob/living/simple_animal/pet/dog/corgi/Initialize(mapload) . = ..() regenerate_icons() AddElement(/datum/element/strippable, GLOB.strippable_corgi_items) -/mob/living/simple_animal/pet/dog/corgi/exoticcorgi/Initialize() +/mob/living/simple_animal/pet/dog/corgi/exoticcorgi/Initialize(mapload) . = ..() var/newcolor = rgb(rand(0, 255), rand(0, 255), rand(0, 255)) add_atom_colour(newcolor, FIXED_COLOUR_PRIORITY) @@ -430,7 +430,7 @@ GLOBAL_LIST_INIT(strippable_corgi_items, create_strippable_list(list( var/memory_saved = FALSE var/saved_head //path -/mob/living/simple_animal/pet/dog/corgi/ian/Initialize() +/mob/living/simple_animal/pet/dog/corgi/ian/Initialize(mapload) . = ..() //parent call must happen first to ensure IAN //is not in nullspace when child puppies spawn @@ -627,7 +627,7 @@ GLOBAL_LIST_INIT(strippable_corgi_items, create_strippable_list(list( maxbodytemp = T0C + 40 held_state = "void_puppy" -/mob/living/simple_animal/pet/dog/corgi/puppy/void/Initialize() +/mob/living/simple_animal/pet/dog/corgi/puppy/void/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_AI_BAGATTACK, INNATE_TRAIT) diff --git a/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm b/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm index 0fcb4e8fae2..cd046929bda 100644 --- a/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm +++ b/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm @@ -154,7 +154,7 @@ /obj/item/clothing/mask, ) -/mob/living/simple_animal/drone/Initialize() +/mob/living/simple_animal/drone/Initialize(mapload) . = ..() GLOB.drones_list += src access_card = new /obj/item/card/id/advanced/simple_bot(src) diff --git a/code/modules/mob/living/simple_animal/friendly/drone/drone_tools.dm b/code/modules/mob/living/simple_animal/friendly/drone/drone_tools.dm index 9f7f7605d83..e502b220bd3 100644 --- a/code/modules/mob/living/simple_animal/friendly/drone/drone_tools.dm +++ b/code/modules/mob/living/simple_animal/friendly/drone/drone_tools.dm @@ -6,7 +6,7 @@ item_flags = ABSTRACT resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF -/obj/item/storage/drone_tools/Initialize() +/obj/item/storage/drone_tools/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT) diff --git a/code/modules/mob/living/simple_animal/friendly/drone/drones_as_items.dm b/code/modules/mob/living/simple_animal/friendly/drone/drones_as_items.dm index d014051dab9..a96077afc44 100644 --- a/code/modules/mob/living/simple_animal/friendly/drone/drones_as_items.dm +++ b/code/modules/mob/living/simple_animal/friendly/drone/drones_as_items.dm @@ -28,7 +28,7 @@ important_info = "You MUST read and follow your laws carefully." spawner_job_path = /datum/job/maintenance_drone -/obj/effect/mob_spawn/drone/Initialize() +/obj/effect/mob_spawn/drone/Initialize(mapload) . = ..() var/area/A = get_area(src) if(A) diff --git a/code/modules/mob/living/simple_animal/friendly/drone/extra_drone_types.dm b/code/modules/mob/living/simple_animal/friendly/drone/extra_drone_types.dm index 6679a856327..b7a38af5f1d 100644 --- a/code/modules/mob/living/simple_animal/friendly/drone/extra_drone_types.dm +++ b/code/modules/mob/living/simple_animal/friendly/drone/extra_drone_types.dm @@ -32,7 +32,7 @@ shy = FALSE flavortext = null -/mob/living/simple_animal/drone/syndrone/Initialize() +/mob/living/simple_animal/drone/syndrone/Initialize(mapload) . = ..() var/datum/component/uplink/hidden_uplink = internal_storage.GetComponent(/datum/component/uplink) hidden_uplink.telecrystals = 10 @@ -42,7 +42,7 @@ default_hatmask = /obj/item/clothing/head/helmet/space/hardsuit/syndi/elite default_storage = /obj/item/uplink/nuclear -/mob/living/simple_animal/drone/syndrone/badass/Initialize() +/mob/living/simple_animal/drone/syndrone/badass/Initialize(mapload) . = ..() var/datum/component/uplink/hidden_uplink = internal_storage.GetComponent(/datum/component/uplink) hidden_uplink.telecrystals = 30 @@ -52,7 +52,7 @@ /mob/living/simple_animal/drone/snowflake default_hatmask = /obj/item/clothing/head/chameleon/drone -/mob/living/simple_animal/drone/snowflake/Initialize() +/mob/living/simple_animal/drone/snowflake/Initialize(mapload) . = ..() desc += " This drone appears to have a complex holoprojector built on its 'head'." @@ -85,7 +85,7 @@ picked = TRUE flavortext = null -/mob/living/simple_animal/drone/polymorphed/Initialize() +/mob/living/simple_animal/drone/polymorphed/Initialize(mapload) . = ..() liberate() visualAppearance = pick(MAINTDRONE, REPAIRDRONE, SCOUTDRONE) @@ -137,7 +137,7 @@ "If you do not have the regular drone laws, follow your laws to the best of your ability." shy = FALSE -/mob/living/simple_animal/drone/derelict/Initialize() +/mob/living/simple_animal/drone/derelict/Initialize(mapload) . = ..() AddComponent(/datum/component/stationstuck, PUNISHMENT_GIB, "01000110 01010101 01000011 01001011 00100000 01011001 01001111 01010101
WARNING: Dereliction of KS13 detected. Self-destruct activated.") 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 13ac50511ca..fee6211a81b 100644 --- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm +++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm @@ -37,7 +37,7 @@ footstep_type = FOOTSTEP_MOB_SHOE -/mob/living/simple_animal/hostile/retaliate/goat/Initialize() +/mob/living/simple_animal/hostile/retaliate/goat/Initialize(mapload) AddComponent(/datum/component/udder) . = ..() @@ -132,7 +132,7 @@ footstep_type = FOOTSTEP_MOB_CLAW -/mob/living/simple_animal/chick/Initialize() +/mob/living/simple_animal/chick/Initialize(mapload) . = ..() AddElement(/datum/element/pet_bonus, "chirps!") pixel_x = base_pixel_x + rand(-6, 6) @@ -193,7 +193,7 @@ ///boolean deciding whether eggs laid by this chicken can hatch into chicks var/process_eggs = TRUE -/mob/living/simple_animal/chicken/Initialize() +/mob/living/simple_animal/chicken/Initialize(mapload) . = ..() chicken_count++ add_cell_sample() diff --git a/code/modules/mob/living/simple_animal/friendly/fox.dm b/code/modules/mob/living/simple_animal/friendly/fox.dm index cb677f0af54..a262190a2df 100644 --- a/code/modules/mob/living/simple_animal/friendly/fox.dm +++ b/code/modules/mob/living/simple_animal/friendly/fox.dm @@ -31,7 +31,7 @@ footstep_type = FOOTSTEP_MOB_CLAW -/mob/living/simple_animal/pet/fox/Initialize() +/mob/living/simple_animal/pet/fox/Initialize(mapload) . = ..() AddElement(/datum/element/pet_bonus, "pants and yaps happily!") diff --git a/code/modules/mob/living/simple_animal/friendly/gondola.dm b/code/modules/mob/living/simple_animal/friendly/gondola.dm index 7b2408daf07..717ef3526f5 100644 --- a/code/modules/mob/living/simple_animal/friendly/gondola.dm +++ b/code/modules/mob/living/simple_animal/friendly/gondola.dm @@ -31,7 +31,7 @@ //Gondolas don't make footstep sounds -/mob/living/simple_animal/pet/gondola/Initialize() +/mob/living/simple_animal/pet/gondola/Initialize(mapload) . = ..() AddElement(/datum/element/pet_bonus, "smiles!") if (!(istype(src, /mob/living/simple_animal/pet/gondola/gondolapod))) diff --git a/code/modules/mob/living/simple_animal/friendly/lizard.dm b/code/modules/mob/living/simple_animal/friendly/lizard.dm index c5002ea4a65..83d23c59864 100644 --- a/code/modules/mob/living/simple_animal/friendly/lizard.dm +++ b/code/modules/mob/living/simple_animal/friendly/lizard.dm @@ -27,7 +27,7 @@ environment_smash = ENVIRONMENT_SMASH_NONE var/static/list/edibles = typecacheof(list(/mob/living/simple_animal/butterfly, /mob/living/basic/cockroach)) //list of atoms, however turfs won't affect AI, but will affect consumption. -/mob/living/simple_animal/hostile/lizard/Initialize() +/mob/living/simple_animal/hostile/lizard/Initialize(mapload) . = ..() AddElement(/datum/element/pet_bonus, "sticks its tongue out contentedly!") ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm index 02546eec655..f005845b8be 100644 --- a/code/modules/mob/living/simple_animal/friendly/mouse.dm +++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm @@ -32,7 +32,7 @@ held_state = "mouse_gray" faction = list("rat") -/mob/living/simple_animal/mouse/Initialize() +/mob/living/simple_animal/mouse/Initialize(mapload) . = ..() if(body_color == null) body_color = pick("brown","gray","white") @@ -186,7 +186,7 @@ response_harm_simple = "splat" gold_core_spawnable = NO_SPAWN -/mob/living/simple_animal/mouse/brown/tom/Initialize() +/mob/living/simple_animal/mouse/brown/tom/Initialize(mapload) . = ..() AddElement(/datum/element/pet_bonus, "squeaks happily!") // Tom fears no cable. @@ -205,7 +205,7 @@ decomp_req_handle = TRUE decomp_type = /obj/item/food/deadmouse/moldy -/obj/item/food/deadmouse/Initialize() +/obj/item/food/deadmouse/Initialize(mapload) . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_MOUSE, CELL_VIRUS_TABLE_GENERIC_MOB, 1, 10) diff --git a/code/modules/mob/living/simple_animal/friendly/penguin.dm b/code/modules/mob/living/simple_animal/friendly/penguin.dm index 15373801232..a325f8de9e0 100644 --- a/code/modules/mob/living/simple_animal/friendly/penguin.dm +++ b/code/modules/mob/living/simple_animal/friendly/penguin.dm @@ -22,7 +22,7 @@ footstep_type = FOOTSTEP_MOB_BAREFOOT -/mob/living/simple_animal/pet/penguin/Initialize() +/mob/living/simple_animal/pet/penguin/Initialize(mapload) . = ..() AddElement(/datum/element/pet_bonus, "honks happily!") AddElement(/datum/element/waddling) diff --git a/code/modules/mob/living/simple_animal/friendly/pet.dm b/code/modules/mob/living/simple_animal/friendly/pet.dm index 014e6fc99f9..c4f621a3743 100644 --- a/code/modules/mob/living/simple_animal/friendly/pet.dm +++ b/code/modules/mob/living/simple_animal/friendly/pet.dm @@ -35,7 +35,7 @@ else ..() -/mob/living/simple_animal/pet/Initialize() +/mob/living/simple_animal/pet/Initialize(mapload) . = ..() if(pcollar) pcollar = new(src) diff --git a/code/modules/mob/living/simple_animal/guardian/types/assassin.dm b/code/modules/mob/living/simple_animal/guardian/types/assassin.dm index e283ec2914d..4518df42ccf 100644 --- a/code/modules/mob/living/simple_animal/guardian/types/assassin.dm +++ b/code/modules/mob/living/simple_animal/guardian/types/assassin.dm @@ -18,7 +18,7 @@ var/atom/movable/screen/alert/canstealthalert var/atom/movable/screen/alert/instealthalert -/mob/living/simple_animal/hostile/guardian/assassin/Initialize() +/mob/living/simple_animal/hostile/guardian/assassin/Initialize(mapload) . = ..() stealthcooldown = 0 diff --git a/code/modules/mob/living/simple_animal/guardian/types/support.dm b/code/modules/mob/living/simple_animal/guardian/types/support.dm index d7ce0d58d3e..d5623c77339 100644 --- a/code/modules/mob/living/simple_animal/guardian/types/support.dm +++ b/code/modules/mob/living/simple_animal/guardian/types/support.dm @@ -17,7 +17,7 @@ var/beacon_cooldown = 0 var/toggle = FALSE -/mob/living/simple_animal/hostile/guardian/healer/Initialize() +/mob/living/simple_animal/hostile/guardian/healer/Initialize(mapload) . = ..() var/datum/atom_hud/medsensor = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED] medsensor.add_hud_to(src) diff --git a/code/modules/mob/living/simple_animal/hostile/bear.dm b/code/modules/mob/living/simple_animal/hostile/bear.dm index 77c55e9d805..5bb3b5226f4 100644 --- a/code/modules/mob/living/simple_animal/hostile/bear.dm +++ b/code/modules/mob/living/simple_animal/hostile/bear.dm @@ -48,7 +48,7 @@ var/armored = FALSE -/mob/living/simple_animal/hostile/bear/Initialize() +/mob/living/simple_animal/hostile/bear/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) add_cell_sample() diff --git a/code/modules/mob/living/simple_animal/hostile/bees.dm b/code/modules/mob/living/simple_animal/hostile/bees.dm index aaa21070346..07c47e7a128 100644 --- a/code/modules/mob/living/simple_animal/hostile/bees.dm +++ b/code/modules/mob/living/simple_animal/hostile/bees.dm @@ -58,7 +58,7 @@ var/static/beehometypecache = typecacheof(/obj/structure/beebox) var/static/hydroponicstypecache = typecacheof(/obj/machinery/hydroponics) -/mob/living/simple_animal/hostile/bee/Initialize() +/mob/living/simple_animal/hostile/bee/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) @@ -247,7 +247,7 @@ /mob/living/simple_animal/hostile/bee/will_escape_storage() return TRUE -/mob/living/simple_animal/hostile/bee/toxin/Initialize() +/mob/living/simple_animal/hostile/bee/toxin/Initialize(mapload) . = ..() var/datum/reagent/R = pick(typesof(/datum/reagent/toxin)) assign_reagent(GLOB.chemical_reagents_list[R]) @@ -328,7 +328,7 @@ . = ..() AddElement(/datum/element/swabable, CELL_LINE_TABLE_QUEEN_BEE, CELL_VIRUS_TABLE_GENERIC_MOB, 1, 5) -/obj/item/queen_bee/bought/Initialize() +/obj/item/queen_bee/bought/Initialize(mapload) . = ..() queen = new(src) @@ -359,7 +359,7 @@ icon_state = "bee_item" var/datum/reagent/beegent -/obj/item/trash/bee/Initialize() +/obj/item/trash/bee/Initialize(mapload) . = ..() AddComponent(/datum/component/edible, list(/datum/reagent/consumable/nutriment/vitamin = 5), null, RAW | MEAT | GROSS, 10, 0, list("bee"), null, 10) AddElement(/datum/element/swabable, CELL_LINE_TABLE_QUEEN_BEE, CELL_VIRUS_TABLE_GENERIC_MOB, 1, 5) diff --git a/code/modules/mob/living/simple_animal/hostile/bosses/boss.dm b/code/modules/mob/living/simple_animal/hostile/bosses/boss.dm index d9f9c65a410..9dfeb167a7f 100644 --- a/code/modules/mob/living/simple_animal/hostile/bosses/boss.dm +++ b/code/modules/mob/living/simple_animal/hostile/bosses/boss.dm @@ -12,7 +12,7 @@ var/point_regen_delay = 1 -/mob/living/simple_animal/hostile/boss/Initialize() +/mob/living/simple_animal/hostile/boss/Initialize(mapload) . = ..() atb = new() diff --git a/code/modules/mob/living/simple_animal/hostile/bosses/paperwizard.dm b/code/modules/mob/living/simple_animal/hostile/bosses/paperwizard.dm index 579cac6e826..0b0c0e02afb 100644 --- a/code/modules/mob/living/simple_animal/hostile/bosses/paperwizard.dm +++ b/code/modules/mob/living/simple_animal/hostile/bosses/paperwizard.dm @@ -177,7 +177,7 @@ duration = 18 randomdir = FALSE -/obj/effect/temp_visual/paperwiz_dying/Initialize() +/obj/effect/temp_visual/paperwiz_dying/Initialize(mapload) . = ..() visible_message(span_boldannounce("The wizard cries out in pain as a gate appears behind him, sucking him in!")) playsound(get_turf(src),'sound/magic/mandswap.ogg', 50, TRUE, TRUE) diff --git a/code/modules/mob/living/simple_animal/hostile/carp.dm b/code/modules/mob/living/simple_animal/hostile/carp.dm index 9445302687c..aa1b00726a9 100644 --- a/code/modules/mob/living/simple_animal/hostile/carp.dm +++ b/code/modules/mob/living/simple_animal/hostile/carp.dm @@ -170,7 +170,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) @@ -241,7 +241,7 @@ /// Colored disk mouth appearance for adding it as a mouth overlay var/mutable_appearance/colored_disk_mouth -/mob/living/simple_animal/hostile/carp/cayenne/Initialize() +/mob/living/simple_animal/hostile/carp/cayenne/Initialize(mapload) . = ..() AddElement(/datum/element/pet_bonus, "bloops happily!") colored_disk_mouth = mutable_appearance(SSgreyscale.GetColoredIconByType(/datum/greyscale_config/carp/disk_mouth, greyscale_colors), "disk_mouth") diff --git a/code/modules/mob/living/simple_animal/hostile/eyeballs.dm b/code/modules/mob/living/simple_animal/hostile/eyeballs.dm index 906c1af069e..23637f2d1cf 100644 --- a/code/modules/mob/living/simple_animal/hostile/eyeballs.dm +++ b/code/modules/mob/living/simple_animal/hostile/eyeballs.dm @@ -34,7 +34,7 @@ lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE sight = SEE_SELF|SEE_MOBS|SEE_OBJS|SEE_TURFS -/mob/living/simple_animal/hostile/eyeball/Initialize() +/mob/living/simple_animal/hostile/eyeball/Initialize(mapload) . = ..() AddElement(/datum/element/simple_flying) ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) diff --git a/code/modules/mob/living/simple_animal/hostile/faithless.dm b/code/modules/mob/living/simple_animal/hostile/faithless.dm index d5ffc96678f..bbfdaa4d5d6 100644 --- a/code/modules/mob/living/simple_animal/hostile/faithless.dm +++ b/code/modules/mob/living/simple_animal/hostile/faithless.dm @@ -35,7 +35,7 @@ footstep_type = FOOTSTEP_MOB_SHOE -/mob/living/simple_animal/hostile/faithless/Initialize() +/mob/living/simple_animal/hostile/faithless/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) diff --git a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm index eafe6e858f6..6fb6bf73f80 100644 --- a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm +++ b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm @@ -63,7 +63,7 @@ /// Short description of what this mob is capable of, for radial menu uses var/menu_description = "Versatile spider variant for frontline combat with high health and damage. Does not inject toxin." -/mob/living/simple_animal/hostile/giant_spider/Initialize() +/mob/living/simple_animal/hostile/giant_spider/Initialize(mapload) . = ..() lay_web = new lay_web.Grant(src) @@ -137,7 +137,7 @@ ///The health HUD applied to the mob. var/health_hud = DATA_HUD_MEDICAL_ADVANCED -/mob/living/simple_animal/hostile/giant_spider/nurse/Initialize() +/mob/living/simple_animal/hostile/giant_spider/nurse/Initialize(mapload) . = ..() var/datum/atom_hud/datahud = GLOB.huds[health_hud] datahud.add_hud_to(src) @@ -282,7 +282,7 @@ ///The ability for the spider to send a message to all currently living spiders. var/datum/action/innate/spider/comm/letmetalkpls -/mob/living/simple_animal/hostile/giant_spider/midwife/Initialize() +/mob/living/simple_animal/hostile/giant_spider/midwife/Initialize(mapload) . = ..() wrap = new AddAbility(wrap) @@ -695,6 +695,6 @@ health = 80 menu_description = "Stronger assassin spider variant with an unmatched speed, high amount of health and very deadly poison, but deals very low amount of damage. It also has ability to ventcrawl. Venom injection of 6u per bite." -/mob/living/simple_animal/hostile/giant_spider/viper/wizard/Initialize() +/mob/living/simple_animal/hostile/giant_spider/viper/wizard/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) diff --git a/code/modules/mob/living/simple_animal/hostile/goose.dm b/code/modules/mob/living/simple_animal/hostile/goose.dm index bdfe5273d6c..f2d6b386f21 100644 --- a/code/modules/mob/living/simple_animal/hostile/goose.dm +++ b/code/modules/mob/living/simple_animal/hostile/goose.dm @@ -38,7 +38,7 @@ var/message_cooldown = 0 var/choking = FALSE -/mob/living/simple_animal/hostile/retaliate/goose/Initialize() +/mob/living/simple_animal/hostile/retaliate/goose/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_MOVABLE_MOVED, .proc/goosement) @@ -91,7 +91,7 @@ var/vomitTimeBonus = 0 var/datum/action/cooldown/vomit/goosevomit -/mob/living/simple_animal/hostile/retaliate/goose/vomit/Initialize() +/mob/living/simple_animal/hostile/retaliate/goose/vomit/Initialize(mapload) . = ..() goosevomit = new goosevomit.Grant(src) diff --git a/code/modules/mob/living/simple_animal/hostile/headcrab.dm b/code/modules/mob/living/simple_animal/hostile/headcrab.dm index 8fe10e988e8..285e239fe8c 100644 --- a/code/modules/mob/living/simple_animal/hostile/headcrab.dm +++ b/code/modules/mob/living/simple_animal/hostile/headcrab.dm @@ -24,7 +24,7 @@ var/datum/mind/origin var/egg_lain = 0 -/mob/living/simple_animal/hostile/headcrab/Initialize() +/mob/living/simple_animal/hostile/headcrab/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) diff --git a/code/modules/mob/living/simple_animal/hostile/hivebot.dm b/code/modules/mob/living/simple_animal/hostile/hivebot.dm index 9b2e4315d53..2158183c669 100644 --- a/code/modules/mob/living/simple_animal/hostile/hivebot.dm +++ b/code/modules/mob/living/simple_animal/hostile/hivebot.dm @@ -38,7 +38,7 @@ footstep_type = FOOTSTEP_MOB_CLAW -/mob/living/simple_animal/hostile/hivebot/Initialize() +/mob/living/simple_animal/hostile/hivebot/Initialize(mapload) . = ..() deathmessage = "[src] blows apart!" @@ -108,7 +108,7 @@ gold_core_spawnable = HOSTILE_SPAWN var/datum/action/innate/hivebot/foamwall/foam -/mob/living/simple_animal/hostile/hivebot/mechanic/Initialize() +/mob/living/simple_animal/hostile/hivebot/mechanic/Initialize(mapload) . = ..() foam = new foam.Grant(src) diff --git a/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm b/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm index 2ab8710894d..52be7fa3133 100644 --- a/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm +++ b/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm @@ -61,7 +61,7 @@ layer = ABOVE_ALL_MOB_LAYER duration = 3 -/obj/effect/temp_visual/leaper_projectile_impact/Initialize() +/obj/effect/temp_visual/leaper_projectile_impact/Initialize(mapload) . = ..() new /obj/effect/decal/cleanable/leaper_sludge(get_turf(src)) @@ -83,7 +83,7 @@ max_integrity = 10 density = FALSE -/obj/structure/leaper_bubble/Initialize() +/obj/structure/leaper_bubble/Initialize(mapload) . = ..() QDEL_IN(src, 100) var/static/list/loc_connections = list( @@ -142,7 +142,7 @@ base_pixel_y = -32 duration = 30 -/mob/living/simple_animal/hostile/jungle/leaper/Initialize() +/mob/living/simple_animal/hostile/jungle/leaper/Initialize(mapload) . = ..() remove_verb(src, /mob/living/verb/pulled) add_cell_sample() diff --git a/code/modules/mob/living/simple_animal/hostile/killertomato.dm b/code/modules/mob/living/simple_animal/hostile/killertomato.dm index 2a7b31b265d..91571a34991 100644 --- a/code/modules/mob/living/simple_animal/hostile/killertomato.dm +++ b/code/modules/mob/living/simple_animal/hostile/killertomato.dm @@ -30,6 +30,6 @@ maxbodytemp = 500 gold_core_spawnable = HOSTILE_SPAWN -/mob/living/simple_animal/hostile/killertomato/Initialize() +/mob/living/simple_animal/hostile/killertomato/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) diff --git a/code/modules/mob/living/simple_animal/hostile/mecha_pilot.dm b/code/modules/mob/living/simple_animal/hostile/mecha_pilot.dm index 40393267888..1fbc7cd6471 100644 --- a/code/modules/mob/living/simple_animal/hostile/mecha_pilot.dm +++ b/code/modules/mob/living/simple_animal/hostile/mecha_pilot.dm @@ -38,7 +38,7 @@ spawn_mecha_type = null search_objects = 2 -/mob/living/simple_animal/hostile/syndicate/mecha_pilot/no_mech/Initialize() +/mob/living/simple_animal/hostile/syndicate/mecha_pilot/no_mech/Initialize(mapload) . = ..() wanted_objects = typecacheof(/obj/vehicle/sealed/mecha/combat, TRUE) @@ -58,7 +58,7 @@ faction = list("nanotrasen") -/mob/living/simple_animal/hostile/syndicate/mecha_pilot/Initialize() +/mob/living/simple_animal/hostile/syndicate/mecha_pilot/Initialize(mapload) . = ..() if(spawn_mecha_type) var/obj/vehicle/sealed/mecha/M = new spawn_mecha_type (get_turf(src)) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm index c09d24b4bcd..e482b49d548 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm @@ -65,7 +65,7 @@ Difficulty: Medium /datum/action/innate/megafauna_attack/transform_weapon) move_force = MOVE_FORCE_NORMAL //Miner beeing able to just move structures like bolted doors and glass looks kinda strange -/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/Initialize() +/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/Initialize(mapload) . = ..() miner_saw = new(src) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm index f3004c8b6de..54693c4e708 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm @@ -541,7 +541,7 @@ Difficulty: Hard deathsound = 'sound/effects/splat.ogg' true_spawn = FALSE -/mob/living/simple_animal/hostile/megafauna/bubblegum/hallucination/Initialize() +/mob/living/simple_animal/hostile/megafauna/bubblegum/hallucination/Initialize(mapload) . = ..() toggle_ai(AI_OFF) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm index e76208d7fd5..acff8017102 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm @@ -57,7 +57,7 @@ /datum/action/innate/megafauna_attack/alternating_cardinals) small_sprite_type = /datum/action/small_sprite/megafauna/colossus -/mob/living/simple_animal/hostile/megafauna/colossus/Initialize() +/mob/living/simple_animal/hostile/megafauna/colossus/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NO_FLOATING_ANIM, ROUNDSTART_TRAIT) //we don't want this guy to float, messes up his animations. @@ -420,7 +420,7 @@ var/list/NewFlora = list() var/florachance = 8 -/obj/machinery/anomalous_crystal/theme_warp/Initialize() +/obj/machinery/anomalous_crystal/theme_warp/Initialize(mapload) . = ..() terrain_theme = pick("lavaland","winter","jungle","ayy lmao") observer_desc = "This crystal changes the area around it to match the theme of \"[terrain_theme]\"." @@ -484,7 +484,7 @@ cooldown_add = 5 SECONDS var/obj/projectile/generated_projectile = /obj/projectile/colossus -/obj/machinery/anomalous_crystal/emitter/Initialize() +/obj/machinery/anomalous_crystal/emitter/Initialize(mapload) . = ..() observer_desc = "This crystal generates \a [initial(generated_projectile.name)] when activated." @@ -588,7 +588,7 @@ AIStatus = AI_OFF stop_automated_movement = TRUE -/mob/living/simple_animal/hostile/lightgeist/Initialize() +/mob/living/simple_animal/hostile/lightgeist/Initialize(mapload) . = ..() AddElement(/datum/element/simple_flying) remove_verb(src, /mob/living/verb/pulled) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/demonic_frost_miner.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/demonic_frost_miner.dm index f01937a0cc3..2d38e3e6e1e 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/demonic_frost_miner.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/demonic_frost_miner.dm @@ -52,7 +52,7 @@ Difficulty: Extremely Hard /// If the demonic frost miner is currently transforming to its enraged state var/enraging = FALSE -/mob/living/simple_animal/hostile/megafauna/demonic_frost_miner/Initialize() +/mob/living/simple_animal/hostile/megafauna/demonic_frost_miner/Initialize(mapload) . = ..() for(var/obj/structure/frost_miner_prism/prism_to_set in GLOB.frost_miner_prisms) prism_to_set.set_prism_light(LIGHT_COLOR_BLUE, 5) @@ -326,7 +326,7 @@ Difficulty: Extremely Hard var/change_turf = /turf/open/floor/plating/ice/icemoon/no_planet_atmos var/duration = 6 SECONDS -/obj/item/clothing/shoes/winterboots/ice_boots/ice_trail/Initialize() +/obj/item/clothing/shoes/winterboots/ice_boots/ice_trail/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_SHOES_STEP_ACTION, .proc/on_step) @@ -363,7 +363,7 @@ Difficulty: Extremely Hard desc = "Cracks rocks at an inhuman speed, as well as being enhanced for combat purposes." toolspeed = 0 -/obj/item/pickaxe/drill/jackhammer/demonic/Initialize() +/obj/item/pickaxe/drill/jackhammer/demonic/Initialize(mapload) . = ..() AddElement(/datum/element/knockback, 4, TRUE, FALSE) AddElement(/datum/element/lifesteal, 5) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm index b64840eb304..1d35c00ed67 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm @@ -542,7 +542,7 @@ duration = 9 pixel_z = 270 -/obj/effect/temp_visual/fireball/Initialize() +/obj/effect/temp_visual/fireball/Initialize(mapload) . = ..() animate(src, pixel_z = 0, time = duration) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm index 6b9a8e5a1a2..fcbfca23244 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm @@ -87,7 +87,7 @@ Difficulty: Hard var/list/kill_phrases = list("Wsyvgi sj irivkc xettih. Vitemvmrk...", "Irivkc wsyvgi jsyrh. Vitemvmrk...", "Jyip jsyrh. Egxmzexmrk vitemv gcgpiw...", "Kix fiex. Liepmrk...") var/list/target_phrases = list("Xevkix psgexih.", "Iriqc jsyrh.", "Eguymvih xevkix.") -/mob/living/simple_animal/hostile/megafauna/hierophant/Initialize() +/mob/living/simple_animal/hostile/megafauna/hierophant/Initialize(mapload) . = ..() spawned_beacon = new(loc) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm index 0146ec4b2d3..58cf9033be4 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm @@ -274,7 +274,7 @@ ///Compared with the targeted mobs. If they have the faction, turret won't shoot. var/faction = list("mining") -/obj/structure/legionturret/Initialize() +/obj/structure/legionturret/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/set_up_shot), initial_firing_time) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/swarmer.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/swarmer.dm index ee78d5a7fb9..681390adad0 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/swarmer.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/swarmer.dm @@ -66,7 +66,7 @@ GLOBAL_LIST_INIT(AISwarmerCapsByType, list(/mob/living/simple_animal/hostile/swa var/static/list/swarmer_caps -/mob/living/simple_animal/hostile/megafauna/swarmer_swarm_beacon/Initialize() +/mob/living/simple_animal/hostile/megafauna/swarmer_swarm_beacon/Initialize(mapload) . = ..() swarmer_caps = GLOB.AISwarmerCapsByType //for admin-edits for(var/ddir in GLOB.cardinals) @@ -110,7 +110,7 @@ GLOBAL_LIST_INIT(AISwarmerCapsByType, list(/mob/living/simple_animal/hostile/swa weather_immunities = list(TRAIT_ASHSTORM_IMMUNE) //wouldn't be fun otherwise AIStatus = AI_ON -/mob/living/simple_animal/hostile/swarmer/ai/Initialize() +/mob/living/simple_animal/hostile/swarmer/ai/Initialize(mapload) . = ..() toggle_light() //so you can see them eating you out of house and home/shooting you/stunlocking you for eternity LAZYINITLIST(GLOB.AISwarmersByType[type]) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/wendigo.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/wendigo.dm index 0ba6398698c..43e0b00d00f 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/wendigo.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/wendigo.dm @@ -90,7 +90,7 @@ Difficulty: Hard chosen_message = "You are now screeching, disorienting targets around you." chosen_attack_num = 3 -/mob/living/simple_animal/hostile/megafauna/wendigo/Initialize() +/mob/living/simple_animal/hostile/megafauna/wendigo/Initialize(mapload) . = ..() starting = get_turf(src) diff --git a/code/modules/mob/living/simple_animal/hostile/mimic.dm b/code/modules/mob/living/simple_animal/hostile/mimic.dm index b0bb5677e17..596e21a6b26 100644 --- a/code/modules/mob/living/simple_animal/hostile/mimic.dm +++ b/code/modules/mob/living/simple_animal/hostile/mimic.dm @@ -296,7 +296,7 @@ GLOBAL_LIST_INIT(protected_objects, list(/obj/structure/table, /obj/structure/ca var/locked = FALSE var/datum/action/innate/mimic/lock/lock -/mob/living/simple_animal/hostile/mimic/xenobio/Initialize() +/mob/living/simple_animal/hostile/mimic/xenobio/Initialize(mapload) . = ..() lock = new lock.Grant(src) diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/basilisk.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/basilisk.dm index 376467dbba9..a48cb32181f 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/basilisk.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/basilisk.dm @@ -130,7 +130,7 @@ search_objects = 1 wanted_objects = list(/obj/item/pen/survival, /obj/item/stack/ore/diamond) -/mob/living/simple_animal/hostile/asteroid/basilisk/watcher/Initialize() +/mob/living/simple_animal/hostile/asteroid/basilisk/watcher/Initialize(mapload) . = ..() AddElement(/datum/element/simple_flying) @@ -148,7 +148,7 @@ qdel(potential_consumption) visible_message(span_notice("[src] examines [potential_consumption] closer, and telekinetically shatters the pen.")) -/mob/living/simple_animal/hostile/asteroid/basilisk/watcher/random/Initialize() +/mob/living/simple_animal/hostile/asteroid/basilisk/watcher/random/Initialize(mapload) . = ..() if(prob(1)) if(prob(75)) diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/herald.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/herald.dm index c876abf081e..6f3cc1e2991 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/herald.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/herald.dm @@ -205,7 +205,7 @@ is_mirror = TRUE var/mob/living/simple_animal/hostile/asteroid/elite/herald/my_master = null -/mob/living/simple_animal/hostile/asteroid/elite/herald/mirror/Initialize() +/mob/living/simple_animal/hostile/asteroid/elite/herald/mirror/Initialize(mapload) . = ..() AddElement(/datum/element/simple_flying) toggle_ai(AI_OFF) diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/legionnaire.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/legionnaire.dm index 90103ef4691..c050407b86f 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/legionnaire.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/elites/legionnaire.dm @@ -279,7 +279,7 @@ light_color = COLOR_SOFT_RED var/mob/living/simple_animal/hostile/asteroid/elite/legionnaire/myowner = null -/obj/structure/legionnaire_bonfire/Initialize() +/obj/structure/legionnaire_bonfire/Initialize(mapload) . = ..() var/static/list/loc_connections = list( COMSIG_ATOM_ENTERED = .proc/on_entered, @@ -306,7 +306,7 @@ duration = 10 color = rgb(0,0,0) -/obj/effect/temp_visual/dragon_swoop/legionnaire/Initialize() +/obj/effect/temp_visual/dragon_swoop/legionnaire/Initialize(mapload) . = ..() transform *= 0.33 diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/goldgrub.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/goldgrub.dm index 07967ce1b57..e109fe5803b 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/goldgrub.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/goldgrub.dm @@ -38,7 +38,7 @@ var/datum/action/innate/goldgrub/burrow/burrow var/is_burrowed = FALSE -/mob/living/simple_animal/hostile/asteroid/goldgrub/Initialize() +/mob/living/simple_animal/hostile/asteroid/goldgrub/Initialize(mapload) . = ..() var/i = rand(1,3) while(i) diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm index 72814c0fb31..ed134f0f631 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm @@ -106,7 +106,7 @@ var/can_saddle = FALSE var/saddled = FALSE -/mob/living/simple_animal/hostile/asteroid/goliath/beast/Initialize() +/mob/living/simple_animal/hostile/asteroid/goliath/beast/Initialize(mapload) . = ..() AddComponent(/datum/component/tameable, food_types = list(/obj/item/food/grown/ash_flora), tame_chance = 10, bonus_tame_chance = 5, after_tame = CALLBACK(src, .proc/tamed)) @@ -129,7 +129,7 @@ /mob/living/simple_animal/hostile/asteroid/goliath/beast/proc/tamed(mob/living/tamer) can_saddle = TRUE -/mob/living/simple_animal/hostile/asteroid/goliath/beast/random/Initialize() +/mob/living/simple_animal/hostile/asteroid/goliath/beast/random/Initialize(mapload) . = ..() if(prob(1)) new /mob/living/simple_animal/hostile/asteroid/goliath/beast/ancient(loc) diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/gutlunch.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/gutlunch.dm index 7fa05c1fc5b..5d572ed965f 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/gutlunch.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/gutlunch.dm @@ -44,7 +44,7 @@ wanted_objects = list(/obj/effect/decal/cleanable/xenoblood/xgibs, /obj/effect/decal/cleanable/blood/gibs/, /obj/item/organ) -/mob/living/simple_animal/hostile/asteroid/gutlunch/Initialize() +/mob/living/simple_animal/hostile/asteroid/gutlunch/Initialize(mapload) . = ..() if(wanted_objects.len) AddComponent(/datum/component/udder, /obj/item/udder/gutlunch, /mob.proc/regenerate_icons, /mob.proc/regenerate_icons) @@ -86,7 +86,7 @@ name = "gubbuck" gender = MALE -/mob/living/simple_animal/hostile/asteroid/gutlunch/gubbuck/Initialize() +/mob/living/simple_animal/hostile/asteroid/gutlunch/gubbuck/Initialize(mapload) . = ..() add_atom_colour(pick("#E39FBB", "#D97D64", "#CF8C4A"), FIXED_COLOUR_PRIORITY) resize = 0.85 @@ -104,7 +104,7 @@ var/growth = 0 //Baby gutlunch -/mob/living/simple_animal/hostile/asteroid/gutlunch/grublunch/Initialize() +/mob/living/simple_animal/hostile/asteroid/gutlunch/grublunch/Initialize(mapload) . = ..() add_atom_colour("#9E9E9E", FIXED_COLOUR_PRIORITY) //Somewhat hidden resize = 0.45 diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/hivelord.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/hivelord.dm index 27bb1223a58..26751961f5b 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/hivelord.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/hivelord.dm @@ -34,7 +34,7 @@ var/brood_type = /mob/living/simple_animal/hostile/asteroid/hivelordbrood var/has_clickbox = TRUE -/mob/living/simple_animal/hostile/asteroid/hivelord/Initialize() +/mob/living/simple_animal/hostile/asteroid/hivelord/Initialize(mapload) . = ..() if(has_clickbox) AddComponent(/datum/component/clickbox, icon_state = "hivelord", max_scale = INFINITY, dead_state = "hivelord_dead") //they writhe so much. @@ -94,7 +94,7 @@ var/clickbox_state = "hivelord" var/clickbox_max_scale = INFINITY -/mob/living/simple_animal/hostile/asteroid/hivelordbrood/Initialize() +/mob/living/simple_animal/hostile/asteroid/hivelordbrood/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/death), 100) AddElement(/datum/element/simple_flying) @@ -131,7 +131,7 @@ var/dwarf_mob = FALSE var/mob/living/carbon/human/stored_mob -/mob/living/simple_animal/hostile/asteroid/hivelord/legion/random/Initialize() +/mob/living/simple_animal/hostile/asteroid/hivelord/legion/random/Initialize(mapload) . = ..() if(prob(5)) new /mob/living/simple_animal/hostile/asteroid/hivelord/legion/dwarf(loc) @@ -280,7 +280,7 @@ lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE -/mob/living/simple_animal/hostile/big_legion/Initialize() +/mob/living/simple_animal/hostile/big_legion/Initialize(mapload) .=..() AddComponent(/datum/component/spawner, list(/mob/living/simple_animal/hostile/asteroid/hivelord/legion), 200, faction, "peels itself off from", 3) @@ -300,7 +300,7 @@ . = ..() H.dna.add_mutation(DWARFISM) -/obj/effect/mob_spawn/human/corpse/damaged/legioninfested/Initialize() +/obj/effect/mob_spawn/human/corpse/damaged/legioninfested/Initialize(mapload) var/type = pickweight(list("Miner" = 66, "Ashwalker" = 10, "Golem" = 10,"Clown" = 10, pick(list("Shadow", "YeOlde","Operative", "Cultist")) = 4)) switch(type) if("Miner") diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/ice demon.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/ice demon.dm index 5bca26e150e..1a3762788cc 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/ice demon.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/ice demon.dm @@ -43,7 +43,7 @@ /// Distance the demon will teleport from the target var/teleport_distance = 3 -/mob/living/simple_animal/hostile/asteroid/ice_demon/Initialize() +/mob/living/simple_animal/hostile/asteroid/ice_demon/Initialize(mapload) . = ..() AddElement(/datum/element/simple_flying) diff --git a/code/modules/mob/living/simple_animal/hostile/mushroom.dm b/code/modules/mob/living/simple_animal/hostile/mushroom.dm index d05391aa93f..31d73874fee 100644 --- a/code/modules/mob/living/simple_animal/hostile/mushroom.dm +++ b/code/modules/mob/living/simple_animal/hostile/mushroom.dm @@ -54,7 +54,7 @@ if(!stat)//Mushrooms slowly regenerate if conscious, for people who want to save them from being eaten adjustBruteLoss(-1 * delta_time) -/mob/living/simple_animal/hostile/mushroom/Initialize()//Makes every shroom a little unique +/mob/living/simple_animal/hostile/mushroom/Initialize(mapload)//Makes every shroom a little unique melee_damage_lower += rand(3, 5) melee_damage_upper += rand(10,20) maxHealth += rand(40,60) diff --git a/code/modules/mob/living/simple_animal/hostile/netherworld.dm b/code/modules/mob/living/simple_animal/hostile/netherworld.dm index 51d52d85fe7..9d26d9440e0 100644 --- a/code/modules/mob/living/simple_animal/hostile/netherworld.dm +++ b/code/modules/mob/living/simple_animal/hostile/netherworld.dm @@ -23,7 +23,7 @@ var/datum/action/innate/creature/teleport/teleport var/is_phased = FALSE -/mob/living/simple_animal/hostile/netherworld/Initialize() +/mob/living/simple_animal/hostile/netherworld/Initialize(mapload) . = ..() if(phaser) teleport = new @@ -105,7 +105,7 @@ deathsound = 'sound/voice/hiss6.ogg' phaser = FALSE -/mob/living/simple_animal/hostile/netherworld/migo/Initialize() +/mob/living/simple_animal/hostile/netherworld/migo/Initialize(mapload) . = ..() migo_sounds = list('sound/items/bubblewrap.ogg', 'sound/items/change_jaws.ogg', 'sound/items/crowbar.ogg', 'sound/items/drink.ogg', 'sound/items/deconstruct.ogg', 'sound/items/carhorn.ogg', 'sound/items/change_drill.ogg', 'sound/items/dodgeball.ogg', 'sound/items/eatfood.ogg', 'sound/items/megaphone.ogg', 'sound/items/screwdriver.ogg', 'sound/items/weeoo1.ogg', 'sound/items/wirecutter.ogg', 'sound/items/welder.ogg', 'sound/items/zip.ogg', 'sound/items/rped.ogg', 'sound/items/ratchet.ogg', 'sound/items/polaroid1.ogg', 'sound/items/pshoom.ogg', 'sound/items/airhorn.ogg', 'sound/items/geiger/high1.ogg', 'sound/items/geiger/high2.ogg', 'sound/voice/beepsky/creep.ogg', 'sound/voice/beepsky/iamthelaw.ogg', 'sound/voice/ed209_20sec.ogg', 'sound/voice/hiss3.ogg', 'sound/voice/hiss6.ogg', 'sound/voice/medbot/patchedup.ogg', 'sound/voice/medbot/feelbetter.ogg', 'sound/voice/human/manlaugh1.ogg', 'sound/voice/human/womanlaugh.ogg', 'sound/weapons/sear.ogg', 'sound/ambience/antag/clockcultalr.ogg', 'sound/ambience/antag/ling_aler.ogg', 'sound/ambience/antag/tatoralert.ogg', 'sound/ambience/antag/monkey.ogg', 'sound/mecha/nominal.ogg', 'sound/mecha/weapdestr.ogg', 'sound/mecha/critdestr.ogg', 'sound/mecha/imag_enh.ogg', 'sound/effects/adminhelp.ogg', 'sound/effects/alert.ogg', 'sound/effects/attackblob.ogg', 'sound/effects/bamf.ogg', 'sound/effects/blobattack.ogg', 'sound/effects/break_stone.ogg', 'sound/effects/bubbles.ogg', 'sound/effects/bubbles2.ogg', 'sound/effects/clang.ogg', 'sound/effects/clockcult_gateway_disrupted.ogg', 'sound/effects/clownstep2.ogg', 'sound/effects/curse1.ogg', 'sound/effects/dimensional_rend.ogg', 'sound/effects/doorcreaky.ogg', 'sound/effects/empulse.ogg', 'sound/effects/explosion_distant.ogg', 'sound/effects/explosionfar.ogg', 'sound/effects/explosion1.ogg', 'sound/effects/grillehit.ogg', 'sound/effects/genetics.ogg', 'sound/effects/heart_beat.ogg', 'sound/runtime/hyperspace/hyperspace_begin.ogg', 'sound/runtime/hyperspace/hyperspace_end.ogg', 'sound/effects/his_grace_awaken.ogg', 'sound/effects/pai_boot.ogg', 'sound/effects/phasein.ogg', 'sound/effects/picaxe1.ogg', 'sound/effects/ratvar_reveal.ogg', 'sound/effects/sparks1.ogg', 'sound/effects/smoke.ogg', 'sound/effects/splat.ogg', 'sound/effects/snap.ogg', 'sound/effects/tendril_destroyed.ogg', 'sound/effects/supermatter.ogg', 'sound/misc/desecration-01.ogg', 'sound/misc/desecration-02.ogg', 'sound/misc/desecration-03.ogg', 'sound/misc/bloblarm.ogg', 'sound/misc/airraid.ogg', 'sound/misc/bang.ogg','sound/misc/highlander.ogg', 'sound/misc/interference.ogg', 'sound/misc/notice1.ogg', 'sound/misc/notice2.ogg', 'sound/misc/sadtrombone.ogg', 'sound/misc/slip.ogg', 'sound/misc/splort.ogg', 'sound/weapons/armbomb.ogg', 'sound/weapons/beam_sniper.ogg', 'sound/weapons/chainsawhit.ogg', 'sound/weapons/emitter.ogg', 'sound/weapons/emitter2.ogg', 'sound/weapons/blade1.ogg', 'sound/weapons/bladeslice.ogg', 'sound/weapons/blastcannon.ogg', 'sound/weapons/blaster.ogg', 'sound/weapons/bulletflyby3.ogg', 'sound/weapons/circsawhit.ogg', 'sound/weapons/cqchit2.ogg', 'sound/weapons/drill.ogg', 'sound/weapons/genhit1.ogg', 'sound/weapons/gun/pistol/shot_suppressed.ogg', 'sound/weapons/gun/pistol/shot.ogg', 'sound/weapons/handcuffs.ogg', 'sound/weapons/homerun.ogg', 'sound/weapons/kenetic_accel.ogg', 'sound/machines/clockcult/steam_whoosh.ogg', 'sound/machines/fryer/deep_fryer_emerge.ogg', 'sound/machines/airlock.ogg', 'sound/machines/airlock_alien_prying.ogg', 'sound/machines/airlockclose.ogg', 'sound/machines/airlockforced.ogg', 'sound/machines/airlockopen.ogg', 'sound/machines/alarm.ogg', 'sound/machines/blender.ogg', 'sound/machines/boltsdown.ogg', 'sound/machines/boltsup.ogg', 'sound/machines/buzz-sigh.ogg', 'sound/machines/buzz-two.ogg', 'sound/machines/chime.ogg', 'sound/machines/cryo_warning.ogg', 'sound/machines/defib_charge.ogg', 'sound/machines/defib_failed.ogg', 'sound/machines/defib_ready.ogg', 'sound/machines/defib_zap.ogg', 'sound/machines/deniedbeep.ogg', 'sound/machines/ding.ogg', 'sound/machines/disposalflush.ogg', 'sound/machines/door_close.ogg', 'sound/machines/door_open.ogg', 'sound/machines/engine_alert1.ogg', 'sound/machines/engine_alert2.ogg', 'sound/machines/hiss.ogg', 'sound/machines/honkbot_evil_laugh.ogg', 'sound/machines/juicer.ogg', 'sound/machines/ping.ogg', 'sound/ambience/signal.ogg', 'sound/machines/synth_no.ogg', 'sound/machines/synth_yes.ogg', 'sound/machines/terminal_alert.ogg', 'sound/machines/triple_beep.ogg', 'sound/machines/twobeep.ogg', 'sound/machines/ventcrawl.ogg', 'sound/machines/warning-buzzer.ogg', 'sound/ai/default/outbreak5.ogg', 'sound/ai/default/outbreak7.ogg', 'sound/ai/default/poweroff.ogg', 'sound/ai/default/radiation.ogg', 'sound/ai/default/shuttlecalled.ogg', 'sound/ai/default/shuttledock.ogg', 'sound/ai/default/shuttlerecalled.ogg', 'sound/ai/default/aimalf.ogg') //hahahaha fuck you code divers @@ -152,7 +152,7 @@ mob_types = list(/mob/living/simple_animal/hostile/netherworld/migo, /mob/living/simple_animal/hostile/netherworld, /mob/living/simple_animal/hostile/netherworld/blankbody) faction = list("nether") -/obj/structure/spawner/nether/Initialize() +/obj/structure/spawner/nether/Initialize(mapload) .=..() START_PROCESSING(SSprocessing, src) diff --git a/code/modules/mob/living/simple_animal/hostile/ooze.dm b/code/modules/mob/living/simple_animal/hostile/ooze.dm index 982e0d4d8d6..c5ceb5486ab 100644 --- a/code/modules/mob/living/simple_animal/hostile/ooze.dm +++ b/code/modules/mob/living/simple_animal/hostile/ooze.dm @@ -34,7 +34,7 @@ ///Bitfield of edible food types var/edible_food_types = MEAT -/mob/living/simple_animal/hostile/ooze/Initialize() +/mob/living/simple_animal/hostile/ooze/Initialize(mapload) . = ..() create_reagents(300) add_cell_sample() @@ -109,7 +109,7 @@ var/datum/action/consume/consume ///Initializes the mobs abilities and gives them to the mob -/mob/living/simple_animal/hostile/ooze/gelatinous/Initialize() +/mob/living/simple_animal/hostile/ooze/gelatinous/Initialize(mapload) . = ..() boost = new boost.Grant(src) @@ -281,7 +281,7 @@ ///The ability to shoot a mending globule, a sticky projectile that heals over time. var/obj/effect/proc_holder/globules/globules -/mob/living/simple_animal/hostile/ooze/grapes/Initialize() +/mob/living/simple_animal/hostile/ooze/grapes/Initialize(mapload) . = ..() globules = new AddAbility(globules) diff --git a/code/modules/mob/living/simple_animal/hostile/pirate.dm b/code/modules/mob/living/simple_animal/hostile/pirate.dm index 750cf4dfab5..508da3efac6 100644 --- a/code/modules/mob/living/simple_animal/hostile/pirate.dm +++ b/code/modules/mob/living/simple_animal/hostile/pirate.dm @@ -55,11 +55,11 @@ minbodytemp = 0 speed = 1 -/mob/living/simple_animal/hostile/pirate/melee/space/Initialize() +/mob/living/simple_animal/hostile/pirate/melee/space/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) -/mob/living/simple_animal/hostile/pirate/melee/Initialize() +/mob/living/simple_animal/hostile/pirate/melee/Initialize(mapload) . = ..() sord = new(src) @@ -67,7 +67,7 @@ QDEL_NULL(sord) return ..() -/mob/living/simple_animal/hostile/pirate/melee/Initialize() +/mob/living/simple_animal/hostile/pirate/melee/Initialize(mapload) . = ..() set_light(2) @@ -94,6 +94,6 @@ minbodytemp = 0 speed = 1 -/mob/living/simple_animal/hostile/pirate/ranged/space/Initialize() +/mob/living/simple_animal/hostile/pirate/ranged/space/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) diff --git a/code/modules/mob/living/simple_animal/hostile/regalrat.dm b/code/modules/mob/living/simple_animal/hostile/regalrat.dm index 9fccb41f153..45b1d6ac4f2 100644 --- a/code/modules/mob/living/simple_animal/hostile/regalrat.dm +++ b/code/modules/mob/living/simple_animal/hostile/regalrat.dm @@ -30,7 +30,7 @@ ///The Spell that the rat uses to recruit/convert more rats. var/datum/action/cooldown/riot -/mob/living/simple_animal/hostile/regalrat/Initialize() +/mob/living/simple_animal/hostile/regalrat/Initialize(mapload) . = ..() domain = new /datum/action/cooldown/domain riot = new /datum/action/cooldown/riot @@ -125,7 +125,7 @@ else to_chat(src, span_warning("You feel fine, no need to eat anything!")) -/mob/living/simple_animal/hostile/regalrat/controlled/Initialize() +/mob/living/simple_animal/hostile/regalrat/controlled/Initialize(mapload) . = ..() INVOKE_ASYNC(src, .proc/get_player) var/kingdom = pick("Plague","Miasma","Maintenance","Trash","Garbage","Rat","Vermin","Cheese") @@ -227,7 +227,7 @@ mob_biotypes = MOB_ORGANIC|MOB_BEAST faction = list("rat") -/mob/living/simple_animal/hostile/rat/Initialize() +/mob/living/simple_animal/hostile/rat/Initialize(mapload) . = ..() SSmobs.cheeserats += src diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/bat.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/bat.dm index 81dc4dbd263..55f6d56df8a 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/bat.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/bat.dm @@ -36,7 +36,7 @@ atmos_requirements = list("min_oxy" = 0, "max_oxy" = 0, "min_plas" = 0, "max_plas" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0) minbodytemp = 0 -/mob/living/simple_animal/hostile/retaliate/bat/Initialize() +/mob/living/simple_animal/hostile/retaliate/bat/Initialize(mapload) . = ..() AddElement(/datum/element/simple_flying) ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) @@ -65,6 +65,6 @@ response_help_simple = "pet" turns_per_move = 10 -/mob/living/simple_animal/hostile/retaliate/bat/sgt_araneus/Initialize() +/mob/living/simple_animal/hostile/retaliate/bat/sgt_araneus/Initialize(mapload) . = ..() AddElement(/datum/element/pet_bonus, "chitters proudly!") diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/clown.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/clown.dm index 31334583505..5009e8c4932 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/clown.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/clown.dm @@ -69,7 +69,7 @@ emote_see = list("bubbles", "oozes") loot = list(/obj/item/clothing/mask/gas/clown_hat, /obj/effect/particle_effect/foam) -/mob/living/simple_animal/hostile/retaliate/clown/lube/Initialize() +/mob/living/simple_animal/hostile/retaliate/clown/lube/Initialize(mapload) . = ..() AddElement(/datum/element/snailcrawl) @@ -131,7 +131,7 @@ obj_damage = 5 loot = list(/obj/item/clothing/suit/hooded/bloated_human, /obj/item/clothing/mask/gas/clown_hat, /obj/effect/gibspawner/human, /obj/item/soap) -/mob/living/simple_animal/hostile/retaliate/clown/fleshclown/Initialize() +/mob/living/simple_animal/hostile/retaliate/clown/fleshclown/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) @@ -316,7 +316,7 @@ ///This ability lets you fire a single random item from your pouch. var/obj/effect/proc_holder/regurgitate/my_regurgitate -/mob/living/simple_animal/hostile/retaliate/clown/mutant/glutton/Initialize() +/mob/living/simple_animal/hostile/retaliate/clown/mutant/glutton/Initialize(mapload) . = ..() my_regurgitate = new AddAbility(my_regurgitate) diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm index bb6c96759b3..4af209c2fc1 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm @@ -30,7 +30,7 @@ gold_core_spawnable = FRIENDLY_SPAWN var/stepped_sound = 'sound/effects/huuu.ogg' -/mob/living/simple_animal/hostile/retaliate/frog/Initialize() +/mob/living/simple_animal/hostile/retaliate/frog/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT) diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/ghost.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/ghost.dm index da78c4d3a55..84ae852cee5 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/ghost.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/ghost.dm @@ -41,7 +41,7 @@ var/mutable_appearance/ghost_facial_hair var/random = TRUE //if you want random names for ghosts or not -/mob/living/simple_animal/hostile/retaliate/ghost/Initialize() +/mob/living/simple_animal/hostile/retaliate/ghost/Initialize(mapload) . = ..() AddElement(/datum/element/simple_flying) give_hair() diff --git a/code/modules/mob/living/simple_animal/hostile/skeleton.dm b/code/modules/mob/living/simple_animal/hostile/skeleton.dm index b358b2925e6..c4ee66f3efa 100644 --- a/code/modules/mob/living/simple_animal/hostile/skeleton.dm +++ b/code/modules/mob/living/simple_animal/hostile/skeleton.dm @@ -118,6 +118,6 @@ attack_vis_effect = null // jackhammer moment loot = list(/obj/effect/decal/remains/plasma, /obj/item/pickaxe/drill/jackhammer) -/mob/living/simple_animal/hostile/skeleton/plasmaminer/Initialize() +/mob/living/simple_animal/hostile/skeleton/plasmaminer/Initialize(mapload) . = ..() set_light(2) diff --git a/code/modules/mob/living/simple_animal/hostile/syndicate.dm b/code/modules/mob/living/simple_animal/hostile/syndicate.dm index 12610e6f06b..b69ef1598f9 100644 --- a/code/modules/mob/living/simple_animal/hostile/syndicate.dm +++ b/code/modules/mob/living/simple_animal/hostile/syndicate.dm @@ -61,7 +61,7 @@ minbodytemp = 0 speed = 1 -/mob/living/simple_animal/hostile/syndicate/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/space/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) set_light(4) @@ -97,7 +97,7 @@ speed = 1 projectile_deflect_chance = 50 -/mob/living/simple_animal/hostile/syndicate/melee/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/melee/space/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) set_light(4) @@ -124,7 +124,7 @@ var/obj/effect/light_emitter/red_energy_sword/sord projectile_deflect_chance = 50 -/mob/living/simple_animal/hostile/syndicate/melee/sword/Initialize() +/mob/living/simple_animal/hostile/syndicate/melee/sword/Initialize(mapload) . = ..() set_light(2) @@ -149,7 +149,7 @@ speed = 1 projectile_deflect_chance = 50 -/mob/living/simple_animal/hostile/syndicate/melee/sword/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/melee/sword/space/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) sord = new(src) @@ -195,7 +195,7 @@ minbodytemp = 0 speed = 1 -/mob/living/simple_animal/hostile/syndicate/ranged/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/ranged/space/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) set_light(4) @@ -228,7 +228,7 @@ minbodytemp = 0 speed = 1 -/mob/living/simple_animal/hostile/syndicate/ranged/smg/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/ranged/smg/space/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) set_light(4) @@ -258,7 +258,7 @@ minbodytemp = 0 speed = 1 -/mob/living/simple_animal/hostile/syndicate/ranged/shotgun/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/ranged/shotgun/space/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) set_light(4) @@ -316,7 +316,7 @@ del_on_death = 1 deathmessage = "is smashed into pieces!" -/mob/living/simple_animal/hostile/viscerator/Initialize() +/mob/living/simple_animal/hostile/viscerator/Initialize(mapload) . = ..() AddElement(/datum/element/simple_flying) AddComponent(/datum/component/swarming) diff --git a/code/modules/mob/living/simple_animal/hostile/tree.dm b/code/modules/mob/living/simple_animal/hostile/tree.dm index 9d31133e2d2..e982b5bfc38 100644 --- a/code/modules/mob/living/simple_animal/hostile/tree.dm +++ b/code/modules/mob/living/simple_animal/hostile/tree.dm @@ -47,7 +47,7 @@ var/is_tree = TRUE -/mob/living/simple_animal/hostile/tree/Initialize() +/mob/living/simple_animal/hostile/tree/Initialize(mapload) . = ..() add_cell_sample() diff --git a/code/modules/mob/living/simple_animal/hostile/vatbeast.dm b/code/modules/mob/living/simple_animal/hostile/vatbeast.dm index a47186dd479..b7a7773bbaa 100644 --- a/code/modules/mob/living/simple_animal/hostile/vatbeast.dm +++ b/code/modules/mob/living/simple_animal/hostile/vatbeast.dm @@ -25,7 +25,7 @@ var/obj/effect/proc_holder/tentacle_slap/tentacle_slap -/mob/living/simple_animal/hostile/vatbeast/Initialize() +/mob/living/simple_animal/hostile/vatbeast/Initialize(mapload) . = ..() tentacle_slap = new(src, src) AddAbility(tentacle_slap) diff --git a/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm b/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm index 417cbeb742a..db9db1a4547 100644 --- a/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm +++ b/code/modules/mob/living/simple_animal/hostile/venus_human_trap.dm @@ -30,7 +30,7 @@ var/list/vines = list() -/obj/structure/alien/resin/flower_bud/Initialize() +/obj/structure/alien/resin/flower_bud/Initialize(mapload) . = ..() countdown = new(src) var/list/anchors = list() diff --git a/code/modules/mob/living/simple_animal/hostile/wizard.dm b/code/modules/mob/living/simple_animal/hostile/wizard.dm index c5280b62ff8..2545f547a64 100644 --- a/code/modules/mob/living/simple_animal/hostile/wizard.dm +++ b/code/modules/mob/living/simple_animal/hostile/wizard.dm @@ -38,7 +38,7 @@ footstep_type = FOOTSTEP_MOB_SHOE -/mob/living/simple_animal/hostile/wizard/Initialize() +/mob/living/simple_animal/hostile/wizard/Initialize(mapload) . = ..() fireball = new /obj/effect/proc_holder/spell/aimed/fireball fireball.clothes_req = 0 diff --git a/code/modules/mob/living/simple_animal/hostile/wumborian_fugu.dm b/code/modules/mob/living/simple_animal/hostile/wumborian_fugu.dm index 06b1f4737bf..ba3983cbdbc 100644 --- a/code/modules/mob/living/simple_animal/hostile/wumborian_fugu.dm +++ b/code/modules/mob/living/simple_animal/hostile/wumborian_fugu.dm @@ -49,7 +49,7 @@ var/datum/action/innate/fugu/expand/E loot = list(/obj/item/fugu_gland{layer = ABOVE_MOB_LAYER}) -/mob/living/simple_animal/hostile/asteroid/fugu/Initialize() +/mob/living/simple_animal/hostile/asteroid/fugu/Initialize(mapload) . = ..() E = new E.Grant(src) diff --git a/code/modules/mob/living/simple_animal/parrot.dm b/code/modules/mob/living/simple_animal/parrot.dm index c7ddeceafdc..8bf99ccb765 100644 --- a/code/modules/mob/living/simple_animal/parrot.dm +++ b/code/modules/mob/living/simple_animal/parrot.dm @@ -108,7 +108,7 @@ var/obj/item/held_item = null -/mob/living/simple_animal/parrot/Initialize() +/mob/living/simple_animal/parrot/Initialize(mapload) . = ..() if(!ears) var/headset = pick(/obj/item/radio/headset/headset_sec, \ @@ -890,7 +890,7 @@ GLOBAL_LIST_INIT(strippable_parrot_items, create_strippable_list(list( var/longest_survival = 0 var/longest_deathstreak = 0 -/mob/living/simple_animal/parrot/poly/Initialize() +/mob/living/simple_animal/parrot/poly/Initialize(mapload) ears = new /obj/item/radio/headset/headset_eng(src) available_channels = list(":e") Read_Memory() @@ -979,7 +979,7 @@ GLOBAL_LIST_INIT(strippable_parrot_items, create_strippable_list(list( incorporeal_move = INCORPOREAL_MOVE_BASIC butcher_results = list(/obj/item/ectoplasm = 1) -/mob/living/simple_animal/parrot/poly/ghost/Initialize() +/mob/living/simple_animal/parrot/poly/ghost/Initialize(mapload) memory_saved = TRUE //At this point nothing is saved . = ..() diff --git a/code/modules/mob/living/simple_animal/shade.dm b/code/modules/mob/living/simple_animal/shade.dm index 90a162799cd..8b9038cb730 100644 --- a/code/modules/mob/living/simple_animal/shade.dm +++ b/code/modules/mob/living/simple_animal/shade.dm @@ -34,7 +34,7 @@ del_on_death = TRUE initial_language_holder = /datum/language_holder/construct -/mob/living/simple_animal/shade/Initialize() +/mob/living/simple_animal/shade/Initialize(mapload) . = ..() AddElement(/datum/element/simple_flying) ADD_TRAIT(src, TRAIT_SPACEWALK, INNATE_TRAIT) diff --git a/code/modules/modular_computers/computers/item/computer.dm b/code/modules/modular_computers/computers/item/computer.dm index c5423f9236f..7c9f59d0506 100644 --- a/code/modules/modular_computers/computers/item/computer.dm +++ b/code/modules/modular_computers/computers/item/computer.dm @@ -52,7 +52,7 @@ var/comp_light_luminosity = 3 //The brightness of that light var/comp_light_color //The color of that light -/obj/item/modular_computer/Initialize() +/obj/item/modular_computer/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) if(!physical) diff --git a/code/modules/modular_computers/computers/item/laptop.dm b/code/modules/modular_computers/computers/item/laptop.dm index ae860c62d25..bedacd9afef 100644 --- a/code/modules/modular_computers/computers/item/laptop.dm +++ b/code/modules/modular_computers/computers/item/laptop.dm @@ -28,7 +28,7 @@ if(screen_on) . += span_notice("Alt-click to close it.") -/obj/item/modular_computer/laptop/Initialize() +/obj/item/modular_computer/laptop/Initialize(mapload) . = ..() if(start_open && !screen_on) diff --git a/code/modules/modular_computers/computers/item/laptop_presets.dm b/code/modules/modular_computers/computers/item/laptop_presets.dm index 6bc2919bea3..2ed2ec78a53 100644 --- a/code/modules/modular_computers/computers/item/laptop_presets.dm +++ b/code/modules/modular_computers/computers/item/laptop_presets.dm @@ -1,4 +1,4 @@ -/obj/item/modular_computer/laptop/preset/Initialize() +/obj/item/modular_computer/laptop/preset/Initialize(mapload) . = ..() install_component(new /obj/item/computer_hardware/processor_unit/small) install_component(new /obj/item/computer_hardware/battery(src, /obj/item/stock_parts/cell/computer)) diff --git a/code/modules/modular_computers/computers/item/tablet.dm b/code/modules/modular_computers/computers/item/tablet.dm index fb5a73f9cde..f69f3bbb0ef 100644 --- a/code/modules/modular_computers/computers/item/tablet.dm +++ b/code/modules/modular_computers/computers/item/tablet.dm @@ -151,6 +151,6 @@ device_theme = "syndicate" -/obj/item/modular_computer/tablet/integrated/syndicate/Initialize() +/obj/item/modular_computer/tablet/integrated/syndicate/Initialize(mapload) . = ..() borgo.lamp_color = COLOR_RED //Syndicate likes it red diff --git a/code/modules/modular_computers/computers/item/tablet_presets.dm b/code/modules/modular_computers/computers/item/tablet_presets.dm index bbcc28ec072..bd7fafed4a9 100644 --- a/code/modules/modular_computers/computers/item/tablet_presets.dm +++ b/code/modules/modular_computers/computers/item/tablet_presets.dm @@ -3,7 +3,7 @@ /obj/item/modular_computer/tablet/preset/cheap desc = "A low-end tablet often seen among low ranked station personnel." -/obj/item/modular_computer/tablet/preset/cheap/Initialize() +/obj/item/modular_computer/tablet/preset/cheap/Initialize(mapload) . = ..() install_component(new /obj/item/computer_hardware/processor_unit/small) install_component(new /obj/item/computer_hardware/battery(src, /obj/item/stock_parts/cell/computer/micro)) @@ -11,7 +11,7 @@ install_component(new /obj/item/computer_hardware/network_card) // Alternative version, an average one, for higher ranked positions mostly -/obj/item/modular_computer/tablet/preset/advanced/Initialize() +/obj/item/modular_computer/tablet/preset/advanced/Initialize(mapload) . = ..() install_component(new /obj/item/computer_hardware/processor_unit/small) install_component(new /obj/item/computer_hardware/battery(src, /obj/item/stock_parts/cell/computer)) @@ -20,7 +20,7 @@ install_component(new /obj/item/computer_hardware/card_slot) install_component(new /obj/item/computer_hardware/printer/mini) -/obj/item/modular_computer/tablet/preset/science/Initialize() +/obj/item/modular_computer/tablet/preset/science/Initialize(mapload) . = ..() var/obj/item/computer_hardware/hard_drive/small/hard_drive = new install_component(new /obj/item/computer_hardware/processor_unit/small) @@ -31,7 +31,7 @@ install_component(new /obj/item/computer_hardware/radio_card) hard_drive.store_file(new /datum/computer_file/program/signaler) -/obj/item/modular_computer/tablet/preset/cargo/Initialize() +/obj/item/modular_computer/tablet/preset/cargo/Initialize(mapload) . = ..() var/obj/item/computer_hardware/hard_drive/small/hard_drive = new install_component(new /obj/item/computer_hardware/processor_unit/small) @@ -52,20 +52,20 @@ /obj/item/modular_computer/tablet/preset/cargo/quartermaster/get_cargochat_username() return "quartermaster" -/obj/item/modular_computer/tablet/preset/advanced/atmos/Initialize() //This will be defunct and will be replaced when NtOS PDAs are done +/obj/item/modular_computer/tablet/preset/advanced/atmos/Initialize(mapload) //This will be defunct and will be replaced when NtOS PDAs are done . = ..() var/obj/item/computer_hardware/hard_drive/small/hard_drive = find_hardware_by_name("solid state drive") install_component(new /obj/item/computer_hardware/sensorpackage) hard_drive.store_file(new /datum/computer_file/program/alarm_monitor) hard_drive.store_file(new /datum/computer_file/program/atmosscan) -/obj/item/modular_computer/tablet/preset/advanced/engineering/Initialize() +/obj/item/modular_computer/tablet/preset/advanced/engineering/Initialize(mapload) . = ..() var/obj/item/computer_hardware/hard_drive/small/hard_drive = find_hardware_by_name("solid state drive") hard_drive.store_file(new /datum/computer_file/program/alarm_monitor) hard_drive.store_file(new /datum/computer_file/program/supermatter_monitor) -/obj/item/modular_computer/tablet/preset/advanced/command/Initialize() +/obj/item/modular_computer/tablet/preset/advanced/command/Initialize(mapload) . = ..() var/obj/item/computer_hardware/hard_drive/small/hard_drive = find_hardware_by_name("solid state drive") install_component(new /obj/item/computer_hardware/sensorpackage) @@ -73,14 +73,14 @@ hard_drive.store_file(new /datum/computer_file/program/budgetorders) hard_drive.store_file(new /datum/computer_file/program/science) -/obj/item/modular_computer/tablet/preset/advanced/command/engineering/Initialize() +/obj/item/modular_computer/tablet/preset/advanced/command/engineering/Initialize(mapload) . = ..() var/obj/item/computer_hardware/hard_drive/small/hard_drive = find_hardware_by_name("solid state drive") hard_drive.store_file(new /datum/computer_file/program/alarm_monitor) hard_drive.store_file(new /datum/computer_file/program/supermatter_monitor) /// Given by the syndicate as part of the contract uplink bundle - loads in the Contractor Uplink. -/obj/item/modular_computer/tablet/syndicate_contract_uplink/preset/uplink/Initialize() +/obj/item/modular_computer/tablet/syndicate_contract_uplink/preset/uplink/Initialize(mapload) . = ..() var/obj/item/computer_hardware/hard_drive/small/syndicate/hard_drive = new var/datum/computer_file/program/contract_uplink/uplink = new @@ -99,7 +99,7 @@ install_component(new /obj/item/computer_hardware/printer/mini) /// Given to Nuke Ops members. -/obj/item/modular_computer/tablet/nukeops/Initialize() +/obj/item/modular_computer/tablet/nukeops/Initialize(mapload) . = ..() install_component(new /obj/item/computer_hardware/processor_unit/small) install_component(new /obj/item/computer_hardware/battery(src, /obj/item/stock_parts/cell/computer)) @@ -107,7 +107,7 @@ install_component(new /obj/item/computer_hardware/network_card) //Borg Built-in tablet -/obj/item/modular_computer/tablet/integrated/Initialize() +/obj/item/modular_computer/tablet/integrated/Initialize(mapload) . = ..() install_component(new /obj/item/computer_hardware/processor_unit/small) install_component(new /obj/item/computer_hardware/hard_drive/small/integrated) diff --git a/code/modules/modular_computers/computers/machinery/console_presets.dm b/code/modules/modular_computers/computers/machinery/console_presets.dm index 9da6b35ff9a..0cb2a653755 100644 --- a/code/modules/modular_computers/computers/machinery/console_presets.dm +++ b/code/modules/modular_computers/computers/machinery/console_presets.dm @@ -5,7 +5,7 @@ var/_has_battery = FALSE var/_has_ai = FALSE -/obj/machinery/modular_computer/console/preset/Initialize() +/obj/machinery/modular_computer/console/preset/Initialize(mapload) . = ..() if(!cpu) return diff --git a/code/modules/modular_computers/computers/machinery/modular_computer.dm b/code/modules/modular_computers/computers/machinery/modular_computer.dm index 1d08d12252a..82e5bc8c390 100644 --- a/code/modules/modular_computers/computers/machinery/modular_computer.dm +++ b/code/modules/modular_computers/computers/machinery/modular_computer.dm @@ -40,7 +40,7 @@ ///CPU that handles most logic while this type only handles power and other specific things. var/obj/item/modular_computer/processor/cpu = null -/obj/machinery/modular_computer/Initialize() +/obj/machinery/modular_computer/Initialize(mapload) . = ..() cpu = new(src) cpu.physical = src diff --git a/code/modules/modular_computers/computers/machinery/modular_console.dm b/code/modules/modular_computers/computers/machinery/modular_console.dm index aa6108fcbde..3cbdc4a923f 100644 --- a/code/modules/modular_computers/computers/machinery/modular_console.dm +++ b/code/modules/modular_computers/computers/machinery/modular_console.dm @@ -19,7 +19,7 @@ ///Used in New() to set network tag according to our area. var/console_department = "" -/obj/machinery/modular_computer/console/buildable/Initialize() +/obj/machinery/modular_computer/console/buildable/Initialize(mapload) . = ..() // User-built consoles start as empty frames. var/obj/item/computer_hardware/hard_drive/hard_drive = cpu.all_components[MC_HDD] @@ -29,7 +29,7 @@ qdel(network_card) qdel(hard_drive) -/obj/machinery/modular_computer/console/Initialize() +/obj/machinery/modular_computer/console/Initialize(mapload) . = ..() var/obj/item/computer_hardware/battery/battery_module = cpu.all_components[MC_CELL] if(battery_module) diff --git a/code/modules/modular_computers/hardware/hard_drive.dm b/code/modules/modular_computers/hardware/hard_drive.dm index 3d80b042587..15959bb8f51 100644 --- a/code/modules/modular_computers/hardware/hard_drive.dm +++ b/code/modules/modular_computers/hardware/hard_drive.dm @@ -120,7 +120,7 @@ QDEL_LIST(stored_files) return ..() -/obj/item/computer_hardware/hard_drive/Initialize() +/obj/item/computer_hardware/hard_drive/Initialize(mapload) . = ..() install_default_programs() diff --git a/code/modules/ninja/energy_katana.dm b/code/modules/ninja/energy_katana.dm index a5925ea6e8f..e7012cf9e3d 100644 --- a/code/modules/ninja/energy_katana.dm +++ b/code/modules/ninja/energy_katana.dm @@ -32,7 +32,7 @@ var/datum/effect_system/spark_spread/spark_system var/datum/action/innate/dash/ninja/jaunt -/obj/item/energy_katana/Initialize() +/obj/item/energy_katana/Initialize(mapload) . = ..() jaunt = new(src) spark_system = new /datum/effect_system/spark_spread() diff --git a/code/modules/ninja/suit/suit.dm b/code/modules/ninja/suit/suit.dm index 9e01a7c3407..74690539e25 100644 --- a/code/modules/ninja/suit/suit.dm +++ b/code/modules/ninja/suit/suit.dm @@ -67,7 +67,7 @@ "The CLOAK-tech device is [stealth?"active":"inactive"].\n"+\ "[a_boost?"An adrenaline boost is available to use.":"There is no adrenaline boost available. Try refilling the suit with 20 units of radium."]" -/obj/item/clothing/suit/space/space_ninja/Initialize() +/obj/item/clothing/suit/space/space_ninja/Initialize(mapload) . = ..() //Spark Init diff --git a/code/modules/paperwork/clipboard.dm b/code/modules/paperwork/clipboard.dm index 92659e46a74..668d92dc567 100644 --- a/code/modules/paperwork/clipboard.dm +++ b/code/modules/paperwork/clipboard.dm @@ -30,7 +30,7 @@ user.visible_message(span_suicide("[user] begins putting [user.p_their()] head into the clip of \the [src]! It looks like [user.p_theyre()] trying to commit suicide!")) return BRUTELOSS //The clipboard's clip is very strong. Industrial duty. Can kill a man easily. -/obj/item/clipboard/Initialize() +/obj/item/clipboard/Initialize(mapload) update_appearance() . = ..() diff --git a/code/modules/paperwork/contract.dm b/code/modules/paperwork/contract.dm index a9f2e52b508..ed354c72772 100644 --- a/code/modules/paperwork/contract.dm +++ b/code/modules/paperwork/contract.dm @@ -7,7 +7,7 @@ item_flags = NOBLUDGEON var/employee_name = "" -/obj/item/paper/employment_contract/Initialize() +/obj/item/paper/employment_contract/Initialize(mapload) . = ..() AddElement(/datum/element/update_icon_blocker) diff --git a/code/modules/paperwork/filingcabinet.dm b/code/modules/paperwork/filingcabinet.dm index 9d06ce00be0..7c18f7d4879 100644 --- a/code/modules/paperwork/filingcabinet.dm +++ b/code/modules/paperwork/filingcabinet.dm @@ -193,7 +193,7 @@ GLOBAL_LIST_EMPTY(employmentCabinets) ///This var is so that its filled on crew interaction to be as accurate (including latejoins) as possible, true until first interact var/virgin = TRUE -/obj/structure/filingcabinet/employment/Initialize() +/obj/structure/filingcabinet/employment/Initialize(mapload) . = ..() GLOB.employmentCabinets += src diff --git a/code/modules/paperwork/folders.dm b/code/modules/paperwork/folders.dm index e39571d8d38..076605a0bf2 100644 --- a/code/modules/paperwork/folders.dm +++ b/code/modules/paperwork/folders.dm @@ -13,7 +13,7 @@ user.visible_message(span_suicide("[user] begins filing an imaginary death warrant! It looks like [user.p_theyre()] trying to commit suicide!")) return OXYLOSS -/obj/item/folder/Initialize() +/obj/item/folder/Initialize(mapload) update_icon() . = ..() diff --git a/code/modules/paperwork/folders_premade.dm b/code/modules/paperwork/folders_premade.dm index 783b2df201e..731b8b9efa0 100644 --- a/code/modules/paperwork/folders_premade.dm +++ b/code/modules/paperwork/folders_premade.dm @@ -22,7 +22,7 @@ name = "folder- 'TOP SECRET'" desc = "A folder stamped \"Top Secret - Property of Nanotrasen Corporation. Unauthorized distribution is punishable by death.\"" -/obj/item/folder/documents/Initialize() +/obj/item/folder/documents/Initialize(mapload) . = ..() new /obj/item/documents/nanotrasen(src) update_appearance() @@ -36,7 +36,7 @@ /obj/item/folder/syndicate/red icon_state = "folder_sred" -/obj/item/folder/syndicate/red/Initialize() +/obj/item/folder/syndicate/red/Initialize(mapload) . = ..() new /obj/item/documents/syndicate/red(src) update_appearance() @@ -44,12 +44,12 @@ /obj/item/folder/syndicate/blue icon_state = "folder_sblue" -/obj/item/folder/syndicate/blue/Initialize() +/obj/item/folder/syndicate/blue/Initialize(mapload) . = ..() new /obj/item/documents/syndicate/blue(src) update_appearance() -/obj/item/folder/syndicate/mining/Initialize() +/obj/item/folder/syndicate/mining/Initialize(mapload) . = ..() new /obj/item/documents/syndicate/mining(src) update_appearance() diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index 3576f2df467..da0096ea5b9 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -101,7 +101,7 @@ contact_poison = null . = ..() -/obj/item/paper/Initialize() +/obj/item/paper/Initialize(mapload) . = ..() pixel_x = base_pixel_x + rand(-9, 9) pixel_y = base_pixel_y + rand(-8, 8) @@ -371,14 +371,14 @@ */ /obj/item/paper/construction -/obj/item/paper/construction/Initialize() +/obj/item/paper/construction/Initialize(mapload) . = ..() color = pick("FF0000", "#33cc33", "#ffb366", "#551A8B", "#ff80d5", "#4d94ff") /** * Natural paper */ -/obj/item/paper/natural/Initialize() +/obj/item/paper/natural/Initialize(mapload) . = ..() color = "#FFF5ED" diff --git a/code/modules/paperwork/paper_cutter.dm b/code/modules/paperwork/paper_cutter.dm index a16dd92c6c3..e2aa89cb059 100644 --- a/code/modules/paperwork/paper_cutter.dm +++ b/code/modules/paperwork/paper_cutter.dm @@ -12,7 +12,7 @@ pass_flags = PASSTABLE -/obj/item/papercutter/Initialize() +/obj/item/papercutter/Initialize(mapload) . = ..() storedcutter = new /obj/item/hatchet/cutterblade(src) update_appearance() @@ -120,7 +120,7 @@ return ..() -/obj/item/paperslip/Initialize() +/obj/item/paperslip/Initialize(mapload) . = ..() pixel_x = base_pixel_x + rand(-5, 5) pixel_y = base_pixel_y + rand(-5, 5) diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm index 58f6a536b6d..6dda9efe329 100644 --- a/code/modules/paperwork/pen.dm +++ b/code/modules/paperwork/pen.dm @@ -113,7 +113,7 @@ ) embedding = list("embed_chance" = 75) -/obj/item/pen/fountain/captain/Initialize() +/obj/item/pen/fountain/captain/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 200, 115) //the pen is mightier than the sword @@ -208,7 +208,7 @@ reagents.trans_to(M, reagents.total_volume, transfered_by = user, methods = INJECT) -/obj/item/pen/sleepy/Initialize() +/obj/item/pen/sleepy/Initialize(mapload) . = ..() create_reagents(45, OPENCONTAINER) reagents.add_reagent(/datum/reagent/toxin/chloralhydrate, 20) @@ -227,7 +227,7 @@ /// Whether or pen is extended var/extended = FALSE -/obj/item/pen/edagger/Initialize() +/obj/item/pen/edagger/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, _speed = 6 SECONDS, _butcher_sound = 'sound/weapons/blade1.ogg') AddComponent(/datum/component/transforming, \ diff --git a/code/modules/paperwork/photocopier.dm b/code/modules/paperwork/photocopier.dm index 1f551c570c2..318e4d37322 100644 --- a/code/modules/paperwork/photocopier.dm +++ b/code/modules/paperwork/photocopier.dm @@ -44,7 +44,7 @@ /// Indicates whether the printer is currently busy copying or not. var/busy = FALSE -/obj/machinery/photocopier/Initialize() +/obj/machinery/photocopier/Initialize(mapload) . = ..() AddComponent(/datum/component/payment, 5, SSeconomy.get_dep_account(ACCOUNT_CIV), PAYMENT_CLINICAL) toner_cartridge = new(src) diff --git a/code/modules/paperwork/ticketmachine.dm b/code/modules/paperwork/ticketmachine.dm index c23ffe39644..3ac27df28c0 100644 --- a/code/modules/paperwork/ticketmachine.dm +++ b/code/modules/paperwork/ticketmachine.dm @@ -60,7 +60,7 @@ tickets.Cut() update_appearance() -/obj/machinery/ticket_machine/Initialize() +/obj/machinery/ticket_machine/Initialize(mapload) . = ..() update_appearance() @@ -85,7 +85,7 @@ req_access = list() id = "ticket_machine_default" -/obj/machinery/button/ticket_machine/Initialize() +/obj/machinery/button/ticket_machine/Initialize(mapload) . = ..() if(device) var/obj/item/assembly/control/ticket_machine/ours = device @@ -108,7 +108,7 @@ desc = "A remote controller for the HoP's ticket machine." var/datum/weakref/linked //To whom are we linked? -/obj/item/assembly/control/ticket_machine/Initialize() +/obj/item/assembly/control/ticket_machine/Initialize(mapload) ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/modules/photography/photos/album.dm b/code/modules/photography/photos/album.dm index 8a8927f8697..3d004f5e8fc 100644 --- a/code/modules/photography/photos/album.dm +++ b/code/modules/photography/photos/album.dm @@ -14,7 +14,7 @@ flags_1 = PREVENT_CONTENTS_EXPLOSION_1 var/persistence_id -/obj/item/storage/photo_album/Initialize() +/obj/item/storage/photo_album/Initialize(mapload) . = ..() var/datum/component/storage/STR = GetComponent(/datum/component/storage) STR.set_holdable(list(/obj/item/photo)) diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index be4c38f07a0..1409b7e6988 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -204,7 +204,7 @@ return rating * maxcharge /* Cell variants*/ -/obj/item/stock_parts/cell/empty/Initialize() +/obj/item/stock_parts/cell/empty/Initialize(mapload) . = ..() charge = 0 update_appearance() @@ -215,7 +215,7 @@ maxcharge = 500 custom_materials = list(/datum/material/glass=40) -/obj/item/stock_parts/cell/crap/empty/Initialize() +/obj/item/stock_parts/cell/crap/empty/Initialize(mapload) . = ..() charge = 0 update_appearance() @@ -237,7 +237,7 @@ maxcharge = 600 //600 max charge / 100 charge per shot = six shots custom_materials = list(/datum/material/glass=40) -/obj/item/stock_parts/cell/secborg/empty/Initialize() +/obj/item/stock_parts/cell/secborg/empty/Initialize(mapload) . = ..() charge = 0 update_appearance() @@ -278,7 +278,7 @@ chargerate = 2250 rating = 2 -/obj/item/stock_parts/cell/high/empty/Initialize() +/obj/item/stock_parts/cell/high/empty/Initialize(mapload) . = ..() charge = 0 update_appearance() @@ -291,7 +291,7 @@ chargerate = 2000 rating = 3 -/obj/item/stock_parts/cell/super/empty/Initialize() +/obj/item/stock_parts/cell/super/empty/Initialize(mapload) . = ..() charge = 0 update_appearance() @@ -304,7 +304,7 @@ chargerate = 3000 rating = 4 -/obj/item/stock_parts/cell/hyper/empty/Initialize() +/obj/item/stock_parts/cell/hyper/empty/Initialize(mapload) . = ..() charge = 0 update_appearance() @@ -318,7 +318,7 @@ chargerate = 4000 rating = 5 -/obj/item/stock_parts/cell/bluespace/empty/Initialize() +/obj/item/stock_parts/cell/bluespace/empty/Initialize(mapload) . = ..() charge = 0 update_appearance() @@ -367,7 +367,7 @@ . = ..() AddElement(/datum/element/empprotection, EMP_PROTECT_SELF) -/obj/item/stock_parts/cell/emproof/empty/Initialize() +/obj/item/stock_parts/cell/emproof/empty/Initialize(mapload) . = ..() charge = 0 update_appearance() @@ -397,7 +397,7 @@ custom_materials = list(/datum/material/glass = 20) w_class = WEIGHT_CLASS_TINY -/obj/item/stock_parts/cell/emergency_light/Initialize() +/obj/item/stock_parts/cell/emergency_light/Initialize(mapload) . = ..() var/area/A = get_area(src) if(!A.lightswitch || !A.light_power) @@ -413,7 +413,7 @@ grind_results = null rating = 5 -/obj/item/stock_parts/cell/crystal_cell/Initialize() +/obj/item/stock_parts/cell/crystal_cell/Initialize(mapload) . = ..() charge = 50000 diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm index 72b506fb2ec..5248b6745f5 100644 --- a/code/modules/power/gravitygenerator.dm +++ b/code/modules/power/gravitygenerator.dm @@ -30,7 +30,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne ///Audio for when the gravgen is on var/datum/looping_sound/gravgen/soundloop -/obj/machinery/gravity_generator/main/Initialize() +/obj/machinery/gravity_generator/main/Initialize(mapload) . = ..() soundloop = new(src, TRUE) @@ -109,7 +109,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne // Generator which spawns with the station. // -/obj/machinery/gravity_generator/main/station/Initialize() +/obj/machinery/gravity_generator/main/station/Initialize(mapload) . = ..() setup_parts() middle.add_overlay("activated") diff --git a/code/modules/power/lighting/light_items.dm b/code/modules/power/lighting/light_items.dm index 06f54547b1d..c9a39ba40fc 100644 --- a/code/modules/power/lighting/light_items.dm +++ b/code/modules/power/lighting/light_items.dm @@ -73,7 +73,7 @@ icon_state = "[base_state]-broken" desc = "A broken [name]." -/obj/item/light/Initialize() +/obj/item/light/Initialize(mapload) . = ..() create_reagents(LIGHT_REAGENT_CAPACITY, INJECTABLE | DRAINABLE) AddComponent(/datum/component/caltrop, min_damage = force) diff --git a/code/modules/power/lighting/light_mapping_helpers.dm b/code/modules/power/lighting/light_mapping_helpers.dm index 69de3b9368b..b9afe85e53e 100644 --- a/code/modules/power/lighting/light_mapping_helpers.dm +++ b/code/modules/power/lighting/light_mapping_helpers.dm @@ -6,7 +6,7 @@ icon_state = "tube-empty" start_with_cell = FALSE -/obj/machinery/light/built/Initialize() +/obj/machinery/light/built/Initialize(mapload) . = ..() status = LIGHT_EMPTY update(0) @@ -65,7 +65,7 @@ icon_state = "bulb-empty" start_with_cell = FALSE -/obj/machinery/light/small/built/Initialize() +/obj/machinery/light/small/built/Initialize(mapload) . = ..() status = LIGHT_EMPTY update(0) diff --git a/code/modules/power/monitor.dm b/code/modules/power/monitor.dm index 738ea6a0a83..81b5ab7b1fb 100644 --- a/code/modules/power/monitor.dm +++ b/code/modules/power/monitor.dm @@ -31,7 +31,7 @@ . = ..() . += span_notice("It's operating system seems quite outdated... It doesn't seem like it'd be compatible with the latest remote NTOS monitoring systems.") -/obj/machinery/computer/monitor/Initialize() +/obj/machinery/computer/monitor/Initialize(mapload) . = ..() search() history["supply"] = list() diff --git a/code/modules/power/port_gen.dm b/code/modules/power/port_gen.dm index ddd83003844..0dbab13c099 100644 --- a/code/modules/power/port_gen.dm +++ b/code/modules/power/port_gen.dm @@ -17,7 +17,7 @@ interaction_flags_atom = INTERACT_ATOM_ATTACK_HAND | INTERACT_ATOM_UI_INTERACT | INTERACT_ATOM_REQUIRES_ANCHORED -/obj/machinery/power/port_gen/Initialize() +/obj/machinery/power/port_gen/Initialize(mapload) . = ..() soundloop = new(src, active) @@ -89,12 +89,12 @@ var/time_per_sheet = 260 var/current_heat = 0 -/obj/machinery/power/port_gen/pacman/Initialize() +/obj/machinery/power/port_gen/pacman/Initialize(mapload) . = ..() if(anchored) connect_to_network() -/obj/machinery/power/port_gen/pacman/Initialize() +/obj/machinery/power/port_gen/pacman/Initialize(mapload) . = ..() var/obj/S = sheet_path diff --git a/code/modules/power/rtg.dm b/code/modules/power/rtg.dm index 020f16528a2..f4b0195bafd 100644 --- a/code/modules/power/rtg.dm +++ b/code/modules/power/rtg.dm @@ -19,7 +19,7 @@ var/irradiate = TRUE // RTGs irradiate surroundings, but only when panel is open. -/obj/machinery/power/rtg/Initialize() +/obj/machinery/power/rtg/Initialize(mapload) . = ..() connect_to_network() diff --git a/code/modules/power/singularity/boh_tear.dm b/code/modules/power/singularity/boh_tear.dm index 0eb5a6bbfbc..651579515d3 100644 --- a/code/modules/power/singularity/boh_tear.dm +++ b/code/modules/power/singularity/boh_tear.dm @@ -22,7 +22,7 @@ resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF | FREEZE_PROOF flags_1 = SUPERMATTER_IGNORES_1 -/obj/boh_tear/Initialize() +/obj/boh_tear/Initialize(mapload) . = ..() QDEL_IN(src, 5 SECONDS) // vanishes after 5 seconds diff --git a/code/modules/power/singularity/collector.dm b/code/modules/power/singularity/collector.dm index 8e9b215c80a..f8ae9c1b943 100644 --- a/code/modules/power/singularity/collector.dm +++ b/code/modules/power/singularity/collector.dm @@ -31,7 +31,7 @@ ///Multiplier for the amount of gas removed per tick var/power_production_drain = 0.001 -/obj/machinery/power/rad_collector/anchored/Initialize() +/obj/machinery/power/rad_collector/anchored/Initialize(mapload) . = ..() set_anchored(TRUE) diff --git a/code/modules/power/singularity/containment_field.dm b/code/modules/power/singularity/containment_field.dm index 8087b01ab61..8d386d449cb 100644 --- a/code/modules/power/singularity/containment_field.dm +++ b/code/modules/power/singularity/containment_field.dm @@ -19,7 +19,7 @@ ///Second of the generators producing the containment field var/obj/machinery/field/generator/field_gen_2 = null -/obj/machinery/field/containment/Initialize() +/obj/machinery/field/containment/Initialize(mapload) . = ..() air_update_turf(TRUE, TRUE) RegisterSignal(src, COMSIG_ATOM_SINGULARITY_TRY_MOVE, .proc/block_singularity) diff --git a/code/modules/power/singularity/emitter.dm b/code/modules/power/singularity/emitter.dm index 48c30688a51..19298843cdd 100644 --- a/code/modules/power/singularity/emitter.dm +++ b/code/modules/power/singularity/emitter.dm @@ -60,7 +60,7 @@ var/last_projectile_params -/obj/machinery/power/emitter/welded/Initialize() +/obj/machinery/power/emitter/welded/Initialize(mapload) welded = TRUE . = ..() @@ -74,7 +74,7 @@ welded = TRUE use_power = NO_POWER_USE -/obj/machinery/power/emitter/Initialize() +/obj/machinery/power/emitter/Initialize(mapload) . = ..() RefreshParts() wires = new /datum/wires/emitter(src) @@ -507,7 +507,7 @@ ///Ticks before being able to shoot var/delay = 0 -/obj/item/turret_control/Initialize() +/obj/item/turret_control/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT) diff --git a/code/modules/power/singularity/field_generator.dm b/code/modules/power/singularity/field_generator.dm index dbb8071142f..cfb9d1ec474 100644 --- a/code/modules/power/singularity/field_generator.dm +++ b/code/modules/power/singularity/field_generator.dm @@ -62,13 +62,13 @@ no power level overlay is currently in the overlays list. . += "+p[power_level]" -/obj/machinery/field/generator/Initialize() +/obj/machinery/field/generator/Initialize(mapload) . = ..() fields = list() connected_gens = list() RegisterSignal(src, COMSIG_ATOM_SINGULARITY_TRY_MOVE, .proc/block_singularity_if_active) -/obj/machinery/field/generator/anchored/Initialize() +/obj/machinery/field/generator/anchored/Initialize(mapload) . = ..() set_anchored(TRUE) diff --git a/code/modules/power/singularity/narsie.dm b/code/modules/power/singularity/narsie.dm index 09895b1ffb0..c560a46294d 100644 --- a/code/modules/power/singularity/narsie.dm +++ b/code/modules/power/singularity/narsie.dm @@ -36,7 +36,7 @@ var/souls = 0 var/resolved = FALSE -/obj/narsie/Initialize() +/obj/narsie/Initialize(mapload) . = ..() SSpoints_of_interest.make_point_of_interest(src) diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index 2318fb9082a..504bb6282f8 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -44,7 +44,7 @@ if(!terminal) . += span_warning("This SMES has no power terminal!") -/obj/machinery/power/smes/Initialize() +/obj/machinery/power/smes/Initialize(mapload) . = ..() dir_loop: for(var/d in GLOB.cardinals) diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm index ce6ffb4d761..73f60256405 100644 --- a/code/modules/power/solar.dm +++ b/code/modules/power/solar.dm @@ -313,7 +313,7 @@ var/obj/machinery/power/tracker/connected_tracker = null var/list/connected_panels = list() -/obj/machinery/power/solar_control/Initialize() +/obj/machinery/power/solar_control/Initialize(mapload) . = ..() azimuth_rate = SSsun.base_rotation RegisterSignal(SSsun, COMSIG_SUN_MOVED, .proc/timed_track) diff --git a/code/modules/power/supermatter/supermatter.dm b/code/modules/power/supermatter/supermatter.dm index 1e980bf1acf..32096a7f139 100644 --- a/code/modules/power/supermatter/supermatter.dm +++ b/code/modules/power/supermatter/supermatter.dm @@ -224,7 +224,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal) -/obj/machinery/power/supermatter_crystal/Initialize() +/obj/machinery/power/supermatter_crystal/Initialize(mapload) . = ..() uid = gl_uid++ SSair.start_processing_machine(src) diff --git a/code/modules/power/terminal.dm b/code/modules/power/terminal.dm index a93ec6728bb..c794e624963 100644 --- a/code/modules/power/terminal.dm +++ b/code/modules/power/terminal.dm @@ -11,7 +11,7 @@ var/obj/machinery/power/master = null -/obj/machinery/power/terminal/Initialize() +/obj/machinery/power/terminal/Initialize(mapload) . = ..() AddElement(/datum/element/undertile, TRAIT_T_RAY_VISIBLE, use_alpha = TRUE) diff --git a/code/modules/power/tesla/coil.dm b/code/modules/power/tesla/coil.dm index 0a3f89fc011..040d0dafefe 100644 --- a/code/modules/power/tesla/coil.dm +++ b/code/modules/power/tesla/coil.dm @@ -18,7 +18,7 @@ var/zap_cooldown = 100 var/last_zap = 0 -/obj/machinery/power/tesla_coil/Initialize() +/obj/machinery/power/tesla_coil/Initialize(mapload) . = ..() wires = new /datum/wires/tesla_coil(src) diff --git a/code/modules/power/turbine.dm b/code/modules/power/turbine.dm index e224986283b..4e756f9a154 100644 --- a/code/modules/power/turbine.dm +++ b/code/modules/power/turbine.dm @@ -70,7 +70,7 @@ // the inlet stage of the gas turbine electricity generator -/obj/machinery/power/compressor/Initialize() +/obj/machinery/power/compressor/Initialize(mapload) . = ..() // The inlet of the compressor is the direction it faces gas_contained = new @@ -168,7 +168,7 @@ #define TURBGENQ 100000 #define TURBGENG 0.5 -/obj/machinery/power/turbine/Initialize() +/obj/machinery/power/turbine/Initialize(mapload) . = ..() // The outlet is pointed at the direction of the turbine component outturf = get_step(src, dir) @@ -296,7 +296,7 @@ var/obj/machinery/power/compressor/compressor var/id = 0 -/obj/machinery/computer/turbine_computer/Initialize() +/obj/machinery/computer/turbine_computer/Initialize(mapload) . = ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/modules/projectiles/ammunition/_ammunition.dm b/code/modules/projectiles/ammunition/_ammunition.dm index a93c48c4c8c..c9b2451448b 100644 --- a/code/modules/projectiles/ammunition/_ammunition.dm +++ b/code/modules/projectiles/ammunition/_ammunition.dm @@ -38,7 +38,7 @@ name = "spent bullet casing" loaded_projectile = null -/obj/item/ammo_casing/Initialize() +/obj/item/ammo_casing/Initialize(mapload) . = ..() if(projectile_type) loaded_projectile = new projectile_type(src) diff --git a/code/modules/projectiles/ammunition/ballistic/shotgun.dm b/code/modules/projectiles/ammunition/ballistic/shotgun.dm index 5e21c533c28..d4203b6ee46 100644 --- a/code/modules/projectiles/ammunition/ballistic/shotgun.dm +++ b/code/modules/projectiles/ammunition/ballistic/shotgun.dm @@ -134,7 +134,7 @@ projectile_type = /obj/projectile/bullet/dart var/reagent_amount = 30 -/obj/item/ammo_casing/shotgun/dart/Initialize() +/obj/item/ammo_casing/shotgun/dart/Initialize(mapload) . = ..() create_reagents(reagent_amount, OPENCONTAINER) @@ -144,7 +144,7 @@ /obj/item/ammo_casing/shotgun/dart/bioterror desc = "A shotgun dart filled with deadly toxins." -/obj/item/ammo_casing/shotgun/dart/bioterror/Initialize() +/obj/item/ammo_casing/shotgun/dart/bioterror/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/consumable/ethanol/neurotoxin, 6) reagents.add_reagent(/datum/reagent/toxin/spore, 6) diff --git a/code/modules/projectiles/boxes_magazines/_box_magazine.dm b/code/modules/projectiles/boxes_magazines/_box_magazine.dm index e2d7c1b0926..7dce9b47d70 100644 --- a/code/modules/projectiles/boxes_magazines/_box_magazine.dm +++ b/code/modules/projectiles/boxes_magazines/_box_magazine.dm @@ -34,7 +34,7 @@ ///cost of the materials in the magazine/box itself var/list/base_cost -/obj/item/ammo_box/Initialize() +/obj/item/ammo_box/Initialize(mapload) . = ..() if(!bullet_cost) base_cost = SSmaterials.FindOrCreateMaterialCombo(custom_materials, 0.1) diff --git a/code/modules/projectiles/boxes_magazines/internal/revolver.dm b/code/modules/projectiles/boxes_magazines/internal/revolver.dm index a91f2eab7eb..7d881a11c4d 100644 --- a/code/modules/projectiles/boxes_magazines/internal/revolver.dm +++ b/code/modules/projectiles/boxes_magazines/internal/revolver.dm @@ -17,6 +17,6 @@ max_ammo = 6 multiload = FALSE -/obj/item/ammo_box/magazine/internal/rus357/Initialize() +/obj/item/ammo_box/magazine/internal/rus357/Initialize(mapload) stored_ammo += new ammo_type(src) . = ..() diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index fcf78580e1e..913889fd0be 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -79,7 +79,7 @@ var/datum/action/toggle_scope_zoom/azoom var/pb_knockback = 0 -/obj/item/gun/Initialize() +/obj/item/gun/Initialize(mapload) . = ..() if(pin) pin = new pin(src) diff --git a/code/modules/projectiles/guns/ballistic.dm b/code/modules/projectiles/guns/ballistic.dm index fd5b969c31d..ba4f1748424 100644 --- a/code/modules/projectiles/guns/ballistic.dm +++ b/code/modules/projectiles/guns/ballistic.dm @@ -116,7 +116,7 @@ ///What is the cap on our misfire probability? Do not set this to 100. var/misfire_probability_cap = 25 -/obj/item/gun/ballistic/Initialize() +/obj/item/gun/ballistic/Initialize(mapload) . = ..() if (!spawnwithmagazine) bolt_locked = TRUE diff --git a/code/modules/projectiles/guns/ballistic/automatic.dm b/code/modules/projectiles/guns/ballistic/automatic.dm index db76fb638d4..e02c2bfddbf 100644 --- a/code/modules/projectiles/guns/ballistic/automatic.dm +++ b/code/modules/projectiles/guns/ballistic/automatic.dm @@ -59,7 +59,7 @@ bolt_type = BOLT_TYPE_LOCKING show_bolt_icon = FALSE -/obj/item/gun/ballistic/automatic/proto/Initialize() +/obj/item/gun/ballistic/automatic/proto/Initialize(mapload) . = ..() AddComponent(/datum/component/automatic_fire, 0.2 SECONDS) @@ -91,7 +91,7 @@ /obj/item/gun/ballistic/automatic/c20r/unrestricted pin = /obj/item/firing_pin -/obj/item/gun/ballistic/automatic/c20r/Initialize() +/obj/item/gun/ballistic/automatic/c20r/Initialize(mapload) . = ..() update_appearance() @@ -113,7 +113,7 @@ mag_display_ammo = TRUE empty_indicator = TRUE -/obj/item/gun/ballistic/automatic/wt550/Initialize() +/obj/item/gun/ballistic/automatic/wt550/Initialize(mapload) . = ..() AddComponent(/datum/component/automatic_fire, 0.3 SECONDS) @@ -161,7 +161,7 @@ empty_indicator = TRUE fire_sound = 'sound/weapons/gun/smg/shot_alt.ogg' -/obj/item/gun/ballistic/automatic/m90/Initialize() +/obj/item/gun/ballistic/automatic/m90/Initialize(mapload) . = ..() underbarrel = new /obj/item/gun/ballistic/revolver/grenadelauncher(src) update_appearance() @@ -169,7 +169,7 @@ /obj/item/gun/ballistic/automatic/m90/unrestricted pin = /obj/item/firing_pin -/obj/item/gun/ballistic/automatic/m90/unrestricted/Initialize() +/obj/item/gun/ballistic/automatic/m90/unrestricted/Initialize(mapload) . = ..() underbarrel = new /obj/item/gun/ballistic/revolver/grenadelauncher/unrestricted(src) update_appearance() @@ -228,7 +228,7 @@ empty_indicator = TRUE show_bolt_icon = FALSE -/obj/item/gun/ballistic/automatic/tommygun/Initialize() +/obj/item/gun/ballistic/automatic/tommygun/Initialize(mapload) . = ..() AddComponent(/datum/component/automatic_fire, 0.1 SECONDS) @@ -274,7 +274,7 @@ /obj/item/gun/ballistic/automatic/l6_saw/unrestricted pin = /obj/item/firing_pin -/obj/item/gun/ballistic/automatic/l6_saw/Initialize() +/obj/item/gun/ballistic/automatic/l6_saw/Initialize(mapload) . = ..() AddElement(/datum/element/update_icon_updates_onmob) AddComponent(/datum/component/automatic_fire, 0.2 SECONDS) diff --git a/code/modules/projectiles/guns/ballistic/launchers.dm b/code/modules/projectiles/guns/ballistic/launchers.dm index c94766c98b9..1efbfeee7e9 100644 --- a/code/modules/projectiles/guns/ballistic/launchers.dm +++ b/code/modules/projectiles/guns/ballistic/launchers.dm @@ -65,7 +65,7 @@ /// Do we shit flames behind us when we fire? var/backblast = TRUE -/obj/item/gun/ballistic/rocketlauncher/Initialize() +/obj/item/gun/ballistic/rocketlauncher/Initialize(mapload) . = ..() if(backblast) AddElement(/datum/element/backblast) diff --git a/code/modules/projectiles/guns/ballistic/shotgun.dm b/code/modules/projectiles/guns/ballistic/shotgun.dm index 7a5714b3a8b..0701cc51cbf 100644 --- a/code/modules/projectiles/guns/ballistic/shotgun.dm +++ b/code/modules/projectiles/guns/ballistic/shotgun.dm @@ -82,7 +82,7 @@ . = ..() . += span_notice("Alt-click to pump it.") -/obj/item/gun/ballistic/shotgun/automatic/dual_tube/Initialize() +/obj/item/gun/ballistic/shotgun/automatic/dual_tube/Initialize(mapload) . = ..() if (!alternate_magazine) alternate_magazine = new mag_type(src) @@ -202,7 +202,7 @@ //our hook gun! var/obj/item/gun/magic/hook/bounty/hook -/obj/item/gun/ballistic/shotgun/hook/Initialize() +/obj/item/gun/ballistic/shotgun/hook/Initialize(mapload) . = ..() hook = new /obj/item/gun/magic/hook/bounty(src) diff --git a/code/modules/projectiles/guns/ballistic/toy.dm b/code/modules/projectiles/guns/ballistic/toy.dm index 9aa48ecbfd5..510f4c1a231 100644 --- a/code/modules/projectiles/guns/ballistic/toy.dm +++ b/code/modules/projectiles/guns/ballistic/toy.dm @@ -28,7 +28,7 @@ /obj/item/gun/ballistic/automatic/pistol/toy/riot mag_type = /obj/item/ammo_box/magazine/toy/pistol/riot -/obj/item/gun/ballistic/automatic/pistol/riot/Initialize() +/obj/item/gun/ballistic/automatic/pistol/riot/Initialize(mapload) magazine = new /obj/item/ammo_box/magazine/toy/pistol/riot(src) return ..() diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm index 7efb255ab92..5e0f7379cfb 100644 --- a/code/modules/projectiles/guns/energy.dm +++ b/code/modules/projectiles/guns/energy.dm @@ -45,7 +45,7 @@ /obj/item/gun/energy/get_cell() return cell -/obj/item/gun/energy/Initialize() +/obj/item/gun/energy/Initialize(mapload) . = ..() if(cell_type) cell = new cell_type(src) diff --git a/code/modules/projectiles/guns/energy/beam_rifle.dm b/code/modules/projectiles/guns/energy/beam_rifle.dm index da8add58698..53bad7dffe3 100644 --- a/code/modules/projectiles/guns/energy/beam_rifle.dm +++ b/code/modules/projectiles/guns/energy/beam_rifle.dm @@ -157,7 +157,7 @@ else slowdown = initial(slowdown) -/obj/item/gun/energy/beam_rifle/Initialize() +/obj/item/gun/energy/beam_rifle/Initialize(mapload) . = ..() fire_delay = delay current_tracers = list() diff --git a/code/modules/projectiles/guns/energy/dueling.dm b/code/modules/projectiles/guns/energy/dueling.dm index f44a31c59db..511c7e0ba3a 100644 --- a/code/modules/projectiles/guns/energy/dueling.dm +++ b/code/modules/projectiles/guns/energy/dueling.dm @@ -142,7 +142,7 @@ var/datum/duel/duel var/mutable_appearance/setting_overlay -/obj/item/gun/energy/dueling/Initialize() +/obj/item/gun/energy/dueling/Initialize(mapload) . = ..() setting_overlay = mutable_appearance(icon,setting_iconstate()) add_overlay(setting_overlay) diff --git a/code/modules/projectiles/guns/energy/energy_gun.dm b/code/modules/projectiles/guns/energy/energy_gun.dm index 82415bbc741..a69baae9e13 100644 --- a/code/modules/projectiles/guns/energy/energy_gun.dm +++ b/code/modules/projectiles/guns/energy/energy_gun.dm @@ -27,7 +27,7 @@ flight_y_offset = 13 single_shot_type_overlay = FALSE -/obj/item/gun/energy/e_gun/mini/Initialize() +/obj/item/gun/energy/e_gun/mini/Initialize(mapload) set_gun_light(new /obj/item/flashlight/seclite(src)) return ..() diff --git a/code/modules/projectiles/guns/energy/kinetic_accelerator.dm b/code/modules/projectiles/guns/energy/kinetic_accelerator.dm index 934f006ca96..aa134817764 100644 --- a/code/modules/projectiles/guns/energy/kinetic_accelerator.dm +++ b/code/modules/projectiles/guns/energy/kinetic_accelerator.dm @@ -84,7 +84,7 @@ holds_charge = TRUE unique_frequency = TRUE -/obj/item/gun/energy/kinetic_accelerator/Initialize() +/obj/item/gun/energy/kinetic_accelerator/Initialize(mapload) . = ..() if(!holds_charge) empty() diff --git a/code/modules/projectiles/guns/energy/laser_gatling.dm b/code/modules/projectiles/guns/energy/laser_gatling.dm index 4dd46a1949d..d60dd9356bb 100644 --- a/code/modules/projectiles/guns/energy/laser_gatling.dm +++ b/code/modules/projectiles/guns/energy/laser_gatling.dm @@ -18,7 +18,7 @@ var/overheat_max = 40 var/heat_diffusion = 0.5 -/obj/item/minigunpack/Initialize() +/obj/item/minigunpack/Initialize(mapload) . = ..() gun = new(src) battery = new(src) @@ -114,7 +114,7 @@ can_charge = FALSE var/obj/item/minigunpack/ammo_pack -/obj/item/gun/energy/minigun/Initialize() +/obj/item/gun/energy/minigun/Initialize(mapload) if(!istype(loc, /obj/item/minigunpack)) //We should spawn inside an ammo pack so let's use that one. return INITIALIZE_HINT_QDEL //No pack, no gun ammo_pack = loc diff --git a/code/modules/projectiles/guns/energy/pulse.dm b/code/modules/projectiles/guns/energy/pulse.dm index 559cf24ea5d..892ca761bad 100644 --- a/code/modules/projectiles/guns/energy/pulse.dm +++ b/code/modules/projectiles/guns/energy/pulse.dm @@ -18,7 +18,7 @@ /obj/item/gun/energy/pulse/prize pin = /obj/item/firing_pin -/obj/item/gun/energy/pulse/prize/Initialize() +/obj/item/gun/energy/pulse/prize/Initialize(mapload) . = ..() SSpoints_of_interest.make_point_of_interest(src) var/turf/T = get_turf(src) diff --git a/code/modules/projectiles/guns/energy/special.dm b/code/modules/projectiles/guns/energy/special.dm index c972632e083..10aba3186c3 100644 --- a/code/modules/projectiles/guns/energy/special.dm +++ b/code/modules/projectiles/guns/energy/special.dm @@ -375,6 +375,6 @@ shaded_charge = TRUE weapon_weight = WEAPON_HEAVY -/obj/item/gun/energy/tesla_cannon/Initialize() +/obj/item/gun/energy/tesla_cannon/Initialize(mapload) . = ..() AddComponent(/datum/component/automatic_fire, 0.1 SECONDS) diff --git a/code/modules/projectiles/guns/magic.dm b/code/modules/projectiles/guns/magic.dm index ebbbc009646..9f8502b4682 100644 --- a/code/modules/projectiles/guns/magic.dm +++ b/code/modules/projectiles/guns/magic.dm @@ -50,7 +50,7 @@ charges--//... drain a charge recharge_newshot() -/obj/item/gun/magic/Initialize() +/obj/item/gun/magic/Initialize(mapload) . = ..() charges = max_charges if(ammo_type) diff --git a/code/modules/projectiles/guns/magic/staff.dm b/code/modules/projectiles/guns/magic/staff.dm index 35593a520e5..20c5f8623fa 100644 --- a/code/modules/projectiles/guns/magic/staff.dm +++ b/code/modules/projectiles/guns/magic/staff.dm @@ -98,7 +98,7 @@ max_charges = 4 school = SCHOOL_EVOCATION -/obj/item/gun/magic/staff/spellblade/Initialize() +/obj/item/gun/magic/staff/spellblade/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 15, 125, 0, hitsound) diff --git a/code/modules/projectiles/guns/magic/wand.dm b/code/modules/projectiles/guns/magic/wand.dm index 0b27b83ff9e..2bd3b800eed 100644 --- a/code/modules/projectiles/guns/magic/wand.dm +++ b/code/modules/projectiles/guns/magic/wand.dm @@ -10,7 +10,7 @@ max_charges = 100 //100, 50, 50, 34 (max charge distribution by 25%ths) var/variable_charges = TRUE -/obj/item/gun/magic/wand/Initialize() +/obj/item/gun/magic/wand/Initialize(mapload) if(prob(75) && variable_charges) //25% chance of listed max charges, 50% chance of 1/2 max charges, 25% chance of 1/3 max charges if(prob(33)) max_charges = CEILING(max_charges / 3, 1) diff --git a/code/modules/projectiles/guns/special/blastcannon.dm b/code/modules/projectiles/guns/special/blastcannon.dm index 70f00a06528..d12d0a3984a 100644 --- a/code/modules/projectiles/guns/special/blastcannon.dm +++ b/code/modules/projectiles/guns/special/blastcannon.dm @@ -45,7 +45,7 @@ var/debug_power = 0 -/obj/item/gun/blastcannon/Initialize() +/obj/item/gun/blastcannon/Initialize(mapload) . = ..() if(!pin) pin = new diff --git a/code/modules/projectiles/guns/special/chem_gun.dm b/code/modules/projectiles/guns/special/chem_gun.dm index ae3e62081c9..cf756f7649b 100644 --- a/code/modules/projectiles/guns/special/chem_gun.dm +++ b/code/modules/projectiles/guns/special/chem_gun.dm @@ -17,7 +17,7 @@ var/max_syringes = 4 var/last_synth = 0 -/obj/item/gun/chem/Initialize() +/obj/item/gun/chem/Initialize(mapload) . = ..() chambered = new /obj/item/ammo_casing/chemgun(src) START_PROCESSING(SSobj, src) diff --git a/code/modules/projectiles/guns/special/medbeam.dm b/code/modules/projectiles/guns/special/medbeam.dm index f8ccb2aafe0..d54cfb3750e 100644 --- a/code/modules/projectiles/guns/special/medbeam.dm +++ b/code/modules/projectiles/guns/special/medbeam.dm @@ -16,7 +16,7 @@ weapon_weight = WEAPON_MEDIUM -/obj/item/gun/medbeam/Initialize() +/obj/item/gun/medbeam/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) @@ -153,6 +153,6 @@ /obj/item/gun/medbeam/mech mounted = TRUE -/obj/item/gun/medbeam/mech/Initialize() +/obj/item/gun/medbeam/mech/Initialize(mapload) . = ..() STOP_PROCESSING(SSobj, src) //Mech mediguns do not process until installed, and are controlled by the holder obj diff --git a/code/modules/projectiles/guns/special/syringe_gun.dm b/code/modules/projectiles/guns/special/syringe_gun.dm index e0b18c8b9c2..42568a3f5c5 100644 --- a/code/modules/projectiles/guns/special/syringe_gun.dm +++ b/code/modules/projectiles/guns/special/syringe_gun.dm @@ -15,7 +15,7 @@ var/max_syringes = 1 ///The number of syringes it can store. var/has_syringe_overlay = TRUE ///If it has an overlay for inserted syringes. If true, the overlay is determined by the number of syringes inserted into it. -/obj/item/gun/syringe/Initialize() +/obj/item/gun/syringe/Initialize(mapload) . = ..() chambered = new /obj/item/ammo_casing/syringegun(src) recharge_newshot() @@ -105,7 +105,7 @@ name = "modified syringe gun" desc = "A syringe gun that has been modified to fit DNA injectors instead of normal syringes." -/obj/item/gun/syringe/dna/Initialize() +/obj/item/gun/syringe/dna/Initialize(mapload) . = ..() chambered = new /obj/item/ammo_casing/dnainjector(src) diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm index e7e72e87ba6..ecec09f50b7 100644 --- a/code/modules/projectiles/projectile.dm +++ b/code/modules/projectiles/projectile.dm @@ -170,7 +170,7 @@ COMSIG_ATOM_ENTERED = .proc/on_entered, ) -/obj/projectile/Initialize() +/obj/projectile/Initialize(mapload) . = ..() decayedRange = range if(embedding) diff --git a/code/modules/projectiles/projectile/beams.dm b/code/modules/projectiles/projectile/beams.dm index e60cc243bd3..80e8f262509 100644 --- a/code/modules/projectiles/projectile/beams.dm +++ b/code/modules/projectiles/projectile/beams.dm @@ -34,7 +34,7 @@ damage = 25 speed = 0.6 // higher power = faster, that's how light works right -/obj/projectile/beam/laser/hellfire/Initialize() +/obj/projectile/beam/laser/hellfire/Initialize(mapload) . = ..() transform *= 2 diff --git a/code/modules/projectiles/projectile/bullets/dart_syringe.dm b/code/modules/projectiles/projectile/bullets/dart_syringe.dm index c5b6c0950ab..b54f1dcdfa4 100644 --- a/code/modules/projectiles/projectile/bullets/dart_syringe.dm +++ b/code/modules/projectiles/projectile/bullets/dart_syringe.dm @@ -6,7 +6,7 @@ shrapnel_type = null var/piercing = FALSE -/obj/projectile/bullet/dart/Initialize() +/obj/projectile/bullet/dart/Initialize(mapload) . = ..() create_reagents(50, NO_REACT) @@ -28,7 +28,7 @@ reagents.handle_reactions() return BULLET_ACT_HIT -/obj/projectile/bullet/dart/metalfoam/Initialize() +/obj/projectile/bullet/dart/metalfoam/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/aluminium, 15) reagents.add_reagent(/datum/reagent/foaming_agent, 5) @@ -38,7 +38,7 @@ name = "syringe" icon_state = "syringeproj" -/obj/projectile/bullet/dart/syringe/Initialize() +/obj/projectile/bullet/dart/syringe/Initialize(mapload) . = ..() // This prevents the Ody from being used as a combat mech spamming RDX/Teslium syringes all over the place. diff --git a/code/modules/projectiles/projectile/bullets/shotgun.dm b/code/modules/projectiles/projectile/bullets/shotgun.dm index 0bc3c162654..dad4fbbce01 100644 --- a/code/modules/projectiles/projectile/bullets/shotgun.dm +++ b/code/modules/projectiles/projectile/bullets/shotgun.dm @@ -57,7 +57,7 @@ var/atom/throw_target = get_edge_target_turf(M, get_dir(src, get_step_away(M, src))) M.safe_throw_at(throw_target, 3, 2, force = MOVE_FORCE_EXTREMELY_STRONG) -/obj/projectile/bullet/shotgun_meteorslug/Initialize() +/obj/projectile/bullet/shotgun_meteorslug/Initialize(mapload) . = ..() SpinAnimation() @@ -110,7 +110,7 @@ wound_bonus = 0 bare_wound_bonus = 7.5 -/obj/projectile/bullet/pellet/shotgun_improvised/Initialize() +/obj/projectile/bullet/pellet/shotgun_improvised/Initialize(mapload) . = ..() range = rand(1, 8) diff --git a/code/modules/projectiles/projectile/bullets/special.dm b/code/modules/projectiles/projectile/bullets/special.dm index a00a9f75cc0..828879e429d 100644 --- a/code/modules/projectiles/projectile/bullets/special.dm +++ b/code/modules/projectiles/projectile/bullets/special.dm @@ -13,7 +13,7 @@ embedding = null shrapnel_type = null -/obj/projectile/bullet/honker/Initialize() +/obj/projectile/bullet/honker/Initialize(mapload) . = ..() SpinAnimation() diff --git a/code/modules/projectiles/projectile/energy/net_snare.dm b/code/modules/projectiles/projectile/energy/net_snare.dm index bddaf0b36ce..6b454e1d5d8 100644 --- a/code/modules/projectiles/projectile/energy/net_snare.dm +++ b/code/modules/projectiles/projectile/energy/net_snare.dm @@ -6,7 +6,7 @@ hitsound = 'sound/weapons/taserhit.ogg' range = 10 -/obj/projectile/energy/net/Initialize() +/obj/projectile/energy/net/Initialize(mapload) . = ..() SpinAnimation() @@ -29,7 +29,7 @@ light_range = 3 anchored = TRUE -/obj/effect/nettingportal/Initialize() +/obj/effect/nettingportal/Initialize(mapload) . = ..() var/obj/item/beacon/teletarget = null for(var/obj/machinery/computer/teleporter/com in GLOB.machines) diff --git a/code/modules/projectiles/projectile/energy/nuclear_particle.dm b/code/modules/projectiles/projectile/energy/nuclear_particle.dm index f567d51846b..acb389b37a4 100644 --- a/code/modules/projectiles/projectile/energy/nuclear_particle.dm +++ b/code/modules/projectiles/projectile/energy/nuclear_particle.dm @@ -17,7 +17,7 @@ "purple" = "#FF00FF" ) -/obj/projectile/energy/nuclear_particle/Initialize() +/obj/projectile/energy/nuclear_particle/Initialize(mapload) . = ..() //Random color time! var/our_color = pick(particle_colors) diff --git a/code/modules/projectiles/projectile/magic.dm b/code/modules/projectiles/projectile/magic.dm index 9836aead654..71ffe97c7f1 100644 --- a/code/modules/projectiles/projectile/magic.dm +++ b/code/modules/projectiles/projectile/magic.dm @@ -246,7 +246,7 @@ var/locker_suck = TRUE var/datum/weakref/locker_ref -/obj/projectile/magic/locker/Initialize() +/obj/projectile/magic/locker/Initialize(mapload) . = ..() var/obj/structure/closet/decay/locker_temp_instance = new(src) locker_ref = WEAKREF(locker_temp_instance) @@ -292,7 +292,7 @@ var/weakened_icon = "decursed" var/auto_destroy = TRUE -/obj/structure/closet/decay/Initialize() +/obj/structure/closet/decay/Initialize(mapload) . = ..() if(auto_destroy) addtimer(CALLBACK(src, .proc/bust_open), 5 MINUTES) diff --git a/code/modules/projectiles/projectile/special/gravity.dm b/code/modules/projectiles/projectile/special/gravity.dm index b3a844af02a..6e16137146b 100644 --- a/code/modules/projectiles/projectile/special/gravity.dm +++ b/code/modules/projectiles/projectile/special/gravity.dm @@ -11,7 +11,7 @@ var/power = 4 var/list/thrown_items = list() -/obj/projectile/gravityrepulse/Initialize() +/obj/projectile/gravityrepulse/Initialize(mapload) . = ..() var/obj/item/ammo_casing/energy/gravity/repulse/C = loc if(istype(C)) //Hard-coded maximum power so servers can't be crashed by trying to throw the entire Z level's items @@ -46,7 +46,7 @@ var/power = 4 var/list/thrown_items = list() -/obj/projectile/gravityattract/Initialize() +/obj/projectile/gravityattract/Initialize(mapload) . = ..() var/obj/item/ammo_casing/energy/gravity/attract/C = loc if(istype(C)) //Hard-coded maximum power so servers can't be crashed by trying to throw the entire Z level's items @@ -80,7 +80,7 @@ var/power = 4 var/list/thrown_items = list() -/obj/projectile/gravitychaos/Initialize() +/obj/projectile/gravitychaos/Initialize(mapload) . = ..() var/obj/item/ammo_casing/energy/gravity/chaos/C = loc if(istype(C)) //Hard-coded maximum power so servers can't be crashed by trying to throw the entire Z level's items diff --git a/code/modules/reagents/chemistry/items.dm b/code/modules/reagents/chemistry/items.dm index bf6f331cd3a..de039a06d80 100644 --- a/code/modules/reagents/chemistry/items.dm +++ b/code/modules/reagents/chemistry/items.dm @@ -158,7 +158,7 @@ ///What the creation reagent is var/reagent_type = /datum/reagent/consumable/ethanol -/obj/item/burner/Initialize() +/obj/item/burner/Initialize(mapload) . = ..() create_reagents(max_volume, TRANSPARENT)//We have our own refillable - since we want to heat and pour if(reagent_type) diff --git a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm index 41c9288c5db..69226ff2b39 100644 --- a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm +++ b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm @@ -87,7 +87,7 @@ var/list/saved_recipes = list() -/obj/machinery/chem_dispenser/Initialize() +/obj/machinery/chem_dispenser/Initialize(mapload) . = ..() dispensable_reagents = sortList(dispensable_reagents, /proc/cmp_reagents_asc) if(emagged_reagents) @@ -437,7 +437,7 @@ return replace_beaker(user) -/obj/machinery/chem_dispenser/drinks/Initialize() +/obj/machinery/chem_dispenser/drinks/Initialize(mapload) . = ..() AddComponent(/datum/component/simple_rotation, ROTATION_ALTCLICK | ROTATION_CLOCKWISE) @@ -519,7 +519,7 @@ flags_1 = NODECONSTRUCT_1 circuit = /obj/item/circuitboard/machine/chem_dispenser/drinks/fullupgrade -/obj/machinery/chem_dispenser/drinks/fullupgrade/Initialize() +/obj/machinery/chem_dispenser/drinks/fullupgrade/Initialize(mapload) . = ..() dispensable_reagents |= emagged_reagents //adds emagged reagents @@ -568,7 +568,7 @@ flags_1 = NODECONSTRUCT_1 circuit = /obj/item/circuitboard/machine/chem_dispenser/drinks/beer/fullupgrade -/obj/machinery/chem_dispenser/drinks/beer/fullupgrade/Initialize() +/obj/machinery/chem_dispenser/drinks/beer/fullupgrade/Initialize(mapload) . = ..() dispensable_reagents |= emagged_reagents //adds emagged reagents @@ -609,7 +609,7 @@ flags_1 = NODECONSTRUCT_1 circuit = /obj/item/circuitboard/machine/chem_dispenser/fullupgrade -/obj/machinery/chem_dispenser/fullupgrade/Initialize() +/obj/machinery/chem_dispenser/fullupgrade/Initialize(mapload) . = ..() dispensable_reagents |= emagged_reagents //adds emagged reagents diff --git a/code/modules/reagents/chemistry/machinery/chem_heater.dm b/code/modules/reagents/chemistry/machinery/chem_heater.dm index a5da593417e..ff363852302 100644 --- a/code/modules/reagents/chemistry/machinery/chem_heater.dm +++ b/code/modules/reagents/chemistry/machinery/chem_heater.dm @@ -31,7 +31,7 @@ ///What state we're at in the tutorial var/tutorial_state = 0 -/obj/machinery/chem_heater/Initialize() +/obj/machinery/chem_heater/Initialize(mapload) . = ..() create_reagents(200, NO_REACT)//Lets save some calculations here //TODO: comsig reaction_start and reaction_end to enable/disable the UI autoupdater - this doesn't work presently as there's a hard divide between instant and processed reactions @@ -474,7 +474,7 @@ To continue set your target temperature to 390K."} name = "Debug Reaction Chamber" desc = "Now with even more buffers!" -/obj/machinery/chem_heater/debug/Initialize() +/obj/machinery/chem_heater/debug/Initialize(mapload) . = ..() reagents.maximum_volume = 2000 reagents.add_reagent(/datum/reagent/reaction_agent/basic_buffer, 1000) @@ -485,7 +485,7 @@ To continue set your target temperature to 390K."} /obj/machinery/chem_heater/withbuffer desc = "This Reaction Chamber comes with a bit of buffer to help get you started." -/obj/machinery/chem_heater/withbuffer/Initialize() +/obj/machinery/chem_heater/withbuffer/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/reaction_agent/basic_buffer, 20) reagents.add_reagent(/datum/reagent/reaction_agent/acidic_buffer, 20) diff --git a/code/modules/reagents/chemistry/machinery/chem_master.dm b/code/modules/reagents/chemistry/machinery/chem_master.dm index 8ca5e1a0b1c..b4785614cd3 100644 --- a/code/modules/reagents/chemistry/machinery/chem_master.dm +++ b/code/modules/reagents/chemistry/machinery/chem_master.dm @@ -38,7 +38,7 @@ /// List of available condibottle styles for UI var/list/condi_styles -/obj/machinery/chem_master/Initialize() +/obj/machinery/chem_master/Initialize(mapload) create_reagents(100) //Calculate the span tags and ids fo all the available pill icons diff --git a/code/modules/reagents/chemistry/machinery/chem_recipe_debug.dm b/code/modules/reagents/chemistry/machinery/chem_recipe_debug.dm index adab89299cd..a29d8731e5a 100644 --- a/code/modules/reagents/chemistry/machinery/chem_recipe_debug.dm +++ b/code/modules/reagents/chemistry/machinery/chem_recipe_debug.dm @@ -52,7 +52,7 @@ var/datum/chemical_reaction/edit_recipe ///Create reagents datum -/obj/machinery/chem_recipe_debug/Initialize() +/obj/machinery/chem_recipe_debug/Initialize(mapload) . = ..() create_reagents(9000)//I want to make sure everything fits end_processing() diff --git a/code/modules/reagents/chemistry/machinery/pandemic.dm b/code/modules/reagents/chemistry/machinery/pandemic.dm index 041ea949b00..e9f3952a98e 100644 --- a/code/modules/reagents/chemistry/machinery/pandemic.dm +++ b/code/modules/reagents/chemistry/machinery/pandemic.dm @@ -18,7 +18,7 @@ var/datum/symptom/selected_symptom var/obj/item/reagent_containers/beaker -/obj/machinery/computer/pandemic/Initialize() +/obj/machinery/computer/pandemic/Initialize(mapload) . = ..() update_appearance() diff --git a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm index 5343e9a74e5..51b31a3a05f 100644 --- a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm +++ b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm @@ -25,7 +25,7 @@ var/static/radial_juice = image(icon = 'icons/hud/radial.dmi', icon_state = "radial_juice") var/static/radial_mix = image(icon = 'icons/hud/radial.dmi', icon_state = "radial_mix") -/obj/machinery/reagentgrinder/Initialize() +/obj/machinery/reagentgrinder/Initialize(mapload) . = ..() holdingitems = list() beaker = new /obj/item/reagent_containers/glass/beaker/large(src) @@ -39,7 +39,7 @@ beaker.desc += " May contain blended dust. Don't breathe this!" ADD_TRAIT(beaker, TRAIT_MAY_CONTAIN_BLENDED_DUST, TRAIT_GENERIC) -/obj/machinery/reagentgrinder/constructed/Initialize() +/obj/machinery/reagentgrinder/constructed/Initialize(mapload) . = ..() holdingitems = list() QDEL_NULL(beaker) diff --git a/code/modules/reagents/chemistry/machinery/smoke_machine.dm b/code/modules/reagents/chemistry/machinery/smoke_machine.dm index 2f1235586d5..953bf2b017f 100644 --- a/code/modules/reagents/chemistry/machinery/smoke_machine.dm +++ b/code/modules/reagents/chemistry/machinery/smoke_machine.dm @@ -31,7 +31,7 @@ opaque = FALSE alpha = 100 -/obj/machinery/smoke_machine/Initialize() +/obj/machinery/smoke_machine/Initialize(mapload) . = ..() create_reagents(REAGENTS_BASE_VOLUME) AddComponent(/datum/component/plumbing/simple_demand) diff --git a/code/modules/reagents/chemistry/recipes/special.dm b/code/modules/reagents/chemistry/recipes/special.dm index 10384c267d1..c6b07021f7a 100644 --- a/code/modules/reagents/chemistry/recipes/special.dm +++ b/code/modules/reagents/chemistry/recipes/special.dm @@ -264,7 +264,7 @@ GLOBAL_LIST_INIT(medicine_reagents, build_medicine_reagents()) return list() . = ..() -/obj/item/paper/secretrecipe/Initialize() +/obj/item/paper/secretrecipe/Initialize(mapload) . = ..() recipe_id = pick(possible_recipes) diff --git a/code/modules/reagents/reagent_containers/blood_pack.dm b/code/modules/reagents/reagent_containers/blood_pack.dm index a8eefb7ec30..1bcf6244ce0 100644 --- a/code/modules/reagents/reagent_containers/blood_pack.dm +++ b/code/modules/reagents/reagent_containers/blood_pack.dm @@ -9,7 +9,7 @@ var/labelled = FALSE fill_icon_thresholds = list(10, 20, 30, 40, 50, 60, 70, 80, 90, 100) -/obj/item/reagent_containers/blood/Initialize() +/obj/item/reagent_containers/blood/Initialize(mapload) . = ..() if(blood_type != null) reagents.add_reagent(unique_blood ? unique_blood : /datum/reagent/blood, 200, list("viruses"=null,"blood_DNA"=null,"blood_type"=blood_type,"resistances"=null,"trace_chem"=null)) @@ -35,7 +35,7 @@ /obj/item/reagent_containers/blood/random icon_state = "random_bloodpack" -/obj/item/reagent_containers/blood/random/Initialize() +/obj/item/reagent_containers/blood/random/Initialize(mapload) icon_state = "bloodpack" blood_type = pick("A+", "A-", "B+", "B-", "O+", "O-", "L") return ..() diff --git a/code/modules/reagents/reagent_containers/borghydro.dm b/code/modules/reagents/reagent_containers/borghydro.dm index de834a32bf8..92efdbe6172 100644 --- a/code/modules/reagents/reagent_containers/borghydro.dm +++ b/code/modules/reagents/reagent_containers/borghydro.dm @@ -35,7 +35,7 @@ Borg Hypospray var/list/reagent_names = list() -/obj/item/reagent_containers/borghypo/Initialize() +/obj/item/reagent_containers/borghypo/Initialize(mapload) . = ..() for(var/R in reagent_ids) diff --git a/code/modules/reagents/reagent_containers/bottle.dm b/code/modules/reagents/reagent_containers/bottle.dm index 4432211b560..6cfe8cea363 100644 --- a/code/modules/reagents/reagent_containers/bottle.dm +++ b/code/modules/reagents/reagent_containers/bottle.dm @@ -11,7 +11,7 @@ volume = 30 fill_icon_thresholds = list(0, 1, 20, 40, 60, 80, 100) -/obj/item/reagent_containers/glass/bottle/Initialize() +/obj/item/reagent_containers/glass/bottle/Initialize(mapload) . = ..() if(!icon_state) icon_state = "bottle" @@ -122,7 +122,7 @@ icon = 'icons/obj/chemical.dmi' var/extra_reagent = null -/obj/item/reagent_containers/glass/bottle/traitor/Initialize() +/obj/item/reagent_containers/glass/bottle/traitor/Initialize(mapload) . = ..() extra_reagent = pick(/datum/reagent/toxin/polonium, /datum/reagent/toxin/histamine, /datum/reagent/toxin/formaldehyde, /datum/reagent/toxin/venom, /datum/reagent/toxin/fentanyl, /datum/reagent/toxin/cyanide) reagents.add_reagent(extra_reagent, 3) @@ -212,7 +212,7 @@ name = "Buffer bottle" desc = "A small bottle of chemical buffer." -/obj/item/reagent_containers/glass/bottle/random_buffer/Initialize() +/obj/item/reagent_containers/glass/bottle/random_buffer/Initialize(mapload) . = ..() if(prob(50)) name = "Acidic buffer bottle" diff --git a/code/modules/reagents/reagent_containers/glass.dm b/code/modules/reagents/reagent_containers/glass.dm index 357ed276df3..cfc0bbd66d6 100755 --- a/code/modules/reagents/reagent_containers/glass.dm +++ b/code/modules/reagents/reagent_containers/glass.dm @@ -130,7 +130,7 @@ custom_materials = list(/datum/material/glass=500) fill_icon_thresholds = list(0, 1, 20, 40, 60, 80, 100) -/obj/item/reagent_containers/glass/beaker/Initialize() +/obj/item/reagent_containers/glass/beaker/Initialize(mapload) . = ..() update_appearance() diff --git a/code/modules/reagents/reagent_containers/pill.dm b/code/modules/reagents/reagent_containers/pill.dm index d0b757a8674..ec8cf43f638 100644 --- a/code/modules/reagents/reagent_containers/pill.dm +++ b/code/modules/reagents/reagent_containers/pill.dm @@ -16,7 +16,7 @@ var/self_delay = 0 //pills are instant, this is because patches inheret their aplication from pills var/dissolvable = TRUE -/obj/item/reagent_containers/pill/Initialize() +/obj/item/reagent_containers/pill/Initialize(mapload) . = ..() if(!icon_state) icon_state = "pill[rand(1,20)]" @@ -263,7 +263,7 @@ var/static/list/descs = list("Your feeling is telling you no, but...","Drugs are expensive, you can't afford not to eat any pills that you find."\ , "Surely, there's no way this could go bad.", "Winners don't do dr- oh what the heck!", "Free pills? At no cost, how could I lose?") -/obj/item/reagent_containers/pill/maintenance/Initialize() +/obj/item/reagent_containers/pill/maintenance/Initialize(mapload) list_reagents = list(get_random_reagent_id() = rand(10,50)) //list_reagents is called before init, because init generates the reagents using list_reagents . = ..() name = pick(names) diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index 6c5b7228d4a..c149f2774a0 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -307,7 +307,7 @@ generate_amount = 1 generate_delay = 40 //deciseconds -/obj/item/reagent_containers/spray/waterflower/cyborg/Initialize() +/obj/item/reagent_containers/spray/waterflower/cyborg/Initialize(mapload) . = ..() START_PROCESSING(SSfastprocess, src) @@ -384,7 +384,7 @@ var/last_generate = 0 var/generate_delay = 10 //deciseconds -/obj/item/reagent_containers/spray/chemsprayer/janitor/Initialize() +/obj/item/reagent_containers/spray/chemsprayer/janitor/Initialize(mapload) . = ..() START_PROCESSING(SSfastprocess, src) @@ -423,7 +423,7 @@ volume = 100 custom_premium_price = PAYCHECK_HARD * 2 -/obj/item/reagent_containers/spray/syndicate/Initialize() +/obj/item/reagent_containers/spray/syndicate/Initialize(mapload) . = ..() icon_state = pick("sprayer_sus_1", "sprayer_sus_2", "sprayer_sus_3", "sprayer_sus_4", "sprayer_sus_5","sprayer_sus_6", "sprayer_sus_7", "sprayer_sus_8") diff --git a/code/modules/reagents/reagent_containers/syringes.dm b/code/modules/reagents/reagent_containers/syringes.dm index f754541433b..b0007c4b5bb 100644 --- a/code/modules/reagents/reagent_containers/syringes.dm +++ b/code/modules/reagents/reagent_containers/syringes.dm @@ -17,7 +17,7 @@ custom_price = PAYCHECK_EASY * 0.5 sharpness = SHARP_POINTY -/obj/item/reagent_containers/syringe/Initialize() +/obj/item/reagent_containers/syringe/Initialize(mapload) . = ..() AddElement(/datum/element/update_icon_updates_onmob) @@ -273,7 +273,7 @@ /obj/item/reagent_containers/syringe/contraband/saturnx list_reagents = list(/datum/reagent/drug/saturnx = 15) - + /obj/item/reagent_containers/syringe/contraband/methamphetamine list_reagents = list(/datum/reagent/drug/methamphetamine = 15) diff --git a/code/modules/reagents/reagent_dispenser.dm b/code/modules/reagents/reagent_dispenser.dm index 651e37d8bc9..71e7408257d 100644 --- a/code/modules/reagents/reagent_dispenser.dm +++ b/code/modules/reagents/reagent_dispenser.dm @@ -44,7 +44,7 @@ else return ..() -/obj/structure/reagent_dispensers/Initialize() +/obj/structure/reagent_dispensers/Initialize(mapload) create_reagents(tank_volume, DRAINABLE | AMOUNT_VISIBLE) if(reagent_id) reagents.add_reagent(reagent_id, tank_volume) @@ -166,7 +166,7 @@ dir = EAST pixel_x = -30 -/obj/structure/reagent_dispensers/peppertank/Initialize() +/obj/structure/reagent_dispensers/peppertank/Initialize(mapload) . = ..() if(prob(1)) desc = "IT'S PEPPER TIME, BITCH!" diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index cc92f5c404c..424eb8eed6a 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -374,7 +374,7 @@ GLOBAL_LIST_EMPTY(conveyors_by_id) desc = "A conveyor control switch. It appears to only go in one direction." oneway = TRUE -/obj/machinery/conveyor_switch/oneway/Initialize() +/obj/machinery/conveyor_switch/oneway/Initialize(mapload) . = ..() if((dir == NORTH) || (dir == WEST)) invert_icon = TRUE @@ -387,7 +387,7 @@ GLOBAL_LIST_EMPTY(conveyors_by_id) w_class = WEIGHT_CLASS_BULKY var/id = "" //inherited by the switch -/obj/item/conveyor_switch_construct/Initialize() +/obj/item/conveyor_switch_construct/Initialize(mapload) . = ..() id = "[rand()]" //this couldn't possibly go wrong diff --git a/code/modules/recycling/disposal/pipe.dm b/code/modules/recycling/disposal/pipe.dm index f9591970a4f..44c5e2de7aa 100644 --- a/code/modules/recycling/disposal/pipe.dm +++ b/code/modules/recycling/disposal/pipe.dm @@ -216,7 +216,7 @@ icon_state = "pipe-t" var/obj/linked // the linked obj/machinery/disposal or obj/disposaloutlet -/obj/structure/disposalpipe/trunk/Initialize() +/obj/structure/disposalpipe/trunk/Initialize(mapload) . = ..() getlinked() diff --git a/code/modules/recycling/disposal/pipe_sorting.dm b/code/modules/recycling/disposal/pipe_sorting.dm index 167ffa28d4c..4efd181b007 100644 --- a/code/modules/recycling/disposal/pipe_sorting.dm +++ b/code/modules/recycling/disposal/pipe_sorting.dm @@ -33,7 +33,7 @@ icon_state = "pipe-j2s" initialize_dirs = DISP_DIR_LEFT | DISP_DIR_FLIP -/obj/structure/disposalpipe/sorting/mail/Initialize() +/obj/structure/disposalpipe/sorting/mail/Initialize(mapload) . = ..() // Generate a list of soring tags. if(sortType) diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm index 9fc89257696..fb3d5ab9983 100644 --- a/code/modules/recycling/sortingmachinery.dm +++ b/code/modules/recycling/sortingmachinery.dm @@ -10,7 +10,7 @@ var/obj/item/paper/note var/obj/item/barcode/sticker -/obj/structure/big_delivery/Initialize() +/obj/structure/big_delivery/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_MOVABLE_DISPOSING, .proc/disposal_handling) @@ -186,7 +186,7 @@ var/obj/item/paper/note var/obj/item/barcode/sticker -/obj/item/small_delivery/Initialize() +/obj/item/small_delivery/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_MOVABLE_DISPOSING, .proc/disposal_handling) diff --git a/code/modules/religion/religion_structures.dm b/code/modules/religion/religion_structures.dm index ef2289de54d..449bdf46951 100644 --- a/code/modules/religion/religion_structures.dm +++ b/code/modules/religion/religion_structures.dm @@ -84,7 +84,7 @@ custom_materials = list(/datum/material/wood = MINERAL_MATERIAL_AMOUNT) item_flags = NO_PIXEL_RANDOM_DROP -/obj/item/ritual_totem/Initialize() +/obj/item/ritual_totem/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, TRUE, TRUE, FALSE, null, 1, FALSE, CALLBACK(src, .proc/block_magic), CALLBACK(src, .proc/expire))//one charge of anti_magic AddComponent(/datum/component/religious_tool, RELIGION_TOOL_INVOKE, FALSE) diff --git a/code/modules/religion/rites.dm b/code/modules/religion/rites.dm index f639bd43a6d..2742bb9ca96 100644 --- a/code/modules/religion/rites.dm +++ b/code/modules/religion/rites.dm @@ -448,7 +448,7 @@ show_written_words = FALSE //info set in here because we need GLOB.deity -/obj/item/paper/holy_writ/Initialize() +/obj/item/paper/holy_writ/Initialize(mapload) add_filter("holy_outline", 9, list("type" = "outline", "color" = "#fdff6c")) name = "[GLOB.deity]'s honorbound rules" info = {"[GLOB.deity]'s honorbound rules: diff --git a/code/modules/religion/sparring/ceremonial_gear.dm b/code/modules/religion/sparring/ceremonial_gear.dm index 7814bc24017..93fa4d2f244 100644 --- a/code/modules/religion/sparring/ceremonial_gear.dm +++ b/code/modules/religion/sparring/ceremonial_gear.dm @@ -26,7 +26,7 @@ armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 100, ACID = 50) resistance_flags = FIRE_PROOF -/obj/item/ceremonial_blade/Initialize() +/obj/item/ceremonial_blade/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 40, 105) RegisterSignal(src, COMSIG_ITEM_SHARPEN_ACT, .proc/block_sharpening) diff --git a/code/modules/religion/sparring/sparring_contract.dm b/code/modules/religion/sparring/sparring_contract.dm index 51a5fe76780..9302126b37d 100644 --- a/code/modules/religion/sparring/sparring_contract.dm +++ b/code/modules/religion/sparring/sparring_contract.dm @@ -16,7 +16,7 @@ ///who has signed this contract. fills itself with WEAKREFS, to prevent hanging references var/list/datum/weakref/signed_by = list(null, null) -/obj/item/sparring_contract/Initialize() +/obj/item/sparring_contract/Initialize(mapload) . = ..() name = "[GLOB.deity]'s sparring contract" diff --git a/code/modules/research/anomaly/explosive_compressor.dm b/code/modules/research/anomaly/explosive_compressor.dm index 4591c356bd6..f7c81c1630b 100644 --- a/code/modules/research/anomaly/explosive_compressor.dm +++ b/code/modules/research/anomaly/explosive_compressor.dm @@ -30,7 +30,7 @@ /// The last time we did say_requirements(), because someone will inevitably click spam this. var/last_requirements_say = 0 -/obj/machinery/research/explosive_compressor/Initialize() +/obj/machinery/research/explosive_compressor/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_ATOM_INTERNAL_EXPLOSION, .proc/check_test) diff --git a/code/modules/research/designs.dm b/code/modules/research/designs.dm index 175915c0d17..f778951af8d 100644 --- a/code/modules/research/designs.dm +++ b/code/modules/research/designs.dm @@ -98,7 +98,7 @@ other types of metals and chemistry for reagents). var/list/blueprints = list() var/max_blueprints = 1 -/obj/item/disk/design_disk/Initialize() +/obj/item/disk/design_disk/Initialize(mapload) . = ..() pixel_x = base_pixel_x + rand(-5, 5) pixel_y = base_pixel_y + rand(-5, 5) diff --git a/code/modules/research/designs/limbgrower_designs.dm b/code/modules/research/designs/limbgrower_designs.dm index 46eb59501a6..8508269bfdf 100644 --- a/code/modules/research/designs/limbgrower_designs.dm +++ b/code/modules/research/designs/limbgrower_designs.dm @@ -230,7 +230,7 @@ /// List of all limb designs this disk contains. var/list/limb_designs = list() -/obj/item/disk/design_disk/limbs/Initialize() +/obj/item/disk/design_disk/limbs/Initialize(mapload) . = ..() max_blueprints = limb_designs.len for(var/design in limb_designs) diff --git a/code/modules/research/experimentor.dm b/code/modules/research/experimentor.dm index 507afd762be..23336d379df 100644 --- a/code/modules/research/experimentor.dm +++ b/code/modules/research/experimentor.dm @@ -69,7 +69,7 @@ if(initial(tempCheck.icon_state) != null) //check it's an actual usable item, in a hacky way valid_items["[I]"] += rand(1,4) -/obj/machinery/rnd/experimentor/Initialize() +/obj/machinery/rnd/experimentor/Initialize(mapload) . = ..() trackedIan = locate(/mob/living/simple_animal/pet/dog/corgi/ian) in GLOB.mob_living_list @@ -564,7 +564,7 @@ var/reset_timer = 60 COOLDOWN_DECLARE(cooldown) -/obj/item/relic/Initialize() +/obj/item/relic/Initialize(mapload) . = ..() icon_state = pick("shock_kit","armor-igniter-analyzer","infra-igniter0","infra-igniter1","radio-multitool","prox-radio1","radio-radio","timer-multitool0","radio-igniter-tank") realName = "[pick("broken","twisted","spun","improved","silly","regular","badly made")] [pick("device","object","toy","illegal tech","weapon")]" diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index c9ec7f865fd..973e5937fb8 100644 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -45,7 +45,7 @@ Nothing else in the console has ID requirements. return reagent.name return ID -/obj/machinery/computer/rdconsole/Initialize() +/obj/machinery/computer/rdconsole/Initialize(mapload) . = ..() stored_research = SSresearch.science_tech stored_research.consoles_accessing[src] = TRUE diff --git a/code/modules/research/rdmachines.dm b/code/modules/research/rdmachines.dm index adf1eb00dad..bbbab1e7582 100644 --- a/code/modules/research/rdmachines.dm +++ b/code/modules/research/rdmachines.dm @@ -18,7 +18,7 @@ /obj/machinery/rnd/proc/reset_busy() busy = FALSE -/obj/machinery/rnd/Initialize() +/obj/machinery/rnd/Initialize(mapload) . = ..() stored_research = SSresearch.science_tech wires = new /datum/wires/rnd(src) diff --git a/code/modules/research/research_disk.dm b/code/modules/research/research_disk.dm index 3b1e3e928e2..efa0fc3cfaa 100644 --- a/code/modules/research/research_disk.dm +++ b/code/modules/research/research_disk.dm @@ -6,7 +6,7 @@ custom_materials = list(/datum/material/iron=300, /datum/material/glass=100) var/datum/techweb/stored_research -/obj/item/disk/tech_disk/Initialize() +/obj/item/disk/tech_disk/Initialize(mapload) . = ..() pixel_x = base_pixel_x + rand(-5, 5) pixel_y = base_pixel_y + rand(-5, 5) @@ -17,7 +17,7 @@ desc = "A debug item for research" custom_materials = null -/obj/item/disk/tech_disk/debug/Initialize() +/obj/item/disk/tech_disk/debug/Initialize(mapload) . = ..() stored_research = new /datum/techweb/admin @@ -27,7 +27,7 @@ icon_state = "rndmajordisk" custom_materials = list(/datum/material/iron=300, /datum/material/glass=100) -/obj/item/disk/tech_disk/major/Initialize() +/obj/item/disk/tech_disk/major/Initialize(mapload) . = ..() stored_research = new /datum/techweb/bepis @@ -37,6 +37,6 @@ icon_state = "rndmajordisk" custom_materials = list(/datum/material/iron=300, /datum/material/glass=100) -/obj/item/disk/tech_disk/spaceloot/Initialize() +/obj/item/disk/tech_disk/spaceloot/Initialize(mapload) . = ..() stored_research = new /datum/techweb/bepis(remove_tech = FALSE) diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm index 9dad69f5b70..988317ca23f 100644 --- a/code/modules/research/server.dm +++ b/code/modules/research/server.dm @@ -19,7 +19,7 @@ var/temp_penalty_coefficient = 0.5 //1 = -1 points per degree above high tolerance. 0.5 = -0.5 points per degree above high tolerance. req_access = list(ACCESS_RD) //ONLY THE R&D CAN CHANGE SERVER SETTINGS. -/obj/machinery/rnd/server/Initialize() +/obj/machinery/rnd/server/Initialize(mapload) . = ..() name += " [num2hex(rand(1,65535), -1)]" //gives us a random four-digit hex number as part of the name. Y'know, for fluff. SSresearch.servers |= src diff --git a/code/modules/research/stock_parts.dm b/code/modules/research/stock_parts.dm index 4f6248c49cd..283b45a1289 100644 --- a/code/modules/research/stock_parts.dm +++ b/code/modules/research/stock_parts.dm @@ -51,7 +51,7 @@ If you create T5+ please take a pass at mech_fabricator.dm. The parts being good alt_sound = 'sound/items/pshoom_2.ogg' component_type = /datum/component/storage/concrete/bluespace/rped -/obj/item/storage/part_replacer/bluespace/Initialize() +/obj/item/storage/part_replacer/bluespace/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_ATOM_ENTERED, .proc/on_part_entered) @@ -144,7 +144,7 @@ If you create T5+ please take a pass at mech_fabricator.dm. The parts being good w_class = WEIGHT_CLASS_SMALL var/rating = 1 -/obj/item/stock_parts/Initialize() +/obj/item/stock_parts/Initialize(mapload) . = ..() pixel_x = base_pixel_x + rand(-5, 5) pixel_y = base_pixel_y + rand(-5, 5) diff --git a/code/modules/research/xenobiology/crossbreeding/__corecross.dm b/code/modules/research/xenobiology/crossbreeding/__corecross.dm index 0bd5087eea7..15b61b0a44a 100644 --- a/code/modules/research/xenobiology/crossbreeding/__corecross.dm +++ b/code/modules/research/xenobiology/crossbreeding/__corecross.dm @@ -43,7 +43,7 @@ To add a crossbreed: if(effect_desc) . += span_notice("[effect_desc]") -/obj/item/slimecross/Initialize() +/obj/item/slimecross/Initialize(mapload) . = ..() name = effect + " " + colour + " extract" var/itemcolor = "#FFFFFF" @@ -98,7 +98,7 @@ To add a crossbreed: var/del_on_empty = TRUE var/list/list_reagents -/obj/item/slimecrossbeaker/Initialize() +/obj/item/slimecrossbeaker/Initialize(mapload) . = ..() create_reagents(50, INJECTABLE | DRAWABLE) if(list_reagents) @@ -138,7 +138,7 @@ To add a crossbreed: var/ignore_flags = FALSE var/self_use_only = FALSE -/obj/item/slimecrossbeaker/autoinjector/Initialize() +/obj/item/slimecrossbeaker/autoinjector/Initialize(mapload) . = ..() reagents.flags = DRAWABLE // Cannot be refilled, since it's basically an autoinjector! @@ -182,7 +182,7 @@ To add a crossbreed: color = "#DDAAAA" list_reagents = list(/datum/reagent/pax/peaceborg = 10, /datum/reagent/drug/space_drugs = 15) //Peace, dudes -/obj/item/slimecrossbeaker/autoinjector/peaceandlove/Initialize() +/obj/item/slimecrossbeaker/autoinjector/peaceandlove/Initialize(mapload) . = ..() reagents.flags = NONE // It won't be *that* easy to get your hands on pax. diff --git a/code/modules/research/xenobiology/crossbreeding/_misc.dm b/code/modules/research/xenobiology/crossbreeding/_misc.dm index de6ccdb9383..7f33253fa13 100644 --- a/code/modules/research/xenobiology/crossbreeding/_misc.dm +++ b/code/modules/research/xenobiology/crossbreeding/_misc.dm @@ -152,7 +152,7 @@ Slimecrossing Items max_integrity = 100 armor = list(MELEE = 30, BULLET = 50, LASER = -50, ENERGY = -50, BOMB = 0, BIO = 100, RAD = 100, FIRE = -80, ACID = 30) -/obj/structure/ice_stasis/Initialize() +/obj/structure/ice_stasis/Initialize(mapload) . = ..() playsound(src, 'sound/magic/ethereal_exit.ogg', 50, TRUE) diff --git a/code/modules/research/xenobiology/crossbreeding/_weapons.dm b/code/modules/research/xenobiology/crossbreeding/_weapons.dm index abf2d81d3da..73683bc54b4 100644 --- a/code/modules/research/xenobiology/crossbreeding/_weapons.dm +++ b/code/modules/research/xenobiology/crossbreeding/_weapons.dm @@ -93,7 +93,7 @@ Slimecrossing Weapons ammo_type = /obj/item/ammo_casing/magic/bloodchill fire_sound = 'sound/effects/attackblob.ogg' -/obj/item/gun/magic/bloodchill/Initialize() +/obj/item/gun/magic/bloodchill/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, HAND_REPLACEMENT_TRAIT) diff --git a/code/modules/research/xenobiology/crossbreeding/burning.dm b/code/modules/research/xenobiology/crossbreeding/burning.dm index 99cc7805377..8c93af5fd67 100644 --- a/code/modules/research/xenobiology/crossbreeding/burning.dm +++ b/code/modules/research/xenobiology/crossbreeding/burning.dm @@ -9,7 +9,7 @@ Burning extracts: effect = "burning" icon_state = "burning" -/obj/item/slimecross/burning/Initialize() +/obj/item/slimecross/burning/Initialize(mapload) . = ..() create_reagents(10, INJECTABLE | DRAWABLE) diff --git a/code/modules/research/xenobiology/crossbreeding/charged.dm b/code/modules/research/xenobiology/crossbreeding/charged.dm index d244495449f..f0a4d93ecc2 100644 --- a/code/modules/research/xenobiology/crossbreeding/charged.dm +++ b/code/modules/research/xenobiology/crossbreeding/charged.dm @@ -10,7 +10,7 @@ Charged extracts: effect = "charged" icon_state = "charged" -/obj/item/slimecross/charged/Initialize() +/obj/item/slimecross/charged/Initialize(mapload) . = ..() create_reagents(10, INJECTABLE | DRAWABLE) diff --git a/code/modules/research/xenobiology/crossbreeding/chilling.dm b/code/modules/research/xenobiology/crossbreeding/chilling.dm index 54fc76b3e32..09c22a92b08 100644 --- a/code/modules/research/xenobiology/crossbreeding/chilling.dm +++ b/code/modules/research/xenobiology/crossbreeding/chilling.dm @@ -9,7 +9,7 @@ Chilling extracts: effect = "chilling" icon_state = "chilling" -/obj/item/slimecross/chilling/Initialize() +/obj/item/slimecross/chilling/Initialize(mapload) . = ..() create_reagents(10, INJECTABLE | DRAWABLE) diff --git a/code/modules/research/xenobiology/crossbreeding/consuming.dm b/code/modules/research/xenobiology/crossbreeding/consuming.dm index 06c379daa21..5f56a70d837 100644 --- a/code/modules/research/xenobiology/crossbreeding/consuming.dm +++ b/code/modules/research/xenobiology/crossbreeding/consuming.dm @@ -293,7 +293,7 @@ Consuming extracts: taste = "vanilla and " //Randomly selected color dye. var/colour = "#FFFFFF" -/obj/item/slime_cookie/pyrite/Initialize() +/obj/item/slime_cookie/pyrite/Initialize(mapload) . = ..() var/tastemessage = "paint remover" switch(rand(1,7)) diff --git a/code/modules/research/xenobiology/crossbreeding/industrial.dm b/code/modules/research/xenobiology/crossbreeding/industrial.dm index d106ad033e0..46e0735201c 100644 --- a/code/modules/research/xenobiology/crossbreeding/industrial.dm +++ b/code/modules/research/xenobiology/crossbreeding/industrial.dm @@ -19,7 +19,7 @@ Industrial extracts: /obj/item/slimecross/industrial/proc/do_after_spawn(obj/item/spawned) return -/obj/item/slimecross/industrial/Initialize() +/obj/item/slimecross/industrial/Initialize(mapload) . = ..() create_reagents(100, INJECTABLE | DRAWABLE) START_PROCESSING(SSobj,src) diff --git a/code/modules/research/xenobiology/crossbreeding/recurring.dm b/code/modules/research/xenobiology/crossbreeding/recurring.dm index f97ff86cc1e..5f7e2b2e0fc 100644 --- a/code/modules/research/xenobiology/crossbreeding/recurring.dm +++ b/code/modules/research/xenobiology/crossbreeding/recurring.dm @@ -13,7 +13,7 @@ Recurring extracts: var/cooldown = 0 var/max_cooldown = 10 // In seconds -/obj/item/slimecross/recurring/Initialize() +/obj/item/slimecross/recurring/Initialize(mapload) . = ..() extract = new extract_type(src.loc) visible_message(span_notice("[src] wraps a layer of goo around itself!")) diff --git a/code/modules/research/xenobiology/crossbreeding/regenerative.dm b/code/modules/research/xenobiology/crossbreeding/regenerative.dm index 4468f60b37b..b8bc272120b 100644 --- a/code/modules/research/xenobiology/crossbreeding/regenerative.dm +++ b/code/modules/research/xenobiology/crossbreeding/regenerative.dm @@ -150,7 +150,7 @@ Regenerative extracts: to_chat(target, span_danger("The milky goo teleports you somewhere it remembers!")) -/obj/item/slimecross/regenerative/bluespace/Initialize() +/obj/item/slimecross/regenerative/bluespace/Initialize(mapload) . = ..() T = get_turf(src) diff --git a/code/modules/research/xenobiology/crossbreeding/reproductive.dm b/code/modules/research/xenobiology/crossbreeding/reproductive.dm index 7a4cbf57b02..3c5bef5776c 100644 --- a/code/modules/research/xenobiology/crossbreeding/reproductive.dm +++ b/code/modules/research/xenobiology/crossbreeding/reproductive.dm @@ -21,7 +21,7 @@ Reproductive extracts: . = ..() . += span_danger("It appears to have eaten [length(contents)] Monkey Cube[p_s()]") -/obj/item/slimecross/reproductive/Initialize() +/obj/item/slimecross/reproductive/Initialize(mapload) . = ..() slimeStorage = AddComponent(/datum/component/storage/concrete/extract_inventory) diff --git a/code/modules/research/xenobiology/crossbreeding/selfsustaining.dm b/code/modules/research/xenobiology/crossbreeding/selfsustaining.dm index 638cd05c048..731b4dab961 100644 --- a/code/modules/research/xenobiology/crossbreeding/selfsustaining.dm +++ b/code/modules/research/xenobiology/crossbreeding/selfsustaining.dm @@ -15,7 +15,7 @@ Self-sustaining extracts: var/effect_desc = "A self-sustaining slime extract. When used, lets you choose which reaction you want." //Just divides into the actual item. -/obj/item/slimecross/selfsustaining/Initialize() +/obj/item/slimecross/selfsustaining/Initialize(mapload) ..() visible_message(span_warning("The [src] shudders, and splits into four smaller extracts.")) for(var/i = 0, i < 4, i++) @@ -28,7 +28,7 @@ Self-sustaining extracts: A.name = "self-sustaining " + colour + " extract" return INITIALIZE_HINT_QDEL -/obj/item/autoslime/Initialize() +/obj/item/autoslime/Initialize(mapload) return ..() /obj/item/autoslime/attack_self(mob/user) diff --git a/code/modules/research/xenobiology/crossbreeding/stabilized.dm b/code/modules/research/xenobiology/crossbreeding/stabilized.dm index b180f9451c8..b5c01f6e726 100644 --- a/code/modules/research/xenobiology/crossbreeding/stabilized.dm +++ b/code/modules/research/xenobiology/crossbreeding/stabilized.dm @@ -14,7 +14,7 @@ Stabilized extracts: var/datum/status_effect/linked_effect var/mob/living/owner -/obj/item/slimecross/stabilized/Initialize() +/obj/item/slimecross/stabilized/Initialize(mapload) . = ..() START_PROCESSING(SSobj,src) @@ -129,7 +129,7 @@ Stabilized extracts: mob_spawn_pets += T mob_type = pick(mob_spawn_pets) -/obj/item/slimecross/stabilized/gold/Initialize() +/obj/item/slimecross/stabilized/gold/Initialize(mapload) . = ..() generate_mobtype() diff --git a/code/modules/research/xenobiology/vatgrowing/biopsy_tool.dm b/code/modules/research/xenobiology/vatgrowing/biopsy_tool.dm index 42128bb92f1..d01e4a32138 100644 --- a/code/modules/research/xenobiology/vatgrowing/biopsy_tool.dm +++ b/code/modules/research/xenobiology/vatgrowing/biopsy_tool.dm @@ -6,7 +6,7 @@ icon_state = "biopsy" ///Adds the swabbing component to the biopsy tool -/obj/item/biopsy_tool/Initialize() +/obj/item/biopsy_tool/Initialize(mapload) . = ..() AddComponent(/datum/component/swabbing, FALSE, FALSE, TRUE, CALLBACK(src, .proc/update_swab_icon), max_items = 1) diff --git a/code/modules/research/xenobiology/vatgrowing/petri_dish.dm b/code/modules/research/xenobiology/vatgrowing/petri_dish.dm index c190b62f785..09c47a877d1 100644 --- a/code/modules/research/xenobiology/vatgrowing/petri_dish.dm +++ b/code/modules/research/xenobiology/vatgrowing/petri_dish.dm @@ -54,7 +54,7 @@ list(CELL_LINE_TABLE_BLOBBERNAUT, CELL_VIRUS_TABLE_GENERIC_MOB, 1, 5) ) -/obj/item/petri_dish/random/Initialize() +/obj/item/petri_dish/random/Initialize(mapload) . = ..() var/list/chosen = pick(possible_samples) sample = new diff --git a/code/modules/research/xenobiology/vatgrowing/swab.dm b/code/modules/research/xenobiology/vatgrowing/swab.dm index 52d3226822f..ab9b83ad965 100644 --- a/code/modules/research/xenobiology/vatgrowing/swab.dm +++ b/code/modules/research/xenobiology/vatgrowing/swab.dm @@ -7,7 +7,7 @@ w_class = WEIGHT_CLASS_TINY ///Adds the swabbing component to the biopsy tool -/obj/item/swab/Initialize() +/obj/item/swab/Initialize(mapload) . = ..() AddComponent(/datum/component/swabbing, TRUE, TRUE, FALSE, null, CALLBACK(src, .proc/update_swab_icon), max_items = 1) diff --git a/code/modules/research/xenobiology/xenobio_camera.dm b/code/modules/research/xenobiology/xenobio_camera.dm index f14aa98922f..43bc421eed3 100644 --- a/code/modules/research/xenobiology/xenobio_camera.dm +++ b/code/modules/research/xenobiology/xenobio_camera.dm @@ -5,7 +5,7 @@ icon_state = "generic_camera" var/allowed_area = null -/mob/camera/ai_eye/remote/xenobio/Initialize() +/mob/camera/ai_eye/remote/xenobio/Initialize(mapload) var/area/A = get_area(loc) allowed_area = A.name . = ..() diff --git a/code/modules/research/xenobiology/xenobiology.dm b/code/modules/research/xenobiology/xenobiology.dm index 8ab1bc9e296..6ec9b113801 100644 --- a/code/modules/research/xenobiology/xenobiology.dm +++ b/code/modules/research/xenobiology/xenobiology.dm @@ -36,7 +36,7 @@ qdel(O) ..() -/obj/item/slime_extract/Initialize() +/obj/item/slime_extract/Initialize(mapload) . = ..() create_reagents(100, INJECTABLE | DRAWABLE) diff --git a/code/modules/ruins/icemoonruin_code/wrath.dm b/code/modules/ruins/icemoonruin_code/wrath.dm index fab6f9f32d0..469a05ea052 100644 --- a/code/modules/ruins/icemoonruin_code/wrath.dm +++ b/code/modules/ruins/icemoonruin_code/wrath.dm @@ -8,7 +8,7 @@ heat_protection = HANDS max_heat_protection_temperature = GLOVES_MAX_TEMP_PROTECT -/obj/item/clothing/gloves/butchering/Initialize() +/obj/item/clothing/gloves/butchering/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 5, 125, null, null, TRUE, TRUE) diff --git a/code/modules/ruins/lavaland_ruin_code.dm b/code/modules/ruins/lavaland_ruin_code.dm index e38f5a153fc..1a2893103ca 100644 --- a/code/modules/ruins/lavaland_ruin_code.dm +++ b/code/modules/ruins/lavaland_ruin_code.dm @@ -4,7 +4,7 @@ /obj/item/disk/design_disk/adv/knight_gear name = "Magic Disk of Smithing" -/obj/item/disk/design_disk/adv/knight_gear/Initialize() +/obj/item/disk/design_disk/adv/knight_gear/Initialize(mapload) . = ..() var/datum/design/knight_armour/A = new var/datum/design/knight_helmet/H = new @@ -19,7 +19,7 @@ icon_state = "datadisk1" max_blueprints = 1 -/obj/item/disk/design_disk/golem_shell/Initialize() +/obj/item/disk/design_disk/golem_shell/Initialize(mapload) . = ..() var/datum/design/golem_shell/G = new blueprints[1] = G @@ -141,7 +141,7 @@ flavour_text = "Monitor enemy activity as best you can, and try to keep a low profile. Monitor enemy activity as best you can, and try to keep a low profile. Use the communication equipment to provide support to any field agents, and sow disinformation to throw Nanotrasen off your trail. Do not let the base fall into enemy hands!" important_info = "DO NOT abandon the base." -/obj/effect/mob_spawn/human/lavaland_syndicate/comms/space/Initialize() +/obj/effect/mob_spawn/human/lavaland_syndicate/comms/space/Initialize(mapload) . = ..() if(prob(90)) //only has a 10% chance of existing, otherwise it'll just be a NPC syndie. new /mob/living/simple_animal/hostile/syndicate/ranged(get_turf(src)) @@ -153,6 +153,6 @@ mask = /obj/item/clothing/mask/chameleon/gps suit = /obj/item/clothing/suit/armor/vest -/obj/item/clothing/mask/chameleon/gps/Initialize() +/obj/item/clothing/mask/chameleon/gps/Initialize(mapload) . = ..() AddComponent(/datum/component/gps, "Encrypted Signal") diff --git a/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm b/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm index a9e805c67bf..c08d4a282d2 100644 --- a/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm +++ b/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm @@ -43,7 +43,7 @@ /turf/open/floor/plating/asteroid/basalt/wasteland/setup_broken_states() return list("wasteland") -/turf/open/floor/plating/asteroid/basalt/wasteland/Initialize() +/turf/open/floor/plating/asteroid/basalt/wasteland/Initialize(mapload) .=..() if(prob(floor_variance)) icon_state = "[base_icon_state][rand(0,6)]" @@ -74,7 +74,7 @@ icon_state = "puddle-oil" dispensedreagent = /datum/reagent/fuel/oil -/obj/structure/sink/oil_well/Initialize() +/obj/structure/sink/oil_well/Initialize(mapload) .=..() create_reagents(20) reagents.add_reagent(dispensedreagent, 20) diff --git a/code/modules/ruins/objects_and_mobs/ash_walker_den.dm b/code/modules/ruins/objects_and_mobs/ash_walker_den.dm index efaca2ce045..05cfdc0ec07 100644 --- a/code/modules/ruins/objects_and_mobs/ash_walker_den.dm +++ b/code/modules/ruins/objects_and_mobs/ash_walker_den.dm @@ -19,7 +19,7 @@ var/datum/team/ashwalkers/ashies var/datum/linked_objective -/obj/structure/lavaland/ash_walker/Initialize() +/obj/structure/lavaland/ash_walker/Initialize(mapload) .=..() ashies = new /datum/team/ashwalkers() var/datum/objective/protect_object/objective = new diff --git a/code/modules/ruins/objects_and_mobs/necropolis_gate.dm b/code/modules/ruins/objects_and_mobs/necropolis_gate.dm index 72b93924db4..18297126af7 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) . = ..() setDir(SOUTH) var/turf/sight_blocker_turf = get_turf(src) @@ -153,7 +153,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 @@ -227,7 +227,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/ruins/objects_and_mobs/sin_ruins.dm b/code/modules/ruins/objects_and_mobs/sin_ruins.dm index b517b18aba6..bdb4125d0a1 100644 --- a/code/modules/ruins/objects_and_mobs/sin_ruins.dm +++ b/code/modules/ruins/objects_and_mobs/sin_ruins.dm @@ -62,7 +62,7 @@ anchored = FALSE density = TRUE -/obj/structure/cursed_money/Initialize() +/obj/structure/cursed_money/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/collapse), 600) diff --git a/code/modules/ruins/spaceruin_code/caravanambush.dm b/code/modules/ruins/spaceruin_code/caravanambush.dm index b8aade4f4e5..d5e3e3c148c 100644 --- a/code/modules/ruins/spaceruin_code/caravanambush.dm +++ b/code/modules/ruins/spaceruin_code/caravanambush.dm @@ -54,7 +54,7 @@ shuttleId = "caravantrade1" possible_destinations = "whiteship_away;whiteship_home;whiteship_z4;whiteship_lavaland;caravantrade1_custom;caravantrade1_ambush" -/obj/machinery/computer/camera_advanced/shuttle_docker/caravan/Initialize() +/obj/machinery/computer/camera_advanced/shuttle_docker/caravan/Initialize(mapload) . = ..() GLOB.jam_on_wardec += src diff --git a/code/modules/ruins/spaceruin_code/clericsden.dm b/code/modules/ruins/spaceruin_code/clericsden.dm index 7096b2ca1b6..8c0b9b87f9d 100644 --- a/code/modules/ruins/spaceruin_code/clericsden.dm +++ b/code/modules/ruins/spaceruin_code/clericsden.dm @@ -4,7 +4,7 @@ /obj/item/disk/design_disk/adv/cleric_mace name = "Enshrined Disc of Smiting" -/obj/item/disk/design_disk/adv/cleric_mace/Initialize() +/obj/item/disk/design_disk/adv/cleric_mace/Initialize(mapload) . = ..() var/datum/design/cleric_mace/M = new blueprints[1] = M diff --git a/code/modules/ruins/spaceruin_code/hilbertshotel.dm b/code/modules/ruins/spaceruin_code/hilbertshotel.dm index e1bf470ffb3..0b4d18cbfd3 100644 --- a/code/modules/ruins/spaceruin_code/hilbertshotel.dm +++ b/code/modules/ruins/spaceruin_code/hilbertshotel.dm @@ -16,7 +16,7 @@ GLOBAL_VAR_INIT(hhMysteryRoomNumber, rand(1, 999999)) //Lore Stuff var/ruinSpawned = FALSE -/obj/item/hilbertshotel/Initialize() +/obj/item/hilbertshotel/Initialize(mapload) . = ..() //Load templates INVOKE_ASYNC(src, .proc/prepare_rooms) @@ -253,7 +253,7 @@ GLOBAL_VAR_INIT(hhMysteryRoomNumber, rand(1, 999999)) explosion_block = INFINITY var/obj/item/hilbertshotel/parentSphere -/turf/open/space/bluespace/Initialize() +/turf/open/space/bluespace/Initialize(mapload) . = ..() update_icon_state() @@ -510,7 +510,7 @@ GLOBAL_VAR_INIT(hhMysteryRoomNumber, rand(1, 999999)) /obj/item/paper/crumpled/docslogs name = "Research Logs" -/obj/item/paper/crumpled/docslogs/Initialize() +/obj/item/paper/crumpled/docslogs/Initialize(mapload) . = ..() info = {"

Research Logs

I might just be onto something here!
diff --git a/code/modules/security_levels/keycard_authentication.dm b/code/modules/security_levels/keycard_authentication.dm index 09e0219a723..1b4a215b194 100644 --- a/code/modules/security_levels/keycard_authentication.dm +++ b/code/modules/security_levels/keycard_authentication.dm @@ -38,7 +38,7 @@ GLOBAL_DATUM_INIT(keycard_events, /datum/events, new) dir = EAST pixel_x = -26 -/obj/machinery/keycard_auth/Initialize() +/obj/machinery/keycard_auth/Initialize(mapload) . = ..() ev = GLOB.keycard_events.addEvent("triggerEvent", CALLBACK(src, .proc/triggerEvent)) diff --git a/code/modules/shuttle/emergency.dm b/code/modules/shuttle/emergency.dm index d584bcee4a2..24808d3c2b4 100644 --- a/code/modules/shuttle/emergency.dm +++ b/code/modules/shuttle/emergency.dm @@ -731,7 +731,7 @@ height = 8 dir = EAST -/obj/docking_port/mobile/emergency/backup/Initialize() +/obj/docking_port/mobile/emergency/backup/Initialize(mapload) // We want to be a valid emergency shuttle // but not be the main one, keep whatever's set // valid. diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm index e057b455c80..c09c1ef4f35 100644 --- a/code/modules/shuttle/shuttle.dm +++ b/code/modules/shuttle/shuttle.dm @@ -279,7 +279,7 @@ var/area/shuttle/transit/assigned_area var/obj/docking_port/mobile/owner -/obj/docking_port/stationary/transit/Initialize() +/obj/docking_port/stationary/transit/Initialize(mapload) . = ..() SSshuttle.transit += src diff --git a/code/modules/shuttle/spaceship_navigation_beacon.dm b/code/modules/shuttle/spaceship_navigation_beacon.dm index 49e0a6cc986..418ddf745d7 100644 --- a/code/modules/shuttle/spaceship_navigation_beacon.dm +++ b/code/modules/shuttle/spaceship_navigation_beacon.dm @@ -18,7 +18,7 @@ var/locked = FALSE //Locked beacons don't allow to jump to it. -/obj/machinery/spaceship_navigation_beacon/Initialize() +/obj/machinery/spaceship_navigation_beacon/Initialize(mapload) . = ..() SSshuttle.beacons |= src diff --git a/code/modules/shuttle/special.dm b/code/modules/shuttle/special.dm index b774bf88a5a..847bff5ca5f 100644 --- a/code/modules/shuttle/special.dm +++ b/code/modules/shuttle/special.dm @@ -16,7 +16,7 @@ var/list/active_tables = list() var/tables_required = 2 -/obj/machinery/power/emitter/energycannon/magical/Initialize() +/obj/machinery/power/emitter/energycannon/magical/Initialize(mapload) . = ..() if(prob(50)) desc = "Oh no, not again." @@ -143,7 +143,7 @@ unique_name = FALSE // disables the (123) number suffix initial_language_holder = /datum/language_holder/universal -/mob/living/simple_animal/drone/snowflake/bardrone/Initialize() +/mob/living/simple_animal/drone/snowflake/bardrone/Initialize(mapload) . = ..() access_card.add_access(list(ACCESS_CENT_BAR)) become_area_sensitive(ROUNDSTART_TRAIT) @@ -160,7 +160,7 @@ stop_automated_movement = TRUE initial_language_holder = /datum/language_holder/universal -/mob/living/simple_animal/hostile/alien/maid/barmaid/Initialize() +/mob/living/simple_animal/hostile/alien/maid/barmaid/Initialize(mapload) . = ..() // Simple bot ID card that can hold all accesses. Someone turn access into a component at some point, please. access_card = new /obj/item/card/id/advanced/simple_bot(src) diff --git a/code/modules/shuttle/white_ship.dm b/code/modules/shuttle/white_ship.dm index ddea12825c5..e96dc2a8f39 100644 --- a/code/modules/shuttle/white_ship.dm +++ b/code/modules/shuttle/white_ship.dm @@ -51,7 +51,7 @@ y_offset = 0 designate_time = 0 -/obj/machinery/computer/camera_advanced/shuttle_docker/whiteship/Initialize() +/obj/machinery/computer/camera_advanced/shuttle_docker/whiteship/Initialize(mapload) . = ..() GLOB.jam_on_wardec += src diff --git a/code/modules/spells/spell.dm b/code/modules/spells/spell.dm index acb0768d551..df2f2b191c8 100644 --- a/code/modules/spells/spell.dm +++ b/code/modules/spells/spell.dm @@ -272,7 +272,7 @@ GLOBAL_LIST_INIT(spells, typesof(/obj/effect/proc_holder/spell)) //needed for th /obj/effect/proc_holder/spell/proc/playMagSound() playsound(get_turf(usr), sound,50,TRUE) -/obj/effect/proc_holder/spell/Initialize() +/obj/effect/proc_holder/spell/Initialize(mapload) . = ..() START_PROCESSING(SSfastprocess, src) diff --git a/code/modules/spells/spell_types/godhand.dm b/code/modules/spells/spell_types/godhand.dm index 5f30b58a0c7..716063c7e0c 100644 --- a/code/modules/spells/spell_types/godhand.dm +++ b/code/modules/spells/spell_types/godhand.dm @@ -17,7 +17,7 @@ throw_speed = 0 var/charges = 1 -/obj/item/melee/touch_attack/Initialize() +/obj/item/melee/touch_attack/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, ABSTRACT_ITEM_TRAIT) diff --git a/code/modules/spells/spell_types/trigger.dm b/code/modules/spells/spell_types/trigger.dm index 368b1912fbf..c13c96686c6 100644 --- a/code/modules/spells/spell_types/trigger.dm +++ b/code/modules/spells/spell_types/trigger.dm @@ -4,7 +4,7 @@ var/list/linked_spells = list() //those are just referenced by the trigger spell and are unaffected by it directly var/list/starting_spells = list() //those are added on New() to contents from default spells and are deleted when the trigger spell is deleted to prevent memory leaks -/obj/effect/proc_holder/spell/pointed/trigger/Initialize() +/obj/effect/proc_holder/spell/pointed/trigger/Initialize(mapload) . = ..() for(var/spell in starting_spells) var/spell_to_add = text2path(spell) diff --git a/code/modules/station_goals/dna_vault.dm b/code/modules/station_goals/dna_vault.dm index aebd68400a6..051f67d3513 100644 --- a/code/modules/station_goals/dna_vault.dm +++ b/code/modules/station_goals/dna_vault.dm @@ -145,7 +145,7 @@ var/list/obj/structure/fillers = list() -/obj/machinery/dna_vault/Initialize() +/obj/machinery/dna_vault/Initialize(mapload) //TODO: Replace this,bsa and gravgen with some big machinery datum var/list/occupied = list() for(var/direct in list(EAST,WEST,SOUTHEAST,SOUTHWEST)) diff --git a/code/modules/station_goals/shield.dm b/code/modules/station_goals/shield.dm index 3c5f6a5b379..cbe974b3f2d 100644 --- a/code/modules/station_goals/shield.dm +++ b/code/modules/station_goals/shield.dm @@ -98,7 +98,7 @@ var/static/gid = 0 var/id = 0 -/obj/machinery/satellite/Initialize() +/obj/machinery/satellite/Initialize(mapload) . = ..() id = gid++ diff --git a/code/modules/surgery/organs/augments_arms.dm b/code/modules/surgery/organs/augments_arms.dm index f9c0fbd35a7..40a7cbf088c 100644 --- a/code/modules/surgery/organs/augments_arms.dm +++ b/code/modules/surgery/organs/augments_arms.dm @@ -18,7 +18,7 @@ /// Sound played when retracting var/retract_sound = 'sound/mecha/mechmove03.ogg' -/obj/item/organ/cyberimp/arm/Initialize() +/obj/item/organ/cyberimp/arm/Initialize(mapload) . = ..() if(ispath(active_item)) active_item = new active_item(src) @@ -257,7 +257,7 @@ desc = "An integrated projector mounted onto a user's arm that is able to be used as a powerful flash." items_to_create = list(/obj/item/assembly/flash/armimplant) -/obj/item/organ/cyberimp/arm/flash/Initialize() +/obj/item/organ/cyberimp/arm/flash/Initialize(mapload) . = ..() for(var/datum/weakref/created_item in items_list) var/obj/potential_flash = created_item.resolve() @@ -285,7 +285,7 @@ desc = "A powerful cybernetic implant that contains combat modules built into the user's arm." items_to_create = list(/obj/item/melee/energy/blade/hardlight, /obj/item/gun/medbeam, /obj/item/borg/stun, /obj/item/assembly/flash/armimplant) -/obj/item/organ/cyberimp/arm/combat/Initialize() +/obj/item/organ/cyberimp/arm/combat/Initialize(mapload) . = ..() for(var/datum/weakref/created_item in items_list) var/obj/potential_flash = created_item.resolve() diff --git a/code/modules/surgery/organs/eyes.dm b/code/modules/surgery/organs/eyes.dm index 2e11865c486..0120bd47dce 100644 --- a/code/modules/surgery/organs/eyes.dm +++ b/code/modules/surgery/organs/eyes.dm @@ -249,7 +249,7 @@ var/image/mob_overlay var/datum/component/mobhook -/obj/item/organ/eyes/robotic/glow/Initialize() +/obj/item/organ/eyes/robotic/glow/Initialize(mapload) . = ..() mob_overlay = image('icons/mob/human_face.dmi', "eyes_glow_gs") diff --git a/code/modules/surgery/organs/heart.dm b/code/modules/surgery/organs/heart.dm index 83eefbc5fb6..52c2fa74102 100644 --- a/code/modules/surgery/organs/heart.dm +++ b/code/modules/surgery/organs/heart.dm @@ -269,7 +269,7 @@ ///Color of the heart, is set by the species on gain var/ethereal_color = "#9c3030" -/obj/item/organ/heart/ethereal/Initialize() +/obj/item/organ/heart/ethereal/Initialize(mapload) . = ..() add_atom_colour(ethereal_color, FIXED_COLOUR_PRIORITY) diff --git a/code/modules/surgery/organs/liver.dm b/code/modules/surgery/organs/liver.dm index d0ffc87ba1c..cfbcd0fc353 100755 --- a/code/modules/surgery/organs/liver.dm +++ b/code/modules/surgery/organs/liver.dm @@ -23,7 +23,7 @@ var/toxLethality = LIVER_DEFAULT_TOX_LETHALITY var/filterToxins = TRUE //whether to filter toxins -/obj/item/organ/liver/Initialize() +/obj/item/organ/liver/Initialize(mapload) . = ..() // If the liver handles foods like a clown, it honks like a bike horn // Don't think about it too much. diff --git a/code/modules/surgery/organs/organ_internal.dm b/code/modules/surgery/organs/organ_internal.dm index 8fd942735c1..f79436cc018 100644 --- a/code/modules/surgery/organs/organ_internal.dm +++ b/code/modules/surgery/organs/organ_internal.dm @@ -40,7 +40,7 @@ // any nonhumans created in that time would experience the same effect. INITIALIZE_IMMEDIATE(/obj/item/organ) -/obj/item/organ/Initialize() +/obj/item/organ/Initialize(mapload) . = ..() if(organ_flags & ORGAN_EDIBLE) AddComponent(/datum/component/edible,\ @@ -153,7 +153,7 @@ INITIALIZE_IMMEDIATE(/obj/item/organ) if(damage > high_threshold) . += span_warning("[src] is starting to look discolored.") -/obj/item/organ/Initialize() +/obj/item/organ/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) diff --git a/code/modules/surgery/organs/stomach/_stomach.dm b/code/modules/surgery/organs/stomach/_stomach.dm index 7a81e76a464..812de868568 100644 --- a/code/modules/surgery/organs/stomach/_stomach.dm +++ b/code/modules/surgery/organs/stomach/_stomach.dm @@ -30,7 +30,7 @@ var/metabolism_efficiency = 0.05 // the lowest we should go is 0.05 -/obj/item/organ/stomach/Initialize() +/obj/item/organ/stomach/Initialize(mapload) . = ..() //None edible organs do not get a reagent holder by default if(!reagents) diff --git a/code/modules/surgery/organs/tails.dm b/code/modules/surgery/organs/tails.dm index 9d1cdd0d464..51a3c882aa9 100644 --- a/code/modules/surgery/organs/tails.dm +++ b/code/modules/surgery/organs/tails.dm @@ -49,7 +49,7 @@ /// The sprite accessory this tail gives to the human it's attached to. If null, it will inherit its value from the human's DNA once attached. var/spines = "None" -/obj/item/organ/tail/lizard/Initialize() +/obj/item/organ/tail/lizard/Initialize(mapload) . = ..() color = "#"+ random_color() diff --git a/code/modules/surgery/organs/tongue.dm b/code/modules/surgery/organs/tongue.dm index a7f94ded735..e5b11f024a9 100644 --- a/code/modules/surgery/organs/tongue.dm +++ b/code/modules/surgery/organs/tongue.dm @@ -347,7 +347,7 @@ /datum/language/calcic )) -/obj/item/organ/tongue/bone/Initialize() +/obj/item/organ/tongue/bone/Initialize(mapload) . = ..() phomeme_type = pick(phomeme_types) languages_possible = languages_possible_skeleton diff --git a/code/modules/surgery/surgery.dm b/code/modules/surgery/surgery.dm index 2c83e2106b0..9b29997da13 100644 --- a/code/modules/surgery/surgery.dm +++ b/code/modules/surgery/surgery.dm @@ -149,7 +149,7 @@ icon_state = "datadisk1" custom_materials = list(/datum/material/iron=300, /datum/material/glass=100) -/obj/item/disk/surgery/debug/Initialize() +/obj/item/disk/surgery/debug/Initialize(mapload) . = ..() surgeries = list() var/list/req_tech_surgeries = subtypesof(/datum/surgery) diff --git a/code/modules/surgery/tools.dm b/code/modules/surgery/tools.dm index f455824d35a..bb769f07f68 100644 --- a/code/modules/surgery/tools.dm +++ b/code/modules/surgery/tools.dm @@ -75,7 +75,7 @@ light_range = 1 light_color = COLOR_SOFT_RED -/obj/item/cautery/advanced/Initialize() +/obj/item/cautery/advanced/Initialize(mapload) . = ..() AddComponent(/datum/component/transforming, \ force_on = force, \ @@ -123,7 +123,7 @@ wound_bonus = 10 bare_wound_bonus = 10 -/obj/item/surgicaldrill/Initialize() +/obj/item/surgicaldrill/Initialize(mapload) . = ..() AddElement(/datum/element/eyestab) @@ -166,7 +166,7 @@ wound_bonus = 10 bare_wound_bonus = 15 -/obj/item/scalpel/Initialize() +/obj/item/scalpel/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 80 * toolspeed, 100, 0) AddElement(/datum/element/eyestab) @@ -205,7 +205,7 @@ wound_bonus = 15 bare_wound_bonus = 10 -/obj/item/circular_saw/Initialize() +/obj/item/circular_saw/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 40 * toolspeed, 100, 5, 'sound/weapons/circsawhit.ogg') //saws are very accurate and fast at butchering @@ -271,7 +271,7 @@ light_color = LIGHT_COLOR_GREEN sharpness = SHARP_EDGED -/obj/item/scalpel/advanced/Initialize() +/obj/item/scalpel/advanced/Initialize(mapload) . = ..() AddComponent(/datum/component/transforming, \ force_on = force + 1, \ @@ -313,7 +313,7 @@ icon_state = "adv_retractor" toolspeed = 0.7 -/obj/item/retractor/advanced/Initialize() +/obj/item/retractor/advanced/Initialize(mapload) . = ..() AddComponent(/datum/component/transforming, \ force_on = force, \ diff --git a/code/modules/swarmers/swarmer.dm b/code/modules/swarmers/swarmer.dm index 4db76e1445b..b807f3f2a57 100644 --- a/code/modules/swarmers/swarmer.dm +++ b/code/modules/swarmers/swarmer.dm @@ -75,7 +75,7 @@ var/swarmer_flags = NONE -/mob/living/simple_animal/hostile/swarmer/Initialize() +/mob/living/simple_animal/hostile/swarmer/Initialize(mapload) . = ..() remove_verb(src, /mob/living/verb/pulled) for(var/datum/atom_hud/data/diagnostic/diag_hud in GLOB.huds) diff --git a/code/modules/swarmers/swarmer_objs.dm b/code/modules/swarmers/swarmer_objs.dm index f0e104583dd..1737ae41a30 100644 --- a/code/modules/swarmers/swarmer_objs.dm +++ b/code/modules/swarmers/swarmer_objs.dm @@ -56,7 +56,7 @@ ///Reference to all the swarmers currently alive this beacon has created var/list/mob/living/simple_animal/hostile/swarmer/swarmerlist -/obj/structure/swarmer_beacon/Initialize() +/obj/structure/swarmer_beacon/Initialize(mapload) . = ..() SSpoints_of_interest.make_point_of_interest(src) @@ -130,7 +130,7 @@ max_integrity = 10 density = FALSE -/obj/structure/swarmer/trap/Initialize() +/obj/structure/swarmer/trap/Initialize(mapload) . = ..() var/static/list/loc_connections = list( COMSIG_ATOM_ENTERED = .proc/on_entered, @@ -169,7 +169,7 @@ icon_state = "disintegrate" duration = 1 SECONDS -/obj/effect/temp_visual/swarmer/disintegration/Initialize() +/obj/effect/temp_visual/swarmer/disintegration/Initialize(mapload) . = ..() playsound(loc, "sparks", 100, TRUE, SHORT_RANGE_SOUND_EXTRARANGE) diff --git a/code/modules/unit_tests/connect_loc.dm b/code/modules/unit_tests/connect_loc.dm index 99fea41b3fc..a0b4f618991 100644 --- a/code/modules/unit_tests/connect_loc.dm +++ b/code/modules/unit_tests/connect_loc.dm @@ -59,7 +59,7 @@ /obj/item/watches_mock_calls var/times_called -/obj/item/watches_mock_calls/Initialize() +/obj/item/watches_mock_calls/Initialize(mapload) . = ..() var/static/list/connections = list( diff --git a/code/modules/uplink/uplink_devices.dm b/code/modules/uplink/uplink_devices.dm index aaca07c9bcf..6f39d18c094 100644 --- a/code/modules/uplink/uplink_devices.dm +++ b/code/modules/uplink/uplink_devices.dm @@ -53,7 +53,7 @@ /obj/item/uplink/nuclear_restricted uplink_flag = UPLINK_NUKE_OPS -/obj/item/uplink/nuclear_restricted/Initialize() +/obj/item/uplink/nuclear_restricted/Initialize(mapload) . = ..() var/datum/component/uplink/hidden_uplink = GetComponent(/datum/component/uplink) hidden_uplink.allow_restricted = FALSE diff --git a/code/modules/vehicles/atv.dm b/code/modules/vehicles/atv.dm index 6457023fb8c..b14b90575c5 100644 --- a/code/modules/vehicles/atv.dm +++ b/code/modules/vehicles/atv.dm @@ -9,7 +9,7 @@ integrity_failure = 0.5 var/static/mutable_appearance/atvcover -/obj/vehicle/ridden/atv/Initialize() +/obj/vehicle/ridden/atv/Initialize(mapload) . = ..() AddElement(/datum/element/ridable, /datum/component/riding/vehicle/atv) if(!atvcover) @@ -33,7 +33,7 @@ scan_range = 7 density = FALSE -/obj/vehicle/ridden/atv/turret/Initialize() +/obj/vehicle/ridden/atv/turret/Initialize(mapload) . = ..() turret = new(loc) turret.base = src diff --git a/code/modules/vehicles/bicycle.dm b/code/modules/vehicles/bicycle.dm index 16b69be6e1d..b76e12765c3 100644 --- a/code/modules/vehicles/bicycle.dm +++ b/code/modules/vehicles/bicycle.dm @@ -3,7 +3,7 @@ desc = "Keep away from electricity." icon_state = "bicycle" -/obj/vehicle/ridden/bicycle/Initialize() +/obj/vehicle/ridden/bicycle/Initialize(mapload) . = ..() AddElement(/datum/element/ridable, /datum/component/riding/vehicle/bicycle) diff --git a/code/modules/vehicles/cars/clowncar.dm b/code/modules/vehicles/cars/clowncar.dm index 36f614f06f7..00deb71ee39 100644 --- a/code/modules/vehicles/cars/clowncar.dm +++ b/code/modules/vehicles/cars/clowncar.dm @@ -22,7 +22,7 @@ ///Current status of the cannon, alternates between CLOWN_CANNON_INACTIVE, CLOWN_CANNON_BUSY and CLOWN_CANNON_READY var/cannonmode = CLOWN_CANNON_INACTIVE -/obj/vehicle/sealed/car/clowncar/Initialize() +/obj/vehicle/sealed/car/clowncar/Initialize(mapload) . = ..() START_PROCESSING(SSobj,src) diff --git a/code/modules/vehicles/lavaboat.dm b/code/modules/vehicles/lavaboat.dm index 52fb14c853f..d8b88e20005 100644 --- a/code/modules/vehicles/lavaboat.dm +++ b/code/modules/vehicles/lavaboat.dm @@ -11,7 +11,7 @@ key_type = /obj/item/oar var/allowed_turf = /turf/open/lava -/obj/vehicle/ridden/lavaboat/Initialize() +/obj/vehicle/ridden/lavaboat/Initialize(mapload) . = ..() AddElement(/datum/element/ridable, /datum/component/riding/vehicle/lavaboat) @@ -74,6 +74,6 @@ desc = "This boat moves where you will it, without the need for an oar." icon_state = "dragon_boat" -/obj/vehicle/ridden/lavaboat/dragon/Initialize() +/obj/vehicle/ridden/lavaboat/dragon/Initialize(mapload) . = ..() AddElement(/datum/element/ridable, /datum/component/riding/vehicle/lavaboat/dragonboat) diff --git a/code/modules/vehicles/mecha/combat/durand.dm b/code/modules/vehicles/mecha/combat/durand.dm index 9e47cf659d8..15b5844bbc3 100644 --- a/code/modules/vehicles/mecha/combat/durand.dm +++ b/code/modules/vehicles/mecha/combat/durand.dm @@ -14,7 +14,7 @@ var/obj/durand_shield/shield -/obj/vehicle/sealed/mecha/combat/durand/Initialize() +/obj/vehicle/sealed/mecha/combat/durand/Initialize(mapload) . = ..() shield = new /obj/durand_shield(loc, src, layer, dir) RegisterSignal(src, COMSIG_MECHA_ACTION_TRIGGER, .proc/relay) diff --git a/code/modules/vehicles/mecha/combat/gygax.dm b/code/modules/vehicles/mecha/combat/gygax.dm index e61335f5548..d3055232dea 100644 --- a/code/modules/vehicles/mecha/combat/gygax.dm +++ b/code/modules/vehicles/mecha/combat/gygax.dm @@ -34,7 +34,7 @@ max_equip = 5 destruction_sleep_duration = 20 -/obj/vehicle/sealed/mecha/combat/gygax/dark/loaded/Initialize() +/obj/vehicle/sealed/mecha/combat/gygax/dark/loaded/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/thrusters/ion(src) ME.attach(src) diff --git a/code/modules/vehicles/mecha/combat/honker.dm b/code/modules/vehicles/mecha/combat/honker.dm index b92be1f4fde..c322ba964ae 100644 --- a/code/modules/vehicles/mecha/combat/honker.dm +++ b/code/modules/vehicles/mecha/combat/honker.dm @@ -162,7 +162,7 @@ return cell = new /obj/item/stock_parts/cell/hyper(src) -/obj/vehicle/sealed/mecha/combat/honker/dark/loaded/Initialize() +/obj/vehicle/sealed/mecha/combat/honker/dark/loaded/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/thrusters/ion(src) ME.attach(src) diff --git a/code/modules/vehicles/mecha/combat/marauder.dm b/code/modules/vehicles/mecha/combat/marauder.dm index 01fe013df47..967e3071a85 100644 --- a/code/modules/vehicles/mecha/combat/marauder.dm +++ b/code/modules/vehicles/mecha/combat/marauder.dm @@ -23,7 +23,7 @@ initialize_passenger_action_type(/datum/action/vehicle/sealed/mecha/mech_smoke) initialize_passenger_action_type(/datum/action/vehicle/sealed/mecha/mech_zoom) -/obj/vehicle/sealed/mecha/combat/marauder/loaded/Initialize() +/obj/vehicle/sealed/mecha/combat/marauder/loaded/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/thrusters/ion(src) ME.attach(src) @@ -51,7 +51,7 @@ force = 55 max_equip = 6 -/obj/vehicle/sealed/mecha/combat/marauder/seraph/Initialize() +/obj/vehicle/sealed/mecha/combat/marauder/seraph/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/thrusters/ion(src) ME.attach(src) @@ -78,12 +78,12 @@ max_equip = 6 destruction_sleep_duration = 20 -/obj/vehicle/sealed/mecha/combat/marauder/mauler/Initialize() +/obj/vehicle/sealed/mecha/combat/marauder/mauler/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/thrusters/ion(src) ME.attach(src) -/obj/vehicle/sealed/mecha/combat/marauder/mauler/loaded/Initialize() +/obj/vehicle/sealed/mecha/combat/marauder/mauler/loaded/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/lmg(src) ME.attach(src) diff --git a/code/modules/vehicles/mecha/combat/reticence.dm b/code/modules/vehicles/mecha/combat/reticence.dm index 10561e6ad15..49637aeddca 100644 --- a/code/modules/vehicles/mecha/combat/reticence.dm +++ b/code/modules/vehicles/mecha/combat/reticence.dm @@ -18,7 +18,7 @@ step_energy_drain = 3 color = "#87878715" -/obj/vehicle/sealed/mecha/combat/reticence/loaded/Initialize() +/obj/vehicle/sealed/mecha/combat/reticence/loaded/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/silenced ME.attach(src) diff --git a/code/modules/vehicles/mecha/equipment/tools/medical_tools.dm b/code/modules/vehicles/mecha/equipment/tools/medical_tools.dm index d5d3c66282b..01ecdef02f9 100644 --- a/code/modules/vehicles/mecha/equipment/tools/medical_tools.dm +++ b/code/modules/vehicles/mecha/equipment/tools/medical_tools.dm @@ -3,7 +3,7 @@ /obj/item/mecha_parts/mecha_equipment/medical mech_flags = EXOSUIT_MODULE_MEDICAL -/obj/item/mecha_parts/mecha_equipment/medical/Initialize() +/obj/item/mecha_parts/mecha_equipment/medical/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) @@ -279,7 +279,7 @@ ///Chooses what kind of action we should perform when clicking var/mode = FIRE_SYRINGE_MODE // fire syringe or analyze reagents. -/obj/item/mecha_parts/mecha_equipment/medical/syringe_gun/Initialize() +/obj/item/mecha_parts/mecha_equipment/medical/syringe_gun/Initialize(mapload) . = ..() create_reagents(max_volume, NO_REACT) known_reagents = list(/datum/reagent/medicine/epinephrine="Epinephrine",/datum/reagent/medicine/c2/multiver="Multiver") @@ -516,7 +516,7 @@ var/obj/item/gun/medbeam/mech/medigun custom_materials = list(/datum/material/iron = 15000, /datum/material/glass = 8000, /datum/material/plasma = 3000, /datum/material/gold = 8000, /datum/material/diamond = 2000) -/obj/item/mecha_parts/mecha_equipment/medical/mechmedbeam/Initialize() +/obj/item/mecha_parts/mecha_equipment/medical/mechmedbeam/Initialize(mapload) . = ..() medigun = new(src) diff --git a/code/modules/vehicles/mecha/equipment/tools/mining_tools.dm b/code/modules/vehicles/mecha/equipment/tools/mining_tools.dm index 7832a40eb78..7ac70ea3472 100644 --- a/code/modules/vehicles/mecha/equipment/tools/mining_tools.dm +++ b/code/modules/vehicles/mecha/equipment/tools/mining_tools.dm @@ -20,7 +20,7 @@ var/drill_level = DRILL_BASIC mech_flags = EXOSUIT_MODULE_WORKING | EXOSUIT_MODULE_COMBAT -/obj/item/mecha_parts/mecha_equipment/drill/Initialize() +/obj/item/mecha_parts/mecha_equipment/drill/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 50, 100, null, null, TRUE) @@ -169,7 +169,7 @@ var/scanning_time = 0 mech_flags = EXOSUIT_MODULE_WORKING -/obj/item/mecha_parts/mecha_equipment/mining_scanner/Initialize() +/obj/item/mecha_parts/mecha_equipment/mining_scanner/Initialize(mapload) . = ..() START_PROCESSING(SSfastprocess, src) diff --git a/code/modules/vehicles/mecha/equipment/tools/other_tools.dm b/code/modules/vehicles/mecha/equipment/tools/other_tools.dm index 916a63a6df4..84b5a6dea83 100644 --- a/code/modules/vehicles/mecha/equipment/tools/other_tools.dm +++ b/code/modules/vehicles/mecha/equipment/tools/other_tools.dm @@ -360,7 +360,7 @@ /// Energy recharged per second var/rechargerate = 10 -/obj/item/mecha_parts/mecha_equipment/generator/Initialize() +/obj/item/mecha_parts/mecha_equipment/generator/Initialize(mapload) . = ..() generator_init() diff --git a/code/modules/vehicles/mecha/equipment/tools/work_tools.dm b/code/modules/vehicles/mecha/equipment/tools/work_tools.dm index f7be92df31f..8689aa86f7b 100644 --- a/code/modules/vehicles/mecha/equipment/tools/work_tools.dm +++ b/code/modules/vehicles/mecha/equipment/tools/work_tools.dm @@ -163,7 +163,7 @@ range = MECHA_MELEE|MECHA_RANGED mech_flags = EXOSUIT_MODULE_WORKING -/obj/item/mecha_parts/mecha_equipment/extinguisher/Initialize() +/obj/item/mecha_parts/mecha_equipment/extinguisher/Initialize(mapload) . = ..() create_reagents(1000) reagents.add_reagent(/datum/reagent/water, 1000) @@ -240,7 +240,7 @@ ///determines what we'll so when clicking on a turf var/mode = MODE_DECONSTRUCT -/obj/item/mecha_parts/mecha_equipment/rcd/Initialize() +/obj/item/mecha_parts/mecha_equipment/rcd/Initialize(mapload) . = ..() GLOB.rcd_list += src diff --git a/code/modules/vehicles/mecha/mech_bay.dm b/code/modules/vehicles/mecha/mech_bay.dm index 3d152c2e936..dedf0cda98f 100644 --- a/code/modules/vehicles/mecha/mech_bay.dm +++ b/code/modules/vehicles/mecha/mech_bay.dm @@ -25,7 +25,7 @@ var/on = FALSE var/turf/recharging_turf = null -/obj/machinery/mech_bay_recharge_port/Initialize() +/obj/machinery/mech_bay_recharge_port/Initialize(mapload) . = ..() recharging_turf = get_step(loc, dir) @@ -146,7 +146,7 @@ return . += "recharge_comp_on" -/obj/machinery/computer/mech_bay_power_console/Initialize() +/obj/machinery/computer/mech_bay_power_console/Initialize(mapload) . = ..() reconnect() diff --git a/code/modules/vehicles/mecha/mecha_parts.dm b/code/modules/vehicles/mecha/mecha_parts.dm index c54dba5d93a..b2282065cf3 100644 --- a/code/modules/vehicles/mecha/mecha_parts.dm +++ b/code/modules/vehicles/mecha/mecha_parts.dm @@ -25,7 +25,7 @@ interaction_flags_item = NONE //Don't pick us up!! var/construct_type -/obj/item/mecha_parts/chassis/Initialize() +/obj/item/mecha_parts/chassis/Initialize(mapload) . = ..() if(construct_type) AddComponent(construct_type) diff --git a/code/modules/vehicles/mecha/working/clarke.dm b/code/modules/vehicles/mecha/working/clarke.dm index 9bb9d7f9381..5408b6bbab8 100644 --- a/code/modules/vehicles/mecha/working/clarke.dm +++ b/code/modules/vehicles/mecha/working/clarke.dm @@ -18,7 +18,7 @@ mecha_flags = ADDING_ACCESS_POSSIBLE | IS_ENCLOSED | HAS_LIGHTS | MMI_COMPATIBLE internals_req_access = list(ACCESS_MECH_ENGINE, ACCESS_MECH_SCIENCE, ACCESS_MECH_MINING) -/obj/vehicle/sealed/mecha/working/clarke/Initialize() +/obj/vehicle/sealed/mecha/working/clarke/Initialize(mapload) . = ..() box = new(src) var/obj/item/mecha_parts/mecha_equipment/orebox_manager/ME = new(src) diff --git a/code/modules/vehicles/mecha/working/ripley.dm b/code/modules/vehicles/mecha/working/ripley.dm index bd8624ae878..8388b17df01 100644 --- a/code/modules/vehicles/mecha/working/ripley.dm +++ b/code/modules/vehicles/mecha/working/ripley.dm @@ -46,7 +46,7 @@ possible_int_damage -= (MECHA_INT_TEMP_CONTROL + MECHA_INT_TANK_BREACH) return ..() -/obj/vehicle/sealed/mecha/working/ripley/Initialize() +/obj/vehicle/sealed/mecha/working/ripley/Initialize(mapload) . = ..() AddComponent(/datum/component/armor_plate,3,/obj/item/stack/sheet/animalhide/goliath_hide,list(MELEE = 10, BULLET = 5, LASER = 5)) @@ -97,7 +97,7 @@ enter_delay = 40 silicon_icon_state = null -/obj/vehicle/sealed/mecha/working/ripley/deathripley/Initialize() +/obj/vehicle/sealed/mecha/working/ripley/deathripley/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/hydraulic_clamp/kill/fake/clamper = new(loc) clamper.attach(src) @@ -105,7 +105,7 @@ /obj/vehicle/sealed/mecha/working/ripley/deathripley/real desc = "OH SHIT IT'S THE DEATHSQUAD WE'RE ALL GONNA DIE. FOR REAL" -/obj/vehicle/sealed/mecha/working/ripley/deathripley/real/Initialize() +/obj/vehicle/sealed/mecha/working/ripley/deathripley/real/Initialize(mapload) . = ..() for(var/obj/item/mecha_parts/mecha_equipment/E in equipment) E.detach() @@ -118,11 +118,11 @@ desc = "An old, dusty mining Ripley." name = "\improper APLU \"Miner\"" -/obj/vehicle/sealed/mecha/working/ripley/mining/Initialize() +/obj/vehicle/sealed/mecha/working/ripley/mining/Initialize(mapload) . = ..() take_damage(125) // Low starting health -/obj/vehicle/sealed/mecha/working/ripley/mining/Initialize() +/obj/vehicle/sealed/mecha/working/ripley/mining/Initialize(mapload) . = ..() if(cell) cell.charge = FLOOR(cell.charge * 0.25, 1) //Starts at very low charge @@ -152,7 +152,7 @@ max_equip = 2 max_integrity = 100 //Has half the health of a normal RIPLEY mech, so it's harder to use as a weapon. -/obj/vehicle/sealed/mecha/working/ripley/cargo/Initialize() +/obj/vehicle/sealed/mecha/working/ripley/cargo/Initialize(mapload) . = ..() if(cell) cell.charge = FLOOR(cell.charge * 0.25, 1) //Starts at very low charge diff --git a/code/modules/vehicles/scooter.dm b/code/modules/vehicles/scooter.dm index 7f331bb1fc5..799e07a766a 100644 --- a/code/modules/vehicles/scooter.dm +++ b/code/modules/vehicles/scooter.dm @@ -4,7 +4,7 @@ icon_state = "scooter" are_legs_exposed = TRUE -/obj/vehicle/ridden/scooter/Initialize() +/obj/vehicle/ridden/scooter/Initialize(mapload) . = ..() make_ridable() @@ -50,7 +50,7 @@ ///Stamina drain multiplier var/instability = 10 -/obj/vehicle/ridden/scooter/skateboard/Initialize() +/obj/vehicle/ridden/scooter/skateboard/Initialize(mapload) . = ..() sparks = new sparks.set_up(1, 0, src) diff --git a/code/modules/vehicles/secway.dm b/code/modules/vehicles/secway.dm index 7a07936debe..9d464b0e3ba 100644 --- a/code/modules/vehicles/secway.dm +++ b/code/modules/vehicles/secway.dm @@ -11,7 +11,7 @@ ///This stores a banana that, when used on the secway, prevents the vehicle from moving until it is removed. var/obj/item/food/grown/banana/eddie_murphy -/obj/vehicle/ridden/secway/Initialize() +/obj/vehicle/ridden/secway/Initialize(mapload) . = ..() AddElement(/datum/element/ridable, /datum/component/riding/vehicle/secway) diff --git a/code/modules/vehicles/speedbike.dm b/code/modules/vehicles/speedbike.dm index b27d3d8745b..5d1d2e6a9c7 100644 --- a/code/modules/vehicles/speedbike.dm +++ b/code/modules/vehicles/speedbike.dm @@ -5,7 +5,7 @@ layer = LYING_MOB_LAYER var/cover_iconstate = "cover_blue" -/obj/vehicle/ridden/speedbike/Initialize() +/obj/vehicle/ridden/speedbike/Initialize(mapload) . = ..() add_overlay(image(icon, cover_iconstate, ABOVE_MOB_LAYER)) AddElement(/datum/element/ridable, /datum/component/riding/vehicle/speedbike) @@ -33,7 +33,7 @@ ///Determines whether we throw all things away when ramming them or just mobs, varedit only var/crash_all = FALSE -/obj/vehicle/ridden/speedwagon/Initialize() +/obj/vehicle/ridden/speedwagon/Initialize(mapload) . = ..() add_overlay(image(icon, "speedwagon_cover", ABOVE_MOB_LAYER)) AddElement(/datum/element/ridable, /datum/component/riding/vehicle/speedwagon) diff --git a/code/modules/vehicles/wheelchair.dm b/code/modules/vehicles/wheelchair.dm index e241032bb7a..80ebdb312f2 100644 --- a/code/modules/vehicles/wheelchair.dm +++ b/code/modules/vehicles/wheelchair.dm @@ -15,7 +15,7 @@ ///Determines the typepath of what the object folds into var/foldabletype = /obj/item/wheelchair -/obj/vehicle/ridden/wheelchair/Initialize() +/obj/vehicle/ridden/wheelchair/Initialize(mapload) . = ..() make_ridable() wheels_overlay = image(icon, overlay_icon, FLY_LAYER) diff --git a/code/modules/wiremod/components/abstract/module.dm b/code/modules/wiremod/components/abstract/module.dm index 85948870580..d7d7676006c 100644 --- a/code/modules/wiremod/components/abstract/module.dm +++ b/code/modules/wiremod/components/abstract/module.dm @@ -91,7 +91,7 @@ attached_module = null return ..() -/obj/item/circuit_component/module/Initialize() +/obj/item/circuit_component/module/Initialize(mapload) . = ..() internal_circuit = new(src) internal_circuit.attached_module = src diff --git a/code/modules/wiremod/core/component.dm b/code/modules/wiremod/core/component.dm index e6921e8314e..0368b29722b 100644 --- a/code/modules/wiremod/core/component.dm +++ b/code/modules/wiremod/core/component.dm @@ -63,7 +63,7 @@ /obj/item/circuit_component/proc/add_option_port(name, list/list_to_use, order = 0, trigger = .proc/input_received) return add_input_port(name, PORT_TYPE_OPTION, order = order, trigger = trigger, port_type = /datum/port/input/option, extra_args = list("possible_options" = list_to_use)) -/obj/item/circuit_component/Initialize() +/obj/item/circuit_component/Initialize(mapload) . = ..() if(name == COMPONENT_DEFAULT_NAME) name = "[lowertext(display_name)] [COMPONENT_DEFAULT_NAME]" diff --git a/code/modules/wiremod/core/component_printer.dm b/code/modules/wiremod/core/component_printer.dm index 7400aafbf20..948ea080e73 100644 --- a/code/modules/wiremod/core/component_printer.dm +++ b/code/modules/wiremod/core/component_printer.dm @@ -144,7 +144,7 @@ density = TRUE -/obj/machinery/debug_component_printer/Initialize() +/obj/machinery/debug_component_printer/Initialize(mapload) . = ..() all_circuit_designs = list() diff --git a/code/modules/wiremod/core/integrated_circuit.dm b/code/modules/wiremod/core/integrated_circuit.dm index 7d8f6f4c0fa..de5cb466220 100644 --- a/code/modules/wiremod/core/integrated_circuit.dm +++ b/code/modules/wiremod/core/integrated_circuit.dm @@ -69,14 +69,14 @@ GLOBAL_LIST_EMPTY_TYPED(integrated_circuits, /obj/item/integrated_circuit) /// The Y position of the screen. Used for adding components. var/screen_y = 0 -/obj/item/integrated_circuit/Initialize() +/obj/item/integrated_circuit/Initialize(mapload) . = ..() GLOB.integrated_circuits += src RegisterSignal(src, COMSIG_ATOM_USB_CABLE_TRY_ATTACH, .proc/on_atom_usb_cable_try_attach) -/obj/item/integrated_circuit/loaded/Initialize() +/obj/item/integrated_circuit/loaded/Initialize(mapload) . = ..() set_cell(new /obj/item/stock_parts/cell/high(src)) diff --git a/code/modules/wiremod/core/usb_cable.dm b/code/modules/wiremod/core/usb_cable.dm index df0dec936c4..ed0f1053a3d 100644 --- a/code/modules/wiremod/core/usb_cable.dm +++ b/code/modules/wiremod/core/usb_cable.dm @@ -17,7 +17,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/usb_cable/Initialize() +/obj/item/usb_cable/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_MOVABLE_MOVED, .proc/on_moved) diff --git a/code/modules/wiremod/preset/hello_world.dm b/code/modules/wiremod/preset/hello_world.dm index 9aee88a300a..2b579a0d814 100644 --- a/code/modules/wiremod/preset/hello_world.dm +++ b/code/modules/wiremod/preset/hello_world.dm @@ -5,7 +5,7 @@ */ /obj/item/integrated_circuit/loaded/hello_world -/obj/item/integrated_circuit/loaded/hello_world/Initialize() +/obj/item/integrated_circuit/loaded/hello_world/Initialize(mapload) . = ..() var/obj/item/circuit_component/speech/speech = new() add_component(speech) diff --git a/code/modules/wiremod/preset/speech_relay.dm b/code/modules/wiremod/preset/speech_relay.dm index 5e5284bdeb1..a1e66832c93 100644 --- a/code/modules/wiremod/preset/speech_relay.dm +++ b/code/modules/wiremod/preset/speech_relay.dm @@ -5,7 +5,7 @@ */ /obj/item/integrated_circuit/loaded/speech_relay -/obj/item/integrated_circuit/loaded/speech_relay/Initialize() +/obj/item/integrated_circuit/loaded/speech_relay/Initialize(mapload) . = ..() var/obj/item/circuit_component/hear/hear = new() add_component(hear) diff --git a/code/modules/wiremod/shell/airlock.dm b/code/modules/wiremod/shell/airlock.dm index c597182a572..dcaca5880aa 100644 --- a/code/modules/wiremod/shell/airlock.dm +++ b/code/modules/wiremod/shell/airlock.dm @@ -12,7 +12,7 @@ name = "circuit airlock" autoclose = FALSE -/obj/machinery/door/airlock/shell/Initialize() +/obj/machinery/door/airlock/shell/Initialize(mapload) . = ..() AddComponent( \ /datum/component/shell, \ diff --git a/code/modules/wiremod/shell/bot.dm b/code/modules/wiremod/shell/bot.dm index 45285ac47d5..b07265d4503 100644 --- a/code/modules/wiremod/shell/bot.dm +++ b/code/modules/wiremod/shell/bot.dm @@ -12,7 +12,7 @@ light_system = MOVABLE_LIGHT light_on = FALSE -/obj/structure/bot/Initialize() +/obj/structure/bot/Initialize(mapload) . = ..() AddComponent( \ /datum/component/shell, \ diff --git a/code/modules/wiremod/shell/brain_computer_interface.dm b/code/modules/wiremod/shell/brain_computer_interface.dm index 032e8a33552..b896f78cd6a 100644 --- a/code/modules/wiremod/shell/brain_computer_interface.dm +++ b/code/modules/wiremod/shell/brain_computer_interface.dm @@ -6,7 +6,7 @@ zone = BODY_ZONE_HEAD w_class = WEIGHT_CLASS_TINY -/obj/item/organ/cyberimp/bci/Initialize() +/obj/item/organ/cyberimp/bci/Initialize(mapload) . = ..() var/obj/item/integrated_circuit/circuit = new(src) @@ -335,7 +335,7 @@ COOLDOWN_DECLARE(message_cooldown) -/obj/machinery/bci_implanter/Initialize() +/obj/machinery/bci_implanter/Initialize(mapload) . = ..() occupant_typecache = typecacheof(/mob/living/carbon) diff --git a/code/modules/wiremod/shell/compact_remote.dm b/code/modules/wiremod/shell/compact_remote.dm index 9bed3d873c2..41c2bdc8f92 100644 --- a/code/modules/wiremod/shell/compact_remote.dm +++ b/code/modules/wiremod/shell/compact_remote.dm @@ -14,7 +14,7 @@ light_system = MOVABLE_LIGHT_DIRECTIONAL light_on = FALSE -/obj/item/compact_remote/Initialize() +/obj/item/compact_remote/Initialize(mapload) . = ..() AddComponent(/datum/component/shell, list( new /obj/item/circuit_component/compact_remote() diff --git a/code/modules/wiremod/shell/controller.dm b/code/modules/wiremod/shell/controller.dm index 7acf824e8b6..9cb40208047 100644 --- a/code/modules/wiremod/shell/controller.dm +++ b/code/modules/wiremod/shell/controller.dm @@ -15,7 +15,7 @@ light_system = MOVABLE_LIGHT_DIRECTIONAL light_on = FALSE -/obj/item/controller/Initialize() +/obj/item/controller/Initialize(mapload) . = ..() AddComponent(/datum/component/shell, list( new /obj/item/circuit_component/controller() diff --git a/code/modules/wiremod/shell/drone.dm b/code/modules/wiremod/shell/drone.dm index 1c90ea0a0bc..a3e37ee48c7 100644 --- a/code/modules/wiremod/shell/drone.dm +++ b/code/modules/wiremod/shell/drone.dm @@ -11,7 +11,7 @@ light_system = MOVABLE_LIGHT_DIRECTIONAL light_on = FALSE -/mob/living/circuit_drone/Initialize() +/mob/living/circuit_drone/Initialize(mapload) . = ..() AddComponent(/datum/component/shell, list( new /obj/item/circuit_component/bot_circuit() diff --git a/code/modules/wiremod/shell/gun.dm b/code/modules/wiremod/shell/gun.dm index 619e666282b..8d7ee284f3b 100644 --- a/code/modules/wiremod/shell/gun.dm +++ b/code/modules/wiremod/shell/gun.dm @@ -31,7 +31,7 @@ /obj/item/stock_parts/cell/emproof/wiremod_gun maxcharge = 100 -/obj/item/gun/energy/wiremod_gun/Initialize() +/obj/item/gun/energy/wiremod_gun/Initialize(mapload) . = ..() AddComponent(/datum/component/shell, list( new /obj/item/circuit_component/wiremod_gun() @@ -47,7 +47,7 @@ /// The entity being shot var/datum/port/output/shot -/obj/item/circuit_component/wiremod_gun/Initialize() +/obj/item/circuit_component/wiremod_gun/Initialize(mapload) . = ..() shooter = add_output_port("Shooter", PORT_TYPE_ATOM) shot = add_output_port("Shot Entity", PORT_TYPE_ATOM) diff --git a/code/modules/wiremod/shell/moneybot.dm b/code/modules/wiremod/shell/moneybot.dm index 0777bec8f77..998f304f5b0 100644 --- a/code/modules/wiremod/shell/moneybot.dm +++ b/code/modules/wiremod/shell/moneybot.dm @@ -23,7 +23,7 @@ stored_money += to_add SEND_SIGNAL(src, COMSIG_MONEYBOT_ADD_MONEY, to_add) -/obj/structure/money_bot/Initialize() +/obj/structure/money_bot/Initialize(mapload) . = ..() AddComponent(/datum/component/shell, list( new /obj/item/circuit_component/money_bot(), diff --git a/code/modules/wiremod/shell/scanner.dm b/code/modules/wiremod/shell/scanner.dm index b22c244e8f9..87f53c03925 100644 --- a/code/modules/wiremod/shell/scanner.dm +++ b/code/modules/wiremod/shell/scanner.dm @@ -14,7 +14,7 @@ light_system = MOVABLE_LIGHT_DIRECTIONAL light_on = FALSE -/obj/item/wiremod_scanner/Initialize() +/obj/item/wiremod_scanner/Initialize(mapload) . = ..() AddComponent(/datum/component/shell, list( new /obj/item/circuit_component/wiremod_scanner() diff --git a/code/modules/wiremod/shell/scanner_gate.dm b/code/modules/wiremod/shell/scanner_gate.dm index 45560b76851..db27885467a 100644 --- a/code/modules/wiremod/shell/scanner_gate.dm +++ b/code/modules/wiremod/shell/scanner_gate.dm @@ -5,7 +5,7 @@ icon_state = "scangate_black" var/locked = FALSE -/obj/structure/scanner_gate_shell/Initialize() +/obj/structure/scanner_gate_shell/Initialize(mapload) . = ..() set_scanline("passive") var/static/list/loc_connections = list( diff --git a/code/modules/wiremod/shell/server.dm b/code/modules/wiremod/shell/server.dm index 5e5a44f8970..57c4945e2c8 100644 --- a/code/modules/wiremod/shell/server.dm +++ b/code/modules/wiremod/shell/server.dm @@ -13,7 +13,7 @@ light_system = MOVABLE_LIGHT light_on = FALSE -/obj/structure/server/Initialize() +/obj/structure/server/Initialize(mapload) . = ..() AddComponent(/datum/component/shell, null, SHELL_CAPACITY_VERY_LARGE, SHELL_FLAG_REQUIRE_ANCHOR|SHELL_FLAG_USB_PORT) diff --git a/code/modules/zombie/items.dm b/code/modules/zombie/items.dm index 3283acc9a2e..0a0771beb81 100644 --- a/code/modules/zombie/items.dm +++ b/code/modules/zombie/items.dm @@ -17,7 +17,7 @@ bare_wound_bonus = 15 damtype = BRUTE -/obj/item/zombie_hand/Initialize() +/obj/item/zombie_hand/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, HAND_REPLACEMENT_TRAIT) diff --git a/code/modules/zombie/organs.dm b/code/modules/zombie/organs.dm index e6fb9be9b32..9da0053701a 100644 --- a/code/modules/zombie/organs.dm +++ b/code/modules/zombie/organs.dm @@ -13,7 +13,7 @@ var/revive_time_max = 700 var/timer_id -/obj/item/organ/zombie_infection/Initialize() +/obj/item/organ/zombie_infection/Initialize(mapload) . = ..() if(iscarbon(loc)) Insert(loc)