From 586a035132826d618f9cea4dac7dd9a10af96100 Mon Sep 17 00:00:00 2001 From: SandPoot Date: Wed, 6 Apr 2022 18:41:31 -0300 Subject: [PATCH] Update files --- code/__HELPERS/unsorted.dm | 2 +- code/_onclick/hud/action_button.dm | 2 +- code/_onclick/hud/alert.dm | 6 +- code/_onclick/hud/families.dm | 2 +- code/_onclick/hud/picture_in_picture.dm | 2 +- code/_onclick/hud/plane_master.dm | 14 ++--- .../_onclick/hud/screen_objects/clickdelay.dm | 2 +- code/_onclick/telekinesis.dm | 2 +- code/controllers/subsystem/atoms.dm | 4 +- .../subsystem/processing/quirks.dm | 2 +- code/datums/brain_damage/special.dm | 2 +- code/datums/components/killerqueen.dm | 4 +- code/datums/components/knockoff.dm | 2 +- code/datums/martial/sleeping_carp.dm | 2 +- code/datums/status_effects/debuffs.dm | 2 +- code/game/area/Space_Station_13_areas.dm | 2 +- code/game/area/ai_monitored.dm | 2 +- code/game/area/areas.dm | 4 +- code/game/area/areas/centcom.dm | 2 +- code/game/area/areas/edina.dm | 2 +- code/game/area/areas/holodeck.dm | 2 +- code/game/area/areas/shuttles.dm | 2 +- .../game/gamemodes/clown_ops/clown_weapons.dm | 12 ++-- code/game/gamemodes/meteor/meteors.dm | 6 +- code/game/machinery/Beacon.dm | 2 +- code/game/machinery/PDApainter.dm | 2 +- code/game/machinery/Sleeper.dm | 6 +- code/game/machinery/_machinery.dm | 2 +- code/game/machinery/airlock_control.dm | 2 +- code/game/machinery/announcement_system.dm | 2 +- code/game/machinery/aug_manipulator.dm | 18 +++--- code/game/machinery/autolathe.dm | 8 +-- code/game/machinery/bank_machine.dm | 2 +- code/game/machinery/bloodbankgen.dm | 2 +- code/game/machinery/camera/motion.dm | 2 +- code/game/machinery/camera/presets.dm | 10 ++-- code/game/machinery/cloning.dm | 2 +- code/game/machinery/computer/Operating.dm | 2 +- code/game/machinery/computer/arcade.dm | 2 +- .../machinery/computer/arcade/orion_trail.dm | 2 +- code/game/machinery/computer/atmos_alert.dm | 2 +- code/game/machinery/computer/atmos_control.dm | 4 +- code/game/machinery/computer/camera.dm | 4 +- .../machinery/computer/camera_advanced.dm | 2 +- code/game/machinery/computer/card.dm | 4 +- code/game/machinery/computer/cloning.dm | 2 +- .../game/machinery/computer/communications.dm | 2 +- code/game/machinery/computer/dna_console.dm | 4 +- .../machinery/computer/launchpad_control.dm | 2 +- code/game/machinery/computer/pod.dm | 2 +- .../computer/prisoner/gulag_teleporter.dm | 2 +- code/game/machinery/computer/station_alert.dm | 2 +- .../machinery/computer/telecrystalconsoles.dm | 2 +- code/game/machinery/computer/teleporter.dm | 2 +- code/game/machinery/cryopod.dm | 4 +- code/game/machinery/defibrillator_mount.dm | 2 +- code/game/machinery/deployable.dm | 2 +- code/game/machinery/dish_drive.dm | 2 +- code/game/machinery/dna_scanner.dm | 2 +- code/game/machinery/doors/airlock.dm | 2 +- code/game/machinery/doors/airlock_types.dm | 4 +- code/game/machinery/doors/alarmlock.dm | 4 +- code/game/machinery/doors/brigdoors.dm | 2 +- code/game/machinery/doors/door.dm | 2 +- code/game/machinery/doors/firedoor.dm | 2 +- code/game/machinery/doppler_array.dm | 4 +- code/game/machinery/droneDispenser.dm | 2 +- .../embedded_controller/access_controller.dm | 2 +- .../embedded_controller_base.dm | 2 +- code/game/machinery/flasher.dm | 2 +- code/game/machinery/gulag_teleporter.dm | 2 +- code/game/machinery/harvester.dm | 2 +- code/game/machinery/hologram.dm | 4 +- code/game/machinery/hypnochair.dm | 2 +- code/game/machinery/igniter.dm | 4 +- code/game/machinery/launch_pad.dm | 2 +- code/game/machinery/lightswitch.dm | 2 +- code/game/machinery/limbgrower.dm | 6 +- code/game/machinery/magnet.dm | 4 +- code/game/machinery/mechlaunchpad.dm | 2 +- code/game/machinery/navbeacon.dm | 2 +- .../machinery/porta_turret/portable_turret.dm | 4 +- code/game/machinery/quantum_pad.dm | 2 +- code/game/machinery/rechargestation.dm | 6 +- code/game/machinery/recycler.dm | 2 +- code/game/machinery/requests_console.dm | 2 +- code/game/machinery/sheetifier.dm | 2 +- code/game/machinery/shieldgen.dm | 2 +- code/game/machinery/shuttle/custom_shuttle.dm | 2 +- code/game/machinery/shuttle/shuttle_engine.dm | 2 +- code/game/machinery/slotmachine.dm | 2 +- code/game/machinery/spaceheater.dm | 2 +- code/game/machinery/status_display.dm | 4 +- code/game/machinery/suit_storage_unit.dm | 2 +- code/game/machinery/syndicatebomb.dm | 4 +- .../machinery/telecomms/machines/allinone.dm | 2 +- code/game/machinery/telecomms/machines/bus.dm | 2 +- .../telecomms/machines/message_server.dm | 4 +- .../machinery/telecomms/machines/receiver.dm | 2 +- .../machinery/telecomms/machines/server.dm | 8 +-- code/game/machinery/teleporter.dm | 6 +- code/game/machinery/transformer.dm | 2 +- code/game/machinery/turnstile.dm | 2 +- code/game/mecha/combat/five_stars.dm | 2 +- code/game/mecha/combat/gygax.dm | 2 +- code/game/mecha/combat/marauder.dm | 6 +- code/game/mecha/combat/neovgre.dm | 2 +- code/game/mecha/combat/reticence.dm | 2 +- .../mecha/equipment/tools/medical_tools.dm | 6 +- .../mecha/equipment/tools/mining_tools.dm | 6 +- .../game/mecha/equipment/tools/other_tools.dm | 2 +- code/game/mecha/equipment/tools/work_tools.dm | 6 +- code/game/mecha/mech_bay.dm | 4 +- code/game/mecha/mecha.dm | 2 +- code/game/mecha/mecha_parts.dm | 4 +- code/game/mecha/mecha_wreckage.dm | 14 ++--- code/game/mecha/working/ripley.dm | 8 +-- code/game/objects/effects/arachnid_web.dm | 2 +- code/game/objects/effects/bump_teleporter.dm | 2 +- code/game/objects/effects/contraband.dm | 2 +- code/game/objects/effects/countdown.dm | 2 +- .../effects/decals/cleanable/aliens.dm | 2 +- .../effects/decals/cleanable/humans.dm | 2 +- .../objects/effects/decals/cleanable/misc.dm | 10 ++-- .../effects/decals/cleanable/robots.dm | 4 +- code/game/objects/effects/decals/decal.dm | 4 +- .../effects/effect_system/effect_system.dm | 2 +- .../effect_system/effects_explosion.dm | 4 +- .../effects/effect_system/effects_foam.dm | 6 +- .../effects/effect_system/effects_smoke.dm | 2 +- .../effects/effect_system/effects_sparks.dm | 4 +- .../effects/effect_system/effects_water.dm | 4 +- code/game/objects/effects/forcefields.dm | 2 +- code/game/objects/effects/landmarks.dm | 10 ++-- code/game/objects/effects/mines.dm | 2 +- code/game/objects/effects/overlays.dm | 2 +- .../objects/effects/spawners/bombspawner.dm | 4 +- .../objects/effects/spawners/gibspawner.dm | 28 ++++----- .../game/objects/effects/spawners/lootdrop.dm | 6 +- .../objects/effects/spawners/structure.dm | 34 +++++------ code/game/objects/effects/spiders.dm | 8 +-- .../effects/temporary_visuals/clockcult.dm | 10 ++-- .../temporary_visuals/temporary_visual.dm | 2 +- code/game/objects/items.dm | 2 +- code/game/objects/items/AI_modules.dm | 2 +- code/game/objects/items/RCD.dm | 8 +-- code/game/objects/items/RCL.dm | 4 +- code/game/objects/items/RPD.dm | 2 +- code/game/objects/items/airlock_painter.dm | 6 +- code/game/objects/items/binoculars.dm | 2 +- code/game/objects/items/boombox.dm | 2 +- code/game/objects/items/broom.dm | 2 +- code/game/objects/items/candle.dm | 2 +- code/game/objects/items/cardboard_cutouts.dm | 2 +- code/game/objects/items/cards_ids.dm | 24 ++++---- code/game/objects/items/chainsaw.dm | 2 +- code/game/objects/items/charter.dm | 2 +- code/game/objects/items/chrono_eraser.dm | 6 +- code/game/objects/items/cigs_lighters.dm | 12 ++-- .../circuitboards/computer_circuitboards.dm | 2 +- .../circuitboards/machine_circuitboards.dm | 4 +- code/game/objects/items/clown_items.dm | 2 +- code/game/objects/items/control_wand.dm | 2 +- code/game/objects/items/crayons.dm | 6 +- code/game/objects/items/defib.dm | 4 +- code/game/objects/items/devices/PDA/PDA.dm | 2 +- .../objects/items/devices/PDA/PDA_types.dm | 2 +- code/game/objects/items/devices/PDA/cart.dm | 6 +- code/game/objects/items/devices/PDA/radio.dm | 2 +- code/game/objects/items/devices/beacon.dm | 8 +-- .../objects/items/devices/dogborg_sleeper.dm | 2 +- .../devices/electroadaptive_pseudocircuit.dm | 2 +- code/game/objects/items/devices/flashlight.dm | 4 +- .../objects/items/devices/geiger_counter.dm | 2 +- code/game/objects/items/devices/gps.dm | 6 +- code/game/objects/items/devices/multitool.dm | 4 +- code/game/objects/items/devices/paicard.dm | 2 +- code/game/objects/items/devices/powersink.dm | 2 +- .../objects/items/devices/pressureplates.dm | 2 +- .../items/devices/radio/electropack.dm | 2 +- .../items/devices/radio/encryptionkey.dm | 2 +- .../objects/items/devices/radio/headset.dm | 6 +- .../game/objects/items/devices/radio/radio.dm | 4 +- .../items/devices/reverse_bear_trap.dm | 2 +- .../objects/items/devices/traitordevices.dm | 2 +- code/game/objects/items/dice.dm | 4 +- code/game/objects/items/dualsaber.dm | 4 +- code/game/objects/items/extinguisher.dm | 2 +- code/game/objects/items/fireaxe.dm | 2 +- code/game/objects/items/fluff.dm | 4 +- code/game/objects/items/granters.dm | 2 +- .../objects/items/grenades/chem_grenade.dm | 30 +++++----- .../game/objects/items/grenades/ghettobomb.dm | 2 +- code/game/objects/items/grenades/plastic.dm | 2 +- code/game/objects/items/handcuffs.dm | 2 +- code/game/objects/items/his_grace.dm | 2 +- code/game/objects/items/holy_weapons.dm | 12 ++-- .../objects/items/implants/implant_chem.dm | 2 +- .../objects/items/implants/implant_stealth.dm | 2 +- .../objects/items/implants/implant_track.dm | 4 +- .../objects/items/implants/implantchair.dm | 2 +- code/game/objects/items/inducer.dm | 8 +-- code/game/objects/items/kitchen.dm | 8 +-- code/game/objects/items/manuals.dm | 2 +- code/game/objects/items/melee/energy.dm | 6 +- code/game/objects/items/melee/misc.dm | 14 ++--- code/game/objects/items/melee/transforming.dm | 2 +- code/game/objects/items/pet_carrier.dm | 2 +- code/game/objects/items/pinpointer.dm | 2 +- code/game/objects/items/pitchfork.dm | 4 +- code/game/objects/items/plushes.dm | 2 +- code/game/objects/items/pneumaticCannon.dm | 4 +- code/game/objects/items/religion.dm | 2 +- code/game/objects/items/robot/robot_items.dm | 2 +- code/game/objects/items/shields.dm | 4 +- code/game/objects/items/singularityhammer.dm | 2 +- code/game/objects/items/spear.dm | 2 +- code/game/objects/items/stacks/bscrystal.dm | 2 +- code/game/objects/items/stacks/medical.dm | 4 +- .../game/objects/items/stacks/sheets/glass.dm | 2 +- code/game/objects/items/storage/_storage.dm | 2 +- code/game/objects/items/storage/backpack.dm | 4 +- code/game/objects/items/storage/belt.dm | 4 +- code/game/objects/items/storage/book.dm | 2 +- code/game/objects/items/storage/boxes.dm | 4 +- code/game/objects/items/storage/lockbox.dm | 2 +- code/game/objects/items/storage/toolbox.dm | 2 +- .../game/objects/items/storage/uplink_kits.dm | 2 +- code/game/objects/items/stunbaton.dm | 2 +- code/game/objects/items/summon.dm | 2 +- code/game/objects/items/tanks/jetpack.dm | 4 +- code/game/objects/items/tanks/tanks.dm | 2 +- code/game/objects/items/tanks/watertank.dm | 12 ++-- code/game/objects/items/teleportation.dm | 2 +- code/game/objects/items/theft_tools.dm | 4 +- code/game/objects/items/tools/screwdriver.dm | 2 +- code/game/objects/items/tools/weldingtool.dm | 2 +- code/game/objects/items/tools/wirecutters.dm | 2 +- code/game/objects/items/toys.dm | 6 +- code/game/objects/items/trash.dm | 2 +- code/game/objects/items/weaponry.dm | 24 ++++---- code/game/objects/objs.dm | 2 +- code/game/objects/structures.dm | 4 +- code/game/objects/structures/ai_core.dm | 4 +- code/game/objects/structures/aliens.dm | 4 +- code/game/objects/structures/artstuff.dm | 2 +- code/game/objects/structures/barsigns.dm | 2 +- .../objects/structures/beds_chairs/chair.dm | 4 +- .../objects/structures/beds_chairs/pew.dm | 4 +- .../objects/structures/beds_chairs/sofa.dm | 2 +- code/game/objects/structures/bedsheet_bin.dm | 6 +- .../crates_lockers/closets/secure/freezer.dm | 2 +- .../structures/crates_lockers/crates.dm | 4 +- code/game/objects/structures/displaycase.dm | 4 +- code/game/objects/structures/false_walls.dm | 2 +- code/game/objects/structures/fence.dm | 4 +- code/game/objects/structures/fireaxe.dm | 2 +- code/game/objects/structures/flora.dm | 60 +++++++++---------- code/game/objects/structures/guillotine.dm | 2 +- code/game/objects/structures/headpike.dm | 2 +- code/game/objects/structures/holosign.dm | 6 +- .../structures/icemoon/cave_entrance.dm | 4 +- code/game/objects/structures/janicart.dm | 2 +- code/game/objects/structures/ladders.dm | 2 +- .../objects/structures/lavaland/geyser.dm | 2 +- .../structures/lavaland/necropolis_tendril.dm | 4 +- code/game/objects/structures/loot_pile.dm | 2 +- code/game/objects/structures/manned_turret.dm | 2 +- code/game/objects/structures/mineral_doors.dm | 4 +- code/game/objects/structures/mop_bucket.dm | 2 +- code/game/objects/structures/morgue.dm | 4 +- code/game/objects/structures/plasticflaps.dm | 4 +- code/game/objects/structures/railings.dm | 2 +- code/game/objects/structures/reflector.dm | 2 +- code/game/objects/structures/showcase.dm | 4 +- code/game/objects/structures/spawner.dm | 2 +- code/game/objects/structures/statues.dm | 2 +- code/game/objects/structures/tables_racks.dm | 2 +- .../game/objects/structures/tank_dispenser.dm | 2 +- .../transit_tubes/transit_tube_pod.dm | 2 +- code/game/objects/structures/watercloset.dm | 6 +- code/game/objects/structures/window.dm | 2 +- code/game/turfs/baseturf_skipover.dm | 2 +- code/game/turfs/closed.dm | 4 +- code/game/turfs/open.dm | 2 +- code/game/turfs/open/floor/catwalk_plating.dm | 2 +- code/game/turfs/openspace/transparent.dm | 4 +- code/game/turfs/simulated/chasm.dm | 4 +- .../game/turfs/simulated/floor/fancy_floor.dm | 10 ++-- .../game/turfs/simulated/floor/light_floor.dm | 2 +- .../turfs/simulated/floor/mineral_floor.dm | 4 +- code/game/turfs/simulated/floor/misc_floor.dm | 4 +- code/game/turfs/simulated/floor/plating.dm | 2 +- .../turfs/simulated/floor/plating/asteroid.dm | 4 +- .../simulated/floor/plating/misc_plating.dm | 10 ++-- .../game/turfs/simulated/floor/reinf_floor.dm | 2 +- code/game/turfs/simulated/glass.dm | 2 +- code/game/turfs/simulated/minerals.dm | 6 +- code/game/turfs/simulated/openspace.dm | 4 +- code/game/turfs/simulated/wall/misc_walls.dm | 4 +- code/game/turfs/space/space.dm | 6 +- code/game/turfs/space/transit.dm | 2 +- code/modules/NTNet/relays.dm | 2 +- code/modules/VR/vr_sleeper.dm | 8 +-- code/modules/admin/fun_balloon.dm | 4 +- code/modules/admin/verbs/randomverbs.dm | 2 +- .../abductor/equipment/abduction_gear.dm | 2 +- .../antagonists/abductor/equipment/gland.dm | 2 +- .../abductor/equipment/glands/chem.dm | 2 +- .../abductor/machinery/dispenser.dm | 2 +- .../antagonists/abductor/machinery/pad.dm | 2 +- .../antagonists/blob/blob/blobs/blob_mobs.dm | 2 +- .../antagonists/blob/blob/blobs/node.dm | 2 +- .../bloodsucker/bloodsucker_sunlight.dm | 2 +- .../changeling/powers/mutations.dm | 16 ++--- .../changeling/powers/transform.dm | 16 ++--- .../antagonists/clockcult/clock_effect.dm | 2 +- .../clock_effects/city_of_cogs_rift.dm | 2 +- .../clockcult/clock_effects/clock_overlay.dm | 2 +- .../clockcult/clock_effects/clock_sigils.dm | 4 +- .../clock_effects/servant_blocker.dm | 2 +- .../clock_effects/spatial_gateway.dm | 2 +- .../antagonists/clockcult/clock_item.dm | 2 +- .../clockcult/clock_items/clock_components.dm | 2 +- .../clock_items/clock_weapons/brass_claw.dm | 2 +- .../clockcult/clock_items/clockwork_armor.dm | 8 +-- .../clockcult/clock_items/clockwork_slab.dm | 2 +- .../clock_items/construct_chassis.dm | 4 +- .../clockcult/clock_items/integration_cog.dm | 2 +- .../clockcult/clock_items/judicial_visor.dm | 2 +- .../clockcult/clock_items/soul_vessel.dm | 2 +- .../clock_items/wraith_spectacles.dm | 2 +- .../antagonists/clockcult/clock_mobs.dm | 2 +- .../clock_mobs/clockwork_guardian.dm | 2 +- .../antagonists/clockcult/clock_structure.dm | 4 +- .../clock_structures/_trap_object.dm | 4 +- .../ark_of_the_clockwork_justicar.dm | 2 +- .../clock_structures/clockwork_obelisk.dm | 2 +- .../clock_structures/heralds_beacon.dm | 2 +- .../clock_structures/ocular_warden.dm | 2 +- .../ratvar_the_clockwork_justicar.dm | 2 +- .../clockcult/clock_structures/reflector.dm | 2 +- .../clockcult/clock_structures/stargazer.dm | 2 +- .../clock_structures/taunting_trail.dm | 2 +- .../clock_structures/traps/brass_skewer.dm | 2 +- .../clockcult/clock_structures/wall_gear.dm | 2 +- code/modules/antagonists/cult/cult_items.dm | 16 ++--- .../antagonists/cult/cult_structures.dm | 2 +- code/modules/antagonists/cult/ritual.dm | 2 +- code/modules/antagonists/cult/runes.dm | 2 +- code/modules/antagonists/devil/imp/imp.dm | 2 +- .../devil/true_devil/_true_devil.dm | 2 +- .../eldritch_cult/eldritch_effects.dm | 6 +- .../eldritch_cult/eldritch_items.dm | 4 +- .../eldritch_cult/eldritch_magic.dm | 2 +- code/modules/antagonists/gang/cellphone.dm | 2 +- code/modules/antagonists/morph/morph.dm | 2 +- .../nukeop/equipment/borgchameleon.dm | 2 +- .../nukeop/equipment/nuclearbomb.dm | 6 +- .../nukeop/equipment/pinpointer.dm | 4 +- .../antagonists/slaughter/slaughter.dm | 4 +- code/modules/antagonists/swarmer/swarmer.dm | 6 +- .../traitor/equipment/Malf_Modules.dm | 2 +- .../antagonists/wizard/equipment/artefact.dm | 2 +- .../antagonists/wizard/equipment/spellbook.dm | 2 +- code/modules/arousal/toys/dildos.dm | 2 +- code/modules/assembly/infrared.dm | 2 +- code/modules/assembly/proximity.dm | 2 +- code/modules/assembly/signaler.dm | 2 +- code/modules/assembly/timer.dm | 2 +- .../environmental/LINDA_turf_tile.dm | 2 +- .../components/unary_devices/cryo.dm | 2 +- .../components/unary_devices/thermomachine.dm | 6 +- .../atmospherics/machinery/other/miner.dm | 2 +- .../machinery/pipes/heat_exchange/he_pipes.dm | 2 +- .../machinery/pipes/heat_exchange/manifold.dm | 2 +- .../machinery/pipes/layermanifold.dm | 2 +- .../atmospherics/machinery/pipes/manifold.dm | 2 +- .../machinery/pipes/manifold4w.dm | 2 +- .../atmospherics/machinery/portable/pump.dm | 2 +- code/modules/awaymissions/away_props.dm | 2 +- code/modules/awaymissions/capture_the_flag.dm | 4 +- code/modules/awaymissions/corpse.dm | 4 +- code/modules/awaymissions/gateway.dm | 4 +- .../awaymissions/mission_code/Cabin.dm | 2 +- .../awaymissions/mission_code/jungleresort.dm | 2 +- .../awaymissions/mission_code/murderdome.dm | 2 +- .../mission_code/stationCollision.dm | 4 +- code/modules/awaymissions/signpost.dm | 4 +- .../modules/awaymissions/super_secret_room.dm | 2 +- code/modules/awaymissions/zlevel.dm | 2 +- .../cargo/blackmarket/blackmarket_telepad.dm | 2 +- .../cargo/blackmarket/blackmarket_uplink.dm | 4 +- code/modules/cargo/bounty_console.dm | 4 +- code/modules/cargo/console.dm | 2 +- code/modules/cargo/expressconsole.dm | 2 +- code/modules/cargo/supplypod.dm | 2 +- code/modules/clothing/chameleon.dm | 54 ++++++++--------- code/modules/clothing/clothing.dm | 2 +- code/modules/clothing/ears/_ears.dm | 2 +- code/modules/clothing/glasses/_glasses.dm | 4 +- .../clothing/glasses/engine_goggles.dm | 2 +- code/modules/clothing/gloves/color.dm | 4 +- code/modules/clothing/gloves/miscellaneous.dm | 4 +- code/modules/clothing/gloves/mittens.dm | 2 +- code/modules/clothing/head/_head.dm | 2 +- code/modules/clothing/head/hardhat.dm | 2 +- code/modules/clothing/head/jobs.dm | 4 +- code/modules/clothing/head/misc.dm | 2 +- code/modules/clothing/masks/cluwne.dm | 4 +- code/modules/clothing/masks/gasmask.dm | 2 +- code/modules/clothing/masks/miscellaneous.dm | 8 +-- code/modules/clothing/neck/_neck.dm | 2 +- code/modules/clothing/shoes/bananashoes.dm | 2 +- code/modules/clothing/shoes/cluwne.dm | 2 +- code/modules/clothing/shoes/magboots.dm | 2 +- code/modules/clothing/shoes/miscellaneous.dm | 8 +-- code/modules/clothing/spacesuits/hardsuit.dm | 32 +++++----- .../clothing/spacesuits/miscellaneous.dm | 8 +-- code/modules/clothing/spacesuits/plasmamen.dm | 2 +- code/modules/clothing/suits/armor.dm | 10 ++-- code/modules/clothing/suits/jobs.dm | 2 +- code/modules/clothing/suits/miscellaneous.dm | 14 ++--- code/modules/clothing/suits/toggles.dm | 4 +- code/modules/clothing/under/accessories.dm | 4 +- code/modules/clothing/under/cluwne.dm | 2 +- code/modules/clothing/under/color.dm | 8 +-- code/modules/clothing/under/costume.dm | 6 +- .../under/jobs/civilian/clown_mime.dm | 2 +- code/modules/events/pirates.dm | 2 +- code/modules/events/shuttle_loan.dm | 2 +- code/modules/events/spacevine.dm | 2 +- code/modules/events/travelling_trader.dm | 12 ++-- code/modules/events/wizard/magicarp.dm | 2 +- code/modules/fields/fields.dm | 2 +- code/modules/flufftext/Hallucination.dm | 2 +- code/modules/food_and_drinks/drinks/drinks.dm | 2 +- .../food_and_drinks/drinks/drinks/bottle.dm | 8 +-- .../drinks/drinks/drinkingglass.dm | 2 +- .../food_and_drinks/food/customizables.dm | 2 +- .../food_and_drinks/food/snacks_burgers.dm | 6 +- .../food_and_drinks/food/snacks_egg.dm | 2 +- .../food_and_drinks/food/snacks_meat.dm | 12 ++-- .../food_and_drinks/food/snacks_other.dm | 10 ++-- .../food_and_drinks/food/snacks_pastry.dm | 10 ++-- .../food_and_drinks/food/snacks_pie.dm | 2 +- .../food_and_drinks/food/snacks_pizza.dm | 4 +- .../food_and_drinks/food/snacks_salad.dm | 2 +- .../food_and_drinks/food/snacks_soup.dm | 8 +-- .../kitchen_machinery/deep_fryer.dm | 2 +- .../kitchen_machinery/food_cart.dm | 2 +- .../kitchen_machinery/gibber.dm | 2 +- .../kitchen_machinery/grill.dm | 2 +- .../kitchen_machinery/icecream_vat.dm | 4 +- .../kitchen_machinery/microwave.dm | 2 +- .../kitchen_machinery/smartfridge.dm | 6 +- code/modules/food_and_drinks/pizzabox.dm | 16 ++--- code/modules/holiday/easter.dm | 4 +- code/modules/holiday/halloween/halloween.dm | 10 ++-- code/modules/holiday/halloween/jacqueen.dm | 10 ++-- code/modules/holodeck/holo_effect.dm | 2 +- code/modules/holodeck/items.dm | 6 +- code/modules/holodeck/turfs.dm | 14 ++--- code/modules/hydroponics/beekeeping/beebox.dm | 4 +- .../hydroponics/beekeeping/honey_frame.dm | 2 +- .../hydroponics/beekeeping/honeycomb.dm | 2 +- code/modules/hydroponics/biogenerator.dm | 2 +- code/modules/hydroponics/fermenting_barrel.dm | 4 +- code/modules/hydroponics/gene_modder.dm | 2 +- code/modules/hydroponics/grown/banana.dm | 2 +- .../hydroponics/grown/cocoa_vanilla.dm | 2 +- code/modules/hydroponics/grown/melon.dm | 2 +- code/modules/hydroponics/grown/random.dm | 4 +- code/modules/hydroponics/grown/replicapod.dm | 2 +- code/modules/hydroponics/grown/towercap.dm | 2 +- code/modules/hydroponics/growninedible.dm | 2 +- code/modules/hydroponics/hydroitemdefines.dm | 6 +- code/modules/hydroponics/hydroponics.dm | 2 +- code/modules/hydroponics/sample.dm | 2 +- code/modules/instruments/instruments/item.dm | 8 +-- .../integrated_electronics/core/assemblies.dm | 2 +- .../integrated_electronics/core/detailer.dm | 2 +- .../core/integrated_circuit.dm | 2 +- .../integrated_electronics/core/printer.dm | 2 +- .../integrated_electronics/passive/power.dm | 2 +- .../subtypes/arithmetic.dm | 2 +- .../subtypes/atmospherics.dm | 14 ++--- .../subtypes/converters.dm | 2 +- .../subtypes/data_transfer.dm | 8 +-- .../integrated_electronics/subtypes/input.dm | 6 +- .../integrated_electronics/subtypes/lists.dm | 4 +- .../integrated_electronics/subtypes/memory.dm | 2 +- .../integrated_electronics/subtypes/output.dm | 4 +- .../subtypes/reagents.dm | 14 ++--- .../integrated_electronics/subtypes/smart.dm | 2 +- .../subtypes/weaponized.dm | 2 +- .../jobs/job_types/security_officer.dm | 2 +- code/modules/library/lib_items.dm | 6 +- code/modules/library/lib_machines.dm | 2 +- code/modules/library/random_books.dm | 2 +- .../mapping_helpers/_mapping_helpers.dm | 4 +- .../mapping/mapping_helpers/baseturf.dm | 2 +- code/modules/mining/abandoned_crates.dm | 2 +- code/modules/mining/aux_base.dm | 2 +- code/modules/mining/aux_base_camera.dm | 2 +- .../modules/mining/equipment/explorer_gear.dm | 10 ++-- .../mining/equipment/kinetic_crusher.dm | 2 +- .../mining/equipment/mineral_scanner.dm | 2 +- code/modules/mining/equipment/mining_tools.dm | 4 +- .../mining/equipment/regenerative_core.dm | 4 +- code/modules/mining/equipment/resonator.dm | 2 +- code/modules/mining/equipment/survival_pod.dm | 2 +- code/modules/mining/fulton.dm | 2 +- code/modules/mining/laborcamp/laborstacker.dm | 2 +- code/modules/mining/lavaland/ash_flora.dm | 4 +- .../mining/lavaland/necropolis_chests.dm | 12 ++-- code/modules/mining/machine_processing.dm | 4 +- code/modules/mining/machine_stacking.dm | 2 +- code/modules/mining/machine_vending.dm | 4 +- code/modules/mining/mine_items.dm | 2 +- code/modules/mining/minebot.dm | 2 +- code/modules/mining/mint.dm | 2 +- code/modules/mining/money_bag.dm | 2 +- code/modules/mining/ores_coins.dm | 2 +- code/modules/mob/dead/dead.dm | 2 +- .../modules/mob/dead/new_player/new_player.dm | 4 +- code/modules/mob/living/bloodcrawl.dm | 2 +- code/modules/mob/living/brain/MMI.dm | 4 +- code/modules/mob/living/brain/brain.dm | 2 +- code/modules/mob/living/brain/posibrain.dm | 2 +- code/modules/mob/living/carbon/alien/alien.dm | 2 +- .../carbon/alien/humanoid/alien_powers.dm | 2 +- .../carbon/alien/humanoid/caste/drone.dm | 2 +- .../carbon/alien/humanoid/caste/praetorian.dm | 2 +- .../carbon/alien/humanoid/caste/sentinel.dm | 2 +- .../living/carbon/alien/humanoid/humanoid.dm | 2 +- .../mob/living/carbon/alien/humanoid/queen.dm | 4 +- .../mob/living/carbon/alien/larva/larva.dm | 2 +- .../modules/mob/living/carbon/alien/organs.dm | 2 +- code/modules/mob/living/carbon/carbon.dm | 2 +- code/modules/mob/living/carbon/human/human.dm | 4 +- .../carbon/human/species_types/jellypeople.dm | 2 +- .../human/species_types/shadowpeople.dm | 2 +- .../mob/living/carbon/monkey/monkey.dm | 2 +- .../mob/living/carbon/monkey/punpun.dm | 2 +- code/modules/mob/living/living.dm | 2 +- .../mob/living/silicon/ai/freelook/eye.dm | 2 +- .../modules/mob/living/silicon/ai/multicam.dm | 4 +- code/modules/mob/living/silicon/pai/pai.dm | 4 +- .../modules/mob/living/silicon/robot/robot.dm | 4 +- .../mob/living/silicon/robot/robot_modules.dm | 4 +- code/modules/mob/living/silicon/silicon.dm | 2 +- .../living/simple_animal/bot/SuperBeepsky.dm | 2 +- .../mob/living/simple_animal/bot/bot.dm | 4 +- .../mob/living/simple_animal/bot/cleanbot.dm | 2 +- .../living/simple_animal/bot/construction.dm | 4 +- .../mob/living/simple_animal/bot/firebot.dm | 2 +- .../mob/living/simple_animal/bot/floorbot.dm | 2 +- .../mob/living/simple_animal/bot/honkbot.dm | 2 +- .../mob/living/simple_animal/bot/mulebot.dm | 2 +- .../mob/living/simple_animal/bot/secbot.dm | 4 +- .../mob/living/simple_animal/constructs.dm | 4 +- .../living/simple_animal/eldritch_demons.dm | 4 +- .../living/simple_animal/friendly/bumbles.dm | 2 +- .../simple_animal/friendly/butterfly.dm | 2 +- .../mob/living/simple_animal/friendly/cat.dm | 4 +- .../simple_animal/friendly/cockroach.dm | 2 +- .../mob/living/simple_animal/friendly/crab.dm | 2 +- .../mob/living/simple_animal/friendly/dog.dm | 8 +-- .../simple_animal/friendly/drone/_drone.dm | 2 +- .../friendly/drone/drones_as_items.dm | 2 +- .../friendly/drone/extra_drone_types.dm | 10 ++-- .../simple_animal/friendly/farm_animals.dm | 18 +++--- .../living/simple_animal/friendly/gondola.dm | 2 +- .../living/simple_animal/friendly/mouse.dm | 4 +- .../mob/living/simple_animal/friendly/pet.dm | 2 +- .../living/simple_animal/friendly/possum.dm | 2 +- .../living/simple_animal/friendly/snake.dm | 2 +- .../living/simple_animal/gremlin/gremlin.dm | 2 +- .../simple_animal/guardian/types/assassin.dm | 2 +- .../simple_animal/guardian/types/support.dm | 2 +- .../mob/living/simple_animal/hostile/alien.dm | 4 +- .../simple_animal/hostile/banana_spider.dm | 4 +- .../mob/living/simple_animal/hostile/bees.dm | 8 +-- .../simple_animal/hostile/bosses/boss.dm | 2 +- .../hostile/bosses/paperwizard.dm | 2 +- .../mob/living/simple_animal/hostile/bread.dm | 2 +- .../mob/living/simple_animal/hostile/carp.dm | 4 +- .../simple_animal/hostile/floor_cluwne.dm | 6 +- .../simple_animal/hostile/giant_spider.dm | 8 +-- .../living/simple_animal/hostile/headcrab.dm | 2 +- .../living/simple_animal/hostile/hivebot.dm | 2 +- .../living/simple_animal/hostile/hostile.dm | 2 +- .../simple_animal/hostile/jungle/leaper.dm | 6 +- .../simple_animal/hostile/killertomato.dm | 2 +- .../simple_animal/hostile/mecha_pilot.dm | 4 +- .../hostile/megafauna/blood_drunk_miner.dm | 2 +- .../hostile/megafauna/bubblegum.dm | 4 +- .../hostile/megafauna/colossus.dm | 12 ++-- .../hostile/megafauna/demonic_frost_miner.dm | 6 +- .../hostile/megafauna/dragon_vore.dm | 2 +- .../simple_animal/hostile/megafauna/drake.dm | 2 +- .../hostile/megafauna/hierophant.dm | 2 +- .../simple_animal/hostile/megafauna/legion.dm | 4 +- .../hostile/megafauna/swarmer.dm | 4 +- .../hostile/megafauna/wendigo.dm | 2 +- .../hostile/mining_mobs/basilisk.dm | 2 +- .../hostile/mining_mobs/elites/herald.dm | 2 +- .../hostile/mining_mobs/elites/legionnaire.dm | 2 +- .../hostile/mining_mobs/goldgrub.dm | 2 +- .../hostile/mining_mobs/goliath.dm | 2 +- .../hostile/mining_mobs/gutlunch.dm | 6 +- .../hostile/mining_mobs/hivelord.dm | 8 +-- .../living/simple_animal/hostile/mushroom.dm | 4 +- .../simple_animal/hostile/netherworld.dm | 4 +- .../living/simple_animal/hostile/pirate.dm | 4 +- .../living/simple_animal/hostile/plaguerat.dm | 2 +- .../living/simple_animal/hostile/regalrat.dm | 4 +- .../simple_animal/hostile/retaliate/bat.dm | 2 +- .../simple_animal/hostile/retaliate/clown.dm | 4 +- .../simple_animal/hostile/retaliate/frog.dm | 2 +- .../simple_animal/hostile/retaliate/ghost.dm | 2 +- .../living/simple_animal/hostile/skeleton.dm | 2 +- .../living/simple_animal/hostile/syndicate.dm | 16 ++--- .../simple_animal/hostile/venus_human_trap.dm | 2 +- .../living/simple_animal/hostile/wizard.dm | 2 +- .../simple_animal/hostile/wumborian_fugu.dm | 2 +- .../mob/living/simple_animal/parrot.dm | 6 +- .../mob/living/simple_animal/simple_animal.dm | 2 +- code/modules/mob/mob.dm | 2 +- .../computers/item/computer.dm | 2 +- .../computers/item/laptop.dm | 2 +- .../computers/item/laptop_presets.dm | 2 +- .../computers/item/tablet.dm | 4 +- .../computers/item/tablet_presets.dm | 22 +++---- .../computers/machinery/console_presets.dm | 2 +- .../computers/machinery/modular_computer.dm | 2 +- .../computers/machinery/modular_console.dm | 4 +- .../modular_computers/hardware/hard_drive.dm | 2 +- code/modules/ninja/energy_katana.dm | 2 +- code/modules/ninja/suit/suit.dm | 2 +- code/modules/paperwork/clipboard.dm | 2 +- code/modules/paperwork/filingcabinet.dm | 2 +- code/modules/paperwork/folders.dm | 8 +-- code/modules/paperwork/paper.dm | 6 +- code/modules/paperwork/paper_cutter.dm | 4 +- code/modules/paperwork/pen.dm | 4 +- code/modules/paperwork/photocopier.dm | 2 +- code/modules/paperwork/ticketmachine.dm | 6 +- code/modules/photography/photos/album.dm | 2 +- .../plumbing/plumbers/medipenrefill.dm | 2 +- code/modules/pool/pool_controller.dm | 2 +- code/modules/pool/pool_drain.dm | 2 +- code/modules/power/antimatter/control.dm | 2 +- code/modules/power/antimatter/shielding.dm | 2 +- code/modules/power/cell.dm | 2 +- code/modules/power/gravitygenerator.dm | 2 +- code/modules/power/lighting.dm | 8 +-- code/modules/power/monitor.dm | 2 +- code/modules/power/multiz.dm | 2 +- code/modules/power/port_gen.dm | 6 +- code/modules/power/rtg.dm | 4 +- code/modules/power/singularity/collector.dm | 2 +- code/modules/power/singularity/emitter.dm | 4 +- .../power/singularity/field_generator.dm | 2 +- code/modules/power/singularity/narsie.dm | 4 +- .../particle_accelerator/particle_control.dm | 2 +- code/modules/power/smes.dm | 2 +- code/modules/power/solar.dm | 2 +- code/modules/power/supermatter/supermatter.dm | 2 +- code/modules/power/terminal.dm | 2 +- code/modules/power/tesla/coil.dm | 4 +- code/modules/power/turbine.dm | 6 +- .../projectiles/ammunition/_ammunition.dm | 2 +- .../ammunition/ballistic/shotgun.dm | 6 +- .../boxes_magazines/_box_magazine.dm | 2 +- .../boxes_magazines/external/rechargable.dm | 2 +- .../boxes_magazines/internal/revolver.dm | 2 +- code/modules/projectiles/gun.dm | 2 +- code/modules/projectiles/guns/ballistic.dm | 2 +- .../projectiles/guns/ballistic/automatic.dm | 8 +-- .../projectiles/guns/ballistic/magweapon.dm | 2 +- .../projectiles/guns/ballistic/revolver.dm | 6 +- .../projectiles/guns/ballistic/shotgun.dm | 4 +- .../modules/projectiles/guns/ballistic/toy.dm | 2 +- code/modules/projectiles/guns/energy.dm | 2 +- .../projectiles/guns/energy/dueling.dm | 2 +- .../projectiles/guns/energy/energy_gun.dm | 2 +- .../guns/energy/kinetic_accelerator.dm | 2 +- code/modules/projectiles/guns/energy/laser.dm | 2 +- .../projectiles/guns/energy/laser_gatling.dm | 4 +- code/modules/projectiles/guns/energy/pulse.dm | 2 +- code/modules/projectiles/guns/magic.dm | 2 +- .../projectiles/guns/magic/motivation.dm | 2 +- code/modules/projectiles/guns/magic/staff.dm | 2 +- code/modules/projectiles/guns/magic/wand.dm | 2 +- .../projectiles/guns/misc/beam_rifle.dm | 2 +- .../projectiles/guns/misc/blastcannon.dm | 2 +- .../projectiles/guns/misc/chameleon.dm | 2 +- .../modules/projectiles/guns/misc/chem_gun.dm | 4 +- code/modules/projectiles/guns/misc/medbeam.dm | 4 +- .../projectiles/guns/misc/syringe_gun.dm | 6 +- code/modules/projectiles/pins.dm | 4 +- code/modules/projectiles/projectile.dm | 2 +- code/modules/projectiles/projectile/beams.dm | 2 +- .../projectile/bullets/dart_syringe.dm | 6 +- .../projectiles/projectile/bullets/shotgun.dm | 4 +- .../projectiles/projectile/bullets/special.dm | 2 +- .../projectile/energy/net_snare.dm | 4 +- .../projectile/energy/nuclear_particle.dm | 2 +- code/modules/projectiles/projectile/magic.dm | 2 +- .../projectiles/projectile/special/plasma.dm | 2 +- .../chemistry/machinery/chem_dispenser.dm | 14 ++--- .../chemistry/machinery/chem_master.dm | 2 +- .../reagents/chemistry/machinery/pandemic.dm | 2 +- .../chemistry/machinery/reagentgrinder.dm | 4 +- .../chemistry/machinery/smoke_machine.dm | 2 +- .../reagents/chemistry/recipes/special.dm | 2 +- .../reagents/reagent_containers/blood_pack.dm | 4 +- .../reagents/reagent_containers/borghypo.dm | 2 +- .../reagents/reagent_containers/bottle.dm | 4 +- .../reagents/reagent_containers/glass.dm | 2 +- .../reagents/reagent_containers/hypospray.dm | 2 +- .../reagents/reagent_containers/hypovial.dm | 2 +- .../reagents/reagent_containers/pill.dm | 4 +- .../reagents/reagent_containers/rags.dm | 2 +- .../reagents/reagent_containers/spray.dm | 2 +- .../reagents/reagent_containers/syringes.dm | 2 +- code/modules/reagents/reagent_dispenser.dm | 4 +- code/modules/recycling/conveyor2.dm | 4 +- code/modules/recycling/disposal/pipe.dm | 2 +- .../recycling/disposal/pipe_sorting.dm | 2 +- code/modules/research/designs.dm | 2 +- code/modules/research/experimentor.dm | 4 +- .../research/nanites/nanite_chamber.dm | 2 +- .../nanites/nanite_chamber_computer.dm | 2 +- .../research/nanites/nanite_program_hub.dm | 4 +- .../modules/research/nanites/program_disks.dm | 2 +- .../research/nanites/public_chamber.dm | 2 +- code/modules/research/rdconsole.dm | 4 +- code/modules/research/rdmachines.dm | 2 +- code/modules/research/research_disk.dm | 10 ++-- code/modules/research/server.dm | 2 +- code/modules/research/stock_parts.dm | 2 +- .../xenobiology/crossbreeding/__corecross.dm | 8 +-- .../xenobiology/crossbreeding/_misc.dm | 2 +- .../xenobiology/crossbreeding/_weapons.dm | 2 +- .../xenobiology/crossbreeding/burning.dm | 2 +- .../xenobiology/crossbreeding/charged.dm | 2 +- .../xenobiology/crossbreeding/chilling.dm | 2 +- .../xenobiology/crossbreeding/consuming.dm | 2 +- .../xenobiology/crossbreeding/industrial.dm | 2 +- .../xenobiology/crossbreeding/recurring.dm | 2 +- .../xenobiology/crossbreeding/regenerative.dm | 2 +- .../crossbreeding/selfsustaining.dm | 2 +- .../xenobiology/crossbreeding/stabilized.dm | 4 +- .../research/xenobiology/xenobio_camera.dm | 4 +- .../research/xenobiology/xenobiology.dm | 2 +- code/modules/ruins/lavaland_ruin_code.dm | 10 ++-- .../lavalandruin_code/elephantgraveyard.dm | 4 +- .../ruins/objects_and_mobs/necropolis_gate.dm | 6 +- .../ruins/objects_and_mobs/sin_ruins.dm | 2 +- .../ruins/spaceruin_code/caravanambush.dm | 2 +- .../ruins/spaceruin_code/clericsden.dm | 2 +- .../ruins/spaceruin_code/hilbertshotel.dm | 4 +- .../security_levels/keycard_authentication.dm | 2 +- code/modules/shuttle/custom_shuttle.dm | 2 +- code/modules/shuttle/emergency.dm | 2 +- code/modules/shuttle/navigation_computer.dm | 2 +- code/modules/shuttle/shuttle.dm | 2 +- .../shuttle_creation/shuttle_creator.dm | 2 +- .../shuttle_creation/shuttle_creator_eye.dm | 2 +- .../shuttle/spaceship_navigation_beacon.dm | 2 +- code/modules/shuttle/special.dm | 6 +- code/modules/shuttle/white_ship.dm | 2 +- code/modules/smithing/anvil.dm | 2 +- code/modules/smithing/finished_items.dm | 8 +-- code/modules/smithing/furnace.dm | 2 +- code/modules/spells/spell.dm | 6 +- code/modules/spells/spell_types/godhand.dm | 2 +- code/modules/spells/spell_types/trigger.dm | 2 +- code/modules/station_goals/dna_vault.dm | 2 +- code/modules/station_goals/shield.dm | 2 +- code/modules/surgery/organs/augments_arms.dm | 6 +- code/modules/surgery/organs/eyes.dm | 4 +- code/modules/surgery/organs/organ_internal.dm | 4 +- code/modules/surgery/organs/tongue.dm | 2 +- code/modules/surgery/surgery.dm | 2 +- code/modules/surgery/tools.dm | 8 +-- code/modules/tcg/cards.dm | 6 +- code/modules/uplink/uplink_devices.dm | 2 +- code/modules/vehicles/atv.dm | 4 +- code/modules/vehicles/bicycle.dm | 2 +- code/modules/vehicles/cars/car.dm | 2 +- code/modules/vehicles/cars/clowncar.dm | 4 +- code/modules/vehicles/lavaboat.dm | 4 +- code/modules/vehicles/ridden.dm | 2 +- code/modules/vehicles/scooter.dm | 6 +- code/modules/vehicles/secway.dm | 2 +- code/modules/vehicles/speedbike.dm | 6 +- code/modules/vehicles/wheelchair.dm | 2 +- code/modules/vending/autodrobe.dm | 2 +- code/modules/vending/boozeomat.dm | 2 +- code/modules/vending/cigarette.dm | 2 +- code/modules/vending/cola.dm | 2 +- code/modules/vending/snack.dm | 2 +- code/modules/vore/eating/belly_obj.dm | 2 +- .../wiremod/components/abstract/compare.dm | 2 +- .../wiremod/components/abstract/module.dm | 2 +- .../wiremod/components/action/light.dm | 2 +- code/modules/wiremod/components/action/mmi.dm | 2 +- .../wiremod/components/action/pathfind.dm | 2 +- .../modules/wiremod/components/action/pull.dm | 2 +- .../wiremod/components/action/radio.dm | 2 +- .../wiremod/components/action/soundemitter.dm | 2 +- .../wiremod/components/action/speech.dm | 2 +- .../wiremod/components/admin/getvar.dm | 2 +- .../wiremod/components/admin/proccall.dm | 2 +- code/modules/wiremod/components/admin/sdql.dm | 2 +- .../wiremod/components/admin/setvar.dm | 2 +- .../modules/wiremod/components/admin/spawn.dm | 2 +- .../wiremod/components/admin/to_type.dm | 2 +- .../wiremod/components/atom/direction.dm | 2 +- code/modules/wiremod/components/atom/gps.dm | 2 +- .../modules/wiremod/components/atom/health.dm | 2 +- code/modules/wiremod/components/atom/hear.dm | 2 +- code/modules/wiremod/components/atom/self.dm | 2 +- .../wiremod/components/atom/species.dm | 2 +- .../wiremod/components/hud/bar_overlay.dm | 2 +- .../wiremod/components/hud/counter_overlay.dm | 2 +- .../wiremod/components/hud/object_overlay.dm | 2 +- .../components/hud/target_intercept.dm | 2 +- .../modules/wiremod/components/list/concat.dm | 2 +- .../wiremod/components/list/get_column.dm | 2 +- code/modules/wiremod/components/list/index.dm | 2 +- .../wiremod/components/list/index_table.dm | 2 +- .../wiremod/components/list/list_literal.dm | 2 +- .../modules/wiremod/components/list/select.dm | 2 +- code/modules/wiremod/components/list/split.dm | 2 +- .../wiremod/components/math/arithmetic.dm | 2 +- .../modules/wiremod/components/math/length.dm | 2 +- code/modules/wiremod/components/math/not.dm | 2 +- .../modules/wiremod/components/math/random.dm | 2 +- .../wiremod/components/ntnet/ntnet_receive.dm | 2 +- .../wiremod/components/ntnet/ntnet_send.dm | 2 +- .../components/sensors/pressuresensor.dm | 2 +- .../wiremod/components/sensors/tempsensor.dm | 2 +- .../wiremod/components/string/concat.dm | 2 +- .../wiremod/components/string/textcase.dm | 2 +- .../wiremod/components/string/tonumber.dm | 2 +- .../wiremod/components/string/tostring.dm | 2 +- .../wiremod/components/utility/clock.dm | 2 +- .../wiremod/components/utility/delay.dm | 2 +- .../wiremod/components/utility/getter.dm | 2 +- .../wiremod/components/utility/router.dm | 2 +- .../wiremod/components/utility/setter.dm | 2 +- .../wiremod/components/utility/typecast.dm | 2 +- code/modules/wiremod/core/component.dm | 2 +- .../modules/wiremod/core/component_printer.dm | 2 +- .../wiremod/core/integrated_circuit.dm | 4 +- code/modules/wiremod/core/usb_cable.dm | 2 +- code/modules/wiremod/preset/hello_world.dm | 2 +- code/modules/wiremod/preset/speech_relay.dm | 2 +- code/modules/wiremod/shell/airlock.dm | 4 +- code/modules/wiremod/shell/bot.dm | 4 +- .../wiremod/shell/brain_computer_interface.dm | 6 +- code/modules/wiremod/shell/compact_remote.dm | 4 +- code/modules/wiremod/shell/controller.dm | 4 +- code/modules/wiremod/shell/drone.dm | 4 +- code/modules/wiremod/shell/moneybot.dm | 6 +- code/modules/wiremod/shell/scanner.dm | 4 +- code/modules/wiremod/shell/scanner_gate.dm | 4 +- code/modules/wiremod/shell/server.dm | 2 +- code/modules/zombie/items.dm | 2 +- code/modules/zombie/organs.dm | 2 +- modular_citadel/code/modules/clothing/neck.dm | 2 +- .../modules/custom_loadout/custom_items.dm | 2 +- .../eventmaps/Spookystation/JTGSZwork.dm | 8 +-- .../code/modules/festive/wheelchair.dm | 2 +- .../code/modules/vectorcrafts/vectorcraft.dm | 2 +- .../code/modules/vectorcrafts/vectortruck.dm | 2 +- 881 files changed, 1599 insertions(+), 1599 deletions(-) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 2156d888f7..b415b4720f 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -1235,7 +1235,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 791cf336ac..d97e1f5d04 100644 --- a/code/_onclick/hud/action_button.dm +++ b/code/_onclick/hud/action_button.dm @@ -72,7 +72,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 f74d380b8a..53ad775954 100644 --- a/code/_onclick/hud/alert.dm +++ b/code/_onclick/hud/alert.dm @@ -349,7 +349,7 @@ or shoot a gun to move around via Newton's 3rd Law of Motion." /// Simply checks if the other person is still in range /atom/movable/screen/alert/give/proc/check_in_range(atom/taker) SIGNAL_HANDLER - + if(!offerer.CanReach(taker)) to_chat(owner, span_warning("You moved out of range of [offerer]!")) owner.clear_alert("[offerer]") @@ -455,7 +455,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/mob/screen_alert.dmi', "mini_nar") START_PROCESSING(SSprocessing, src) @@ -820,7 +820,7 @@ so as to remain in compliance with the most up-to-date laws." return FALSE if(master && click_master) return usr.client.Click(master, location, control, params) - + return TRUE /atom/movable/screen/alert/Destroy() diff --git a/code/_onclick/hud/families.dm b/code/_onclick/hud/families.dm index eb09d53bc1..6cc9f4ef32 100644 --- a/code/_onclick/hud/families.dm +++ b/code/_onclick/hud/families.dm @@ -12,7 +12,7 @@ /atom/movable/screen/wanted/New() return ..() -/atom/movable/screen/wanted/Initialize() +/atom/movable/screen/wanted/Initialize(mapload) . = ..() update_icon() diff --git a/code/_onclick/hud/picture_in_picture.dm b/code/_onclick/hud/picture_in_picture.dm index 6cf1bfd6a6..354a6ed546 100644 --- a/code/_onclick/hud/picture_in_picture.dm +++ b/code/_onclick/hud/picture_in_picture.dm @@ -14,7 +14,7 @@ var/mutable_appearance/standard_background var/const/max_dimensions = 10 -/atom/movable/screen/movable/pic_in_pic/Initialize() +/atom/movable/screen/movable/pic_in_pic/Initialize(mapload) . = ..() make_backgrounds() diff --git a/code/_onclick/hud/plane_master.dm b/code/_onclick/hud/plane_master.dm index d83a81fa45..3d39440dad 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) . = ..() filters += filter(type="alpha", render_source=FIELD_OF_VISION_RENDER_TARGET, flags=MASK_INVERSE) @@ -61,7 +61,7 @@ plane = ABOVE_WALL_PLANE appearance_flags = PLANE_MASTER -/atom/movable/screen/plane_master/above_wall/Initialize() +/atom/movable/screen/plane_master/above_wall/Initialize(mapload) . = ..() add_filter("vision_cone", 100, list(type="alpha", render_source=FIELD_OF_VISION_RENDER_TARGET, flags=MASK_INVERSE)) @@ -78,7 +78,7 @@ appearance_flags = PLANE_MASTER //should use client color blend_mode = BLEND_OVERLAY -/atom/movable/screen/plane_master/game_world/Initialize() +/atom/movable/screen/plane_master/game_world/Initialize(mapload) . = ..() add_filter("vision_cone", 100, list(type="alpha", render_source=FIELD_OF_VISION_RENDER_TARGET, flags=MASK_INVERSE)) @@ -95,7 +95,7 @@ render_target = FIELD_OF_VISION_RENDER_TARGET mouse_opacity = MOUSE_OPACITY_TRANSPARENT -/atom/movable/screen/plane_master/field_of_vision/Initialize() +/atom/movable/screen/plane_master/field_of_vision/Initialize(mapload) . = ..() filters += filter(type="alpha", render_source=FIELD_OF_VISION_BLOCKER_RENDER_TARGET, flags=MASK_INVERSE) @@ -112,7 +112,7 @@ plane = FIELD_OF_VISION_VISUAL_PLANE mouse_opacity = MOUSE_OPACITY_TRANSPARENT -/atom/movable/screen/plane_master/field_of_vision_visual/Initialize() +/atom/movable/screen/plane_master/field_of_vision_visual/Initialize(mapload) . = ..() filters += filter(type="alpha", render_source=FIELD_OF_VISION_BLOCKER_RENDER_TARGET, flags=MASK_INVERSE) @@ -138,7 +138,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)) @@ -152,7 +152,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/clickdelay.dm b/code/_onclick/hud/screen_objects/clickdelay.dm index c62f051c1a..b8258c7598 100644 --- a/code/_onclick/hud/screen_objects/clickdelay.dm +++ b/code/_onclick/hud/screen_objects/clickdelay.dm @@ -25,7 +25,7 @@ icon_state = "prog_bar_100" layer = 20 // under hand buttons -/atom/movable/screen/action_bar/clickdelay/Initialize() +/atom/movable/screen/action_bar/clickdelay/Initialize(mapload) . = ..() var/matrix/M = new M.Scale(2, 1) diff --git a/code/_onclick/telekinesis.dm b/code/_onclick/telekinesis.dm index ed0a9eb4ea..3ae45648df 100644 --- a/code/_onclick/telekinesis.dm +++ b/code/_onclick/telekinesis.dm @@ -79,7 +79,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 8a84251341..ba2da8365b 100644 --- a/code/controllers/subsystem/atoms.dm +++ b/code/controllers/subsystem/atoms.dm @@ -67,7 +67,7 @@ SUBSYSTEM_DEF(atoms) for (var/queued_deletion in queued_deletions) qdel(queued_deletion) - + testing("[queued_deletions.len] atoms were queued for deletion.") queued_deletions.Cut() @@ -152,7 +152,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/processing/quirks.dm b/code/controllers/subsystem/processing/quirks.dm index b3c8a6422f..582d2eb9dc 100644 --- a/code/controllers/subsystem/processing/quirks.dm +++ b/code/controllers/subsystem/processing/quirks.dm @@ -48,7 +48,7 @@ PROCESSING_SUBSYSTEM_DEF(quirks) cli.prefs.save_character() if (!silent && LAZYLEN(cut)) to_chat(to_chat_target || user, "Some quirks have been cut from your character because of these quirks conflicting with your job assignment: [english_list(cut)].") - + var/mob/living/carbon/human/H = user if(istype(H) && H.dna?.species) var/datum/species/S = H.dna.species diff --git a/code/datums/brain_damage/special.dm b/code/datums/brain_damage/special.dm index 7cc5348a0a..d4631f2558 100644 --- a/code/datums/brain_damage/special.dm +++ b/code/datums/brain_damage/special.dm @@ -99,7 +99,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) diff --git a/code/datums/components/killerqueen.dm b/code/datums/components/killerqueen.dm index c700e0d17e..0f7d3f0346 100644 --- a/code/datums/components/killerqueen.dm +++ b/code/datums/components/killerqueen.dm @@ -1,6 +1,6 @@ /** * KILLER QUEEN - * + * * Simple contact bomb component * Blows up the first person to touch it. */ @@ -26,7 +26,7 @@ var/flame = 0 /// only triggered by living mobs var/living_only = TRUE - + /datum/component/killerqueen/Initialize(ex_strength = EXPLODE_HEAVY, datum/callback/pre_explode, datum/callback/failure, examine_message, light = 0, heavy = 0, dev = 0, flame = 0, living_only = TRUE) . = ..() diff --git a/code/datums/components/knockoff.dm b/code/datums/components/knockoff.dm index 7d399c7d26..b9cdb7754c 100644 --- a/code/datums/components/knockoff.dm +++ b/code/datums/components/knockoff.dm @@ -11,7 +11,7 @@ RegisterSignal(parent, COMSIG_ITEM_DROPPED,.proc/OnDropped) src.knockoff_chance = knockoff_chance - + if(zone_override) target_zones = zone_override diff --git a/code/datums/martial/sleeping_carp.dm b/code/datums/martial/sleeping_carp.dm index a55e947709..bac1614228 100644 --- a/code/datums/martial/sleeping_carp.dm +++ b/code/datums/martial/sleeping_carp.dm @@ -223,7 +223,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 b5a7a38915..8c70a1bebb 100644 --- a/code/datums/status_effects/debuffs.dm +++ b/code/datums/status_effects/debuffs.dm @@ -819,7 +819,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/Space_Station_13_areas.dm b/code/game/area/Space_Station_13_areas.dm index caf8fda213..dd70825339 100644 --- a/code/game/area/Space_Station_13_areas.dm +++ b/code/game/area/Space_Station_13_areas.dm @@ -126,7 +126,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station ambientsounds = RUINS area_flags = UNIQUE_AREA | NO_ALERTS -/area/asteroid/artifactroom/Initialize() +/area/asteroid/artifactroom/Initialize(mapload) . = ..() set_dynamic_lighting() diff --git a/code/game/area/ai_monitored.dm b/code/game/area/ai_monitored.dm index 911cdde658..0123e20a07 100644 --- a/code/game/area/ai_monitored.dm +++ b/code/game/area/ai_monitored.dm @@ -31,6 +31,6 @@ cam.lostTargetRef(WEAKREF(O)) 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.dm b/code/game/area/areas.dm index b922f52315..44916cf1d2 100644 --- a/code/game/area/areas.dm +++ b/code/game/area/areas.dm @@ -41,7 +41,7 @@ ///Will objects this area be needing power? var/requires_power = TRUE - /// This gets overridden to 1 for space in area/Initialize(). + /// This gets overridden to 1 for space in area/Initialize(mapload). var/always_unpowered = FALSE var/power_equip = TRUE @@ -197,7 +197,7 @@ GLOBAL_LIST_EMPTY(teleportlocs) * * returns INITIALIZE_HINT_LATELOAD */ -/area/Initialize() +/area/Initialize(mapload) icon_state = "" map_name = name // Save the initial (the name set in the map) name of the area. canSmoothWithAreas = typecacheof(canSmoothWithAreas) diff --git a/code/game/area/areas/centcom.dm b/code/game/area/areas/centcom.dm index 0befe0bd86..6fe4c8fc65 100644 --- a/code/game/area/areas/centcom.dm +++ b/code/game/area/areas/centcom.dm @@ -59,7 +59,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/edina.dm b/code/game/area/areas/edina.dm index ab785f61ff..75c99334f7 100644 --- a/code/game/area/areas/edina.dm +++ b/code/game/area/areas/edina.dm @@ -169,7 +169,7 @@ name = "planet z helper" layer = POINT_LAYER -/obj/effect/mapping_helpers/planet_z/Initialize() +/obj/effect/mapping_helpers/planet_z/Initialize(mapload) . = ..() var/datum/space_level/S = SSmapping.get_level(z) S.traits["Planet"] = TRUE //This probably doesn't work as I expect. But maybe!! diff --git a/code/game/area/areas/holodeck.dm b/code/game/area/areas/holodeck.dm index 3bc73a945f..35d6f1d202 100644 --- a/code/game/area/areas/holodeck.dm +++ b/code/game/area/areas/holodeck.dm @@ -14,7 +14,7 @@ Asserts are to avoid the inevitable infinite loops */ -/area/holodeck/Initialize() +/area/holodeck/Initialize(mapload) . = ..() var/list/update_holodeck_cache = SSholodeck?.rejected_areas[type] if(update_holodeck_cache) diff --git a/code/game/area/areas/shuttles.dm b/code/game/area/areas/shuttles.dm index c8ee2973c4..e86f2ffe06 100644 --- a/code/game/area/areas/shuttles.dm +++ b/code/game/area/areas/shuttles.dm @@ -15,7 +15,7 @@ // area_limited_icon_smoothing = /area/shuttle sound_environment = SOUND_ENVIRONMENT_ROOM -/area/shuttle/Initialize() +/area/shuttle/Initialize(mapload) if(!canSmoothWithAreas) canSmoothWithAreas = type . = ..() diff --git a/code/game/gamemodes/clown_ops/clown_weapons.dm b/code/game/gamemodes/clown_ops/clown_weapons.dm index 081ffbbdc4..6efbbb2e96 100644 --- a/code/game/gamemodes/clown_ops/clown_weapons.dm +++ b/code/game/gamemodes/clown_ops/clown_weapons.dm @@ -37,7 +37,7 @@ var/max_recharge = 3000 //30 peels worth var/recharge_rate = 34 //about 1/3 of a peel per tick -/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(max_recharge, /datum/material/bananium) @@ -69,7 +69,7 @@ var/next_trombone_allowed = 0 var/datum/component/slippery/slipper -/obj/item/melee/transforming/energy/sword/bananium/Initialize() +/obj/item/melee/transforming/energy/sword/bananium/Initialize(mapload) . = ..() slipper = LoadComponent(/datum/component/slippery, 81, GALOSHES_DONT_HELP) slipper.signal_enabled = active @@ -128,7 +128,7 @@ on_throw_speed = 1 var/datum/component/slippery/slipper -/obj/item/shield/energy/bananium/Initialize() +/obj/item/shield/energy/bananium/Initialize(mapload) . = ..() slipper = LoadComponent(/datum/component/slippery, 81, GALOSHES_DONT_HELP) slipper.signal_enabled = active @@ -173,7 +173,7 @@ var/det_time = 50 var/obj/item/grenade/syndieminibomb/bomb -/obj/item/grown/bananapeel/bombanana/Initialize() +/obj/item/grown/bananapeel/bombanana/Initialize(mapload) . = ..() AddComponent(/datum/component/slippery, det_time) bomb = new /obj/item/grenade/syndieminibomb(src) @@ -219,7 +219,7 @@ /obj/item/clothing/mask/fakemoustache/sticky var/unstick_time = 2 MINUTES -/obj/item/clothing/mask/fakemoustache/sticky/Initialize() +/obj/item/clothing/mask/fakemoustache/sticky/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, STICKY_MOUSTACHE_TRAIT) addtimer(TRAIT_CALLBACK_REMOVE(src, TRAIT_NODROP, STICKY_MOUSTACHE_TRAIT), unstick_time) @@ -296,7 +296,7 @@ return cell = new /obj/item/stock_parts/cell/hyper(src) -/obj/mecha/combat/honker/dark/loaded/Initialize() +/obj/mecha/combat/honker/dark/loaded/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/weapon/honker() ME.attach(src) diff --git a/code/game/gamemodes/meteor/meteors.dm b/code/game/gamemodes/meteor/meteors.dm index 9953b593d9..446573e2af 100644 --- a/code/game/gamemodes/meteor/meteors.dm +++ b/code/game/gamemodes/meteor/meteors.dm @@ -281,7 +281,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/reagent_containers/food/snacks/meat/slab/human/mutant) meteordrop -= path @@ -312,7 +312,7 @@ GLOBAL_LIST_INIT(meteorsC, list(/obj/effect/meteor/dust)) //for space dust event meteordrop = list(/obj/item/reagent_containers/food/snacks/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 ..() @@ -363,7 +363,7 @@ GLOBAL_LIST_INIT(meteorsSPOOKY, list(/obj/effect/meteor/pumpkin)) meteordrop = list(/obj/item/clothing/head/hardhat/pumpkinhead, /obj/item/reagent_containers/food/snacks/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/game/machinery/Beacon.dm b/code/game/machinery/Beacon.dm index e9968dadd4..d708af7d7a 100644 --- a/code/game/machinery/Beacon.dm +++ b/code/game/machinery/Beacon.dm @@ -10,7 +10,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 69b39bd382..f6eebb8544 100644 --- a/code/game/machinery/PDApainter.dm +++ b/code/game/machinery/PDApainter.dm @@ -31,7 +31,7 @@ if(storedpda) . += "[initial(icon_state)]-closed" -/obj/machinery/pdapainter/Initialize() +/obj/machinery/pdapainter/Initialize(mapload) . = ..() var/list/blocked = list( /obj/item/pda/ai/pai, diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm index 06e1635656..706b2520dd 100644 --- a/code/game/machinery/Sleeper.dm +++ b/code/game/machinery/Sleeper.dm @@ -29,7 +29,7 @@ payment_department = ACCOUNT_MED fair_market_price = 5 -/obj/machinery/sleeper/Initialize() +/obj/machinery/sleeper/Initialize(mapload) . = ..() // if(mapload) // component_parts -= circuit @@ -278,7 +278,7 @@ icon_state = "sleeper_s" controls_inside = TRUE -/obj/machinery/sleeper/syndie/Initialize() +/obj/machinery/sleeper/syndie/Initialize(mapload) . = ..() component_parts = list() component_parts += new /obj/item/circuitboard/machine/sleeper/syndie(null) @@ -289,7 +289,7 @@ component_parts += new /obj/item/stack/cable_coil(null) RefreshParts() -/obj/machinery/sleeper/syndie/fullupgrade/Initialize() +/obj/machinery/sleeper/syndie/fullupgrade/Initialize(mapload) . = ..() component_parts = list() component_parts += new /obj/item/circuitboard/machine/sleeper/syndie(null) diff --git a/code/game/machinery/_machinery.dm b/code/game/machinery/_machinery.dm index f40adcd00b..dc7156f674 100644 --- a/code/game/machinery/_machinery.dm +++ b/code/game/machinery/_machinery.dm @@ -134,7 +134,7 @@ Class Procs: var/market_verb = "Customer" var/payment_department = ACCOUNT_ENG -/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 4b5e4088d7..0841dc6939 100644 --- a/code/game/machinery/airlock_control.dm +++ b/code/game/machinery/airlock_control.dm @@ -152,7 +152,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 f46169f72e..a565f679bb 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 19bac616e9..c34e0a2d4f 100644 --- a/code/game/machinery/aug_manipulator.dm +++ b/code/game/machinery/aug_manipulator.dm @@ -8,14 +8,14 @@ max_integrity = 200 var/obj/item/bodypart/storedpart var/initial_icon_state - var/static/list/style_list_icons = list("standard" = 'icons/mob/augmentation/augments.dmi', - "engineer" = 'icons/mob/augmentation/augments_engineer.dmi', - "security" = 'icons/mob/augmentation/augments_security.dmi', - "mining" = 'icons/mob/augmentation/augments_mining.dmi', - "Talon" = 'icons/mob/augmentation/cosmetic_prosthetic/talon.dmi', - "Nanotrasen" = 'icons/mob/augmentation/cosmetic_prosthetic/nanotrasen.dmi', - "Hephaesthus" = 'icons/mob/augmentation/cosmetic_prosthetic/hephaestus.dmi', - "Bishop" = 'icons/mob/augmentation/cosmetic_prosthetic/bishop.dmi', + var/static/list/style_list_icons = list("standard" = 'icons/mob/augmentation/augments.dmi', + "engineer" = 'icons/mob/augmentation/augments_engineer.dmi', + "security" = 'icons/mob/augmentation/augments_security.dmi', + "mining" = 'icons/mob/augmentation/augments_mining.dmi', + "Talon" = 'icons/mob/augmentation/cosmetic_prosthetic/talon.dmi', + "Nanotrasen" = 'icons/mob/augmentation/cosmetic_prosthetic/nanotrasen.dmi', + "Hephaesthus" = 'icons/mob/augmentation/cosmetic_prosthetic/hephaestus.dmi', + "Bishop" = 'icons/mob/augmentation/cosmetic_prosthetic/bishop.dmi', "Xion" = 'icons/mob/augmentation/cosmetic_prosthetic/xion.dmi', "Grayson" = 'icons/mob/augmentation/cosmetic_prosthetic/grayson.dmi', "Cybersolutions" = 'icons/mob/augmentation/cosmetic_prosthetic/cybersolutions.dmi', @@ -27,7 +27,7 @@ if(storedpart) . += "Alt-click to eject the limb." -/obj/machinery/aug_manipulator/Initialize() +/obj/machinery/aug_manipulator/Initialize(mapload) initial_icon_state = initial(icon_state) return ..() diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index 4db565aec1..35f45818b6 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) . = ..() wires = new /datum/wires/autolathe(src) stored_research = new /datum/techweb/specialized/autounlocking/autolathe @@ -429,7 +429,7 @@ desc = "It produces items using metal and glass. This model was reprogrammed without some of the more hazardous designs." circuit = /obj/item/circuitboard/machine/autolathe/secure -/obj/machinery/autolathe/secure/Initialize() +/obj/machinery/autolathe/secure/Initialize(mapload) . = ..() // let's not leave the parent datum floating, right? if(stored_research) @@ -452,14 +452,14 @@ "Misc", "Imported" ) -/obj/machinery/autolathe/toy/Initialize() +/obj/machinery/autolathe/toy/Initialize(mapload) . = ..() // let's not leave the parent datum floating, right? if(stored_research) QDEL_NULL(stored_research) stored_research = new /datum/techweb/specialized/autounlocking/autolathe/toy -/obj/machinery/autolathe/toy/hacked/Initialize() +/obj/machinery/autolathe/toy/hacked/Initialize(mapload) . = ..() adjust_hacked(TRUE) diff --git a/code/game/machinery/bank_machine.dm b/code/game/machinery/bank_machine.dm index 79fff2a76a..54d302910d 100644 --- a/code/game/machinery/bank_machine.dm +++ b/code/game/machinery/bank_machine.dm @@ -14,7 +14,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/bloodbankgen.dm b/code/game/machinery/bloodbankgen.dm index 31fac02d83..9dc5539959 100644 --- a/code/game/machinery/bloodbankgen.dm +++ b/code/game/machinery/bloodbankgen.dm @@ -17,7 +17,7 @@ var/efficiency = 0 var/productivity = 0 -/obj/machinery/bloodbankgen/Initialize() +/obj/machinery/bloodbankgen/Initialize(mapload) . = ..() create_reagents(maxbloodstored, AMOUNT_VISIBLE) update_icon() diff --git a/code/game/machinery/camera/motion.dm b/code/game/machinery/camera/motion.dm index af5093d6ca..df0c7412bb 100644 --- a/code/game/machinery/camera/motion.dm +++ b/code/game/machinery/camera/motion.dm @@ -82,7 +82,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 33e250fa59..880536245a 100644 --- a/code/game/machinery/camera/presets.dm +++ b/code/game/machinery/camera/presets.dm @@ -4,7 +4,7 @@ /obj/machinery/camera/emp_proof start_active = TRUE -/obj/machinery/camera/emp_proof/Initialize() +/obj/machinery/camera/emp_proof/Initialize(mapload) . = ..() upgradeEmpProof() @@ -14,7 +14,7 @@ start_active = TRUE icon_state = "xraycam" // Thanks to Krutchen for the icons. -/obj/machinery/camera/xray/Initialize() +/obj/machinery/camera/xray/Initialize(mapload) . = ..() upgradeXRay() @@ -23,7 +23,7 @@ start_active = TRUE name = "motion-sensitive security camera" -/obj/machinery/camera/motion/Initialize() +/obj/machinery/camera/motion/Initialize(mapload) . = ..() upgradeMotion() @@ -31,7 +31,7 @@ /obj/machinery/camera/all start_active = TRUE -/obj/machinery/camera/all/Initialize() +/obj/machinery/camera/all/Initialize(mapload) . = ..() upgradeEmpProof() upgradeXRay() @@ -43,7 +43,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/cloning.dm b/code/game/machinery/cloning.dm index b59bf98190..06a399a2eb 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -42,7 +42,7 @@ fair_market_price = 5 // He nodded, because he knew I was right. Then he swiped his credit card to pay me for arresting him. payment_department = ACCOUNT_MED -/obj/machinery/clonepod/Initialize() +/obj/machinery/clonepod/Initialize(mapload) . = ..() countdown = new(src) diff --git a/code/game/machinery/computer/Operating.dm b/code/game/machinery/computer/Operating.dm index b837553b38..2830031781 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.dm b/code/game/machinery/computer/arcade.dm index e430ac469f..276c1796b3 100644 --- a/code/game/machinery/computer/arcade.dm +++ b/code/game/machinery/computer/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) . = ..() // If it's a generic arcade machine, pick a random arcade // circuit board for it and make the new machine diff --git a/code/game/machinery/computer/arcade/orion_trail.dm b/code/game/machinery/computer/arcade/orion_trail.dm index 58617a0cf3..21b0ac1cc0 100644 --- a/code/game/machinery/computer/arcade/orion_trail.dm +++ b/code/game/machinery/computer/arcade/orion_trail.dm @@ -61,7 +61,7 @@ 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 50a6d10302..f4851fc33c 100644 --- a/code/game/machinery/computer/atmos_alert.dm +++ b/code/game/machinery/computer/atmos_alert.dm @@ -11,7 +11,7 @@ light_color = LIGHT_COLOR_CYAN -/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 fa552a4e66..22ac2c30f2 100644 --- a/code/game/machinery/computer/atmos_control.dm +++ b/code/game/machinery/computer/atmos_control.dm @@ -71,7 +71,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.atmos_air_machinery += src set_frequency(frequency) @@ -126,7 +126,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 a6b774523c..ec897f97e2 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. @@ -275,7 +275,7 @@ var/icon_state_off = "entertainment_blank" var/icon_state_on = "entertainment" -/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 992807bed7..30463f4f01 100644 --- a/code/game/machinery/computer/camera_advanced.dm +++ b/code/game/machinery/computer/camera_advanced.dm @@ -16,7 +16,7 @@ light_color = LIGHT_COLOR_RED -/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/card.dm b/code/game/machinery/computer/card.dm index 46d419a8fe..a16e70155f 100644 --- a/code/game/machinery/computer/card.dm +++ b/code/game/machinery/computer/card.dm @@ -56,7 +56,7 @@ GLOBAL_VAR_INIT(time_last_changed_position, 0) /obj/machinery/computer/card/centcom/get_jobs() return get_all_centcom_jobs() -/obj/machinery/computer/card/Initialize() +/obj/machinery/computer/card/Initialize(mapload) . = ..() change_position_cooldown = CONFIG_GET(number/id_console_jobslot_delay) @@ -586,7 +586,7 @@ GLOBAL_VAR_INIT(time_last_changed_position, 0) icon_screen = "idminor" circuit = /obj/item/circuitboard/computer/card/minor -/obj/machinery/computer/card/minor/Initialize() +/obj/machinery/computer/card/minor/Initialize(mapload) . = ..() var/obj/item/circuitboard/computer/card/minor/typed_circuit = circuit if(target_dept) diff --git a/code/game/machinery/computer/cloning.dm b/code/game/machinery/computer/cloning.dm index d034ba382e..91211d3d40 100644 --- a/code/game/machinery/computer/cloning.dm +++ b/code/game/machinery/computer/cloning.dm @@ -24,7 +24,7 @@ light_color = LIGHT_COLOR_BLUE -/obj/machinery/computer/cloning/Initialize() +/obj/machinery/computer/cloning/Initialize(mapload) . = ..() updatemodules(TRUE) var/obj/item/circuitboard/computer/cloning/board = circuit diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index b81507024c..2f394fcb4d 100755 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -41,7 +41,7 @@ /// The last lines used for changing the status display var/static/last_status_display -/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 3d212ec0cb..b6b01ff03b 100644 --- a/code/game/machinery/computer/dna_console.dm +++ b/code/game/machinery/computer/dna_console.dm @@ -199,7 +199,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 @@ -263,7 +263,7 @@ if(!ui) ui = new(user, src, "DnaConsole") ui.open() - + /obj/machinery/computer/scan_consolenew/ui_assets() . = ..() || list() . += get_asset_datum(/datum/asset/simple/genetics) diff --git a/code/game/machinery/computer/launchpad_control.dm b/code/game/machinery/computer/launchpad_control.dm index 18a0aeb221..65c91fad76 100644 --- a/code/game/machinery/computer/launchpad_control.dm +++ b/code/game/machinery/computer/launchpad_control.dm @@ -11,7 +11,7 @@ var/list/obj/machinery/launchpad/launchpads var/maximum_pads = 4 -/obj/machinery/computer/launchpad/Initialize() +/obj/machinery/computer/launchpad/Initialize(mapload) launchpads = list() . = ..() diff --git a/code/game/machinery/computer/pod.dm b/code/game/machinery/computer/pod.dm index f1cf187ff9..a7071ac72e 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 13727b585b..70b66c1b87 100644 --- a/code/game/machinery/computer/prisoner/gulag_teleporter.dm +++ b/code/game/machinery/computer/prisoner/gulag_teleporter.dm @@ -15,7 +15,7 @@ light_color = LIGHT_COLOR_RED -/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 7b2e6ab455..0671100623 100644 --- a/code/game/machinery/computer/station_alert.dm +++ b/code/game/machinery/computer/station_alert.dm @@ -8,7 +8,7 @@ light_color = LIGHT_COLOR_CYAN -/obj/machinery/computer/station_alert/Initialize() +/obj/machinery/computer/station_alert/Initialize(mapload) . = ..() GLOB.alert_consoles += src diff --git a/code/game/machinery/computer/telecrystalconsoles.dm b/code/game/machinery/computer/telecrystalconsoles.dm index 87b7159125..34495478d7 100644 --- a/code/game/machinery/computer/telecrystalconsoles.dm +++ b/code/game/machinery/computer/telecrystalconsoles.dm @@ -21,7 +21,7 @@ GLOBAL_LIST_INIT(possible_uplinker_IDs, list("Alfa","Bravo","Charlie","Delta","E var/obj/item/uplinkholder = null var/obj/machinery/computer/telecrystals/boss/linkedboss = null -/obj/machinery/computer/telecrystals/uplinker/Initialize() +/obj/machinery/computer/telecrystals/uplinker/Initialize(mapload) . = ..() var/ID = pick_n_take(GLOB.possible_uplinker_IDs) diff --git a/code/game/machinery/computer/teleporter.dm b/code/game/machinery/computer/teleporter.dm index 3e9531097e..eb1c4903fc 100644 --- a/code/game/machinery/computer/teleporter.dm +++ b/code/game/machinery/computer/teleporter.dm @@ -14,7 +14,7 @@ var/turf/target var/obj/item/implant/imp_t -/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 ce29d10004..e3778811ea 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -38,7 +38,7 @@ GLOBAL_LIST_EMPTY(cryopod_computers) var/obj/O = i O.forceMove(drop_location()) -/obj/machinery/computer/cryopod/Initialize() +/obj/machinery/computer/cryopod/Initialize(mapload) . = ..() GLOB.cryopod_computers += src @@ -144,7 +144,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/defibrillator_mount.dm b/code/game/machinery/defibrillator_mount.dm index bc6cc4b60e..9d7a6a8635 100644 --- a/code/game/machinery/defibrillator_mount.dm +++ b/code/game/machinery/defibrillator_mount.dm @@ -14,7 +14,7 @@ var/obj/item/defibrillator/defib //this mount's defibrillator var/clamps_locked = FALSE //if true, and a defib is loaded, it can't be removed without unlocking the clamps -/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) diff --git a/code/game/machinery/deployable.dm b/code/game/machinery/deployable.dm index ca4b392efa..359d911265 100644 --- a/code/game/machinery/deployable.dm +++ b/code/game/machinery/deployable.dm @@ -126,7 +126,7 @@ var/deploy_message = TRUE -/obj/structure/barricade/security/Initialize() +/obj/structure/barricade/security/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/deploy), deploy_time) diff --git a/code/game/machinery/dish_drive.dm b/code/game/machinery/dish_drive.dm index 869d583037..148069b103 100644 --- a/code/game/machinery/dish_drive.dm +++ b/code/game/machinery/dish_drive.dm @@ -22,7 +22,7 @@ var/suction_enabled = TRUE var/transmit_enabled = TRUE -/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 0dcb0e7235..c032e57ef3 100644 --- a/code/game/machinery/dna_scanner.dm +++ b/code/game/machinery/dna_scanner.dm @@ -163,7 +163,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 ce29d1947d..ed62019824 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -106,7 +106,7 @@ /// sigh var/unelectrify_timerid -/obj/machinery/door/airlock/Initialize() +/obj/machinery/door/airlock/Initialize(mapload) . = ..() wires = new wiretypepath(src) //CIT CHANGE - makes it possible for airlocks to have different wire datums if(frequency) diff --git a/code/game/machinery/doors/airlock_types.dm b/code/game/machinery/doors/airlock_types.dm index 5215baf87f..cf863f24ba 100644 --- a/code/game/machinery/doors/airlock_types.dm +++ b/code/game/machinery/doors/airlock_types.dm @@ -485,7 +485,7 @@ var/friendly = FALSE var/stealthy = FALSE -/obj/machinery/door/airlock/cult/Initialize() +/obj/machinery/door/airlock/cult/Initialize(mapload) . = ..() new openingoverlaytype(loc) @@ -593,7 +593,7 @@ normal_integrity = 240 var/construction_state = GEAR_SECURE //Pinion airlocks have custom deconstruction -/obj/machinery/door/airlock/clockwork/Initialize() +/obj/machinery/door/airlock/clockwork/Initialize(mapload) . = ..() new /obj/effect/temp_visual/ratvar/door(loc) new /obj/effect/temp_visual/ratvar/beam/door(loc) diff --git a/code/game/machinery/doors/alarmlock.dm b/code/game/machinery/doors/alarmlock.dm index fa516f4b6b..f0b0d9eeb0 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 b2e0050819..c209118537 100644 --- a/code/game/machinery/doors/brigdoors.dm +++ b/code/game/machinery/doors/brigdoors.dm @@ -36,7 +36,7 @@ maptext_height = 26 maptext_width = 32 -/obj/machinery/door_timer/Initialize() +/obj/machinery/door_timer/Initialize(mapload) . = ..() Radio = new/obj/item/radio(src) diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm index d1781d9477..253c2e481c 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 ba0c852cc6..bbb71d5cb0 100644 --- a/code/game/machinery/doors/firedoor.dm +++ b/code/game/machinery/doors/firedoor.dm @@ -31,7 +31,7 @@ var/boltslocked = TRUE var/list/affecting_areas -/obj/machinery/door/firedoor/Initialize() +/obj/machinery/door/firedoor/Initialize(mapload) . = ..() CalculateAffectingAreas() diff --git a/code/game/machinery/doppler_array.dm b/code/game/machinery/doppler_array.dm index 27b591d374..18ed5205be 100644 --- a/code/game/machinery/doppler_array.dm +++ b/code/game/machinery/doppler_array.dm @@ -14,7 +14,7 @@ GLOBAL_LIST_EMPTY(doppler_arrays) verb_say = "states coldly" var/list/message_log = list() -/obj/machinery/doppler_array/Initialize() +/obj/machinery/doppler_array/Initialize(mapload) . = ..() GLOB.doppler_arrays += src @@ -218,6 +218,6 @@ GLOBAL_LIST_EMPTY(doppler_arrays) 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 74df30ebfe..4d2d5d3d7a 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/droneDispenser/Initialize() +/obj/machinery/droneDispenser/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, TRUE, /obj/item/stack) materials.insert_amount_mat(starting_amount) diff --git a/code/game/machinery/embedded_controller/access_controller.dm b/code/game/machinery/embedded_controller/access_controller.dm index 8eebd779f4..3beb481e00 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/doorButtons/proc/findObjsByTag() return -/obj/machinery/doorButtons/Initialize() +/obj/machinery/doorButtons/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 5d0165189d..4526a75f32 100644 --- a/code/game/machinery/embedded_controller/embedded_controller_base.dm +++ b/code/game/machinery/embedded_controller/embedded_controller_base.dm @@ -67,7 +67,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/flasher.dm b/code/game/machinery/flasher.dm index 20aac89743..f6cca0c6d9 100644 --- a/code/game/machinery/flasher.dm +++ b/code/game/machinery/flasher.dm @@ -159,7 +159,7 @@ new /obj/item/stack/sheet/metal (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 da64699dd4..f595829890 100644 --- a/code/game/machinery/gulag_teleporter.dm +++ b/code/game/machinery/gulag_teleporter.dm @@ -32,7 +32,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 191967ac1a..5d4f0f1ac8 100644 --- a/code/game/machinery/harvester.dm +++ b/code/game/machinery/harvester.dm @@ -16,7 +16,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 d83819a1b3..3b8bc47f3f 100644 --- a/code/game/machinery/hologram.dm +++ b/code/game/machinery/hologram.dm @@ -85,7 +85,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 @@ -144,7 +144,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 41f420204e..9380038147 100644 --- a/code/game/machinery/hypnochair.dm +++ b/code/game/machinery/hypnochair.dm @@ -14,7 +14,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_icon() diff --git a/code/game/machinery/igniter.dm b/code/game/machinery/igniter.dm index bb047a6a5e..7c58a03454 100644 --- a/code/game/machinery/igniter.dm +++ b/code/game/machinery/igniter.dm @@ -40,7 +40,7 @@ location.hotspot_expose(700,10,1) return 1 -/obj/machinery/igniter/Initialize() +/obj/machinery/igniter/Initialize(mapload) . = ..() icon_state = "igniter[on]" @@ -70,7 +70,7 @@ /obj/machinery/sparker/toxmix id = INCINERATOR_TOXMIX_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/launch_pad.dm b/code/game/machinery/launch_pad.dm index 87989b18ec..fa689cc95f 100644 --- a/code/game/machinery/launch_pad.dm +++ b/code/game/machinery/launch_pad.dm @@ -229,7 +229,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 03d9dcee4b..0473a1333a 100644 --- a/code/game/machinery/lightswitch.dm +++ b/code/game/machinery/lightswitch.dm @@ -24,7 +24,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 2950bf5a9a..421bb2550b 100644 --- a/code/game/machinery/limbgrower.dm +++ b/code/game/machinery/limbgrower.dm @@ -36,7 +36,7 @@ ) var/obj/item/disk/data/dna_disk -/obj/machinery/limbgrower/Initialize() +/obj/machinery/limbgrower/Initialize(mapload) create_reagents(100, OPENCONTAINER) stored_research = new /datum/techweb/specialized/autounlocking/limbgrower . = ..() @@ -60,7 +60,7 @@ reagent_type = reagent_id.type ) data["reagents"] += list(reagent_data) - else + else data["reagents"] = list() data["total_reagents"] = reagents.total_volume data["max_reagents"] = reagents.maximum_volume @@ -379,7 +379,7 @@ C.undershirt = "Nude" C.saved_underwear = "" C.saved_undershirt = "" - + // Just enough to start reviving them, I hope C.blood_volume = BLOOD_VOLUME_SURVIVE // At some point, make a way to deal with species regenerate_organs diff --git a/code/game/machinery/magnet.dm b/code/game/machinery/magnet.dm index c4494b822f..fa71960c9d 100644 --- a/code/game/machinery/magnet.dm +++ b/code/game/machinery/magnet.dm @@ -27,7 +27,7 @@ var/center_y = 0 var/max_dist = 20 // absolute value of center_x,y cannot exceed this integer -/obj/machinery/magnetic_module/Initialize() +/obj/machinery/magnetic_module/Initialize(mapload) ..() var/turf/T = loc hide(T.intact) @@ -213,7 +213,7 @@ var/datum/radio_frequency/radio_connection -/obj/machinery/magnetic_controller/Initialize() +/obj/machinery/magnetic_controller/Initialize(mapload) . = ..() if(autolink) for(var/obj/machinery/magnetic_module/M in GLOB.machines) diff --git a/code/game/machinery/mechlaunchpad.dm b/code/game/machinery/mechlaunchpad.dm index f32fe0bc4f..a2ac2efb3f 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/navbeacon.dm b/code/game/machinery/navbeacon.dm index 752ba1b732..3e39604f68 100644 --- a/code/game/machinery/navbeacon.dm +++ b/code/game/machinery/navbeacon.dm @@ -21,7 +21,7 @@ req_one_access = list(ACCESS_ENGINE, ACCESS_ROBOTICS) -/obj/machinery/navbeacon/Initialize() +/obj/machinery/navbeacon/Initialize(mapload) . = ..() set_codes() diff --git a/code/game/machinery/porta_turret/portable_turret.dm b/code/game/machinery/porta_turret/portable_turret.dm index e346439e03..674fb58918 100644 --- a/code/game/machinery/porta_turret/portable_turret.dm +++ b/code/game/machinery/porta_turret/portable_turret.dm @@ -98,7 +98,7 @@ /// MISSING: var/shot_stagger = 0 -/obj/machinery/porta_turret/Initialize() +/obj/machinery/porta_turret/Initialize(mapload) . = ..() if(!base) base = src @@ -835,7 +835,7 @@ /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 5c1a2195a4..389dd0f2ab 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 0accd0994c..11ae19f7fa 100644 --- a/code/game/machinery/rechargestation.dm +++ b/code/game/machinery/rechargestation.dm @@ -14,13 +14,13 @@ var/recharge_speed var/repairs -/obj/machinery/recharge_station/Initialize() +/obj/machinery/recharge_station/Initialize(mapload) . = ..() update_icon() /obj/machinery/recharge_station/upgraded -/obj/machinery/recharge_station/upgraded/Initialize() +/obj/machinery/recharge_station/upgraded/Initialize(mapload) . = ..() component_parts = list() component_parts += new /obj/item/circuitboard/machine/cyborgrecharger(null) @@ -31,7 +31,7 @@ /obj/machinery/recharge_station/fullupgrade -/obj/machinery/recharge_station/fullupgrade/Initialize() +/obj/machinery/recharge_station/fullupgrade/Initialize(mapload) . = ..() component_parts = list() component_parts += new /obj/item/circuitboard/machine/cyborgrecharger(null) diff --git a/code/game/machinery/recycler.dm b/code/game/machinery/recycler.dm index 4942873a9c..bbca9f7dbe 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) AddComponent(/datum/component/butchering/recycler, 1, amount_produced,amount_produced/5) AddComponent(/datum/component/material_container, list(/datum/material/iron, /datum/material/glass, /datum/material/silver, /datum/material/plasma, /datum/material/gold, /datum/material/diamond, /datum/material/plastic, /datum/material/uranium, /datum/material/bananium, /datum/material/titanium, /datum/material/bluespace), INFINITY, FALSE, null, null, null, TRUE) . = ..() diff --git a/code/game/machinery/requests_console.dm b/code/game/machinery/requests_console.dm index a273aad0dd..ec5784dbdb 100644 --- a/code/game/machinery/requests_console.dm +++ b/code/game/machinery/requests_console.dm @@ -85,7 +85,7 @@ GLOBAL_LIST_EMPTY(allConsoles) else icon_state = "req_comp0" -/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/sheetifier.dm b/code/game/machinery/sheetifier.dm index 7b83401194..82f15803ab 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), MINERAL_MATERIAL_AMOUNT * MAX_STACK_SIZE * 2, TRUE, /obj/item/reagent_containers/food/snacks/meat/slab, CALLBACK(src, .proc/CanInsertMaterials), CALLBACK(src, .proc/AfterInsertMaterials)) diff --git a/code/game/machinery/shieldgen.dm b/code/game/machinery/shieldgen.dm index 2ebb137839..a687fd9408 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(1) diff --git a/code/game/machinery/shuttle/custom_shuttle.dm b/code/game/machinery/shuttle/custom_shuttle.dm index 7c83cade69..9bf721b80c 100644 --- a/code/game/machinery/shuttle/custom_shuttle.dm +++ b/code/game/machinery/shuttle/custom_shuttle.dm @@ -12,7 +12,7 @@ var/icon_state_open = "burst_plasma_open" var/icon_state_off = "burst_plasma_off" -/obj/machinery/shuttle/Initialize() +/obj/machinery/shuttle/Initialize(mapload) . = ..() GLOB.custom_shuttle_machines += src diff --git a/code/game/machinery/shuttle/shuttle_engine.dm b/code/game/machinery/shuttle/shuttle_engine.dm index c3de384c58..d7bb93d94b 100644 --- a/code/game/machinery/shuttle/shuttle_engine.dm +++ b/code/game/machinery/shuttle/shuttle_engine.dm @@ -49,7 +49,7 @@ bluespace_capable = TRUE cooldown = 90 -/obj/machinery/shuttle/engine/Initialize() +/obj/machinery/shuttle/engine/Initialize(mapload) . = ..() check_setup() diff --git a/code/game/machinery/slotmachine.dm b/code/game/machinery/slotmachine.dm index 1fadad168e..21b469190a 100644 --- a/code/game/machinery/slotmachine.dm +++ b/code/game/machinery/slotmachine.dm @@ -36,7 +36,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 17e58f2a49..0ff04bf8a7 100644 --- a/code/game/machinery/spaceheater.dm +++ b/code/game/machinery/spaceheater.dm @@ -28,7 +28,7 @@ /obj/machinery/space_heater/get_cell() return cell -/obj/machinery/space_heater/Initialize() +/obj/machinery/space_heater/Initialize(mapload) . = ..() cell = new(src) update_icon() diff --git a/code/game/machinery/status_display.dm b/code/game/machinery/status_display.dm index 8937106601..8627a79772 100644 --- a/code/game/machinery/status_display.dm +++ b/code/game/machinery/status_display.dm @@ -158,7 +158,7 @@ var/friendc = FALSE // track if Friend Computer mode var/last_picture // For when Friend Computer mode is undone -/obj/machinery/status_display/evac/Initialize() +/obj/machinery/status_display/evac/Initialize(mapload) . = ..() // register for radio system SSradio.add_object(src, frequency) @@ -304,7 +304,7 @@ var/mode = SD_BLANK var/emotion = "Neutral" -/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 cecf351ea9..74a05a1e7b 100644 --- a/code/game/machinery/suit_storage_unit.dm +++ b/code/game/machinery/suit_storage_unit.dm @@ -120,7 +120,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 3bee98b51d..56629841e3 100644 --- a/code/game/machinery/syndicatebomb.dm +++ b/code/game/machinery/syndicatebomb.dm @@ -84,7 +84,7 @@ countdown.stop() STOP_PROCESSING(SSfastprocess, src) -/obj/machinery/syndicatebomb/Initialize() +/obj/machinery/syndicatebomb/Initialize(mapload) . = ..() wires = new /datum/wires/syndicatebomb(src) if(payload) @@ -242,7 +242,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/telecomms/machines/allinone.dm b/code/game/machinery/telecomms/machines/allinone.dm index 7cc421ef15..7129d77720 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 bf3dfe8f7e..fc4de9ae84 100644 --- a/code/game/machinery/telecomms/machines/bus.dm +++ b/code/game/machinery/telecomms/machines/bus.dm @@ -70,7 +70,7 @@ freq_listening = list(FREQ_ENGINEERING) autolinkers = list("processor4", "engineering", "common") -/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 a0440001c3..237eccc94d 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) @@ -93,7 +93,7 @@ var/list/datum/data_rc_msg/rc_msgs = list() var/decryptkey -/obj/machinery/telecomms/message_server/Initialize() +/obj/machinery/telecomms/message_server/Initialize(mapload) . = ..() if (!decryptkey) decryptkey = GenerateKey() diff --git a/code/game/machinery/telecomms/machines/receiver.dm b/code/game/machinery/telecomms/machines/receiver.dm index 0e443bad8f..9f884e3904 100644 --- a/code/game/machinery/telecomms/machines/receiver.dm +++ b/code/game/machinery/telecomms/machines/receiver.dm @@ -63,7 +63,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 6f80cfbf0e..d9d3ca896a 100644 --- a/code/game/machinery/telecomms/machines/server.dm +++ b/code/game/machinery/telecomms/machines/server.dm @@ -16,7 +16,7 @@ var/list/log_entries = list() var/totaltraffic = 0 // gigabytes (if > 1024, divide by 1024 -> terrabytes) -/obj/machinery/telecomms/server/Initialize() +/obj/machinery/telecomms/server/Initialize(mapload) . = ..() /obj/machinery/telecomms/server/RefreshParts() @@ -72,7 +72,7 @@ /obj/machinery/telecomms/server/presets network = "tcommsat" -/obj/machinery/telecomms/server/presets/Initialize() +/obj/machinery/telecomms/server/presets/Initialize(mapload) . = ..() name = id @@ -103,7 +103,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 @@ -123,6 +123,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 daadbf4f72..6284c93ca5 100644 --- a/code/game/machinery/teleporter.dm +++ b/code/game/machinery/teleporter.dm @@ -15,7 +15,7 @@ var/obj/machinery/teleport/station/power_station var/calibrated //Calibration prevents mutation -/obj/machinery/teleport/hub/Initialize() +/obj/machinery/teleport/hub/Initialize(mapload) . = ..() link_power_station() @@ -100,7 +100,7 @@ /obj/machinery/teleport/hub/proc/is_ready() . = !panel_open && !(stat & (BROKEN|NOPOWER)) && power_station && power_station.engaged && !(power_station.stat & (BROKEN|NOPOWER)) -/obj/machinery/teleport/hub/syndicate/Initialize() +/obj/machinery/teleport/hub/syndicate/Initialize(mapload) . = ..() component_parts += new /obj/item/stock_parts/matter_bin/super(null) RefreshParts() @@ -120,7 +120,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 8bca58a7de..8bb00c6ce9 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/machinery/turnstile.dm b/code/game/machinery/turnstile.dm index f30ef22dd7..796d34dcb4 100644 --- a/code/game/machinery/turnstile.dm +++ b/code/game/machinery/turnstile.dm @@ -11,7 +11,7 @@ resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF layer = OPEN_DOOR_LAYER -/obj/machinery/turnstile/Initialize() +/obj/machinery/turnstile/Initialize(mapload) . = ..() icon_state = "turnstile" diff --git a/code/game/mecha/combat/five_stars.dm b/code/game/mecha/combat/five_stars.dm index 250ec7f3f6..072cb9c465 100644 --- a/code/game/mecha/combat/five_stars.dm +++ b/code/game/mecha/combat/five_stars.dm @@ -10,7 +10,7 @@ pixel_x = -32 pixel_y = -32 -/obj/mecha/combat/five_stars/Initialize() +/obj/mecha/combat/five_stars/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack/spacecops(src) ME.attach(src) diff --git a/code/game/mecha/combat/gygax.dm b/code/game/mecha/combat/gygax.dm index 71258d1ccb..906fdc4f1b 100644 --- a/code/game/mecha/combat/gygax.dm +++ b/code/game/mecha/combat/gygax.dm @@ -31,7 +31,7 @@ wreckage = /obj/structure/mecha_wreckage/gygax/dark max_equip = 4 -/obj/mecha/combat/gygax/dark/loaded/Initialize() +/obj/mecha/combat/gygax/dark/loaded/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/carbine ME.attach(src) diff --git a/code/game/mecha/combat/marauder.dm b/code/game/mecha/combat/marauder.dm index 5c60a97864..07aca0c99c 100644 --- a/code/game/mecha/combat/marauder.dm +++ b/code/game/mecha/combat/marauder.dm @@ -30,7 +30,7 @@ thrusters_action.Remove(user) zoom_action.Remove(user) -/obj/mecha/combat/marauder/loaded/Initialize() +/obj/mecha/combat/marauder/loaded/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/weapon/energy/pulse(src) ME.attach(src) @@ -55,7 +55,7 @@ force = 55 max_equip = 5 -/obj/mecha/combat/marauder/seraph/Initialize() +/obj/mecha/combat/marauder/seraph/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/scattershot(src) @@ -79,7 +79,7 @@ wreckage = /obj/structure/mecha_wreckage/mauler max_equip = 5 -/obj/mecha/combat/marauder/mauler/loaded/Initialize() +/obj/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/game/mecha/combat/neovgre.dm b/code/game/mecha/combat/neovgre.dm index 75470abe88..8c655f7182 100644 --- a/code/game/mecha/combat/neovgre.dm +++ b/code/game/mecha/combat/neovgre.dm @@ -80,7 +80,7 @@ if(obj_integrity < max_integrity && istype(loc, /turf/open/floor/clockwork)) obj_integrity += min(max_integrity - obj_integrity, max_integrity / 200) -/obj/mecha/combat/neovgre/Initialize() +/obj/mecha/combat/neovgre/Initialize(mapload) .=..() GLOB.neovgre_exists ++ var/obj/item/mecha_parts/mecha_equipment/weapon/energy/laser/heavy/neovgre/N = new diff --git a/code/game/mecha/combat/reticence.dm b/code/game/mecha/combat/reticence.dm index 7343a85483..8527d72e42 100644 --- a/code/game/mecha/combat/reticence.dm +++ b/code/game/mecha/combat/reticence.dm @@ -20,7 +20,7 @@ turnsound = null opacity = 0 -/obj/mecha/combat/reticence/loaded/Initialize() +/obj/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/game/mecha/equipment/tools/medical_tools.dm b/code/game/mecha/equipment/tools/medical_tools.dm index 756cee058c..a7d5971cfd 100644 --- a/code/game/mecha/equipment/tools/medical_tools.dm +++ b/code/game/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) @@ -257,7 +257,7 @@ range = MELEE|RANGED equip_cooldown = 10 -/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) syringes = new @@ -532,7 +532,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/game/mecha/equipment/tools/mining_tools.dm b/code/game/mecha/equipment/tools/mining_tools.dm index 47820d1e27..15caa02e5a 100644 --- a/code/game/mecha/equipment/tools/mining_tools.dm +++ b/code/game/mecha/equipment/tools/mining_tools.dm @@ -19,7 +19,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) @@ -133,7 +133,7 @@ if(ishuman(target)) var/mob/living/carbon/human/H = target new /obj/effect/temp_visual/dir_setting/bloodsplatter(target.drop_location(), splatter_dir, H.dna.species.exotic_blood_color) - else + else new /obj/effect/temp_visual/dir_setting/bloodsplatter(target.drop_location(), splatter_dir) //organs go everywhere @@ -160,7 +160,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/game/mecha/equipment/tools/other_tools.dm b/code/game/mecha/equipment/tools/other_tools.dm index e1861232f4..6c4f80cd3d 100644 --- a/code/game/mecha/equipment/tools/other_tools.dm +++ b/code/game/mecha/equipment/tools/other_tools.dm @@ -358,7 +358,7 @@ var/fuel_per_cycle_active = 200 var/power_per_cycle = 20 -/obj/item/mecha_parts/mecha_equipment/generator/Initialize() +/obj/item/mecha_parts/mecha_equipment/generator/Initialize(mapload) . = ..() generator_init() diff --git a/code/game/mecha/equipment/tools/work_tools.dm b/code/game/mecha/equipment/tools/work_tools.dm index 1c4586205a..00a234275a 100644 --- a/code/game/mecha/equipment/tools/work_tools.dm +++ b/code/game/mecha/equipment/tools/work_tools.dm @@ -183,7 +183,7 @@ range = MELEE|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) @@ -252,7 +252,7 @@ item_flags = NO_MAT_REDEMPTION var/mode = 0 //0 - deconstruct, 1 - wall or floor, 2 - airlock. -/obj/item/mecha_parts/mecha_equipment/rcd/Initialize() +/obj/item/mecha_parts/mecha_equipment/rcd/Initialize(mapload) . = ..() GLOB.rcd_list += src @@ -354,7 +354,7 @@ var/obj/item/stack/cable_coil/cable var/max_cable = 1000 -/obj/item/mecha_parts/mecha_equipment/cable_layer/Initialize() +/obj/item/mecha_parts/mecha_equipment/cable_layer/Initialize(mapload) . = ..() cable = new(src, 0) diff --git a/code/game/mecha/mech_bay.dm b/code/game/mecha/mech_bay.dm index e9f682e929..db04072971 100644 --- a/code/game/mecha/mech_bay.dm +++ b/code/game/mecha/mech_bay.dm @@ -26,7 +26,7 @@ var/repairability = 0 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) @@ -133,6 +133,6 @@ 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/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index 86bbf81dd2..1898129f84 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -127,7 +127,7 @@ /obj/item/radio/mech //this has to go somewhere -/obj/mecha/Initialize() +/obj/mecha/Initialize(mapload) . = ..() events = new icon_state += "-open" diff --git a/code/game/mecha/mecha_parts.dm b/code/game/mecha/mecha_parts.dm index 8a9e4e641f..bd83eeb8a7 100644 --- a/code/game/mecha/mecha_parts.dm +++ b/code/game/mecha/mecha_parts.dm @@ -15,14 +15,14 @@ return FALSE user.visible_message("[user] attaches [src] to [M].", "You attach [src] to [M].") return TRUE - + /obj/item/mecha_parts/chassis name = "Mecha Chassis" icon_state = "backbone" 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/game/mecha/mecha_wreckage.dm b/code/game/mecha/mecha_wreckage.dm index 36584b85ec..f19a03fae1 100644 --- a/code/game/mecha/mecha_wreckage.dm +++ b/code/game/mecha/mecha_wreckage.dm @@ -105,7 +105,7 @@ name = "\improper Gygax wreckage" icon_state = "gygax-broken" -/obj/structure/mecha_wreckage/gygax/Initialize() +/obj/structure/mecha_wreckage/gygax/Initialize(mapload) . = ..() var/list/parts = list(/obj/item/mecha_parts/part/gygax_torso, /obj/item/mecha_parts/part/gygax_head, @@ -129,7 +129,7 @@ name = "\improper Medical Gygax wreckage" icon_state = "medigax-broken" -/obj/structure/mecha_wreckage/medigax/Initialize() +/obj/structure/mecha_wreckage/medigax/Initialize(mapload) . = ..() var/list/parts = list(/obj/item/mecha_parts/part/medigax_torso, /obj/item/mecha_parts/part/medigax_head, @@ -166,7 +166,7 @@ name = "\improper Ripley wreckage" icon_state = "ripley-broken" -/obj/structure/mecha_wreckage/ripley/Initialize() +/obj/structure/mecha_wreckage/ripley/Initialize(mapload) . = ..() var/list/parts = list(/obj/item/mecha_parts/part/ripley_torso, /obj/item/mecha_parts/part/ripley_left_arm, @@ -184,7 +184,7 @@ name = "\improper Firefighter wreckage" icon_state = "firefighter-broken" -/obj/structure/mecha_wreckage/ripley/firefighter/Initialize() +/obj/structure/mecha_wreckage/ripley/firefighter/Initialize(mapload) . = ..() var/list/parts = list(/obj/item/mecha_parts/part/ripley_torso, /obj/item/mecha_parts/part/ripley_left_arm, @@ -209,7 +209,7 @@ icon_state = "honker-broken" desc = "All is right in the universe." -/obj/structure/mecha_wreckage/honker/Initialize() +/obj/structure/mecha_wreckage/honker/Initialize(mapload) . = ..() var/list/parts = list( /obj/item/mecha_parts/chassis/honker, @@ -230,7 +230,7 @@ name = "\improper Durand wreckage" icon_state = "durand-broken" -/obj/structure/mecha_wreckage/durand/Initialize() +/obj/structure/mecha_wreckage/durand/Initialize(mapload) . = ..() var/list/parts = list( /obj/item/mecha_parts/part/durand_torso, @@ -255,7 +255,7 @@ name = "\improper Odysseus wreckage" icon_state = "odysseus-broken" -/obj/structure/mecha_wreckage/odysseus/Initialize() +/obj/structure/mecha_wreckage/odysseus/Initialize(mapload) . = ..() var/list/parts = list( /obj/item/mecha_parts/part/odysseus_torso, diff --git a/code/game/mecha/working/ripley.dm b/code/game/mecha/working/ripley.dm index 3c2f75bd6c..c8c93a6cd1 100644 --- a/code/game/mecha/working/ripley.dm +++ b/code/game/mecha/working/ripley.dm @@ -45,7 +45,7 @@ ..() update_icon() -/obj/mecha/working/ripley/Initialize() +/obj/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)) @@ -77,7 +77,7 @@ wreckage = /obj/structure/mecha_wreckage/ripley/deathripley step_energy_drain = 0 -/obj/mecha/working/ripley/deathripley/Initialize() +/obj/mecha/working/ripley/deathripley/Initialize(mapload) . = ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/hydraulic_clamp/kill ME.attach(src) @@ -85,7 +85,7 @@ /obj/mecha/working/ripley/deathripley/real desc = "OH SHIT IT'S THE DEATHSQUAD WE'RE ALL GONNA DIE. FOR REAL" -/obj/mecha/working/ripley/deathripley/real/Initialize() +/obj/mecha/working/ripley/deathripley/real/Initialize(mapload) . = ..() for(var/obj/item/mecha_parts/mecha_equipment/E in equipment) E.detach() @@ -99,7 +99,7 @@ name = "\improper APLU \"Miner\"" obj_integrity = 75 //Low starting health -/obj/mecha/working/ripley/mining/Initialize() +/obj/mecha/working/ripley/mining/Initialize(mapload) . = ..() if(cell) cell.charge = FLOOR(cell.charge * 0.25, 1) //Starts at very low charge diff --git a/code/game/objects/effects/arachnid_web.dm b/code/game/objects/effects/arachnid_web.dm index 2adaa12dc9..f5aee5b26e 100644 --- a/code/game/objects/effects/arachnid_web.dm +++ b/code/game/objects/effects/arachnid_web.dm @@ -49,7 +49,7 @@ density = FALSE max_integrity = 60 -/obj/structure/arachnid/cocoon/Initialize() +/obj/structure/arachnid/cocoon/Initialize(mapload) icon_state = pick("cocoon1","cocoon2","cocoon3") . = ..() diff --git a/code/game/objects/effects/bump_teleporter.dm b/code/game/objects/effects/bump_teleporter.dm index 0337b076ff..36320f2913 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 846132a2fc..561df57700 100644 --- a/code/game/objects/effects/contraband.dm +++ b/code/game/objects/effects/contraband.dm @@ -61,7 +61,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 b425946789..0722f3bd18 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 875f23434b..9a23a3032e 100644 --- a/code/game/objects/effects/decals/cleanable/aliens.dm +++ b/code/game/objects/effects/decals/cleanable/aliens.dm @@ -72,6 +72,6 @@ icon_state = "tracks" 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/humans.dm b/code/game/objects/effects/decals/cleanable/humans.dm index e5ccd9f21a..8aea7047b6 100644 --- a/code/game/objects/effects/decals/cleanable/humans.dm +++ b/code/game/objects/effects/decals/cleanable/humans.dm @@ -109,7 +109,7 @@ if(!fixed_color) add_atom_colour(blood_DNA_to_color(), FIXED_COLOUR_PRIORITY) -/obj/effect/cleanable/trail_holder/Initialize() +/obj/effect/cleanable/trail_holder/Initialize(mapload) . = ..() update_icon() diff --git a/code/game/objects/effects/decals/cleanable/misc.dm b/code/game/objects/effects/decals/cleanable/misc.dm index 62e4dbf5f3..28999ef0b5 100644 --- a/code/game/objects/effects/decals/cleanable/misc.dm +++ b/code/game/objects/effects/decals/cleanable/misc.dm @@ -15,7 +15,7 @@ persistent = TRUE persistence_allow_stacking = TRUE -/obj/effect/decal/cleanable/ash/Initialize() +/obj/effect/decal/cleanable/ash/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/ash, 30) pixel_x = rand(-5, 5) @@ -30,7 +30,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. @@ -43,7 +43,7 @@ mergeable_decal = TRUE persistent = TRUE -/obj/effect/decal/cleanable/glass/Initialize() +/obj/effect/decal/cleanable/glass/Initialize(mapload) . = ..() setDir(pick(GLOB.cardinals)) @@ -89,7 +89,7 @@ if(data["alpha"]) alpha = text2num(data["alpha"]) -/obj/effect/decal/cleanable/dirt/Initialize() +/obj/effect/decal/cleanable/dirt/Initialize(mapload) . = ..() var/turf/T = get_turf(src) if(T.tiled_dirt) @@ -265,7 +265,7 @@ qdel(src) return power // no block -/obj/effect/decal/cleanable/shreds/Initialize() +/obj/effect/decal/cleanable/shreds/Initialize(mapload) pixel_x = rand(-10, 10) pixel_y = rand(-10, 10) . = ..() diff --git a/code/game/objects/effects/decals/cleanable/robots.dm b/code/game/objects/effects/decals/cleanable/robots.dm index 1eb3533f71..605da122c0 100644 --- a/code/game/objects/effects/decals/cleanable/robots.dm +++ b/code/game/objects/effects/decals/cleanable/robots.dm @@ -55,7 +55,7 @@ beauty = -100 persistent = TRUE -/obj/effect/decal/cleanable/oil/Initialize() +/obj/effect/decal/cleanable/oil/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/oil, 30) reagents.add_reagent(/datum/reagent/liquidgibs/oil, 5) @@ -68,6 +68,6 @@ /obj/effect/decal/cleanable/oil/slippery persistent = FALSE -/obj/effect/decal/cleanable/oil/slippery/Initialize() +/obj/effect/decal/cleanable/oil/slippery/Initialize(mapload) . = ..() AddComponent(/datum/component/slippery, 80, (NO_SLIP_WHEN_WALKING | SLIDE)) diff --git a/code/game/objects/effects/decals/decal.dm b/code/game/objects/effects/decals/decal.dm index cdf16468f4..2e1cc2b606 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 @@ -37,7 +37,7 @@ layer = TURF_DECAL_LAYER plane = ABOVE_WALL_PLANE -/obj/effect/turf_decal/Initialize() +/obj/effect/turf_decal/Initialize(mapload) ..() return INITIALIZE_HINT_QDEL diff --git a/code/game/objects/effects/effect_system/effect_system.dm b/code/game/objects/effects/effect_system/effect_system.dm index 05077bf898..6eb6fecd66 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 d208510e86..e45461cde8 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 = 1 anchored = TRUE -/obj/effect/particle_effect/expl_particles/Initialize() +/obj/effect/particle_effect/expl_particles/Initialize(mapload) . = ..() QDEL_IN(src, 15) @@ -29,7 +29,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 a0f53ceab7..9d0751c3f1 100644 --- a/code/game/objects/effects/effect_system/effects_foam.dm +++ b/code/game/objects/effects/effect_system/effects_foam.dm @@ -90,7 +90,7 @@ /obj/effect/particle_effect/foam/long_life lifetime = 150 -/obj/effect/particle_effect/foam/Initialize() +/obj/effect/particle_effect/foam/Initialize(mapload) . = ..() MakeSlippery() create_reagents(1000, NONE, NO_REAGENTS_VALUE) //limited by the size of the reagent holder anyway. @@ -271,7 +271,7 @@ attack_hand_speed = CLICK_CD_MELEE attack_hand_is_action = TRUE -/obj/structure/foamedmetal/Initialize() +/obj/structure/foamedmetal/Initialize(mapload) . = ..() air_update_turf(1) @@ -307,7 +307,7 @@ alpha = 120 max_integrity = 10 -/obj/structure/foamedmetal/resin/Initialize() +/obj/structure/foamedmetal/resin/Initialize(mapload) . = ..() neutralize_air() addtimer(CALLBACK(src, .proc/neutralize_air), 5) // yeah this sucks, maybe when auxmos is out diff --git a/code/game/objects/effects/effect_system/effects_smoke.dm b/code/game/objects/effects/effect_system/effects_smoke.dm index 3e80ade0ce..dd6bc99af3 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, NONE, NO_REAGENTS_VALUE) START_PROCESSING(SSobj, src) diff --git a/code/game/objects/effects/effect_system/effects_sparks.dm b/code/game/objects/effects/effect_system/effects_sparks.dm index a388d3bc67..62cf7e54f5 100644 --- a/code/game/objects/effects/effect_system/effects_sparks.dm +++ b/code/game/objects/effects/effect_system/effects_sparks.dm @@ -24,7 +24,7 @@ light_range = MINIMUM_USEFUL_LIGHT_RANGE light_color = LIGHT_COLOR_FIRE -/obj/effect/particle_effect/sparks/Initialize() +/obj/effect/particle_effect/sparks/Initialize(mapload) . = ..() flick(icon_state, src) // replay the animation playsound(src, "sparks", 100, TRUE) @@ -69,7 +69,7 @@ name = "lightning" icon_state = "electricity" -/obj/effect/particle_effect/fake_sparks/Initialize() +/obj/effect/particle_effect/fake_sparks/Initialize(mapload) . = ..() flick(icon_state, src) // replay the animation playsound(src, "sparks", 100, TRUE) diff --git a/code/game/objects/effects/effect_system/effects_water.dm b/code/game/objects/effects/effect_system/effects_water.dm index 31124381f6..8fafda8b51 100644 --- a/code/game/objects/effects/effect_system/effects_water.dm +++ b/code/game/objects/effects/effect_system/effects_water.dm @@ -7,7 +7,7 @@ mouse_opacity = MOUSE_OPACITY_TRANSPARENT -/obj/effect/particle_effect/water/Initialize() +/obj/effect/particle_effect/water/Initialize(mapload) . = ..() QDEL_IN(src, 70) @@ -45,7 +45,7 @@ steam.start() -- spawns the effect 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 384cf73c89..c16c9751a8 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 8ff4017b8c..2aaef553bf 100644 --- a/code/game/objects/effects/landmarks.dm +++ b/code/game/objects/effects/landmarks.dm @@ -19,7 +19,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark) -/obj/effect/landmark/Initialize() +/obj/effect/landmark/Initialize(mapload) . = ..() GLOB.landmarks_list += src @@ -245,7 +245,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 @@ -255,7 +255,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 @@ -265,7 +265,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 @@ -277,7 +277,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 diff --git a/code/game/objects/effects/mines.dm b/code/game/objects/effects/mines.dm index b0e801137d..a1edac02a3 100644 --- a/code/game/objects/effects/mines.dm +++ b/code/game/objects/effects/mines.dm @@ -116,7 +116,7 @@ density = FALSE var/duration = 0 -/obj/effect/mine/pickup/Initialize() +/obj/effect/mine/pickup/Initialize(mapload) . = ..() animate(src, pixel_y = 4, time = 20, loop = -1) diff --git a/code/game/objects/effects/overlays.dm b/code/game/objects/effects/overlays.dm index 6be0a50a5e..945136466f 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/spawners/bombspawner.dm b/code/game/objects/effects/spawners/bombspawner.dm index fb92e31f1e..953468f1ff 100644 --- a/code/game/objects/effects/spawners/bombspawner.dm +++ b/code/game/objects/effects/spawners/bombspawner.dm @@ -13,7 +13,7 @@ var/pressure_o = 10 * ONE_ATMOSPHERE //tank pressures var/assembly_type -/obj/effect/spawner/newbomb/Initialize() +/obj/effect/spawner/newbomb/Initialize(mapload) . = ..() var/obj/item/transfer_valve/V = new(src.loc) var/obj/item/tank/internals/plasma/PT = new(V) @@ -39,7 +39,7 @@ return INITIALIZE_HINT_QDEL -/obj/effect/spawner/newbomb/timer/syndicate/Initialize() +/obj/effect/spawner/newbomb/timer/syndicate/Initialize(mapload) temp_p = (OPTIMAL_TEMP_K_PLA_BURN_SCALE(pressure_p, pressure_o, temp_o)/2 + OPTIMAL_TEMP_K_PLA_BURN_RATIO(pressure_p, pressure_o, temp_o)/2) - T0C . = ..() diff --git a/code/game/objects/effects/spawners/gibspawner.dm b/code/game/objects/effects/spawners/gibspawner.dm index 00ddf0e9ef..65c6c35c9e 100644 --- a/code/game/objects/effects/spawners/gibspawner.dm +++ b/code/game/objects/effects/spawners/gibspawner.dm @@ -91,7 +91,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 ..() @@ -106,7 +106,7 @@ gib_mob_species = /datum/species/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 ..() @@ -115,7 +115,7 @@ gibtypes = list(/obj/effect/decal/cleanable/blood/gibs/human, /obj/effect/decal/cleanable/blood/gibs/human/core, /obj/effect/decal/cleanable/blood/gibs/human, /obj/effect/decal/cleanable/blood/gibs/human/core, /obj/effect/decal/cleanable/blood/gibs/human, /obj/effect/decal/cleanable/blood/gibs/human/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 ..() @@ -127,7 +127,7 @@ gib_mob_species = /datum/species/lizard sound_vol = 50 -/obj/effect/gibspawner/lizard/Initialize() +/obj/effect/gibspawner/lizard/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 ..() @@ -136,7 +136,7 @@ gibtypes = list(/obj/effect/decal/cleanable/blood/gibs/human/lizard, /obj/effect/decal/cleanable/blood/gibs/human/lizard/core, /obj/effect/decal/cleanable/blood/gibs/human/lizard, /obj/effect/decal/cleanable/blood/gibs/human/lizard/core, /obj/effect/decal/cleanable/blood/gibs/human/lizard, /obj/effect/decal/cleanable/blood/gibs/human/lizard/torso) gibamounts = list(1, 1, 1, 1, 1, 1) -/obj/effect/gibspawner/lizard/bodypartless/Initialize() +/obj/effect/gibspawner/lizard/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 ..() @@ -148,7 +148,7 @@ gib_mob_species = /datum/species/jelly/roundstartslime sound_vol = 50 -/obj/effect/gibspawner/slime/Initialize() +/obj/effect/gibspawner/slime/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 ..() @@ -157,7 +157,7 @@ gibtypes = list(/obj/effect/decal/cleanable/blood/gibs/slime, /obj/effect/decal/cleanable/blood/gibs/slime/core, /obj/effect/decal/cleanable/blood/gibs/slime, /obj/effect/decal/cleanable/blood/gibs/slime/core, /obj/effect/decal/cleanable/blood/gibs/slime, /obj/effect/decal/cleanable/blood/gibs/slime/torso) gibamounts = list(1, 1, 1, 1, 1, 1) -/obj/effect/gibspawner/slime/bodypartless/Initialize() +/obj/effect/gibspawner/slime/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 ..() @@ -171,7 +171,7 @@ sparks = TRUE sound_to_play = 'sound/effects/bang.ogg' -/obj/effect/gibspawner/ipc/Initialize() +/obj/effect/gibspawner/ipc/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 ..() @@ -180,7 +180,7 @@ gibtypes = list(/obj/effect/decal/cleanable/blood/gibs/ipc, /obj/effect/decal/cleanable/blood/gibs/ipc/core, /obj/effect/decal/cleanable/blood/gibs/ipc, /obj/effect/decal/cleanable/blood/gibs/ipc/core, /obj/effect/decal/cleanable/blood/gibs/ipc, /obj/effect/decal/cleanable/blood/gibs/ipc/torso) gibamounts = list(1, 1, 1, 1, 1, 1) -/obj/effect/gibspawner/ipc/bodypartless/Initialize() +/obj/effect/gibspawner/ipc/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 ..() @@ -190,7 +190,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 ..() @@ -199,7 +199,7 @@ gibtypes = list(/obj/effect/decal/cleanable/blood/gibs/xeno, /obj/effect/decal/cleanable/blood/gibs/xeno/core, /obj/effect/decal/cleanable/blood/gibs/xeno, /obj/effect/decal/cleanable/blood/gibs/xeno/core, /obj/effect/decal/cleanable/blood/gibs/xeno, /obj/effect/decal/cleanable/blood/gibs/xeno/torso) 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 ..() @@ -215,7 +215,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 ..() @@ -224,7 +224,7 @@ gibtypes = list(/obj/effect/decal/cleanable/blood/gibs/xeno/larva, /obj/effect/decal/cleanable/blood/gibs/xeno/larva, /obj/effect/decal/cleanable/blood/gibs/xeno/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 ..() @@ -235,7 +235,7 @@ gibamounts = list(1, 1, 1, 1, 1, 1) gib_mob_type = /mob/living/silicon/robot -/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/lootdrop.dm b/code/game/objects/effects/spawners/lootdrop.dm index 920af875d5..f19f8f0f95 100644 --- a/code/game/objects/effects/spawners/lootdrop.dm +++ b/code/game/objects/effects/spawners/lootdrop.dm @@ -167,7 +167,7 @@ icon = 'icons/obj/lighting.dmi' icon_state = "random_glowstick" -/obj/effect/spawner/lootdrop/glowstick/Initialize() +/obj/effect/spawner/lootdrop/glowstick/Initialize(mapload) loot = typesof(/obj/item/flashlight/glowstick) . = ..() @@ -222,7 +222,7 @@ /obj/effect/spawner/lootdrop/costume name = "random costume spawner" -/obj/effect/spawner/lootdrop/costume/Initialize() +/obj/effect/spawner/lootdrop/costume/Initialize(mapload) loot = list() for(var/path in subtypesof(/obj/effect/spawner/bundle/costume)) loot[path] = TRUE @@ -298,7 +298,7 @@ icon = 'icons/obj/storage.dmi' icon_state = "mre" -/obj/effect/spawner/lootdrop/mre/Initialize() +/obj/effect/spawner/lootdrop/mre/Initialize(mapload) for(var/A in subtypesof(/obj/item/storage/box/mre)) var/obj/item/storage/box/mre/M = A var/our_chance = initial(M.spawner_chance) diff --git a/code/game/objects/effects/spawners/structure.dm b/code/game/objects/effects/spawners/structure.dm index 7a151c4312..e55a7daa52 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 && spawn_list.len) for(var/I in spawn_list) @@ -27,7 +27,7 @@ again. var/electrochromatic var/electrochromatic_id -/obj/effect/spawner/structure/window/Initialize() +/obj/effect/spawner/structure/window/Initialize(mapload) . = ..() if(!electrochromatic) return @@ -50,7 +50,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) @@ -65,7 +65,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) @@ -76,7 +76,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) @@ -111,7 +111,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) @@ -126,7 +126,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) @@ -137,7 +137,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) @@ -211,7 +211,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) @@ -226,7 +226,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) @@ -237,7 +237,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) @@ -273,7 +273,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) @@ -288,7 +288,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) @@ -299,7 +299,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) @@ -334,7 +334,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) @@ -349,7 +349,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) @@ -360,7 +360,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 4b04606401..1c49cebf08 100644 --- a/code/game/objects/effects/spiders.dm +++ b/code/game/objects/effects/spiders.dm @@ -31,7 +31,7 @@ var/genetic = FALSE icon_state = "stickyweb1" -/obj/structure/spider/stickyweb/Initialize() +/obj/structure/spider/stickyweb/Initialize(mapload) if(prob(50)) icon_state = "stickyweb2" . = ..() @@ -84,7 +84,7 @@ var/poison_per_bite = 5 var/list/faction = list("spiders") -/obj/structure/spider/eggcluster/Initialize() +/obj/structure/spider/eggcluster/Initialize(mapload) pixel_x = rand(3,-3) pixel_y = rand(3,-3) START_PROCESSING(SSobj, src) @@ -127,7 +127,7 @@ new/obj/item/reagent_containers/food/snacks/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) @@ -248,7 +248,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/clockcult.dm b/code/game/objects/effects/temporary_visuals/clockcult.dm index 9a236c00c3..fda72f2904 100644 --- a/code/game/objects/effects/temporary_visuals/clockcult.dm +++ b/code/game/objects/effects/temporary_visuals/clockcult.dm @@ -69,7 +69,7 @@ pixel_y = 20 duration = 20 -/obj/effect/temp_visual/ratvar/belligerent_cast/Initialize() +/obj/effect/temp_visual/ratvar/belligerent_cast/Initialize(mapload) . = ..() animate(src, alpha = 0, time = duration, easing = EASE_OUT) @@ -145,7 +145,7 @@ else playsound(src, "sparks", 50, 1) -/obj/effect/temp_visual/ratvar/ocular_warden/Initialize() +/obj/effect/temp_visual/ratvar/ocular_warden/Initialize(mapload) . = ..() pixel_x = rand(-8, 8) pixel_y = rand(-10, 10) @@ -184,7 +184,7 @@ layer = ABOVE_MOB_LAYER duration = 10 -/obj/effect/temp_visual/ratvar/component/Initialize() +/obj/effect/temp_visual/ratvar/component/Initialize(mapload) . = ..() transform = matrix()*0.75 pixel_x = rand(-10, 10) @@ -215,7 +215,7 @@ light_power = 2 light_color = "#FAE48C" -/obj/effect/temp_visual/ratvar/sigil/transgression/Initialize() +/obj/effect/temp_visual/ratvar/sigil/transgression/Initialize(mapload) . = ..() var/oldtransform = transform animate(src, transform = matrix()*2, time = 5) @@ -277,7 +277,7 @@ /obj/effect/temp_visual/steam_release name = "all the steam" -/obj/effect/temp_visual/steam_release/Initialize() +/obj/effect/temp_visual/steam_release/Initialize(mapload) ..() for(var/V in GLOB.cardinals) var/turf/T = get_step(src, V) diff --git a/code/game/objects/effects/temporary_visuals/temporary_visual.dm b/code/game/objects/effects/temporary_visuals/temporary_visual.dm index 9a4c26111f..bf4e82f7b7 100644 --- a/code/game/objects/effects/temporary_visuals/temporary_visual.dm +++ b/code/game/objects/effects/temporary_visuals/temporary_visual.dm @@ -8,7 +8,7 @@ var/randomdir = TRUE 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 54bdeff4de..e2a4d915cc 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -177,7 +177,7 @@ GLOBAL_VAR_INIT(embedpocalypse, FALSE) // if true, all items will be able to emb var/canMouseDown = FALSE -/obj/item/Initialize() +/obj/item/Initialize(mapload) if(attack_verb) attack_verb = typelist("attack_verb", attack_verb) diff --git a/code/game/objects/items/AI_modules.dm b/code/game/objects/items/AI_modules.dm index 59dd420d23..306b711994 100644 --- a/code/game/objects/items/AI_modules.dm +++ b/code/game/objects/items/AI_modules.dm @@ -406,7 +406,7 @@ AI MODULES /obj/item/aiModule/core/full/custom name = "Default Core AI Module" -/obj/item/aiModule/core/full/custom/Initialize() +/obj/item/aiModule/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 07ffe8896e..b5bb69f960 100644 --- a/code/game/objects/items/RCD.dm +++ b/code/game/objects/items/RCD.dm @@ -39,7 +39,7 @@ RLD var/custom_range = 7 var/upgrade = FALSE -/obj/item/construction/Initialize() +/obj/item/construction/Initialize(mapload) . = ..() spark_system = new /datum/effect_system/spark_spread spark_system.set_up(5, 0, src) @@ -464,7 +464,7 @@ RLD return TRUE qdel(rcd_effect) -/obj/item/construction/rcd/Initialize() +/obj/item/construction/rcd/Initialize(mapload) . = ..() GLOB.rcd_list += src @@ -561,7 +561,7 @@ RLD cut_overlays() //To prevent infinite stacking of overlays add_overlay("[icon_state]_charge[ratio]") -/obj/item/construction/rcd/Initialize() +/obj/item/construction/rcd/Initialize(mapload) . = ..() update_icon() @@ -699,7 +699,7 @@ RLD var/color_choice = null -/obj/item/construction/rld/Initialize() +/obj/item/construction/rld/Initialize(mapload) . = ..() update_icon() diff --git a/code/game/objects/items/RCL.dm b/code/game/objects/items/RCL.dm index 019231b8b4..fa73650142 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) @@ -314,7 +314,7 @@ else //open the menu showWiringGui(user) -/obj/item/rcl/pre_loaded/Initialize() //Comes preloaded with cable, for testing stuff +/obj/item/rcl/pre_loaded/Initialize(mapload) //Comes preloaded with cable, for testing stuff loaded = new() loaded.max_amount = max_amount loaded.amount = max_amount diff --git a/code/game/objects/items/RPD.dm b/code/game/objects/items/RPD.dm index 635ea97902..86972c47ad 100644 --- a/code/game/objects/items/RPD.dm +++ b/code/game/objects/items/RPD.dm @@ -532,7 +532,7 @@ GLOBAL_LIST_INIT(fluid_duct_recipes, list( category = PLUMBING_CATEGORY locked = TRUE -/obj/item/pipe_dispenser/plumbing/Initialize() +/obj/item/pipe_dispenser/plumbing/Initialize(mapload) . = ..() spark_system = new spark_system.set_up(5, 0, src) diff --git a/code/game/objects/items/airlock_painter.dm b/code/game/objects/items/airlock_painter.dm index 8edd1c2a76..048a62fea6 100644 --- a/code/game/objects/items/airlock_painter.dm +++ b/code/game/objects/items/airlock_painter.dm @@ -16,7 +16,7 @@ var/obj/item/toner/ink = null -/obj/item/airlock_painter/Initialize() +/obj/item/airlock_painter/Initialize(mapload) . = ..() ink = new /obj/item/toner(src) @@ -169,7 +169,7 @@ . = ..() ui_interact(user) -/obj/item/airlock_painter/decal/Initialize() +/obj/item/airlock_painter/decal/Initialize(mapload) . = ..() ink = new /obj/item/toner/large(src) @@ -237,6 +237,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 01295204a8..0897dc1dca 100644 --- a/code/game/objects/items/binoculars.dm +++ b/code/game/objects/items/binoculars.dm @@ -11,7 +11,7 @@ var/zoom_out_amt = 6 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/boombox.dm b/code/game/objects/items/boombox.dm index 49e2375c1a..7ac2c67f5a 100644 --- a/code/game/objects/items/boombox.dm +++ b/code/game/objects/items/boombox.dm @@ -48,7 +48,7 @@ baseiconstate = "raiqbawks" availabletrackids = list("hotline.ogg","chiptune.ogg","genesis.ogg") -/obj/item/boombox/raiq/Initialize() +/obj/item/boombox/raiq/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_ATOM_UPDATED_ICON, .proc/start_party) diff --git a/code/game/objects/items/broom.dm b/code/game/objects/items/broom.dm index 4cbd75ed94..91b37a4c5d 100644 --- a/code/game/objects/items/broom.dm +++ b/code/game/objects/items/broom.dm @@ -13,7 +13,7 @@ attack_verb = list("swept", "brushed off", "bludgeoned", "whacked") resistance_flags = FLAMMABLE -/obj/item/broom/Initialize() +/obj/item/broom/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 960e3ce499..355405b626 100644 --- a/code/game/objects/items/candle.dm +++ b/code/game/objects/items/candle.dm @@ -15,7 +15,7 @@ var/start_lit = FALSE var/heats_space = TRUE -/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 a8ff7b9004..d4f53e1a31 100644 --- a/code/game/objects/items/cardboard_cutouts.dm +++ b/code/game/objects/items/cardboard_cutouts.dm @@ -15,7 +15,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) . = ..() if(possible_appearances) return diff --git a/code/game/objects/items/cards_ids.dm b/code/game/objects/items/cards_ids.dm index df7d6467f0..76bdd878ff 100644 --- a/code/game/objects/items/cards_ids.dm +++ b/code/game/objects/items/cards_ids.dm @@ -34,7 +34,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_icon() @@ -448,7 +448,7 @@ var/anyone = FALSE //Can anyone forge the ID or just syndicate? var/forged = FALSE //have we set a custom name and job assignment, or will we use what we're given when we chameleon change? -/obj/item/card/id/syndicate/Initialize() +/obj/item/card/id/syndicate/Initialize(mapload) . = ..() var/datum/action/item_action/chameleon/change/chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/card/id @@ -566,7 +566,7 @@ registered_name = "Captain" assignment = "Captain" -/obj/item/card/id/captains_spare/Initialize() +/obj/item/card/id/captains_spare/Initialize(mapload) var/datum/job/captain/J = new/datum/job/captain access = J.get_access() . = ..() @@ -578,7 +578,7 @@ registered_name = "Central Command" assignment = "General" -/obj/item/card/id/centcom/Initialize() +/obj/item/card/id/centcom/Initialize(mapload) access = get_all_centcom_access() . = ..() @@ -589,7 +589,7 @@ registered_name = "Emergency Response Team Commander" assignment = "Emergency Response Team Commander" -/obj/item/card/id/ert/Initialize() +/obj/item/card/id/ert/Initialize(mapload) access = get_all_accesses()+get_ert_access("commander")-ACCESS_CHANGE_IDS . = ..() @@ -598,7 +598,7 @@ registered_name = "Security Response Officer" assignment = "Security Response Officer" -/obj/item/card/id/ert/Security/Initialize() +/obj/item/card/id/ert/Security/Initialize(mapload) access = get_all_accesses()+get_ert_access("sec")-ACCESS_CHANGE_IDS . = ..() @@ -607,7 +607,7 @@ registered_name = "Engineer Response Officer" assignment = "Engineer Response Officer" -/obj/item/card/id/ert/Engineer/Initialize() +/obj/item/card/id/ert/Engineer/Initialize(mapload) access = get_all_accesses()+get_ert_access("eng")-ACCESS_CHANGE_IDS . = ..() @@ -616,7 +616,7 @@ registered_name = "Medical Response Officer" assignment = "Medical Response Officer" -/obj/item/card/id/ert/Medical/Initialize() +/obj/item/card/id/ert/Medical/Initialize(mapload) access = get_all_accesses()+get_ert_access("med")-ACCESS_CHANGE_IDS . = ..() @@ -625,7 +625,7 @@ registered_name = "Religious Response Officer" assignment = "Religious Response Officer" -/obj/item/card/id/ert/chaplain/Initialize() +/obj/item/card/id/ert/chaplain/Initialize(mapload) access = get_all_accesses()+get_ert_access("sec")-ACCESS_CHANGE_IDS . = ..() @@ -763,7 +763,7 @@ var/department_ID = ACCOUNT_CIV var/department_name = ACCOUNT_CIV_NAME -/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) @@ -819,7 +819,7 @@ var/id_color = "#00FF00" //defaults to green var/mutable_appearance/id_overlay -/obj/item/card/id/knight/Initialize() +/obj/item/card/id/knight/Initialize(mapload) . = ..() id_overlay = mutable_appearance(icon, "knight_overlay") update_icon() @@ -870,7 +870,7 @@ icon_state = "ert_janitor" assignment = "Jannie" -/obj/item/card/id/debug/Initialize() +/obj/item/card/id/debug/Initialize(mapload) access = get_all_accesses()+get_all_centcom_access()+get_all_syndicate_access() registered_account = SSeconomy.get_dep_account(ACCOUNT_CAR) . = ..() diff --git a/code/game/objects/items/chainsaw.dm b/code/game/objects/items/chainsaw.dm index ebb26fab93..58046a35d1 100644 --- a/code/game/objects/items/chainsaw.dm +++ b/code/game/objects/items/chainsaw.dm @@ -23,7 +23,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 e9c3842619..8ece13681c 100644 --- a/code/game/objects/items/charter.dm +++ b/code/game/objects/items/charter.dm @@ -18,7 +18,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, "|") diff --git a/code/game/objects/items/chrono_eraser.dm b/code/game/objects/items/chrono_eraser.dm index 682ce18215..8c510bb489 100644 --- a/code/game/objects/items/chrono_eraser.dm +++ b/code/game/objects/items/chrono_eraser.dm @@ -52,7 +52,7 @@ var/obj/effect/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)) @@ -124,7 +124,7 @@ nodamage = 1 var/obj/item/gun/energy/chrono_gun/gun = null -/obj/item/projectile/energy/chrono_beam/Initialize() +/obj/item/projectile/energy/chrono_beam/Initialize(mapload) . = ..() var/obj/item/ammo_casing/energy/chrono_beam/C = loc if(istype(C)) @@ -143,7 +143,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 8227097d8f..518772c771 100644 --- a/code/game/objects/items/cigs_lighters.dm +++ b/code/game/objects/items/cigs_lighters.dm @@ -123,7 +123,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM user.visible_message("[user] is huffing [src] as quickly as [user.p_they()] can! It looks like [user.p_theyre()] trying to give [user.p_them()]self cancer.") return (TOXLOSS|OXYLOSS) -/obj/item/clothing/mask/cigarette/Initialize() +/obj/item/clothing/mask/cigarette/Initialize(mapload) . = ..() create_reagents(chem_volume, INJECTABLE | NO_REACT, NO_REAGENTS_VALUE) // so it doesn't react until you light it if(list_reagents) @@ -398,7 +398,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM throwforce = 0 grind_results = list(/datum/reagent/carbon = 2) -/obj/item/cigbutt/Initialize() +/obj/item/cigbutt/Initialize(mapload) . = ..() AddElement(/datum/element/trash) @@ -422,7 +422,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM list_reagents = null var/packeditem = 0 -/obj/item/clothing/mask/cigarette/pipe/Initialize() +/obj/item/clothing/mask/cigarette/pipe/Initialize(mapload) . = ..() name = "empty [initial(name)]" @@ -532,7 +532,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM grind_results = list(/datum/reagent/iron = 1, /datum/reagent/fuel = 5, /datum/reagent/oil = 5) custom_price = PRICE_ALMOST_CHEAP -/obj/item/lighter/Initialize() +/obj/item/lighter/Initialize(mapload) . = ..() if(!overlay_state) overlay_state = pick(overlay_list) @@ -670,7 +670,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) @@ -917,7 +917,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM var/list/list_reagents = list() //For the base reagents bongs could get -/obj/item/bong/Initialize() +/obj/item/bong/Initialize(mapload) . = ..() create_reagents(chem_volume, NO_REACT) // so it doesn't react until you light it reagents.add_reagent_list(list_reagents) diff --git a/code/game/objects/items/circuitboards/computer_circuitboards.dm b/code/game/objects/items/circuitboards/computer_circuitboards.dm index 742a1fe3b0..74d11e9c11 100644 --- a/code/game/objects/items/circuitboards/computer_circuitboards.dm +++ b/code/game/objects/items/circuitboards/computer_circuitboards.dm @@ -313,7 +313,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/circuitboards/machine_circuitboards.dm b/code/game/objects/items/circuitboards/machine_circuitboards.dm index cb1d4aae88..3a940abe29 100644 --- a/code/game/objects/items/circuitboards/machine_circuitboards.dm +++ b/code/game/objects/items/circuitboards/machine_circuitboards.dm @@ -77,7 +77,7 @@ #define PATH_POWERCOIL /obj/machinery/power/tesla_coil/power #define PATH_RPCOIL /obj/machinery/power/tesla_coil/research -/obj/item/circuitboard/machine/tesla_coil/Initialize() +/obj/item/circuitboard/machine/tesla_coil/Initialize(mapload) . = ..() if(build_path) build_path = PATH_POWERCOIL @@ -347,7 +347,7 @@ #define PATH_FREEZER /obj/machinery/atmospherics/components/unary/thermomachine/freezer #define PATH_HEATER /obj/machinery/atmospherics/components/unary/thermomachine/heater -/obj/item/circuitboard/machine/thermomachine/Initialize() +/obj/item/circuitboard/machine/thermomachine/Initialize(mapload) . = ..() if(!build_path) if(prob(50)) diff --git a/code/game/objects/items/clown_items.dm b/code/game/objects/items/clown_items.dm index f5477ae5f6..d8d471abaf 100644 --- a/code/game/objects/items/clown_items.dm +++ b/code/game/objects/items/clown_items.dm @@ -27,7 +27,7 @@ var/cleanspeed = 50 //slower than mop force_string = "robust... against germs" -/obj/item/soap/Initialize() +/obj/item/soap/Initialize(mapload) . = ..() AddComponent(/datum/component/slippery, 80) diff --git a/code/game/objects/items/control_wand.dm b/code/game/objects/items/control_wand.dm index be39bb6973..c87dad8f8c 100644 --- a/code/game/objects/items/control_wand.dm +++ b/code/game/objects/items/control_wand.dm @@ -15,7 +15,7 @@ var/region_access = 1 //See access.dm var/list/access_list -/obj/item/door_remote/Initialize() +/obj/item/door_remote/Initialize(mapload) . = ..() access_list = get_region_accesses(region_access) AddComponent(/datum/component/ntnet_interface) diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm index bf1fdb1716..61bc715a64 100644 --- a/code/game/objects/items/crayons.dm +++ b/code/game/objects/items/crayons.dm @@ -83,7 +83,7 @@ user.visible_message("[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) . = ..() // Makes crayons identifiable in things like grinders if(name == "crayon") @@ -606,7 +606,7 @@ icon_state = "crayonbox" w_class = WEIGHT_CLASS_SMALL -/obj/item/storage/crayons/Initialize() +/obj/item/storage/crayons/Initialize(mapload) . = ..() var/datum/component/storage/STR = GetComponent(/datum/component/storage) STR.max_items = 7 @@ -701,7 +701,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 36f68cfdf3..6f56a46a2b 100644 --- a/code/game/objects/items/defib.dm +++ b/code/game/objects/items/defib.dm @@ -33,7 +33,7 @@ /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 . = ..() if(cell) cell = new cell(src) @@ -287,7 +287,7 @@ var/disarm_shock_time = 10 var/wielded = FALSE // track wielded status on item -/obj/item/shockpaddles/Initialize() +/obj/item/shockpaddles/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/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index 1a130998b6..a8cd962d7a 100644 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -115,7 +115,7 @@ GLOBAL_LIST_EMPTY(PDAs) if(LAZYLEN(GLOB.pda_reskins)) . += "Ctrl-shift-click it to reskin it." -/obj/item/pda/Initialize() +/obj/item/pda/Initialize(mapload) . = ..() if(fon) set_light(f_lum, f_pow, f_col) diff --git a/code/game/objects/items/devices/PDA/PDA_types.dm b/code/game/objects/items/devices/PDA/PDA_types.dm index 8fcd97c261..e857b7dbd5 100644 --- a/code/game/objects/items/devices/PDA/PDA_types.dm +++ b/code/game/objects/items/devices/PDA/PDA_types.dm @@ -8,7 +8,7 @@ ttone = "honk" var/slipvictims = list() //CIT CHANGE - makes clown PDAs track unique people slipped -/obj/item/pda/clown/Initialize() +/obj/item/pda/clown/Initialize(mapload) . = ..() AddComponent(/datum/component/slippery, 120, NO_SLIP_WHEN_WALKING|SLIP_WHEN_JOGGING, CALLBACK(src, .proc/AfterSlip)) diff --git a/code/game/objects/items/devices/PDA/cart.dm b/code/game/objects/items/devices/PDA/cart.dm index ca72e3371b..34f8202898 100644 --- a/code/game/objects/items/devices/PDA/cart.dm +++ b/code/game/objects/items/devices/PDA/cart.dm @@ -52,7 +52,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)) @@ -131,7 +131,7 @@ icon_state = "cart-tox" access = CART_REAGENT_SCANNER | CART_ATMOS -/obj/item/cartridge/signal/Initialize() +/obj/item/cartridge/signal/Initialize(mapload) . = ..() radio = new(src) @@ -180,7 +180,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 -/obj/item/cartridge/rd/Initialize() +/obj/item/cartridge/rd/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 329631ff9e..39d1a7b522 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 e868ec07b6..86aa787c3e 100644 --- a/code/game/objects/items/devices/beacon.dm +++ b/code/game/objects/items/devices/beacon.dm @@ -9,11 +9,11 @@ var/enabled = TRUE var/renamed = FALSE -/obj/item/beacon/Initialize() +/obj/item/beacon/Initialize(mapload) . = ..() if (enabled) GLOB.teleportbeacons += src - else + else icon_state = "beacon-off" /obj/item/beacon/Destroy() @@ -25,7 +25,7 @@ if (enabled) icon_state = "beacon" GLOB.teleportbeacons += src - else + else icon_state = "beacon-off" GLOB.teleportbeacons.Remove(src) to_chat(user, "You [enabled ? "enable" : "disable"] the beacon.") @@ -40,5 +40,5 @@ name = new_name renamed = TRUE return - else + else return ..() diff --git a/code/game/objects/items/devices/dogborg_sleeper.dm b/code/game/objects/items/devices/dogborg_sleeper.dm index e7493efadc..73574eda96 100644 --- a/code/game/objects/items/devices/dogborg_sleeper.dm +++ b/code/game/objects/items/devices/dogborg_sleeper.dm @@ -47,7 +47,7 @@ // Bags are prohibited from this due to the potential explotation of objects, same with brought -/obj/item/dogborg/sleeper/Initialize() +/obj/item/dogborg/sleeper/Initialize(mapload) . = ..() update_icon() item_flags |= NOBLUDGEON //No more attack messages diff --git a/code/game/objects/items/devices/electroadaptive_pseudocircuit.dm b/code/game/objects/items/devices/electroadaptive_pseudocircuit.dm index 5dbda8de54..9c06c92108 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 = "[circuits]" diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index e29519406a..79489c3c51 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -17,7 +17,7 @@ var/flashlight_power = 0.8 //strength of the light when on light_color = "#FFCC66" -/obj/item/flashlight/Initialize() +/obj/item/flashlight/Initialize(mapload) . = ..() if(icon_state == "[initial(icon_state)]-on") on = TRUE @@ -461,7 +461,7 @@ rad_flags = RAD_NO_CONTAMINATE var/fuel = 0 -/obj/item/flashlight/glowstick/Initialize() +/obj/item/flashlight/glowstick/Initialize(mapload) fuel = rand(1000, 1500) light_color = color . = ..() diff --git a/code/game/objects/items/devices/geiger_counter.dm b/code/game/objects/items/devices/geiger_counter.dm index aa54ee6219..4caf9ee0aa 100644 --- a/code/game/objects/items/devices/geiger_counter.dm +++ b/code/game/objects/items/devices/geiger_counter.dm @@ -32,7 +32,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 e0453cebc0..e2dc7b0f91 100644 --- a/code/game/objects/items/devices/gps.dm +++ b/code/game/objects/items/devices/gps.dm @@ -11,7 +11,7 @@ var/emp_proof = FALSE var/starton = TRUE -/obj/item/gps/Initialize() +/obj/item/gps/Initialize(mapload) . = ..() AddComponent(/datum/component/gps/item, gpstag, emp_proof, starton) @@ -36,7 +36,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) @@ -75,7 +75,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/multitool.dm b/code/game/objects/items/devices/multitool.dm index 1e43f0f883..fbc241c5de 100644 --- a/code/game/objects/items/devices/multitool.dm +++ b/code/game/objects/items/devices/multitool.dm @@ -45,7 +45,7 @@ throwforce = 10 obj_flags = UNIQUE_RENAME -/obj/item/multitool/chaplain/Initialize() +/obj/item/multitool/chaplain/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, TRUE, TRUE, FALSE, null, null, FALSE) @@ -130,7 +130,7 @@ var/mob/camera/aiEye/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(SSobj, src) eye = new /mob/camera/aiEye/remote/ai_detector() diff --git a/code/game/objects/items/devices/paicard.dm b/code/game/objects/items/devices/paicard.dm index d54911528d..845c8a874f 100644 --- a/code/game/objects/items/devices/paicard.dm +++ b/code/game/objects/items/devices/paicard.dm @@ -15,7 +15,7 @@ user.visible_message("[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 add_overlay("pai-off") AddElement(/datum/element/bed_tuckable, 6, -5, 90) diff --git a/code/game/objects/items/devices/powersink.dm b/code/game/objects/items/devices/powersink.dm index 838b5376c5..140bcc192f 100644 --- a/code/game/objects/items/devices/powersink.dm +++ b/code/game/objects/items/devices/powersink.dm @@ -28,7 +28,7 @@ GLOBAL_LIST_EMPTY(power_sinks) var/obj/structure/cable/attached // the attached cable -/obj/item/powersink/Initialize() +/obj/item/powersink/Initialize(mapload) . = ..() GLOB.power_sinks += src diff --git a/code/game/objects/items/devices/pressureplates.dm b/code/game/objects/items/devices/pressureplates.dm index 2b5c8d873b..47dcaae60e 100644 --- a/code/game/objects/items/devices/pressureplates.dm +++ b/code/game/objects/items/devices/pressureplates.dm @@ -22,7 +22,7 @@ var/can_trigger = TRUE var/trigger_delay = 10 -/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 2c55bbf8e4..9e802d173c 100644 --- a/code/game/objects/items/devices/radio/electropack.dm +++ b/code/game/objects/items/devices/radio/electropack.dm @@ -20,7 +20,7 @@ user.visible_message("[user] hooks [user.p_them()]self to the electropack and spams the trigger! It looks like [user.p_theyre()] trying to commit suicide!") return (FIRELOSS) -/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 e26b9dd845..9ad75b5d8f 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 6feb8bf663..8403ea30e7 100644 --- a/code/game/objects/items/devices/radio/headset.dm +++ b/code/game/objects/items/devices/radio/headset.dm @@ -58,7 +58,7 @@ GLOBAL_LIST_INIT(channel_tokens, list( if (bowman) AddComponent(/datum/component/wearertargeting/earprotection, list(ITEM_SLOT_EARS)) -/obj/item/radio/headset/Initialize() +/obj/item/radio/headset/Initialize(mapload) . = ..() recalculateChannels() @@ -94,12 +94,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 e81110425c..ce5305f7dc 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -84,7 +84,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 @@ -378,7 +378,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 810f2150e6..48206ba867 100644 --- a/code/game/objects/items/devices/reverse_bear_trap.dm +++ b/code/game/objects/items/devices/reverse_bear_trap.dm @@ -22,7 +22,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/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm index 11900d8e42..dea3bda144 100644 --- a/code/game/objects/items/devices/traitordevices.dm +++ b/code/game/objects/items/devices/traitordevices.dm @@ -78,7 +78,7 @@ effective or pretty fucking useless. var/ui_x = 320 var/ui_y = 335 -/obj/item/healthanalyzer/rad_laser/Initialize() +/obj/item/healthanalyzer/rad_laser/Initialize(mapload) . = ..() AddComponent(/datum/component/identification/syndicate, ID_COMPONENT_DEL_ON_IDENTIFY, ID_COMPONENT_EFFECT_NO_ACTIONS, ID_COMPONENT_IDENTIFY_WITH_DECONSTRUCTOR) diff --git a/code/game/objects/items/dice.dm b/code/game/objects/items/dice.dm index 53b0860def..91aad761d9 100644 --- a/code/game/objects/items/dice.dm +++ b/code/game/objects/items/dice.dm @@ -50,7 +50,7 @@ var/can_be_rigged = TRUE var/rigged = FALSE -/obj/item/dice/Initialize() +/obj/item/dice/Initialize(mapload) . = ..() result = roll(sides) update_icon() @@ -89,7 +89,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/dualsaber.dm b/code/game/objects/items/dualsaber.dm index 9a6a87bb51..daead8b7d2 100644 --- a/code/game/objects/items/dualsaber.dm +++ b/code/game/objects/items/dualsaber.dm @@ -84,7 +84,7 @@ block_return[BLOCK_RETURN_REDIRECT_METHOD] = REDIRECT_METHOD_DEFLECT . |= BLOCK_SHOULD_REDIRECT -/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) @@ -94,7 +94,7 @@ AddComponent(/datum/component/two_handed, force_unwielded=3, force_wielded=34, \ wieldsound='sound/weapons/saberon.ogg', unwieldsound='sound/weapons/saberoff.ogg') -/obj/item/dualsaber/Initialize() +/obj/item/dualsaber/Initialize(mapload) . = ..() if(LAZYLEN(possible_colors)) saber_color = pick(possible_colors) diff --git a/code/game/objects/items/extinguisher.dm b/code/game/objects/items/extinguisher.dm index 301b8d4155..372d1a1733 100644 --- a/code/game/objects/items/extinguisher.dm +++ b/code/game/objects/items/extinguisher.dm @@ -53,7 +53,7 @@ power = 7 cooling_power = 3 -/obj/item/extinguisher/Initialize() +/obj/item/extinguisher/Initialize(mapload) . = ..() create_reagents(max_water, AMOUNT_VISIBLE) reagents.add_reagent(chem, max_water) diff --git a/code/game/objects/items/fireaxe.dm b/code/game/objects/items/fireaxe.dm index 6fb7b89262..6250638657 100644 --- a/code/game/objects/items/fireaxe.dm +++ b/code/game/objects/items/fireaxe.dm @@ -21,7 +21,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/fluff.dm b/code/game/objects/items/fluff.dm index 0df8d5b447..1077aab87e 100644 --- a/code/game/objects/items/fluff.dm +++ b/code/game/objects/items/fluff.dm @@ -88,7 +88,7 @@ poly_states = 0 actions_types = list(/datum/action/item_action/squeeze) -/obj/item/toy/fluff/tennis_poly/tri/squeak/Initialize() +/obj/item/toy/fluff/tennis_poly/tri/squeak/Initialize(mapload) . = ..() AddComponent(/datum/component/squeak) @@ -124,7 +124,7 @@ name = "polychromic bone" desc = "A polychromic chew bone. Makes a small squeak when squeezed." -/obj/item/toy/fluff/bone_poly/squeak/Initialize() +/obj/item/toy/fluff/bone_poly/squeak/Initialize(mapload) . = ..() AddComponent(/datum/component/squeak) diff --git a/code/game/objects/items/granters.dm b/code/game/objects/items/granters.dm index c084b90d6f..7227b10298 100644 --- a/code/game/objects/items/granters.dm +++ b/code/game/objects/items/granters.dm @@ -368,7 +368,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 2032758624..3d35f7eb24 100644 --- a/code/game/objects/items/grenades/chem_grenade.dm +++ b/code/game/objects/items/grenades/chem_grenade.dm @@ -20,7 +20,7 @@ var/no_splash = FALSE //If the grenade deletes even if it has no reagents to splash with. Used for slime core reactions. var/casedesc = "This basic model accepts both beakers and bottles. It heats contents by 10°K upon ignition." // Appears when examining empty casings. -/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. @@ -326,7 +326,7 @@ desc = "Used for emergency sealing of hull breaches." stage = 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) @@ -344,7 +344,7 @@ desc = "Used for emergency sealing of hull breaches, while keeping areas accessible." stage = 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) @@ -362,7 +362,7 @@ desc = "Used for clearing rooms of living things." stage = 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) @@ -380,7 +380,7 @@ desc = "Used for purging large areas of invasive plant species. Contents under pressure. Do not directly inhale contents." stage = 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) @@ -399,7 +399,7 @@ desc = "BLAM!-brand foaming space cleaner. In a special applicator for rapid cleaning of wide areas." stage = 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) @@ -417,7 +417,7 @@ desc = "Waffle Co.-brand foaming space cleaner. In a special applicator for rapid cleaning of wide areas." stage = 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) @@ -436,7 +436,7 @@ desc = "Used for nonlethal riot control. Contents under pressure. Do not directly inhale contents." stage = 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) @@ -455,7 +455,7 @@ desc = "Used for melting armoured opponents." stage = 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) @@ -475,7 +475,7 @@ desc = "Used for wide scale painting projects." stage = 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) @@ -494,7 +494,7 @@ stage = 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) @@ -527,7 +527,7 @@ desc = "BURN!-brand foaming clf3. In a special applicator for rapid purging of wide areas." stage = 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) @@ -545,7 +545,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 = 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) @@ -565,7 +565,7 @@ desc = "WARNING: GRENADE WILL RELEASE DEADLY SPORES CONTAINING ACTIVE AGENTS. SEAL SUIT AND AIRFLOW BEFORE USE." stage = 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) @@ -585,7 +585,7 @@ icon_state = "holy_grenade" stage = READY -/obj/item/grenade/chem_grenade/holy/Initialize() +/obj/item/grenade/chem_grenade/holy/Initialize(mapload) . = ..() var/obj/item/reagent_containers/glass/beaker/large/B1 = new(src) var/obj/item/reagent_containers/glass/beaker/large/B2 = new(src) diff --git a/code/game/objects/items/grenades/ghettobomb.dm b/code/game/objects/items/grenades/ghettobomb.dm index 3553d79faf..f379bf6493 100644 --- a/code/game/objects/items/grenades/ghettobomb.dm +++ b/code/game/objects/items/grenades/ghettobomb.dm @@ -19,7 +19,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") diff --git a/code/game/objects/items/grenades/plastic.dm b/code/game/objects/items/grenades/plastic.dm index 23fe128fa8..9c5f1475fd 100644 --- a/code/game/objects/items/grenades/plastic.dm +++ b/code/game/objects/items/grenades/plastic.dm @@ -21,7 +21,7 @@ var/full_damage_on_mobs = FALSE var/can_gib_mobs = FALSE -/obj/item/grenade/plastic/Initialize() +/obj/item/grenade/plastic/Initialize(mapload) . = ..() plastic_overlay = mutable_appearance(icon, "[item_state]2", HIGH_OBJ_LAYER) diff --git a/code/game/objects/items/handcuffs.dm b/code/game/objects/items/handcuffs.dm index 60538b479b..4d8f933cc0 100644 --- a/code/game/objects/items/handcuffs.dm +++ b/code/game/objects/items/handcuffs.dm @@ -260,7 +260,7 @@ var/armed = FALSE var/trap_damage = 20 -/obj/item/restraints/legcuffs/beartrap/Initialize() +/obj/item/restraints/legcuffs/beartrap/Initialize(mapload) . = ..() icon_state = "[initial(icon_state)][armed]" diff --git a/code/game/objects/items/his_grace.dm b/code/game/objects/items/his_grace.dm index eafa03ca61..b339b08bd9 100644 --- a/code/game/objects/items/his_grace.dm +++ b/code/game/objects/items/his_grace.dm @@ -25,7 +25,7 @@ var/victims_needed = 10 //Citadel change from 25 to 10 var/ascend_bonus = 15 -/obj/item/his_grace/Initialize() +/obj/item/his_grace/Initialize(mapload) . = ..() START_PROCESSING(SSprocessing, src) GLOB.poi_list += src diff --git a/code/game/objects/items/holy_weapons.dm b/code/game/objects/items/holy_weapons.dm index 1360fb970e..a2255e9c1b 100644 --- a/code/game/objects/items/holy_weapons.dm +++ b/code/game/objects/items/holy_weapons.dm @@ -229,7 +229,7 @@ var/chaplain_spawnable = TRUE total_mass = TOTAL_MASS_MEDIEVAL_WEAPON -/obj/item/nullrod/Initialize() +/obj/item/nullrod/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, TRUE, TRUE, FALSE, null, null, FALSE) @@ -314,7 +314,7 @@ attack_verb = list("punched", "cross countered", "pummeled") total_mass = TOTAL_MASS_HAND_REPLACEMENT -/obj/item/nullrod/godhand/Initialize() +/obj/item/nullrod/godhand/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, HAND_REPLACEMENT_TRAIT) @@ -455,7 +455,7 @@ sharpness = SHARP_EDGED attack_verb = list("chopped", "sliced", "cut", "reaped") -/obj/item/nullrod/scythe/Initialize() +/obj/item/nullrod/scythe/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 70, 110) //the harvest gives a high bonus chance @@ -582,7 +582,7 @@ tool_behaviour = TOOL_SAW toolspeed = 2 -/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) @@ -662,7 +662,7 @@ bare_wound_bonus = 25 total_mass = TOTAL_MASS_HAND_REPLACEMENT -/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) @@ -831,7 +831,7 @@ var/praying = FALSE var/deity_name = "Coderbus" //This is the default, hopefully won't actually appear if the religion subsystem is running properly -/obj/item/nullrod/rosary/Initialize() +/obj/item/nullrod/rosary/Initialize(mapload) .=..() if(GLOB.deity) deity_name = GLOB.deity diff --git a/code/game/objects/items/implants/implant_chem.dm b/code/game/objects/items/implants/implant_chem.dm index d148cbbb3c..5f0b4f3fc3 100644 --- a/code/game/objects/items/implants/implant_chem.dm +++ b/code/game/objects/items/implants/implant_chem.dm @@ -21,7 +21,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 eb58d76d1b..219e4fdd68 100644 --- a/code/game/objects/items/implants/implant_stealth.dm +++ b/code/game/objects/items/implants/implant_stealth.dm @@ -16,7 +16,7 @@ animate(src, , alpha = 0, time = 5) START_PROCESSING(SSobj, src) -/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 2fa0244831..b2678baddf 100644 --- a/code/game/objects/items/implants/implant_track.dm +++ b/code/game/objects/items/implants/implant_track.dm @@ -11,11 +11,11 @@ var/lifespan = 5 MINUTES //how many deciseconds does the implant last? allow_teleport = FALSE -/obj/item/implant/tracking/c38/Initialize() +/obj/item/implant/tracking/c38/Initialize(mapload) . = ..() QDEL_IN(src, lifespan) -/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 e32acd105e..8777a9f5e0 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_icon() diff --git a/code/game/objects/items/inducer.dm b/code/game/objects/items/inducer.dm index a5913c308d..f7a614050e 100644 --- a/code/game/objects/items/inducer.dm +++ b/code/game/objects/items/inducer.dm @@ -14,7 +14,7 @@ var/recharging = FALSE var/gun_charger = FALSE -/obj/item/inducer/Initialize() +/obj/item/inducer/Initialize(mapload) . = ..() if(!cell && cell_type) cell = new cell_type @@ -180,7 +180,7 @@ powertransfer = 500 opened = TRUE -/obj/item/inducer/sci/Initialize() +/obj/item/inducer/sci/Initialize(mapload) . = ..() update_icon() @@ -199,11 +199,11 @@ cell_type = null opened = TRUE -/obj/item/inducer/sci/combat/dry/Initialize() //Just in case +/obj/item/inducer/sci/combat/dry/Initialize(mapload) //Just in case . = ..() update_icon() -/obj/item/inducer/sci/combat/Initialize() +/obj/item/inducer/sci/combat/Initialize(mapload) . = ..() update_icon() diff --git a/code/game/objects/items/kitchen.dm b/code/game/objects/items/kitchen.dm index 5a16c24b8e..038d16321c 100644 --- a/code/game/objects/items/kitchen.dm +++ b/code/game/objects/items/kitchen.dm @@ -84,7 +84,7 @@ bare_wound_bonus = 10 custom_price = PRICE_NORMAL -/obj/item/kitchen/knife/Initialize() +/obj/item/kitchen/knife/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 80 - force, 100, force - 10) //bonus chance increases depending on force @@ -120,7 +120,7 @@ bare_wound_bonus = 10 custom_price = PRICE_NORMAL -/obj/item/kitchen/efink/Initialize() +/obj/item/kitchen/efink/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 80 - force, 100, force - 10) //bonus chance increases depending on force @@ -209,7 +209,7 @@ var/light_on = FALSE var/brightness_on = 7 -/obj/item/kitchen/knife/combat/survival/knuckledagger/Initialize() +/obj/item/kitchen/knife/combat/survival/knuckledagger/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 30, 130, 20) // it's good for butchering stuff @@ -322,6 +322,6 @@ desc = "A knife used to cleanly butcher. Its razor-sharp edge has been honed for butchering, but has been poorly maintained over the years." attack_verb = list("cleaved", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut") -/obj/item/kitchen/knife/scimitar/Initialize() +/obj/item/kitchen/knife/scimitar/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 90 - force, 100, force - 60) //bonus chance increases depending on force diff --git a/code/game/objects/items/manuals.dm b/code/game/objects/items/manuals.dm index 05b7ef4802..ed8ec80bf0 100644 --- a/code/game/objects/items/manuals.dm +++ b/code/game/objects/items/manuals.dm @@ -336,7 +336,7 @@ title = "Outdated Chemistry Textbook" page_link = "Guide_to_chemistry" -/obj/item/book/manual/wiki/chemistry/Initialize() +/obj/item/book/manual/wiki/chemistry/Initialize(mapload) . = ..() new /obj/item/book/manual/wiki/cit/chemistry(loc) new /obj/item/book/manual/wiki/cit/chem_recipies(loc) diff --git a/code/game/objects/items/melee/energy.dm b/code/game/objects/items/melee/energy.dm index dd176f6d54..1973f95499 100644 --- a/code/game/objects/items/melee/energy.dm +++ b/code/game/objects/items/melee/energy.dm @@ -8,7 +8,7 @@ var/sword_color total_mass = 0.4 //Survival flashlights typically weigh around 5 ounces. -/obj/item/melee/transforming/energy/Initialize() +/obj/item/melee/transforming/energy/Initialize(mapload) . = ..() total_mass_on = (total_mass_on ? total_mass_on : (w_class_on * 0.75)) if(active) @@ -331,7 +331,7 @@ sharpness = SHARP_EDGED //Most of the other special functions are handled in their own files. aka special snowflake code so kewl -/obj/item/melee/transforming/energy/blade/Initialize() +/obj/item/melee/transforming/energy/blade/Initialize(mapload) . = ..() spark_system = new /datum/effect_system/spark_spread() spark_system.set_up(5, 0, src) @@ -371,7 +371,7 @@ light_color = "#37FFF7" actions_types = list() -/obj/item/melee/transforming/energy/sword/cx/Initialize() +/obj/item/melee/transforming/energy/sword/cx/Initialize(mapload) icon_state_on = icon_state return ..() diff --git a/code/game/objects/items/melee/misc.dm b/code/game/objects/items/melee/misc.dm index 29593cae06..a9dfcb00e6 100644 --- a/code/game/objects/items/melee/misc.dm +++ b/code/game/objects/items/melee/misc.dm @@ -46,7 +46,7 @@ sharpness = SHARP_EDGED total_mass = TOTAL_MASS_HAND_REPLACEMENT -/obj/item/melee/synthetic_arm_blade/Initialize() +/obj/item/melee/synthetic_arm_blade/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 60, 80) //very imprecise @@ -84,7 +84,7 @@ parry_flags = PARRY_DEFAULT_HANDLE_FEEDBACK parry_automatic_enabled = TRUE -/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. AddElement(/datum/element/sword_point) @@ -208,7 +208,7 @@ . |= BLOCK_SHOULD_REDIRECT return_list[BLOCK_RETURN_REDIRECT_METHOD] = REDIRECT_METHOD_DEFLECT -/obj/item/melee/rapier/Initialize() +/obj/item/melee/rapier/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 20, 65, 0) @@ -277,7 +277,7 @@ wound_bonus = 15 -/obj/item/melee/classic_baton/Initialize() +/obj/item/melee/classic_baton/Initialize(mapload) . = ..() if(sword_point) AddElement(/datum/element/sword_point) @@ -518,7 +518,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) @@ -625,7 +625,7 @@ var/datum/beam/beam total_mass = 2.5 -/obj/item/melee/roastingstick/Initialize() +/obj/item/melee/roastingstick/Initialize(mapload) . = ..() if (!ovens) ovens = typecacheof(list(/obj/singularity, /obj/machinery/power/supermatter_crystal, /obj/structure/bonfire, /obj/structure/destructible/clockwork/massive/ratvar)) @@ -741,7 +741,7 @@ var/overlay_state = "mace_handle" var/mutable_appearance/overlay -/obj/item/melee/cleric_mace/Initialize() +/obj/item/melee/cleric_mace/Initialize(mapload) . = ..() overlay = mutable_appearance(icon, overlay_state) overlay.appearance_flags = RESET_COLOR diff --git a/code/game/objects/items/melee/transforming.dm b/code/game/objects/items/melee/transforming.dm index 8c44a15cd4..82b19a1357 100644 --- a/code/game/objects/items/melee/transforming.dm +++ b/code/game/objects/items/melee/transforming.dm @@ -15,7 +15,7 @@ var/clumsy_check = TRUE var/total_mass_on //Total mass in ounces when transformed. Primarily for balance purposes. Don't think about it too hard. -/obj/item/melee/transforming/Initialize() +/obj/item/melee/transforming/Initialize(mapload) . = ..() if(active) if(attack_verb_on.len) diff --git a/code/game/objects/items/pet_carrier.dm b/code/game/objects/items/pet_carrier.dm index 78fe1a896e..648a38437c 100644 --- a/code/game/objects/items/pet_carrier.dm +++ b/code/game/objects/items/pet_carrier.dm @@ -253,7 +253,7 @@ ///chem transfer rate / second var/transfer_rate = 5 -/obj/item/pet_carrier/bluespace/Initialize() +/obj/item/pet_carrier/bluespace/Initialize(mapload) . = ..() create_reagents(300, OPENCONTAINER, DEFAULT_REAGENTS_VALUE) //equivalent of bsbeakers diff --git a/code/game/objects/items/pinpointer.dm b/code/game/objects/items/pinpointer.dm index 22ffc33516..d1ceb36b6d 100644 --- a/code/game/objects/items/pinpointer.dm +++ b/code/game/objects/items/pinpointer.dm @@ -22,7 +22,7 @@ /// resets target on toggle var/resets_target = TRUE -/obj/item/pinpointer/Initialize() +/obj/item/pinpointer/Initialize(mapload) . = ..() GLOB.pinpointer_list += src diff --git a/code/game/objects/items/pitchfork.dm b/code/game/objects/items/pitchfork.dm index b296e2d0cb..afec6cfddf 100644 --- a/code/game/objects/items/pitchfork.dm +++ b/code/game/objects/items/pitchfork.dm @@ -15,7 +15,7 @@ resistance_flags = FIRE_PROOF var/wielded = FALSE // track wielded status on item -/obj/item/pitchfork/Initialize() +/obj/item/pitchfork/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) @@ -42,7 +42,7 @@ force = 19 throwforce = 24 -/obj/item/pitchfork/demonic/Initialize() +/obj/item/pitchfork/demonic/Initialize(mapload) . = ..() set_light(3,6,LIGHT_COLOR_RED) diff --git a/code/game/objects/items/plushes.dm b/code/game/objects/items/plushes.dm index 683232b540..e60871dec7 100644 --- a/code/game/objects/items/plushes.dm +++ b/code/game/objects/items/plushes.dm @@ -466,7 +466,7 @@ GLOBAL_LIST_INIT(valid_plushie_paths, valid_plushie_paths()) desc = "Something fucked up" can_random_spawn = FALSE -/obj/item/toy/plush/random/Initialize() +/obj/item/toy/plush/random/Initialize(mapload) ..() var/newtype var/list/snowflake_list = CONFIG_GET(keyed_list/snowflake_plushies) diff --git a/code/game/objects/items/pneumaticCannon.dm b/code/game/objects/items/pneumaticCannon.dm index 42e345b502..8d47fbdc6d 100644 --- a/code/game/objects/items/pneumaticCannon.dm +++ b/code/game/objects/items/pneumaticCannon.dm @@ -35,7 +35,7 @@ trigger_guard = TRIGGER_GUARD_NORMAL -/obj/item/pneumatic_cannon/Initialize() +/obj/item/pneumatic_cannon/Initialize(mapload) . = ..() if(selfcharge) init_charge() @@ -292,7 +292,7 @@ clumsyCheck = FALSE var/static/list/pie_typecache = typecacheof(/obj/item/reagent_containers/food/snacks/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/religion.dm b/code/game/objects/items/religion.dm index b8f0d161dc..f9918bdd39 100644 --- a/code/game/objects/items/religion.dm +++ b/code/game/objects/items/religion.dm @@ -165,7 +165,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 cbfdc85f6d..2cc65ab261 100644 --- a/code/game/objects/items/robot/robot_items.dm +++ b/code/game/objects/items/robot/robot_items.dm @@ -564,7 +564,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() diff --git a/code/game/objects/items/shields.dm b/code/game/objects/items/shields.dm index 36559d14be..360c129906 100644 --- a/code/game/objects/items/shields.dm +++ b/code/game/objects/items/shields.dm @@ -366,7 +366,7 @@ item_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) @@ -561,7 +561,7 @@ var/active = 0 var/clumsy_check = TRUE -/obj/item/shield/energy/Initialize() +/obj/item/shield/energy/Initialize(mapload) . = ..() icon_state = "[base_icon_state]0" diff --git a/code/game/objects/items/singularityhammer.dm b/code/game/objects/items/singularityhammer.dm index e58dbc23ce..d1d6ee9704 100644 --- a/code/game/objects/items/singularityhammer.dm +++ b/code/game/objects/items/singularityhammer.dm @@ -97,7 +97,7 @@ total_mass = TOTAL_MASS_MEDIEVAL_WEAPON 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/spear.dm b/code/game/objects/items/spear.dm index f40c774551..552f0869b3 100644 --- a/code/game/objects/items/spear.dm +++ b/code/game/objects/items/spear.dm @@ -25,7 +25,7 @@ wound_bonus = -15 bare_wound_bonus = 15 -/obj/item/spear/Initialize() +/obj/item/spear/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/bscrystal.dm b/code/game/objects/items/stacks/bscrystal.dm index 3b4be37cee..125065c83e 100644 --- a/code/game/objects/items/stacks/bscrystal.dm +++ b/code/game/objects/items/stacks/bscrystal.dm @@ -18,7 +18,7 @@ points = 0 refined_type = null -/obj/item/stack/ore/bluespace_crystal/Initialize() +/obj/item/stack/ore/bluespace_crystal/Initialize(mapload) . = ..() pixel_x = rand(-5, 5) pixel_y = rand(-5, 5) diff --git a/code/game/objects/items/stacks/medical.dm b/code/game/objects/items/stacks/medical.dm index 0bd3083a59..15bd521834 100644 --- a/code/game/objects/items/stacks/medical.dm +++ b/code/game/objects/items/stacks/medical.dm @@ -342,7 +342,7 @@ /obj/item/stack/medical/mesh/advanced/one amount = 1 -/obj/item/stack/medical/mesh/Initialize() +/obj/item/stack/medical/mesh/Initialize(mapload) . = ..() if(amount == max_amount) //only seal full mesh packs is_open = FALSE @@ -490,7 +490,7 @@ /obj/item/stack/medical/nanogel/one amount = 1 - + /obj/item/stack/medical/nanogel/try_heal(mob/living/M, mob/user, silent = FALSE) if(being_applied) to_chat(user, "You are already applying [src]!") diff --git a/code/game/objects/items/stacks/sheets/glass.dm b/code/game/objects/items/stacks/sheets/glass.dm index 1f19821df6..3b2bfb1420 100644 --- a/code/game/objects/items/stacks/sheets/glass.dm +++ b/code/game/objects/items/stacks/sheets/glass.dm @@ -303,7 +303,7 @@ GLOBAL_LIST_INIT(plastitaniumglass_recipes, list( return (BRUTELOSS) -/obj/item/shard/Initialize() +/obj/item/shard/Initialize(mapload) . = ..() AddComponent(/datum/component/caltrop, force) AddComponent(/datum/component/butchering, 150, 65) diff --git a/code/game/objects/items/storage/_storage.dm b/code/game/objects/items/storage/_storage.dm index 04362481b2..cbaa1775eb 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/backpack.dm b/code/game/objects/items/storage/backpack.dm index b6520f6bb5..a172ec2dd4 100644 --- a/code/game/objects/items/storage/backpack.dm +++ b/code/game/objects/items/storage/backpack.dm @@ -283,7 +283,7 @@ level = 1 component_type = /datum/component/storage/concrete/secret_satchel -/obj/item/storage/backpack/satchel/flat/Initialize() +/obj/item/storage/backpack/satchel/flat/Initialize(mapload) . = ..() SSpersistence.new_secret_satchels += src @@ -316,7 +316,7 @@ var/list/reward_all_of_these = list() //use paths! var/revealed = FALSE -/obj/item/storage/backpack/satchel/flat/secret/Initialize() +/obj/item/storage/backpack/satchel/flat/secret/Initialize(mapload) . = ..() if(isfloorturf(loc) && !isplatingturf(loc)) diff --git a/code/game/objects/items/storage/belt.dm b/code/game/objects/items/storage/belt.dm index e30ec783bf..cc54de09a6 100755 --- a/code/game/objects/items/storage/belt.dm +++ b/code/game/objects/items/storage/belt.dm @@ -28,7 +28,7 @@ for(var/obj/item/I in contents) . += I.get_worn_belt_overlay(icon_file) -/obj/item/storage/belt/Initialize() +/obj/item/storage/belt/Initialize(mapload) . = ..() update_icon() @@ -366,7 +366,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("DonkCo", "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 1a3b40d1da..3a8f5a5cc8 100644 --- a/code/game/objects/items/storage/book.dm +++ b/code/game/objects/items/storage/book.dm @@ -39,7 +39,7 @@ GLOBAL_LIST_INIT(bibleitemstates, list("bible", "koran", "scrapbook", "bible", 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 df439e98f1..a245c059ae 100644 --- a/code/game/objects/items/storage/boxes.dm +++ b/code/game/objects/items/storage/boxes.dm @@ -956,7 +956,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])" @@ -1279,7 +1279,7 @@ var/expiration_date_min = 2300 var/expiration_date_max = 2700 -/obj/item/storage/box/mre/Initialize() +/obj/item/storage/box/mre/Initialize(mapload) . = ..() if(can_expire) expiration_date = rand(expiration_date_min, expiration_date_max) diff --git a/code/game/objects/items/storage/lockbox.dm b/code/game/objects/items/storage/lockbox.dm index ce4e8b9df1..adfd3cc1bd 100644 --- a/code/game/objects/items/storage/lockbox.dm +++ b/code/game/objects/items/storage/lockbox.dm @@ -217,7 +217,7 @@ var/datum/bank_account/buyer_account var/privacy_lock = TRUE -/obj/item/storage/lockbox/order/Initialize(datum/bank_account/_buyer_account) +/obj/item/storage/lockbox/order/Initialize(mapload, datum/bank_account/_buyer_account) . = ..() buyer_account = _buyer_account diff --git a/code/game/objects/items/storage/toolbox.dm b/code/game/objects/items/storage/toolbox.dm index 869711e5b2..00b1d92659 100644 --- a/code/game/objects/items/storage/toolbox.dm +++ b/code/game/objects/items/storage/toolbox.dm @@ -400,7 +400,7 @@ GLOBAL_LIST_EMPTY(rubber_toolbox_icons) attack_verb = list("robusted", "bounced") can_rubberify = FALSE //we are already the future. -/obj/item/storage/toolbox/rubber/Initialize() +/obj/item/storage/toolbox/rubber/Initialize(mapload) icon_state = pick("blue", "red", "yellow", "green") item_state = "toolbox_[icon_state]" if(!GLOB.rubber_toolbox_icons[icon_state]) diff --git a/code/game/objects/items/storage/uplink_kits.dm b/code/game/objects/items/storage/uplink_kits.dm index f25f6f3a51..f4b5e26189 100644 --- a/code/game/objects/items/storage/uplink_kits.dm +++ b/code/game/objects/items/storage/uplink_kits.dm @@ -447,7 +447,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.

Provided within, we give your specialist contractor space suit. It's even more compact, being able to fit into a pocket, and faster than the diff --git a/code/game/objects/items/stunbaton.dm b/code/game/objects/items/stunbaton.dm index 6db1e4baae..c98b9c40fe 100644 --- a/code/game/objects/items/stunbaton.dm +++ b/code/game/objects/items/stunbaton.dm @@ -333,7 +333,7 @@ status_duration = 3 //Slows someone for a tiny bit var/obj/item/assembly/igniter/sparkler -/obj/item/melee/baton/cattleprod/Initialize() +/obj/item/melee/baton/cattleprod/Initialize(mapload) . = ..() sparkler = new (src) sparkler.activate_cooldown = 7 //Helps visualize the knockdown diff --git a/code/game/objects/items/summon.dm b/code/game/objects/items/summon.dm index 93846d10ab..ca678e2cbb 100644 --- a/code/game/objects/items/summon.dm +++ b/code/game/objects/items/summon.dm @@ -29,7 +29,7 @@ /// are we a ranged weapon? var/melee_only = TRUE -/obj/item/summon/Initialize() +/obj/item/summon/Initialize(mapload) . = ..() if(host_type) host = new host_type(src, summon_count, range) diff --git a/code/game/objects/items/tanks/jetpack.dm b/code/game/objects/items/tanks/jetpack.dm index 75ad909777..06c38ead9f 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.set_up(src) @@ -181,7 +181,7 @@ var/obj/item/tank/internals/tank = null var/mob/living/carbon/human/cur_user -/obj/item/tank/jetpack/suit/Initialize() +/obj/item/tank/jetpack/suit/Initialize(mapload) . = ..() STOP_PROCESSING(SSobj, src) temp_air_contents = air_contents diff --git a/code/game/objects/items/tanks/tanks.dm b/code/game/objects/items/tanks/tanks.dm index ef798ae631..4d7969e2d7 100644 --- a/code/game/objects/items/tanks/tanks.dm +++ b/code/game/objects/items/tanks/tanks.dm @@ -64,7 +64,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 88131fb197..7d05944949 100644 --- a/code/game/objects/items/tanks/watertank.dm +++ b/code/game/objects/items/tanks/watertank.dm @@ -16,7 +16,7 @@ var/obj/item/noz var/volume = 500 -/obj/item/watertank/Initialize() +/obj/item/watertank/Initialize(mapload) . = ..() create_reagents(volume, OPENCONTAINER) noz = make_noz() @@ -117,7 +117,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)) @@ -147,7 +147,7 @@ item_state = "waterbackpackjani" custom_price = PRICE_ALMOST_ONE_GRAND -/obj/item/watertank/janitor/Initialize() +/obj/item/watertank/janitor/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/space_cleaner, 500) @@ -183,7 +183,7 @@ volume = 200 slowdown = 0 -/obj/item/watertank/atmos/Initialize() +/obj/item/watertank/atmos/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/water, 200) @@ -219,7 +219,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)) @@ -440,7 +440,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/teleportation.dm b/code/game/objects/items/teleportation.dm index bc6a40f8c0..2b2a1cf936 100644 --- a/code/game/objects/items/teleportation.dm +++ b/code/game/objects/items/teleportation.dm @@ -113,7 +113,7 @@ var/max_portal_pairs = 3 var/atmos_link_override -/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 08390e1607..b40c5c22cf 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) @@ -229,7 +229,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/screwdriver.dm b/code/game/objects/items/tools/screwdriver.dm index 9f393a7fcb..f5f25058de 100644 --- a/code/game/objects/items/tools/screwdriver.dm +++ b/code/game/objects/items/tools/screwdriver.dm @@ -39,7 +39,7 @@ user.visible_message("[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) //random colors! icon_state = "screwdriver" diff --git a/code/game/objects/items/tools/weldingtool.dm b/code/game/objects/items/tools/weldingtool.dm index 6e7ad99221..6818fbb433 100644 --- a/code/game/objects/items/tools/weldingtool.dm +++ b/code/game/objects/items/tools/weldingtool.dm @@ -41,7 +41,7 @@ wound_bonus = 0 bare_wound_bonus = 5 -/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 cbca26e63c..b521cf165b 100644 --- a/code/game/objects/items/tools/wirecutters.dm +++ b/code/game/objects/items/tools/wirecutters.dm @@ -33,7 +33,7 @@ ) -/obj/item/wirecutters/Initialize() +/obj/item/wirecutters/Initialize(mapload) . = ..() if(random_color) //random colors! icon_state = "cutters" diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm index 547217366b..e6600d323e 100644 --- a/code/game/objects/items/toys.dm +++ b/code/game/objects/items/toys.dm @@ -44,7 +44,7 @@ item_state = "balloon-empty" -/obj/item/toy/balloon/Initialize() +/obj/item/toy/balloon/Initialize(mapload) . = ..() create_reagents(10) @@ -781,7 +781,7 @@ var/list/cards = list() var/original_size = 52 -/obj/item/toy/cards/deck/Initialize() +/obj/item/toy/cards/deck/Initialize(mapload) . = ..() populate_deck() @@ -1549,7 +1549,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 1816f26843..857f3d8f4a 100644 --- a/code/game/objects/items/trash.dm +++ b/code/game/objects/items/trash.dm @@ -7,7 +7,7 @@ w_class = WEIGHT_CLASS_TINY resistance_flags = FLAMMABLE -/obj/item/trash/Initialize() +/obj/item/trash/Initialize(mapload) . = ..() AddElement(/datum/element/trash) diff --git a/code/game/objects/items/weaponry.dm b/code/game/objects/items/weaponry.dm index b00d736282..59fa523ae0 100644 --- a/code/game/objects/items/weaponry.dm +++ b/code/game/objects/items/weaponry.dm @@ -71,7 +71,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 resistance_flags = FIRE_PROOF total_mass = TOTAL_MASS_MEDIEVAL_WEAPON -/obj/item/claymore/Initialize() +/obj/item/claymore/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 40, 105) AddElement(/datum/element/sword_point) @@ -97,7 +97,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) START_PROCESSING(SSobj, src) @@ -223,7 +223,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_module/kiltkit = loc robot = kiltkit.loc if(!istype(robot)) @@ -262,7 +262,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 /obj/item/katana/cursed slot_flags = null -/obj/item/katana/cursed/Initialize() +/obj/item/katana/cursed/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT) @@ -369,7 +369,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 /datum/block_parry_data/bokken/quick_parry/proj parry_efficiency_perfect_override = list() -/obj/item/melee/bokken/Initialize() +/obj/item/melee/bokken/Initialize(mapload) . = ..() AddElement(/datum/element/sword_point) if(!harm) //if initialised in non-harm mode, setup force accordingly @@ -793,7 +793,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) @@ -821,7 +821,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 attack_verb = list("busted") var/impressiveness = 45 -/obj/item/statuebust/Initialize() +/obj/item/statuebust/Initialize(mapload) . = ..() AddElement(/datum/element/art, impressiveness) // AddComponent(/datum/component/beauty, 1000) @@ -928,7 +928,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 var/throwforce_off // Damage when off var/weight_class_on // What is the new size class when turned on -/obj/item/melee/baseball_bat/Initialize() +/obj/item/melee/baseball_bat/Initialize(mapload) . = ..() if(prob(1)) name = "cricket bat" @@ -946,7 +946,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 total_mass = TOTAL_MASS_MEDIEVAL_WEAPON wound_bonus = -5 -/obj/item/melee/baseball_bat/chaplain/Initialize() +/obj/item/melee/baseball_bat/chaplain/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, TRUE, TRUE, FALSE, null, null, FALSE) @@ -1076,7 +1076,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/poison/bees/, @@ -1108,7 +1108,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 item_flags = DROPDEL | ABSTRACT | HAND_ITEM attack_verb = list("bopped") -/obj/item/circlegame/Initialize() +/obj/item/circlegame/Initialize(mapload) . = ..() var/mob/living/owner = loc if(!istype(owner)) @@ -1398,7 +1398,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/objs.dm b/code/game/objects/objs.dm index cf256dd6fc..00b0df26a8 100644 --- a/code/game/objects/objs.dm +++ b/code/game/objects/objs.dm @@ -48,7 +48,7 @@ return FALSE return ..() -/obj/Initialize() +/obj/Initialize(mapload) if (islist(armor)) armor = getArmor(arglist(armor)) else if (!armor) diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm index 52036427c8..21081be990 100644 --- a/code/game/objects/structures.dm +++ b/code/game/objects/structures.dm @@ -14,7 +14,7 @@ //flags_ricochet = RICOCHET_HARD //ricochet_chance_mod = 0.5 -/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) . = ..() @@ -114,4 +114,4 @@ return "It's falling apart!" /obj/structure/rust_heretic_act() - take_damage(500, BRUTE, "melee", 1) + take_damage(500, BRUTE, "melee", 1) diff --git a/code/game/objects/structures/ai_core.dm b/code/game/objects/structures/ai_core.dm index 339c2773e5..85ee3f9f56 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 = null var/can_deconstruct = TRUE -/obj/structure/AIcore/Initialize() +/obj/structure/AIcore/Initialize(mapload) . = ..() laws = new laws.set_laws_config() @@ -67,7 +67,7 @@ return return ..() -/obj/structure/AIcore/latejoin_inactive/Initialize() +/obj/structure/AIcore/latejoin_inactive/Initialize(mapload) . = ..() GLOB.latejoin_ai_cores += src diff --git a/code/game/objects/structures/aliens.dm b/code/game/objects/structures/aliens.dm index bc7ce8c36e..95db221278 100644 --- a/code/game/objects/structures/aliens.dm +++ b/code/game/objects/structures/aliens.dm @@ -125,7 +125,7 @@ var/growth_cooldown_high = 200 var/static/list/blacklisted_turfs -/obj/structure/alien/weeds/Initialize() +/obj/structure/alien/weeds/Initialize(mapload) pixel_x = -4 pixel_y = -4 //so the sprites line up right in the map editor . = ..() @@ -177,7 +177,7 @@ var/lon_range = 4 var/node_range = NODERANGE -/obj/structure/alien/weeds/node/Initialize() +/obj/structure/alien/weeds/node/Initialize(mapload) icon = 'icons/obj/smooth_structures/alien/weednode.dmi' . = ..() set_light(lon_range) diff --git a/code/game/objects/structures/artstuff.dm b/code/game/objects/structures/artstuff.dm index b751724313..7592385abf 100644 --- a/code/game/objects/structures/artstuff.dm +++ b/code/game/objects/structures/artstuff.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/game/objects/structures/barsigns.dm b/code/game/objects/structures/barsigns.dm index a96d39316e..3c9f80b804 100644 --- a/code/game/objects/structures/barsigns.dm +++ b/code/game/objects/structures/barsigns.dm @@ -11,7 +11,7 @@ var/list/barsigns=list() var/panel_open = FALSE -/obj/structure/sign/barsign/Initialize() +/obj/structure/sign/barsign/Initialize(mapload) . = ..() //filling the barsigns list diff --git a/code/game/objects/structures/beds_chairs/chair.dm b/code/game/objects/structures/beds_chairs/chair.dm index 89f018f291..9d14757897 100644 --- a/code/game/objects/structures/beds_chairs/chair.dm +++ b/code/game/objects/structures/beds_chairs/chair.dm @@ -21,7 +21,7 @@ if(!has_buckled_mobs()) . += "Drag your sprite to sit in 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) @@ -190,7 +190,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 ec257a9898..27f67ba0be 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 48352814b5..b7968d84f4 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 8cd58d7942..1403eb999c 100644 --- a/code/game/objects/structures/bedsheet_bin.dm +++ b/code/game/objects/structures/bedsheet_bin.dm @@ -259,7 +259,7 @@ GLOBAL_LIST_INIT(double_bedsheets, list(/obj/item/bedsheet/double, var/g_mouth var/g_eyes -/obj/item/bedsheet/gondola/Initialize() +/obj/item/bedsheet/gondola/Initialize(mapload) . = ..() g_mouth = "sheetgondola_mouth[rand(1, 4)]" g_eyes = "sheetgondola_eyes[rand(1, 4)]" @@ -285,7 +285,7 @@ GLOBAL_LIST_INIT(double_bedsheets, list(/obj/item/bedsheet/double, name = "random bedsheet" desc = "If you're reading this description ingame, something has gone wrong! Honk!" -/obj/item/bedsheet/random/Initialize() +/obj/item/bedsheet/random/Initialize(mapload) ..() if(bedsheet_type == BEDSHEET_SINGLE) var/type = pick(typesof(/obj/item/bedsheet) - (list(/obj/item/bedsheet/random, /obj/item/bedsheet/chameleon) + typesof(/obj/item/bedsheet/unlockable) + GLOB.double_bedsheets)) @@ -446,7 +446,7 @@ GLOBAL_LIST_INIT(double_bedsheets, list(/obj/item/bedsheet/double, icon_state = "random_bedsheet" bedsheet_type = BEDSHEET_DOUBLE -/obj/item/bedsheet/random/double/Initialize() +/obj/item/bedsheet/random/double/Initialize(mapload) ..() if(bedsheet_type == BEDSHEET_DOUBLE) var/type = pick(GLOB.double_bedsheets) 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 bfb86b087b..e5a7793ab7 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/freezer.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/freezer.dm @@ -6,7 +6,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 f6153330e4..d176824e2c 100644 --- a/code/game/objects/structures/crates_lockers/crates.dm +++ b/code/game/objects/structures/crates_lockers/crates.dm @@ -17,7 +17,7 @@ material_drop_amount = 5 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 @@ -141,7 +141,7 @@ recursive_organ_check(src) ..() -/obj/structure/closet/crate/freezer/Initialize() +/obj/structure/closet/crate/freezer/Initialize(mapload) . = ..() recursive_organ_check(src) diff --git a/code/game/objects/structures/displaycase.dm b/code/game/objects/structures/displaycase.dm index ce2acdbdf7..5b6c1123ca 100644 --- a/code/game/objects/structures/displaycase.dm +++ b/code/game/objects/structures/displaycase.dm @@ -20,7 +20,7 @@ var/list/start_showpieces = list() //Takes sublists in the form of list("type" = /obj/item/bikehorn, "trophy_message" = "henk") var/trophy_message = "" -/obj/structure/displaycase/Initialize() +/obj/structure/displaycase/Initialize(mapload) . = ..() if(start_showpieces.len && !start_showpiece_type) var/list/showpiece_entry = pick(start_showpieces) @@ -252,7 +252,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/false_walls.dm b/code/game/objects/structures/false_walls.dm index 5b3cd3139c..bf06f06e6f 100644 --- a/code/game/objects/structures/false_walls.dm +++ b/code/game/objects/structures/false_walls.dm @@ -33,7 +33,7 @@ var/girder_type = /obj/structure/girder/displaced var/opening = FALSE -/obj/structure/falsewall/Initialize() +/obj/structure/falsewall/Initialize(mapload) . = ..() air_update_turf(TRUE) diff --git a/code/game/objects/structures/fence.dm b/code/game/objects/structures/fence.dm index 5c63be0165..1a23981af2 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() @@ -129,7 +129,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 a247908b3b..c46d9c80a4 100644 --- a/code/game/objects/structures/fireaxe.dm +++ b/code/game/objects/structures/fireaxe.dm @@ -13,7 +13,7 @@ var/open = FALSE var/obj/item/fireaxe/fireaxe -/obj/structure/fireaxecabinet/Initialize() +/obj/structure/fireaxecabinet/Initialize(mapload) . = ..() fireaxe = new update_icon() diff --git a/code/game/objects/structures/flora.dm b/code/game/objects/structures/flora.dm index 288bcc2075..e92cf641c8 100644 --- a/code/game/objects/structures/flora.dm +++ b/code/game/objects/structures/flora.dm @@ -57,7 +57,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 && icon_states.len)) @@ -101,7 +101,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 @@ -118,7 +118,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)]" . = ..() @@ -130,7 +130,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)]" . = ..() @@ -149,7 +149,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" . = ..() @@ -157,14 +157,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)]" . = ..() @@ -177,7 +177,7 @@ icon_state = "snowbush1" anchored = TRUE -/obj/structure/flora/bush/Initialize() +/obj/structure/flora/bush/Initialize(mapload) icon_state = "snowbush[rand(1, 6)]" . = ..() @@ -189,7 +189,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)]" . = ..() @@ -197,105 +197,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)]" . = ..() @@ -322,7 +322,7 @@ icon_state = "random_plant" var/list/static/states -/obj/item/kirbyplants/random/Initialize() +/obj/item/kirbyplants/random/Initialize(mapload) . = ..() icon = 'icons/obj/flora/plants.dmi' if(!states) @@ -368,7 +368,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)]" @@ -398,7 +398,7 @@ icon_state = "grassa" -/obj/structure/flora/grass/jungle/Initialize() +/obj/structure/flora/grass/jungle/Initialize(mapload) icon_state = "[icon_state][rand(1, 5)]" . = ..() @@ -414,7 +414,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)]" @@ -427,7 +427,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)]" . = ..() @@ -452,6 +452,6 @@ 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 4773c07657..604961abf4 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/headpike.dm b/code/game/objects/structures/headpike.dm index 6aed11701d..16c8bf41c1 100644 --- a/code/game/objects/structures/headpike.dm +++ b/code/game/objects/structures/headpike.dm @@ -24,7 +24,7 @@ else spear = locate(/obj/item/spear) in parts_list -/obj/structure/headpike/Initialize() +/obj/structure/headpike/Initialize(mapload) . = ..() pixel_x = rand(-8, 8) diff --git a/code/game/objects/structures/holosign.dm b/code/game/objects/structures/holosign.dm index cb9309c4c4..1d15f8e83b 100644 --- a/code/game/objects/structures/holosign.dm +++ b/code/game/objects/structures/holosign.dm @@ -82,7 +82,7 @@ alpha = 150 init_vis_overlay = FALSE -/obj/structure/holosign/barrier/atmos/Initialize() +/obj/structure/holosign/barrier/atmos/Initialize(mapload) . = ..() air_update_turf(TRUE) @@ -98,7 +98,7 @@ /obj/structure/holosign/barrier/firelock/BlockThermalConductivity() return TRUE -/obj/structure/holosign/barrier/firelock/Initialize() +/obj/structure/holosign/barrier/firelock/Initialize(mapload) . = ..() air_update_turf(TRUE) @@ -118,7 +118,7 @@ /obj/structure/holosign/barrier/combifan/BlockThermalConductivity() return TRUE -/obj/structure/holosign/barrier/combifan/Initialize() +/obj/structure/holosign/barrier/combifan/Initialize(mapload) . = ..() air_update_turf(TRUE) diff --git a/code/game/objects/structures/icemoon/cave_entrance.dm b/code/game/objects/structures/icemoon/cave_entrance.dm index e68918c764..16e0566d68 100644 --- a/code/game/objects/structures/icemoon/cave_entrance.dm +++ b/code/game/objects/structures/icemoon/cave_entrance.dm @@ -19,7 +19,7 @@ GLOBAL_LIST_INIT(ore_probability, list(/obj/item/stack/ore/uranium = 50, move_resist = INFINITY anchored = TRUE -/obj/structure/spawner/ice_moon/Initialize() +/obj/structure/spawner/ice_moon/Initialize(mapload) . = ..() clear_rock() @@ -107,7 +107,7 @@ GLOBAL_LIST_INIT(ore_probability, list(/obj/item/stack/ore/uranium = 50, 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("[src] begins to collapse, cutting it off from this world!") diff --git a/code/game/objects/structures/janicart.dm b/code/game/objects/structures/janicart.dm index bcb9422708..e49de85cf9 100644 --- a/code/game/objects/structures/janicart.dm +++ b/code/game/objects/structures/janicart.dm @@ -15,7 +15,7 @@ var/const/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 e844461952..ab23ab97e0 100644 --- a/code/game/objects/structures/ladders.dm +++ b/code/game/objects/structures/ladders.dm @@ -155,7 +155,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 263b47aab2..38d8a43269 100644 --- a/code/game/objects/structures/lavaland/geyser.dm +++ b/code/game/objects/structures/lavaland/geyser.dm @@ -46,7 +46,7 @@ erupting_state = null var/list/options = list(/datum/reagent/clf3 = 10, /datum/reagent/water/hollowwater = 10, /datum/reagent/medicine/omnizine/protozine = 6, /datum/reagent/wittel = 1) -/obj/structure/geyser/random/Initialize() +/obj/structure/geyser/random/Initialize(mapload) . = ..() reagent_id = pickweight(options) diff --git a/code/game/objects/structures/lavaland/necropolis_tendril.dm b/code/game/objects/structures/lavaland/necropolis_tendril.dm index 67341160de..6a3dcc761f 100644 --- a/code/game/objects/structures/lavaland/necropolis_tendril.dm +++ b/code/game/objects/structures/lavaland/necropolis_tendril.dm @@ -30,7 +30,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)) @@ -78,7 +78,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("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/loot_pile.dm b/code/game/objects/structures/loot_pile.dm index dc3971fdd2..2ea9f0700b 100644 --- a/code/game/objects/structures/loot_pile.dm +++ b/code/game/objects/structures/loot_pile.dm @@ -31,7 +31,7 @@ var/loot_restriction = NO_LOOT_RESTRICTION var/maximum_loot_per_player = 1 -/obj/structure/loot_pile/Initialize() +/obj/structure/loot_pile/Initialize(mapload) . = ..() icon_state = pick(icon_states_to_use) diff --git a/code/game/objects/structures/manned_turret.dm b/code/game/objects/structures/manned_turret.dm index cdbf19367b..f70510e173 100644 --- a/code/game/objects/structures/manned_turret.dm +++ b/code/game/objects/structures/manned_turret.dm @@ -184,7 +184,7 @@ resistance_flags = FIRE_PROOF | UNACIDABLE | ACID_PROOF var/obj/machinery/manned_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/mineral_doors.dm b/code/game/objects/structures/mineral_doors.dm index b2f1de8750..530e9296ab 100644 --- a/code/game/objects/structures/mineral_doors.dm +++ b/code/game/objects/structures/mineral_doors.dm @@ -25,7 +25,7 @@ rad_flags = RAD_PROTECT_CONTENTS | RAD_NO_CONTAMINATE rad_insulation = RAD_MEDIUM_INSULATION -/obj/structure/mineral_door/Initialize() +/obj/structure/mineral_door/Initialize(mapload) . = ..() initial_state = icon_state air_update_turf(TRUE) @@ -243,7 +243,7 @@ resistance_flags = FLAMMABLE max_integrity = 20 -/obj/structure/mineral_door/paperframe/Initialize() +/obj/structure/mineral_door/paperframe/Initialize(mapload) . = ..() queue_smooth_neighbors(src) diff --git a/code/game/objects/structures/mop_bucket.dm b/code/game/objects/structures/mop_bucket.dm index 3eb88ad12d..09dfffb552 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 383b57a0b0..5488ddfe2a 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -29,7 +29,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) . = ..() if(starting_tray) connected = new starting_tray(src) @@ -213,7 +213,7 @@ GLOBAL_LIST_EMPTY(crematoriums) GLOB.crematoriums.Remove(src) return ..() -/obj/structure/bodycontainer/crematorium/Initialize() +/obj/structure/bodycontainer/crematorium/Initialize(mapload) . = ..() GLOB.crematoriums.Add(src) diff --git a/code/game/objects/structures/plasticflaps.dm b/code/game/objects/structures/plasticflaps.dm index 46d5316458..e3710af0d5 100644 --- a/code/game/objects/structures/plasticflaps.dm +++ b/code/game/objects/structures/plasticflaps.dm @@ -11,7 +11,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 @@ -100,7 +100,7 @@ new /obj/item/stack/sheet/plastic/five(loc) qdel(src) -/obj/structure/plasticflaps/Initialize() +/obj/structure/plasticflaps/Initialize(mapload) . = ..() air_update_turf(TRUE) diff --git a/code/game/objects/structures/railings.dm b/code/game/objects/structures/railings.dm index 21cf97ba70..fe2d656469 100644 --- a/code/game/objects/structures/railings.dm +++ b/code/game/objects/structures/railings.dm @@ -18,7 +18,7 @@ . = ..() AddComponent(/datum/component/simple_rotation,ROTATION_ALTCLICK | ROTATION_CLOCKWISE | ROTATION_COUNTERCLOCKWISE | ROTATION_VERBS ,null,CALLBACK(src, .proc/can_be_rotated),CALLBACK(src,.proc/after_rotation)) -/obj/structure/railing/Initialize() +/obj/structure/railing/Initialize(mapload) . = ..() ini_dir = dir diff --git a/code/game/objects/structures/reflector.dm b/code/game/objects/structures/reflector.dm index 944e1dac9c..c3322b310d 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/item/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 3b7933ab87..9f52bfbefb 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") @@ -28,7 +28,7 @@ icon = 'icons/obj/computer.dmi' icon_state = "computer" -/obj/structure/showcase/fakesec/Initialize() +/obj/structure/showcase/fakesec/Initialize(mapload) . = ..() add_overlay("security") add_overlay("security_key") diff --git a/code/game/objects/structures/spawner.dm b/code/game/objects/structures/spawner.dm index 7d13af1e3e..8b78253adc 100644 --- a/code/game/objects/structures/spawner.dm +++ b/code/game/objects/structures/spawner.dm @@ -14,7 +14,7 @@ var/spawn_text = "emerges from" var/faction = list("hostile") -/obj/structure/spawner/Initialize() +/obj/structure/spawner/Initialize(mapload) . = ..() AddComponent(/datum/component/spawner, mob_types, spawn_time, faction, spawn_text, max_mobs) diff --git a/code/game/objects/structures/statues.dm b/code/game/objects/structures/statues.dm index 2924545cc1..6655a25f74 100644 --- a/code/game/objects/structures/statues.dm +++ b/code/game/objects/structures/statues.dm @@ -12,7 +12,7 @@ CanAtmosPass = ATMOS_PASS_DENSITY -/obj/structure/statue/Initialize() +/obj/structure/statue/Initialize(mapload) . = ..() AddElement(/datum/element/art, impressiveness) addtimer(CALLBACK(src, /datum.proc/_AddElement, list(/datum/element/beauty, impressiveness * 75)), 0) diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index 24342e44bd..81e045e788 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -483,7 +483,7 @@ /obj/structure/table/wood/fancy/royalblue) 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 diff --git a/code/game/objects/structures/tank_dispenser.dm b/code/game/objects/structures/tank_dispenser.dm index 00df078d0b..695dcef476 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/transit_tubes/transit_tube_pod.dm b/code/game/objects/structures/transit_tubes/transit_tube_pod.dm index 9f3a829633..0ae1aff68a 100644 --- a/code/game/objects/structures/transit_tubes/transit_tube_pod.dm +++ b/code/game/objects/structures/transit_tubes/transit_tube_pod.dm @@ -8,7 +8,7 @@ var/datum/gas_mixture/air_contents = new() -/obj/structure/transit_tube_pod/Initialize() +/obj/structure/transit_tube_pod/Initialize(mapload) . = ..() air_contents.set_moles(GAS_O2, MOLES_O2STANDARD) air_contents.set_moles(GAS_N2, MOLES_N2STANDARD) diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index e3ee7ddc63..e89e6e6116 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -16,7 +16,7 @@ attack_hand_speed = CLICK_CD_MELEE attack_hand_is_action = TRUE -/obj/structure/toilet/Initialize() +/obj/structure/toilet/Initialize(mapload) . = ..() open = round(rand(0, 1)) update_icon() @@ -138,7 +138,7 @@ /obj/structure/toilet/secret var/secret_type = null -/obj/structure/toilet/secret/Initialize() +/obj/structure/toilet/secret/Initialize(mapload) . = ..() if (secret_type) new secret_type(src) @@ -255,7 +255,7 @@ var/watertemp = "normal" //freezing, normal, or boiling var/datum/looping_sound/showering/soundloop -/obj/machinery/shower/Initialize() +/obj/machinery/shower/Initialize(mapload) . = ..() soundloop = new(src, FALSE) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index e8e170446b..23303b93ac 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -923,7 +923,7 @@ GLOBAL_LIST_EMPTY(electrochromatic_window_lookup) 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_icon() diff --git a/code/game/turfs/baseturf_skipover.dm b/code/game/turfs/baseturf_skipover.dm index 4df8c86e62..9bef78a15e 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.dm b/code/game/turfs/closed.dm index ccfb5dc238..32d072edd9 100644 --- a/code/game/turfs/closed.dm +++ b/code/game/turfs/closed.dm @@ -13,7 +13,7 @@ /// how much of inbound yelling to dampen var/yelling_dampen = 0.5 -/turf/closed/Initialize() +/turf/closed/Initialize(mapload) . = ..() /turf/closed/AfterChange() @@ -123,7 +123,7 @@ smooth = SMOOTH_TRUE icon = 'icons/obj/smooth_structures/reinforced_window.dmi' -/turf/closed/indestructible/fakeglass/Initialize() +/turf/closed/indestructible/fakeglass/Initialize(mapload) . = ..() icon_state = null //set the icon state to null, so our base state isn't visible underlays += mutable_appearance('icons/obj/structures.dmi', "grille") //add a grille underlay diff --git a/code/game/turfs/open.dm b/code/game/turfs/open.dm index b526b5b886..aa5e02819c 100644 --- a/code/game/turfs/open.dm +++ b/code/game/turfs/open.dm @@ -124,7 +124,7 @@ heavyfootstep = FOOTSTEP_LAVA tiled_dirt = FALSE -/turf/open/indestructible/necropolis/Initialize() +/turf/open/indestructible/necropolis/Initialize(mapload) . = ..() if(prob(12)) icon_state = "necro[rand(2,3)]" diff --git a/code/game/turfs/open/floor/catwalk_plating.dm b/code/game/turfs/open/floor/catwalk_plating.dm index cbcbade5d4..76d22847c9 100644 --- a/code/game/turfs/open/floor/catwalk_plating.dm +++ b/code/game/turfs/open/floor/catwalk_plating.dm @@ -18,7 +18,7 @@ heavyfootstep = FOOTSTEP_CATWALK var/covered = TRUE -/turf/open/floor/plating/catwalk_floor/Initialize() +/turf/open/floor/plating/catwalk_floor/Initialize(mapload) . = ..() layer = CATWALK_LAYER update_icon(UPDATE_OVERLAYS) diff --git a/code/game/turfs/openspace/transparent.dm b/code/game/turfs/openspace/transparent.dm index 570f153d41..b9ab562643 100644 --- a/code/game/turfs/openspace/transparent.dm +++ b/code/game/turfs/openspace/transparent.dm @@ -2,7 +2,7 @@ baseturfs = /turf/open/transparent/openspace intact = FALSE //this means wires go on top -/turf/open/transparent/Initialize() // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker +/turf/open/transparent/Initialize(mapload) // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker . = ..() plane = OPENSPACE_PLANE layer = OPENSPACE_LAYER @@ -59,7 +59,7 @@ clawfootstep = FOOTSTEP_HARD_CLAW heavyfootstep = FOOTSTEP_GENERIC_HEAVY -/turf/open/transparent/glass/Initialize() +/turf/open/transparent/glass/Initialize(mapload) icon_state = "" //Prevent the normal icon from appearing behind the smooth overlays ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/game/turfs/simulated/chasm.dm b/code/game/turfs/simulated/chasm.dm index 9490d728fe..a03ff1f07a 100644 --- a/code/game/turfs/simulated/chasm.dm +++ b/code/game/turfs/simulated/chasm.dm @@ -11,7 +11,7 @@ bullet_bounce_sound = null //abandon all hope ye who enter dirt_buildup_allowed = FALSE -/turf/open/chasm/Initialize() +/turf/open/chasm/Initialize(mapload) . = ..() AddComponent(/datum/component/chasm, SSmapping.get_turf_below(src)) @@ -121,7 +121,7 @@ light_range = 1.9 light_power = 0.65 -/turf/open/chasm/magic/Initialize() +/turf/open/chasm/magic/Initialize(mapload) . = ..() var/turf/T = safepick(get_area_turfs(/area/fabric_of_reality)) if(T) diff --git a/code/game/turfs/simulated/floor/fancy_floor.dm b/code/game/turfs/simulated/floor/fancy_floor.dm index f707037771..a7d3cda389 100644 --- a/code/game/turfs/simulated/floor/fancy_floor.dm +++ b/code/game/turfs/simulated/floor/fancy_floor.dm @@ -108,7 +108,7 @@ var/turfverb = "uproot" tiled_dirt = FALSE -/turf/open/floor/grass/Initialize() +/turf/open/floor/grass/Initialize(mapload) . = ..() update_icon() @@ -203,7 +203,7 @@ initial_gas_mix = LAVALAND_DEFAULT_ATMOS slowdown = 0 -/turf/open/floor/grass/snow/basalt/Initialize() +/turf/open/floor/grass/snow/basalt/Initialize(mapload) . = ..() if(prob(15)) icon_state = "basalt[rand(0, 12)]" @@ -224,7 +224,7 @@ clawfootstep = FOOTSTEP_SAND heavyfootstep = FOOTSTEP_GENERIC_HEAVY -/turf/open/floor/grass/fakebasalt/Initialize() +/turf/open/floor/grass/fakebasalt/Initialize(mapload) . = ..() if(prob(15)) icon_state = "basalt[rand(0, 12)]" @@ -252,7 +252,7 @@ . = ..() . += "There's a small crack on the edge of it." -/turf/open/floor/carpet/Initialize() +/turf/open/floor/carpet/Initialize(mapload) . = ..() update_icon() @@ -413,7 +413,7 @@ plane = PLANE_SPACE tiled_dirt = FALSE -/turf/open/floor/fakespace/Initialize() +/turf/open/floor/fakespace/Initialize(mapload) . = ..() icon_state = SPACE_ICON_STATE diff --git a/code/game/turfs/simulated/floor/light_floor.dm b/code/game/turfs/simulated/floor/light_floor.dm index 4bca25f96c..55c1a45ff4 100644 --- a/code/game/turfs/simulated/floor/light_floor.dm +++ b/code/game/turfs/simulated/floor/light_floor.dm @@ -17,7 +17,7 @@ . = ..() . += "There's a small crack on the edge of it." -/turf/open/floor/light/Initialize() +/turf/open/floor/light/Initialize(mapload) . = ..() update_icon() diff --git a/code/game/turfs/simulated/floor/mineral_floor.dm b/code/game/turfs/simulated/floor/mineral_floor.dm index fe6ed2da9b..b7266bfb16 100644 --- a/code/game/turfs/simulated/floor/mineral_floor.dm +++ b/code/game/turfs/simulated/floor/mineral_floor.dm @@ -16,7 +16,7 @@ tiled_dirt = FALSE -/turf/open/floor/mineral/Initialize() +/turf/open/floor/mineral/Initialize(mapload) if(!broken_states) broken_states = list("[initial(icon_state)]_dam") . = ..() @@ -237,7 +237,7 @@ icons = list("alienpod1", "alienpod2", "alienpod3", "alienpod4", "alienpod5", "alienpod6", "alienpod7", "alienpod8", "alienpod9") baseturfs = /turf/open/floor/plating/abductor2 -/turf/open/floor/mineral/abductor/Initialize() +/turf/open/floor/mineral/abductor/Initialize(mapload) . = ..() icon_state = "alienpod[rand(1,9)]" diff --git a/code/game/turfs/simulated/floor/misc_floor.dm b/code/game/turfs/simulated/floor/misc_floor.dm index 11f2918bcf..f041d657ec 100644 --- a/code/game/turfs/simulated/floor/misc_floor.dm +++ b/code/game/turfs/simulated/floor/misc_floor.dm @@ -18,7 +18,7 @@ floor_tile = /obj/item/stack/tile/circuit var/on = TRUE -/turf/open/floor/circuit/Initialize() +/turf/open/floor/circuit/Initialize(mapload) SSmapping.nuke_tiles += src update_icon() . = ..() @@ -151,7 +151,7 @@ /turf/open/floor/clockwork/Bless() //Who needs holy blessings when you have DADDY RATVAR? return -/turf/open/floor/clockwork/Initialize() +/turf/open/floor/clockwork/Initialize(mapload) . = ..() if(uses_overlay) new /obj/effect/temp_visual/ratvar/floor(src) diff --git a/code/game/turfs/simulated/floor/plating.dm b/code/game/turfs/simulated/floor/plating.dm index b23ce17c72..1683163df0 100644 --- a/code/game/turfs/simulated/floor/plating.dm +++ b/code/game/turfs/simulated/floor/plating.dm @@ -29,7 +29,7 @@ else . += "You might be able to build ontop of it with some tiles..." -/turf/open/floor/plating/Initialize() +/turf/open/floor/plating/Initialize(mapload) if (!broken_states) broken_states = list("platingdmg1", "platingdmg2", "platingdmg3") if (!burnt_states) diff --git a/code/game/turfs/simulated/floor/plating/asteroid.dm b/code/game/turfs/simulated/floor/plating/asteroid.dm index 2770d12454..32c1f0d42b 100644 --- a/code/game/turfs/simulated/floor/plating/asteroid.dm +++ b/code/game/turfs/simulated/floor/plating/asteroid.dm @@ -29,7 +29,7 @@ // /turf/open/floor/plating/asteroid/setup_broken_states() // return list("asteroid_dug") -/turf/open/floor/plating/asteroid/Initialize() +/turf/open/floor/plating/asteroid/Initialize(mapload) var/proper_name = name . = ..() name = proper_name @@ -116,7 +116,7 @@ baseturfs = /turf/open/floor/plating/asteroid/airless initial_gas_mix = AIRLESS_ATMOS -/turf/open/floor/plating/asteroid/basalt/Initialize() +/turf/open/floor/plating/asteroid/basalt/Initialize(mapload) . = ..() set_basalt_light(src) diff --git a/code/game/turfs/simulated/floor/plating/misc_plating.dm b/code/game/turfs/simulated/floor/plating/misc_plating.dm index e49b6b78d3..a4000ea486 100644 --- a/code/game/turfs/simulated/floor/plating/misc_plating.dm +++ b/code/game/turfs/simulated/floor/plating/misc_plating.dm @@ -12,7 +12,7 @@ icon_state = "alienpod1" tiled_dirt = FALSE -/turf/open/floor/plating/abductor/Initialize() +/turf/open/floor/plating/abductor/Initialize(mapload) . = ..() icon_state = "alienpod[rand(1,9)]" @@ -56,7 +56,7 @@ heavyfootstep = FOOTSTEP_GENERIC_HEAVY tiled_dirt = FALSE -/turf/open/floor/plating/ashplanet/Initialize() +/turf/open/floor/plating/ashplanet/Initialize(mapload) if(smooth) var/matrix/M = new M.Translate(-4, -4) @@ -101,7 +101,7 @@ clawfootstep = FOOTSTEP_HARD_CLAW heavyfootstep = FOOTSTEP_GENERIC_HEAVY -/turf/open/floor/plating/ashplanet/wateryrock/Initialize() +/turf/open/floor/plating/ashplanet/wateryrock/Initialize(mapload) icon_state = "[icon_state][rand(1, 9)]" . = ..() @@ -161,7 +161,7 @@ clawfootstep = FOOTSTEP_SAND heavyfootstep = FOOTSTEP_GENERIC_HEAVY -/turf/open/floor/plating/ironsand/Initialize() +/turf/open/floor/plating/ironsand/Initialize(mapload) . = ..() icon_state = "ironsand[rand(1,15)]" @@ -188,7 +188,7 @@ clawfootstep = FOOTSTEP_HARD_CLAW heavyfootstep = FOOTSTEP_GENERIC_HEAVY -/turf/open/floor/plating/ice/Initialize() +/turf/open/floor/plating/ice/Initialize(mapload) . = ..() MakeSlippery(TURF_WET_PERMAFROST, INFINITY, 0, INFINITY, TRUE) diff --git a/code/game/turfs/simulated/floor/reinf_floor.dm b/code/game/turfs/simulated/floor/reinf_floor.dm index 32eda3bdb7..93ced4b3d5 100644 --- a/code/game/turfs/simulated/floor/reinf_floor.dm +++ b/code/game/turfs/simulated/floor/reinf_floor.dm @@ -133,7 +133,7 @@ var/obj/effect/clockwork/overlay/floor/bloodcult/realappearance -/turf/open/floor/engine/cult/Initialize() +/turf/open/floor/engine/cult/Initialize(mapload) . = ..() new /obj/effect/temp_visual/cult/turf/floor(src) realappearance = new /obj/effect/clockwork/overlay/floor/bloodcult(src) diff --git a/code/game/turfs/simulated/glass.dm b/code/game/turfs/simulated/glass.dm index f02ca19548..58acc696fa 100644 --- a/code/game/turfs/simulated/glass.dm +++ b/code/game/turfs/simulated/glass.dm @@ -17,7 +17,7 @@ // return list("glass-damaged1", "glass-damaged2", "glass-damaged3") -/turf/open/floor/glass/Initialize() +/turf/open/floor/glass/Initialize(mapload) icon_state = "" //Prevent the normal icon from appearing behind the smooth overlays ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/game/turfs/simulated/minerals.dm b/code/game/turfs/simulated/minerals.dm index 48e7fa8f8a..0c5455b8b7 100644 --- a/code/game/turfs/simulated/minerals.dm +++ b/code/game/turfs/simulated/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) if (!canSmoothWith) canSmoothWith = list(/turf/closed/mineral, /turf/closed/indestructible) . = ..() @@ -191,7 +191,7 @@ //Currently, Adamantine won't spawn as it has no uses. -Durandan var/mineralChance = 13 -/turf/closed/mineral/random/Initialize() +/turf/closed/mineral/random/Initialize(mapload) mineralSpawnChanceList = typelist("mineralSpawnChanceList", mineralSpawnChanceList) @@ -512,7 +512,7 @@ var/activated_name = null var/mutable_appearance/activated_overlay -/turf/closed/mineral/gibtonite/Initialize() +/turf/closed/mineral/gibtonite/Initialize(mapload) det_time = rand(8,10) //So you don't know exactly when the hot potato will explode . = ..() diff --git a/code/game/turfs/simulated/openspace.dm b/code/game/turfs/simulated/openspace.dm index a856ed75b5..935bfdc1a7 100644 --- a/code/game/turfs/simulated/openspace.dm +++ b/code/game/turfs/simulated/openspace.dm @@ -36,7 +36,7 @@ GLOBAL_DATUM_INIT(openspace_backdrop_one_for_all, /atom/movable/openspace_backdr // /turf/open/transparent/openspace/show_bottom_level() // return FALSE -/turf/open/openspace/Initialize() // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker +/turf/open/openspace/Initialize(mapload) // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker . = ..() vis_contents += GLOB.openspace_backdrop_one_for_all //Special grey square for projecting backdrop darkness filter on it. return INITIALIZE_HINT_LATELOAD @@ -165,7 +165,7 @@ GLOBAL_DATUM_INIT(openspace_backdrop_one_for_all, /atom/movable/openspace_backdr /// If true mineral turfs below this openspace turf will be mined automatically var/drill_below = TRUE -/turf/open/openspace/icemoon/Initialize() +/turf/open/openspace/icemoon/Initialize(mapload) . = ..() var/turf/T = below() if(T.flags_1 & NO_RUINS_1 && protect_ruin) diff --git a/code/game/turfs/simulated/wall/misc_walls.dm b/code/game/turfs/simulated/wall/misc_walls.dm index e4d991a082..493912e27a 100644 --- a/code/game/turfs/simulated/wall/misc_walls.dm +++ b/code/game/turfs/simulated/wall/misc_walls.dm @@ -10,7 +10,7 @@ explosion_block = 10 girder_type = /obj/structure/girder/cult -/turf/closed/wall/mineral/cult/Initialize() +/turf/closed/wall/mineral/cult/Initialize(mapload) new /obj/effect/temp_visual/cult/turf(src) . = ..() @@ -60,7 +60,7 @@ var/heated var/obj/effect/clockwork/overlay/wall/realappearance -/turf/closed/wall/clockwork/Initialize() +/turf/closed/wall/clockwork/Initialize(mapload) . = ..() new /obj/effect/temp_visual/ratvar/wall(src) new /obj/effect/temp_visual/ratvar/beam(src) diff --git a/code/game/turfs/space/space.dm b/code/game/turfs/space/space.dm index 3ed3891fdf..2df1606cb9 100644 --- a/code/game/turfs/space/space.dm +++ b/code/game/turfs/space/space.dm @@ -33,7 +33,7 @@ * * Doesn't call parent, see [/atom/proc/Initialize] */ -/turf/open/space/Initialize() +/turf/open/space/Initialize(mapload) SHOULD_CALL_PARENT(FALSE) icon_state = SPACE_ICON_STATE if(!space_gas) @@ -283,7 +283,7 @@ baseturfs = /turf/open/space/transparent/openspace intact = FALSE //this means wires go on top -/turf/open/space/transparent/Initialize() // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker +/turf/open/space/transparent/Initialize(mapload) // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker ..() plane = OPENSPACE_PLANE layer = OPENSPACE_LAYER @@ -339,7 +339,7 @@ /turf/open/space/transparent/openspace/show_bottom_level() return FALSE -/turf/open/space/transparent/openspace/Initialize() // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker +/turf/open/space/transparent/openspace/Initialize(mapload) // handle plane and layer here so that they don't cover other obs/turfs in Dream Maker . = ..() icon_state = "transparent" diff --git a/code/game/turfs/space/transit.dm b/code/game/turfs/space/transit.dm index 08da6fa84f..ed3b20fce4 100644 --- a/code/game/turfs/space/transit.dm +++ b/code/game/turfs/space/transit.dm @@ -101,7 +101,7 @@ return SSshuttle.is_in_shuttle_bounds(src) -/turf/open/space/transit/Initialize() +/turf/open/space/transit/Initialize(mapload) . = ..() update_icon() for(var/atom/movable/AM in src) diff --git a/code/modules/NTNet/relays.dm b/code/modules/NTNet/relays.dm index 8c33dd1eba..9a39b80356 100644 --- a/code/modules/NTNet/relays.dm +++ b/code/modules/NTNet/relays.dm @@ -92,7 +92,7 @@ update_icon() return TRUE -/obj/machinery/ntnet_relay/Initialize() +/obj/machinery/ntnet_relay/Initialize(mapload) uid = gl_uid++ component_parts = list() diff --git a/code/modules/VR/vr_sleeper.dm b/code/modules/VR/vr_sleeper.dm index a5e31e595c..5b667c5fd5 100644 --- a/code/modules/VR/vr_sleeper.dm +++ b/code/modules/VR/vr_sleeper.dm @@ -16,7 +16,7 @@ var/allow_creating_vr_mobs = TRUE //So you can have vr_sleepers that always spawn you as a specific person or 1 life/chance vr games var/only_current_user_can_interact = FALSE -/obj/machinery/vr_sleeper/Initialize() +/obj/machinery/vr_sleeper/Initialize(mapload) . = ..() sparks = new /datum/effect_system/spark_spread() sparks.set_up(2,0) @@ -151,7 +151,7 @@ if(SOFT_CRIT) status = "Barely Conscious" data["vr_avatar"] += list("status" = status, "health" = vr_mob.health, "maxhealth" = vr_mob.maxHealth) - else + else data["can_delete_avatar"] = FALSE data["vr_avatar"] = FALSE data["isliving"] = FALSE @@ -207,7 +207,7 @@ var/vr_category = "default" //So we can have specific sleepers, eg: "Basketball VR Sleeper", etc. var/vr_outfit = /datum/outfit/vr -/obj/effect/landmark/vr_spawn/Initialize() +/obj/effect/landmark/vr_spawn/Initialize(mapload) . = ..() LAZYADD(GLOB.vr_spawnpoints[vr_category], src) @@ -235,7 +235,7 @@ var/area/vr_area var/list/corpse_party -/obj/effect/vr_clean_master/Initialize() +/obj/effect/vr_clean_master/Initialize(mapload) . = ..() vr_area = get_base_area(src) if(!vr_area) diff --git a/code/modules/admin/fun_balloon.dm b/code/modules/admin/fun_balloon.dm index 417663fcb7..bfbb5e7dbb 100644 --- a/code/modules/admin/fun_balloon.dm +++ b/code/modules/admin/fun_balloon.dm @@ -6,7 +6,7 @@ anchored = TRUE var/popped = FALSE -/obj/effect/fun_balloon/Initialize() +/obj/effect/fun_balloon/Initialize(mapload) . = ..() SSobj.processing |= src @@ -109,7 +109,7 @@ timeleft = 0 var/list/warp_points -/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/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index 9e201ec360..85b3d9eaa4 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -1577,7 +1577,7 @@ Traitors and the like can also be revived with the previous role mostly intact. 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/antagonists/abductor/equipment/abduction_gear.dm b/code/modules/antagonists/abductor/equipment/abduction_gear.dm index 011d175cfa..22d669853a 100644 --- a/code/modules/antagonists/abductor/equipment/abduction_gear.dm +++ b/code/modules/antagonists/abductor/equipment/abduction_gear.dm @@ -30,7 +30,7 @@ var/stealth_armor = list("melee" = 15, "bullet" = 15, "laser" = 15, "energy" = 15, "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)) diff --git a/code/modules/antagonists/abductor/equipment/gland.dm b/code/modules/antagonists/abductor/equipment/gland.dm index d0002d1f4a..312cc07997 100644 --- a/code/modules/antagonists/abductor/equipment/gland.dm +++ b/code/modules/antagonists/abductor/equipment/gland.dm @@ -19,7 +19,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 b651b45f6d..0c7d20d1ff 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 f5bc0946e6..7d79bacdd0 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 ab636f7d0e..2ec8e70358 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/blobs/blob_mobs.dm b/code/modules/antagonists/blob/blob/blobs/blob_mobs.dm index f9763b92fd..a5774e44d1 100644 --- a/code/modules/antagonists/blob/blob/blobs/blob_mobs.dm +++ b/code/modules/antagonists/blob/blob/blobs/blob_mobs.dm @@ -221,7 +221,7 @@ hud_type = /datum/hud/blobbernaut var/independent = FALSE -/mob/living/simple_animal/hostile/blob/blobbernaut/Initialize() +/mob/living/simple_animal/hostile/blob/blobbernaut/Initialize(mapload) . = ..() if(independent) pass_flags &= ~PASSBLOB diff --git a/code/modules/antagonists/blob/blob/blobs/node.dm b/code/modules/antagonists/blob/blob/blobs/node.dm index 14fbc741c0..8d47f44207 100644 --- a/code/modules/antagonists/blob/blob/blobs/node.dm +++ b/code/modules/antagonists/blob/blob/blobs/node.dm @@ -9,7 +9,7 @@ point_return = 25 -/obj/structure/blob/node/Initialize() +/obj/structure/blob/node/Initialize(mapload) GLOB.blob_nodes += src START_PROCESSING(SSobj, src) . = ..() diff --git a/code/modules/antagonists/bloodsucker/bloodsucker_sunlight.dm b/code/modules/antagonists/bloodsucker/bloodsucker_sunlight.dm index f26152f90e..a86cb374d2 100644 --- a/code/modules/antagonists/bloodsucker/bloodsucker_sunlight.dm +++ b/code/modules/antagonists/bloodsucker/bloodsucker_sunlight.dm @@ -12,7 +12,7 @@ var/nighttime_duration = 900 //15 Minutes var/issued_XP = FALSE -/obj/effect/sunlight/Initialize() +/obj/effect/sunlight/Initialize(mapload) . = ..() /obj/effect/sunlight/proc/start_countdown() diff --git a/code/modules/antagonists/changeling/powers/mutations.dm b/code/modules/antagonists/changeling/powers/mutations.dm index ec95ee4ef6..9eae4d7f99 100644 --- a/code/modules/antagonists/changeling/powers/mutations.dm +++ b/code/modules/antagonists/changeling/powers/mutations.dm @@ -302,7 +302,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 . = ..() @@ -321,7 +321,7 @@ var/chain var/obj/item/ammo_casing/magic/tentacle/source //the item that shot it -/obj/item/projectile/tentacle/Initialize() +/obj/item/projectile/tentacle/Initialize(mapload) source = loc . = ..() @@ -506,7 +506,7 @@ armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 90, "acid" = 90) //No armor at all. mutantrace_variation = NONE -/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)) @@ -527,7 +527,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) @@ -563,7 +563,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)) @@ -577,7 +577,7 @@ armor = list("melee" = 70, "bullet" = 60, "laser" = 30, "energy" = 40, "bomb" = 10, "bio" = 4, "rad" = 0, "fire" = 50, "acid" = 90) flags_inv = HIDEEARS|HIDEHAIR|HIDEEYES|HIDEFACIALHAIR|HIDEFACE -/obj/item/clothing/head/helmet/changeling/Initialize() +/obj/item/clothing/head/helmet/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) @@ -655,7 +655,7 @@ max_heat_protection_temperature = GLOVES_MAX_TEMP_PROTECT armor = list("melee" = 20, "bullet" = 20, "laser" = 20, "energy" = 20, "bomb" = 35, "bio" = 35, "rad" = 35, "fire" = 0, "acid" = 0) -/obj/item/clothing/gloves/claws/Initialize() +/obj/item/clothing/gloves/claws/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) @@ -727,7 +727,7 @@ to_chat(user, "[src] are now formed to allow for [fasthands ? "fast, precise strikes" : "crippling, damaging blows"].") addtimer(CALLBACK(src, .proc/use_buffs, user, TRUE), 0.1) // go fuckin get em -/obj/item/clothing/gloves/fingerless/pugilist/cling/Initialize() +/obj/item/clothing/gloves/fingerless/pugilist/cling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) diff --git a/code/modules/antagonists/changeling/powers/transform.dm b/code/modules/antagonists/changeling/powers/transform.dm index cfd42f05cf..e685cbabfa 100644 --- a/code/modules/antagonists/changeling/powers/transform.dm +++ b/code/modules/antagonists/changeling/powers/transform.dm @@ -12,7 +12,7 @@ /obj/item/clothing/glasses/changeling name = "flesh" -/obj/item/clothing/glasses/changeling/Initialize() +/obj/item/clothing/glasses/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) @@ -27,7 +27,7 @@ /obj/item/clothing/under/changeling name = "flesh" -/obj/item/clothing/under/changeling/Initialize() +/obj/item/clothing/under/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) @@ -43,7 +43,7 @@ name = "flesh" allowed = list(/obj/item/changeling) -/obj/item/clothing/suit/changeling/Initialize() +/obj/item/clothing/suit/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) @@ -58,7 +58,7 @@ /obj/item/clothing/head/changeling name = "flesh" -/obj/item/clothing/head/changeling/Initialize() +/obj/item/clothing/head/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) @@ -72,7 +72,7 @@ /obj/item/clothing/shoes/changeling name = "flesh" -/obj/item/clothing/shoes/changeling/Initialize() +/obj/item/clothing/shoes/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) @@ -87,7 +87,7 @@ /obj/item/clothing/gloves/changeling name = "flesh" -/obj/item/clothing/gloves/changeling/Initialize() +/obj/item/clothing/gloves/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) @@ -102,7 +102,7 @@ /obj/item/clothing/mask/changeling name = "flesh" -/obj/item/clothing/mask/changeling/Initialize() +/obj/item/clothing/mask/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) @@ -119,7 +119,7 @@ slot_flags = ALL allowed = list(/obj/item/changeling) -/obj/item/changeling/Initialize() +/obj/item/changeling/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CHANGELING_TRAIT) diff --git a/code/modules/antagonists/clockcult/clock_effect.dm b/code/modules/antagonists/clockcult/clock_effect.dm index 8e3a8f4ceb..a788677eb1 100644 --- a/code/modules/antagonists/clockcult/clock_effect.dm +++ b/code/modules/antagonists/clockcult/clock_effect.dm @@ -10,7 +10,7 @@ opacity = 0 resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF | FREEZE_PROOF -/obj/effect/clockwork/Initialize() +/obj/effect/clockwork/Initialize(mapload) . = ..() GLOB.all_clockwork_objects += src diff --git a/code/modules/antagonists/clockcult/clock_effects/city_of_cogs_rift.dm b/code/modules/antagonists/clockcult/clock_effects/city_of_cogs_rift.dm index 562d6a0c94..4dff21c369 100644 --- a/code/modules/antagonists/clockcult/clock_effects/city_of_cogs_rift.dm +++ b/code/modules/antagonists/clockcult/clock_effects/city_of_cogs_rift.dm @@ -16,7 +16,7 @@ /obj/effect/clockwork/city_of_cogs_rift/singularity_pull() return -/obj/effect/clockwork/city_of_cogs_rift/Initialize() +/obj/effect/clockwork/city_of_cogs_rift/Initialize(mapload) . = ..() visible_message("The air above [loc] shimmers and pops as a [name] forms there!") for(var/mob/M in GLOB.player_list) diff --git a/code/modules/antagonists/clockcult/clock_effects/clock_overlay.dm b/code/modules/antagonists/clockcult/clock_effects/clock_overlay.dm index 7e2fd1e11c..6c9097de0e 100644 --- a/code/modules/antagonists/clockcult/clock_effects/clock_overlay.dm +++ b/code/modules/antagonists/clockcult/clock_effects/clock_overlay.dm @@ -32,7 +32,7 @@ smooth = SMOOTH_TRUE layer = CLOSED_TURF_LAYER -/obj/effect/clockwork/overlay/wall/Initialize() +/obj/effect/clockwork/overlay/wall/Initialize(mapload) . = ..() queue_smooth_neighbors(src) addtimer(CALLBACK(GLOBAL_PROC, .proc/queue_smooth, src), 1) diff --git a/code/modules/antagonists/clockcult/clock_effects/clock_sigils.dm b/code/modules/antagonists/clockcult/clock_effects/clock_sigils.dm index d7facb7f2d..18211d0447 100644 --- a/code/modules/antagonists/clockcult/clock_effects/clock_sigils.dm +++ b/code/modules/antagonists/clockcult/clock_effects/clock_sigils.dm @@ -200,7 +200,7 @@ sigil_name = "Sigil of Transmission" affects_servants = TRUE -/obj/effect/clockwork/sigil/transmission/Initialize() +/obj/effect/clockwork/sigil/transmission/Initialize(mapload) . = ..() update_icon() @@ -229,7 +229,7 @@ else if(get_clockwork_power()) to_chat(L, "You feel a slight, static shock.") -/obj/effect/clockwork/sigil/transmission/Initialize() +/obj/effect/clockwork/sigil/transmission/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) diff --git a/code/modules/antagonists/clockcult/clock_effects/servant_blocker.dm b/code/modules/antagonists/clockcult/clock_effects/servant_blocker.dm index 6fc2bde9d8..5905862690 100644 --- a/code/modules/antagonists/clockcult/clock_effects/servant_blocker.dm +++ b/code/modules/antagonists/clockcult/clock_effects/servant_blocker.dm @@ -8,7 +8,7 @@ density = TRUE CanAtmosPass = ATMOS_PASS_NO -/obj/effect/clockwork/servant_blocker/Initialize() +/obj/effect/clockwork/servant_blocker/Initialize(mapload) . = ..() air_update_turf(TRUE) diff --git a/code/modules/antagonists/clockcult/clock_effects/spatial_gateway.dm b/code/modules/antagonists/clockcult/clock_effects/spatial_gateway.dm index f2aa443f82..79ad69b76f 100644 --- a/code/modules/antagonists/clockcult/clock_effects/spatial_gateway.dm +++ b/code/modules/antagonists/clockcult/clock_effects/spatial_gateway.dm @@ -17,7 +17,7 @@ var/is_stable = FALSE var/busy = FALSE //If someone is already working on closing the gateway, only needed for stable gateways but in the parent to not need typecasting -/obj/effect/clockwork/spatial_gateway/Initialize() +/obj/effect/clockwork/spatial_gateway/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/check_setup), 1) diff --git a/code/modules/antagonists/clockcult/clock_item.dm b/code/modules/antagonists/clockcult/clock_item.dm index 7c8e877fb3..f4d5352ab9 100644 --- a/code/modules/antagonists/clockcult/clock_item.dm +++ b/code/modules/antagonists/clockcult/clock_item.dm @@ -8,7 +8,7 @@ icon_state = "rare_pepe" w_class = WEIGHT_CLASS_SMALL -/obj/item/clockwork/Initialize() +/obj/item/clockwork/Initialize(mapload) . = ..() ratvar_act() GLOB.all_clockwork_objects += src diff --git a/code/modules/antagonists/clockcult/clock_items/clock_components.dm b/code/modules/antagonists/clockcult/clock_items/clock_components.dm index a9307f15e1..1e5a538772 100644 --- a/code/modules/antagonists/clockcult/clock_items/clock_components.dm +++ b/code/modules/antagonists/clockcult/clock_items/clock_components.dm @@ -172,7 +172,7 @@ var/randomspritemax = 2 var/sprite_shift = 9 -/obj/item/clockwork/alloy_shards/Initialize() +/obj/item/clockwork/alloy_shards/Initialize(mapload) . = ..() if(randomsinglesprite) replace_name_desc() diff --git a/code/modules/antagonists/clockcult/clock_items/clock_weapons/brass_claw.dm b/code/modules/antagonists/clockcult/clock_items/clock_weapons/brass_claw.dm index 340f01f6f8..b98214668a 100644 --- a/code/modules/antagonists/clockcult/clock_items/clock_weapons/brass_claw.dm +++ b/code/modules/antagonists/clockcult/clock_items/clock_weapons/brass_claw.dm @@ -26,7 +26,7 @@ var/damage_per_combo = 2 var/maximum_combo_damage = 18 //33 damage on max stacks. Usually the target will already be dead by then but if they somehow aren't, better to have this capped -/obj/item/clockwork/brass_claw/Initialize() +/obj/item/clockwork/brass_claw/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 60, 80) diff --git a/code/modules/antagonists/clockcult/clock_items/clockwork_armor.dm b/code/modules/antagonists/clockcult/clock_items/clockwork_armor.dm index b5f2a358e6..f25d6b59b8 100644 --- a/code/modules/antagonists/clockcult/clock_items/clockwork_armor.dm +++ b/code/modules/antagonists/clockcult/clock_items/clockwork_armor.dm @@ -10,7 +10,7 @@ mutantrace_variation = STYLE_MUZZLE armor = list("melee" = 50, "bullet" = 70, "laser" = 0, "energy" = 0, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100, "magic" = 60, "wound" = 65) -/obj/item/clothing/head/helmet/clockwork/Initialize() +/obj/item/clothing/head/helmet/clockwork/Initialize(mapload) . = ..() ratvar_act() GLOB.all_clockwork_objects += src @@ -72,7 +72,7 @@ allowed = list(/obj/item/clockwork, /obj/item/clothing/glasses/wraith_spectacles, /obj/item/clothing/glasses/judicial_visor, /obj/item/mmi/posibrain/soul_vessel, /obj/item/reagent_containers/food/drinks/bottle/holyoil) mutantrace_variation = STYLE_DIGITIGRADE|STYLE_SNEK_TAURIC -/obj/item/clothing/suit/armor/clockwork/Initialize() +/obj/item/clothing/suit/armor/clockwork/Initialize(mapload) . = ..() ratvar_act() GLOB.all_clockwork_objects += src @@ -137,7 +137,7 @@ resistance_flags = FIRE_PROOF | ACID_PROOF armor = list("melee" = 80, "bullet" = 70, "laser" = 0, "energy" = 0, "bomb" = 60, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 100, "magic" = 70, "wound" = 85) -/obj/item/clothing/gloves/clockwork/Initialize() +/obj/item/clothing/gloves/clockwork/Initialize(mapload) . = ..() ratvar_act() GLOB.all_clockwork_objects += src @@ -190,7 +190,7 @@ equip_delay_other = 30 resistance_flags = FIRE_PROOF | ACID_PROOF -/obj/item/clothing/shoes/clockwork/Initialize() +/obj/item/clothing/shoes/clockwork/Initialize(mapload) . = ..() ratvar_act() GLOB.all_clockwork_objects += src diff --git a/code/modules/antagonists/clockcult/clock_items/clockwork_slab.dm b/code/modules/antagonists/clockcult/clock_items/clockwork_slab.dm index d5c9b2cd2f..db19361ca8 100644 --- a/code/modules/antagonists/clockcult/clock_items/clockwork_slab.dm +++ b/code/modules/antagonists/clockcult/clock_items/clockwork_slab.dm @@ -106,7 +106,7 @@ if(!GLOB.ratvar_awakens) SStgui.close_uis(src) -/obj/item/clockwork/slab/Initialize() +/obj/item/clockwork/slab/Initialize(mapload) . = ..() update_slab_info(src) START_PROCESSING(SSobj, src) diff --git a/code/modules/antagonists/clockcult/clock_items/construct_chassis.dm b/code/modules/antagonists/clockcult/clock_items/construct_chassis.dm index 9342cd8ea5..be832f7e52 100644 --- a/code/modules/antagonists/clockcult/clock_items/construct_chassis.dm +++ b/code/modules/antagonists/clockcult/clock_items/construct_chassis.dm @@ -11,7 +11,7 @@ var/creation_message = "The chassis shudders and hums to life!" var/construct_type //The construct this shell will create -/obj/item/clockwork/construct_chassis/Initialize() +/obj/item/clockwork/construct_chassis/Initialize(mapload) . = ..() var/area/A = get_area(src) if(A && construct_type) @@ -92,7 +92,7 @@ var/infinite_resources = FALSE //No. var/static/obj/item/seasonal_hat //Share it with all other scarabs, since we're from the same cult! -/obj/item/clockwork/construct_chassis/cogscarab/Initialize() +/obj/item/clockwork/construct_chassis/cogscarab/Initialize(mapload) . = ..() if(GLOB.servants_active) infinite_resources = FALSE //This check is relatively irrelevant until *someone* makes the infinite resources var default to true again, so, leaving it in. diff --git a/code/modules/antagonists/clockcult/clock_items/integration_cog.dm b/code/modules/antagonists/clockcult/clock_items/integration_cog.dm index ab8e30c8bb..45c3f757a4 100644 --- a/code/modules/antagonists/clockcult/clock_items/integration_cog.dm +++ b/code/modules/antagonists/clockcult/clock_items/integration_cog.dm @@ -12,7 +12,7 @@ item_flags = NOBLUDGEON var/obj/machinery/power/apc/apc -/obj/item/clockwork/integration_cog/Initialize() +/obj/item/clockwork/integration_cog/Initialize(mapload) . = ..() transform *= 0.5 //little cog! diff --git a/code/modules/antagonists/clockcult/clock_items/judicial_visor.dm b/code/modules/antagonists/clockcult/clock_items/judicial_visor.dm index 138f04feb3..dc53217486 100644 --- a/code/modules/antagonists/clockcult/clock_items/judicial_visor.dm +++ b/code/modules/antagonists/clockcult/clock_items/judicial_visor.dm @@ -13,7 +13,7 @@ var/recharge_cooldown = 300 //divided by 10 if ratvar is alive actions_types = list(/datum/action/item_action/clock/toggle_visor) -/obj/item/clothing/glasses/judicial_visor/Initialize() +/obj/item/clothing/glasses/judicial_visor/Initialize(mapload) . = ..() GLOB.all_clockwork_objects += src blaster = new(src) diff --git a/code/modules/antagonists/clockcult/clock_items/soul_vessel.dm b/code/modules/antagonists/clockcult/clock_items/soul_vessel.dm index 6bec6e3bc7..f0e4863c4e 100644 --- a/code/modules/antagonists/clockcult/clock_items/soul_vessel.dm +++ b/code/modules/antagonists/clockcult/clock_items/soul_vessel.dm @@ -25,7 +25,7 @@ force_replace_ai_name = TRUE overrides_aicore_laws = TRUE -/obj/item/mmi/posibrain/soul_vessel/Initialize() +/obj/item/mmi/posibrain/soul_vessel/Initialize(mapload) . = ..() radio.on = FALSE laws = new /datum/ai_laws/ratvar() diff --git a/code/modules/antagonists/clockcult/clock_items/wraith_spectacles.dm b/code/modules/antagonists/clockcult/clock_items/wraith_spectacles.dm index 837844d0cb..c48696aa8c 100644 --- a/code/modules/antagonists/clockcult/clock_items/wraith_spectacles.dm +++ b/code/modules/antagonists/clockcult/clock_items/wraith_spectacles.dm @@ -12,7 +12,7 @@ visor_vars_to_toggle = NONE //we don't actually toggle anything we just set it tint = 3 //this'll get reset, but it won't handle vision updates properly otherwise -/obj/item/clothing/glasses/wraith_spectacles/Initialize() +/obj/item/clothing/glasses/wraith_spectacles/Initialize(mapload) . = ..() GLOB.all_clockwork_objects += src diff --git a/code/modules/antagonists/clockcult/clock_mobs.dm b/code/modules/antagonists/clockcult/clock_mobs.dm index 2f00fd4e4a..b6fe18986a 100644 --- a/code/modules/antagonists/clockcult/clock_mobs.dm +++ b/code/modules/antagonists/clockcult/clock_mobs.dm @@ -23,7 +23,7 @@ var/playstyle_string = "You are a bug, yell at whoever spawned you!" var/empower_string = "You have nothing to empower, yell at the coders!" //Shown to the mob when the herald beacon activates -/mob/living/simple_animal/hostile/clockwork/Initialize() +/mob/living/simple_animal/hostile/clockwork/Initialize(mapload) . = ..() update_values() diff --git a/code/modules/antagonists/clockcult/clock_mobs/clockwork_guardian.dm b/code/modules/antagonists/clockcult/clock_mobs/clockwork_guardian.dm index 5060f516c7..a1f9a7fa8d 100644 --- a/code/modules/antagonists/clockcult/clock_mobs/clockwork_guardian.dm +++ b/code/modules/antagonists/clockcult/clock_mobs/clockwork_guardian.dm @@ -34,7 +34,7 @@ Stay near your host to protect and heal them; being too far from your host will rapidly cause you massive damage. Recall to your host if you are too weak and believe you cannot continue \ fighting safely. As a final note, you should probably avoid harming any fellow servants of Ratvar." -/mob/living/simple_animal/hostile/clockwork/guardian/Initialize() +/mob/living/simple_animal/hostile/clockwork/guardian/Initialize(mapload) . = ..() true_name = pick(possible_true_names) diff --git a/code/modules/antagonists/clockcult/clock_structure.dm b/code/modules/antagonists/clockcult/clock_structure.dm index 380e93f102..345daa7515 100644 --- a/code/modules/antagonists/clockcult/clock_structure.dm +++ b/code/modules/antagonists/clockcult/clock_structure.dm @@ -18,7 +18,7 @@ var/construction_value = 0 //How much value the structure contributes to the overall "power" of the structures on the station var/immune_to_servant_attacks = FALSE //if we ignore attacks from servants of ratvar instead of taking damage -/obj/structure/destructible/clockwork/Initialize() +/obj/structure/destructible/clockwork/Initialize(mapload) . = ..() change_construction_value(construction_value) GLOB.all_clockwork_objects += src @@ -134,7 +134,7 @@ density = FALSE resistance_flags = LAVA_PROOF | FIRE_PROOF | ACID_PROOF | FREEZE_PROOF -/obj/structure/destructible/clockwork/massive/Initialize() +/obj/structure/destructible/clockwork/massive/Initialize(mapload) . = ..() GLOB.poi_list += src diff --git a/code/modules/antagonists/clockcult/clock_structures/_trap_object.dm b/code/modules/antagonists/clockcult/clock_structures/_trap_object.dm index 47a37583ba..29b8a1f010 100644 --- a/code/modules/antagonists/clockcult/clock_structures/_trap_object.dm +++ b/code/modules/antagonists/clockcult/clock_structures/_trap_object.dm @@ -5,7 +5,7 @@ clockwork_desc = "A trap that shouldn't exist, and you should report this as a bug." var/list/wired_to -/obj/structure/destructible/clockwork/trap/Initialize() +/obj/structure/destructible/clockwork/trap/Initialize(mapload) . = ..() wired_to = list() @@ -80,7 +80,7 @@ break_message = "The trigger breaks apart!" density = FALSE -/obj/structure/destructible/clockwork/trap/trigger/Initialize() +/obj/structure/destructible/clockwork/trap/trigger/Initialize(mapload) . = ..() for(var/obj/structure/destructible/clockwork/trap/T in get_turf(src)) if(!istype(T, /obj/structure/destructible/clockwork/trap/trigger)) diff --git a/code/modules/antagonists/clockcult/clock_structures/ark_of_the_clockwork_justicar.dm b/code/modules/antagonists/clockcult/clock_structures/ark_of_the_clockwork_justicar.dm index 44c57b77ad..6d1a3e589e 100644 --- a/code/modules/antagonists/clockcult/clock_structures/ark_of_the_clockwork_justicar.dm +++ b/code/modules/antagonists/clockcult/clock_structures/ark_of_the_clockwork_justicar.dm @@ -33,7 +33,7 @@ var/recalls_remaining = 1 var/recalling -/obj/structure/destructible/clockwork/massive/celestial_gateway/Initialize() +/obj/structure/destructible/clockwork/massive/celestial_gateway/Initialize(mapload) . = ..() INVOKE_ASYNC(src, .proc/spawn_animation) glow = new(get_turf(src)) diff --git a/code/modules/antagonists/clockcult/clock_structures/clockwork_obelisk.dm b/code/modules/antagonists/clockcult/clock_structures/clockwork_obelisk.dm index 2b4b797b4d..bb05427e25 100644 --- a/code/modules/antagonists/clockcult/clock_structures/clockwork_obelisk.dm +++ b/code/modules/antagonists/clockcult/clock_structures/clockwork_obelisk.dm @@ -16,7 +16,7 @@ var/hierophant_cost = MIN_CLOCKCULT_POWER //how much it costs to broadcast with large text var/gateway_cost = 2000 //how much it costs to open a gateway -/obj/structure/destructible/clockwork/powered/clockwork_obelisk/Initialize() +/obj/structure/destructible/clockwork/powered/clockwork_obelisk/Initialize(mapload) . = ..() toggle(1) diff --git a/code/modules/antagonists/clockcult/clock_structures/heralds_beacon.dm b/code/modules/antagonists/clockcult/clock_structures/heralds_beacon.dm index f8a3afbf91..8245f48a84 100644 --- a/code/modules/antagonists/clockcult/clock_structures/heralds_beacon.dm +++ b/code/modules/antagonists/clockcult/clock_structures/heralds_beacon.dm @@ -17,7 +17,7 @@ var/votes_needed = 0 //How many votes are needed to activate the beacon var/available = FALSE //If the beacon can be used -/obj/structure/destructible/clockwork/heralds_beacon/Initialize() +/obj/structure/destructible/clockwork/heralds_beacon/Initialize(mapload) . = ..() voters = list() START_PROCESSING(SSprocessing, src) diff --git a/code/modules/antagonists/clockcult/clock_structures/ocular_warden.dm b/code/modules/antagonists/clockcult/clock_structures/ocular_warden.dm index 00db2b0d72..f8174e19b9 100644 --- a/code/modules/antagonists/clockcult/clock_structures/ocular_warden.dm +++ b/code/modules/antagonists/clockcult/clock_structures/ocular_warden.dm @@ -16,7 +16,7 @@ var/atom/movable/target var/list/idle_messages = list(" sulkily glares around.", " lazily drifts from side to side.", " looks around for something to burn.", " slowly turns in circles.") -/obj/structure/destructible/clockwork/ocular_warden/Initialize() +/obj/structure/destructible/clockwork/ocular_warden/Initialize(mapload) . = ..() START_PROCESSING(SSfastprocess, src) diff --git a/code/modules/antagonists/clockcult/clock_structures/ratvar_the_clockwork_justicar.dm b/code/modules/antagonists/clockcult/clock_structures/ratvar_the_clockwork_justicar.dm index 51f8dc7101..da04353974 100644 --- a/code/modules/antagonists/clockcult/clock_structures/ratvar_the_clockwork_justicar.dm +++ b/code/modules/antagonists/clockcult/clock_structures/ratvar_the_clockwork_justicar.dm @@ -17,7 +17,7 @@ var/convert_range = 10 obj_flags = CAN_BE_HIT | DANGEROUS_POSSESSION -/obj/structure/destructible/clockwork/massive/ratvar/Initialize() +/obj/structure/destructible/clockwork/massive/ratvar/Initialize(mapload) . = ..() GLOB.ratvar_awakens++ for(var/obj/O in GLOB.all_clockwork_objects) diff --git a/code/modules/antagonists/clockcult/clock_structures/reflector.dm b/code/modules/antagonists/clockcult/clock_structures/reflector.dm index e734429524..7152953c6c 100644 --- a/code/modules/antagonists/clockcult/clock_structures/reflector.dm +++ b/code/modules/antagonists/clockcult/clock_structures/reflector.dm @@ -16,7 +16,7 @@ var/ini_dir = null -/obj/structure/destructible/clockwork/reflector/Initialize() +/obj/structure/destructible/clockwork/reflector/Initialize(mapload) . = ..() allowed_projectile_typecache = typecacheof(allowed_projectile_typecache) diff --git a/code/modules/antagonists/clockcult/clock_structures/stargazer.dm b/code/modules/antagonists/clockcult/clock_structures/stargazer.dm index dea8f428ba..178b78ff13 100644 --- a/code/modules/antagonists/clockcult/clock_structures/stargazer.dm +++ b/code/modules/antagonists/clockcult/clock_structures/stargazer.dm @@ -16,7 +16,7 @@ light_color = "#DAAA18" var/star_light_star_bright = FALSE //If this stargazer can see starlight -/obj/structure/destructible/clockwork/stargazer/Initialize() +/obj/structure/destructible/clockwork/stargazer/Initialize(mapload) . = ..() START_PROCESSING(SSprocessing, src) diff --git a/code/modules/antagonists/clockcult/clock_structures/taunting_trail.dm b/code/modules/antagonists/clockcult/clock_structures/taunting_trail.dm index 98b3c32b0f..5305758b25 100644 --- a/code/modules/antagonists/clockcult/clock_structures/taunting_trail.dm +++ b/code/modules/antagonists/clockcult/clock_structures/taunting_trail.dm @@ -14,7 +14,7 @@ debris = list() var/timerid -/obj/structure/destructible/clockwork/taunting_trail/Initialize() +/obj/structure/destructible/clockwork/taunting_trail/Initialize(mapload) . = ..() timerid = QDEL_IN(src, 15) var/obj/structure/destructible/clockwork/taunting_trail/Tt = locate(/obj/structure/destructible/clockwork/taunting_trail) in loc diff --git a/code/modules/antagonists/clockcult/clock_structures/traps/brass_skewer.dm b/code/modules/antagonists/clockcult/clock_structures/traps/brass_skewer.dm index e8ae133ede..eba53d97a4 100644 --- a/code/modules/antagonists/clockcult/clock_structures/traps/brass_skewer.dm +++ b/code/modules/antagonists/clockcult/clock_structures/traps/brass_skewer.dm @@ -13,7 +13,7 @@ var/wiggle_wiggle var/mutable_appearance/impale_overlay //This is applied to any mob impaled so that they visibly have the skewer coming through their chest -/obj/structure/destructible/clockwork/trap/brass_skewer/Initialize() +/obj/structure/destructible/clockwork/trap/brass_skewer/Initialize(mapload) . = ..() START_PROCESSING(SSfastprocess, src) diff --git a/code/modules/antagonists/clockcult/clock_structures/wall_gear.dm b/code/modules/antagonists/clockcult/clock_structures/wall_gear.dm index 7e4822b622..20cf8711e0 100644 --- a/code/modules/antagonists/clockcult/clock_structures/wall_gear.dm +++ b/code/modules/antagonists/clockcult/clock_structures/wall_gear.dm @@ -15,7 +15,7 @@ /obj/structure/destructible/clockwork/wall_gear/displaced anchored = FALSE -/obj/structure/destructible/clockwork/wall_gear/Initialize() +/obj/structure/destructible/clockwork/wall_gear/Initialize(mapload) . = ..() new /obj/effect/temp_visual/ratvar/gear(get_turf(src)) diff --git a/code/modules/antagonists/cult/cult_items.dm b/code/modules/antagonists/cult/cult_items.dm index 20e41828d4..e8157f6c90 100644 --- a/code/modules/antagonists/cult/cult_items.dm +++ b/code/modules/antagonists/cult/cult_items.dm @@ -39,7 +39,7 @@ armour_penetration = 35 actions_types = list(/datum/action/item_action/cult_dagger) -/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 @@ -62,7 +62,7 @@ hitsound = 'sound/weapons/bladeslice.ogg' attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "rended") -/obj/item/melee/cultblade/Initialize() +/obj/item/melee/cultblade/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 40, 100) AddElement(/datum/element/sword_point) @@ -87,7 +87,7 @@ item_flags = NEEDS_PERMIT | DROPDEL flags_1 = NONE -/obj/item/melee/cultblade/ghost/Initialize() +/obj/item/melee/cultblade/ghost/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CULT_TRAIT) @@ -131,7 +131,7 @@ var/spin_cooldown = 250 var/dash_toggled = TRUE -/obj/item/cult_bastard/Initialize() +/obj/item/cult_bastard/Initialize(mapload) . = ..() set_light(4) jaunt = new(src) @@ -326,7 +326,7 @@ /obj/item/clothing/head/culthood/alt/ghost item_flags = DROPDEL -/obj/item/clothing/head/culthood/alt/ghost/Initialize() +/obj/item/clothing/head/culthood/alt/ghost/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CULT_TRAIT) @@ -340,7 +340,7 @@ /obj/item/clothing/suit/cultrobes/alt/ghost item_flags = DROPDEL -/obj/item/clothing/suit/cultrobes/alt/ghost/Initialize() +/obj/item/clothing/suit/cultrobes/alt/ghost/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CULT_TRAIT) @@ -716,7 +716,7 @@ var/wielded = FALSE // track wielded status on item -/obj/item/cult_spear/Initialize() +/obj/item/cult_spear/Initialize(mapload) . = ..() RegisterSignal(src, COMSIG_TWOHANDED_WIELD, .proc/on_wield) RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, .proc/on_unwield) @@ -874,7 +874,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 a2f283ec67..3a4079d67f 100644 --- a/code/modules/antagonists/cult/cult_structures.dm +++ b/code/modules/antagonists/cult/cult_structures.dm @@ -89,7 +89,7 @@ var/static/image/radial_shell = image(icon = 'icons/obj/wizard.dmi', icon_state = "construct-cult") var/static/image/radial_unholy_water = image(icon = 'icons/obj/drinks.dmi', icon_state = "holyflask") -/obj/structure/destructible/cult/talisman/Initialize() +/obj/structure/destructible/cult/talisman/Initialize(mapload) . = ..() radial_unholy_water.color = "#333333" diff --git a/code/modules/antagonists/cult/ritual.dm b/code/modules/antagonists/cult/ritual.dm index 98889169c6..6caa13dcff 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 3b73a998e7..809a69d393 100644 --- a/code/modules/antagonists/cult/runes.dm +++ b/code/modules/antagonists/cult/runes.dm @@ -832,7 +832,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/devil/imp/imp.dm b/code/modules/antagonists/devil/imp/imp.dm index f7f55456f7..c0abe504a5 100644 --- a/code/modules/antagonists/devil/imp/imp.dm +++ b/code/modules/antagonists/devil/imp/imp.dm @@ -44,7 +44,7 @@ Though you are not obligated to help, perhaps by aiding a higher ranking devil, you might just get a promotion. However, you are incapable \ of intentionally harming a fellow devil." -/mob/living/simple_animal/imp/Initialize() +/mob/living/simple_animal/imp/Initialize(mapload) ..() boost = world.time + 30 diff --git a/code/modules/antagonists/devil/true_devil/_true_devil.dm b/code/modules/antagonists/devil/true_devil/_true_devil.dm index 619129f679..a70d518f59 100644 --- a/code/modules/antagonists/devil/true_devil/_true_devil.dm +++ b/code/modules/antagonists/devil/true_devil/_true_devil.dm @@ -25,7 +25,7 @@ var/mob/living/oldform var/list/devil_overlays[DEVIL_TOTAL_LAYERS] -/mob/living/carbon/true_devil/Initialize() +/mob/living/carbon/true_devil/Initialize(mapload) create_bodyparts() //initialize bodyparts create_internal_organs() grant_all_languages() diff --git a/code/modules/antagonists/eldritch_cult/eldritch_effects.dm b/code/modules/antagonists/eldritch_cult/eldritch_effects.dm index 3d6059dfe3..6640135f37 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 @@ -216,7 +216,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) addtimer(CALLBACK(src,.proc/remove_presence),195 SECONDS) @@ -295,7 +295,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 c0f3e2be7c..67cba8767d 100644 --- a/code/modules/antagonists/eldritch_cult/eldritch_items.dm +++ b/code/modules/antagonists/eldritch_cult/eldritch_items.dm @@ -8,7 +8,7 @@ var/mob/living/carbon/human/target var/datum/antagonist/heretic/sac_targetter //The heretic who used this to acquire the current target - gets cleared when target gets sacrificed. -/obj/item/living_heart/Initialize() +/obj/item/living_heart/Initialize(mapload) . = ..() GLOB.living_heart_cache.Add(src) //Add is better than +=. @@ -310,7 +310,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_knife/Initialize() +/obj/item/melee/rune_knife/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 158acc0071..8af1533690 100644 --- a/code/modules/antagonists/eldritch_cult/eldritch_magic.dm +++ b/code/modules/antagonists/eldritch_cult/eldritch_magic.dm @@ -702,7 +702,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/gang/cellphone.dm b/code/modules/antagonists/gang/cellphone.dm index f7971300f9..5cba485799 100644 --- a/code/modules/antagonists/gang/cellphone.dm +++ b/code/modules/antagonists/gang/cellphone.dm @@ -9,7 +9,7 @@ GLOBAL_LIST_EMPTY(gangster_cell_phones) var/gang_id = "Grove Street Families" var/activated = FALSE -/obj/item/gangster_cellphone/Initialize() +/obj/item/gangster_cellphone/Initialize(mapload) . = ..() GLOB.gangster_cell_phones += src flags_1 |= HEAR_1 diff --git a/code/modules/antagonists/morph/morph.dm b/code/modules/antagonists/morph/morph.dm index 8352b8f238..fbee439dda 100644 --- a/code/modules/antagonists/morph/morph.dm +++ b/code/modules/antagonists/morph/morph.dm @@ -52,7 +52,7 @@ You can attack any item or dead creature to consume it - creatures will fully restore your health. \ Finally, you can restore yourself to your original form while morphed by shift-clicking yourself." -/mob/living/simple_animal/hostile/morph/Initialize() +/mob/living/simple_animal/hostile/morph/Initialize(mapload) . = ..() src.AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) diff --git a/code/modules/antagonists/nukeop/equipment/borgchameleon.dm b/code/modules/antagonists/nukeop/equipment/borgchameleon.dm index b3c31152a5..f40ecc27cf 100644 --- a/code/modules/antagonists/nukeop/equipment/borgchameleon.dm +++ b/code/modules/antagonists/nukeop/equipment/borgchameleon.dm @@ -32,7 +32,7 @@ var/list/engymodels = list("Default", "Default - Treads", "Heavy", "Sleek", "Marina", "Can", "Spider", "Loader","Handy", "Pup Dozer", "Vale") -/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 eb98635e65..2af2637760 100644 --- a/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm +++ b/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm @@ -31,7 +31,7 @@ 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 @@ -507,7 +507,7 @@ 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) @@ -619,7 +619,7 @@ This is here to make the tiles around the station mininuke change when it's arme var/last_disk_move var/process_tick = 0 -/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 5b48951ed5..2b00f85e36 100644 --- a/code/modules/antagonists/nukeop/equipment/pinpointer.dm +++ b/code/modules/antagonists/nukeop/equipment/pinpointer.dm @@ -74,7 +74,7 @@ flags_1 = NONE -/obj/item/pinpointer/syndicate_cyborg/Initialize() +/obj/item/pinpointer/syndicate_cyborg/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CYBORG_ITEM_TRAIT) @@ -91,7 +91,7 @@ target = closest_operative ..() -/obj/item/pinpointer/spider_cyborg/Initialize() +/obj/item/pinpointer/spider_cyborg/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CYBORG_ITEM_TRAIT) diff --git a/code/modules/antagonists/slaughter/slaughter.dm b/code/modules/antagonists/slaughter/slaughter.dm index c468862c8b..d2b698bce4 100644 --- a/code/modules/antagonists/slaughter/slaughter.dm +++ b/code/modules/antagonists/slaughter/slaughter.dm @@ -70,7 +70,7 @@ var/slam_mode = FALSE var/datum/action/cooldown/slam -/mob/living/simple_animal/slaughter/Initialize() +/mob/living/simple_animal/slaughter/Initialize(mapload) ..() var/obj/effect/proc_holder/spell/bloodcrawl/bloodspell = new AddSpell(bloodspell) @@ -282,7 +282,7 @@ T = find_safe_turf() for(var/mob/living/M in consumed_mobs) if(!M) - continue + continue M.forceMove(T) if(M.revive(full_heal = TRUE, admin_revive = TRUE)) M.grab_ghost(force = TRUE) diff --git a/code/modules/antagonists/swarmer/swarmer.dm b/code/modules/antagonists/swarmer/swarmer.dm index 2d4ac88656..02d7e89a93 100644 --- a/code/modules/antagonists/swarmer/swarmer.dm +++ b/code/modules/antagonists/swarmer/swarmer.dm @@ -30,7 +30,7 @@ 3. Biological resources will be harvested at a later date; do not harm them. "} -/obj/effect/mob_spawn/swarmer/Initialize() +/obj/effect/mob_spawn/swarmer/Initialize(mapload) . = ..() var/area/A = get_area(src) if(A) @@ -106,7 +106,7 @@ var/resources = 0 //Resource points, generated by consuming metal/glass var/max_resources = 100 -/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) @@ -607,7 +607,7 @@ icon_state = "disintegrate" duration = 10 -/obj/effect/temp_visual/swarmer/disintegration/Initialize() +/obj/effect/temp_visual/swarmer/disintegration/Initialize(mapload) . = ..() playsound(loc, "sparks", 100, 1) diff --git a/code/modules/antagonists/traitor/equipment/Malf_Modules.dm b/code/modules/antagonists/traitor/equipment/Malf_Modules.dm index fcc8bcade8..e5fa38a415 100644 --- a/code/modules/antagonists/traitor/equipment/Malf_Modules.dm +++ b/code/modules/antagonists/traitor/equipment/Malf_Modules.dm @@ -355,7 +355,7 @@ GLOBAL_LIST_INIT(blacklisted_malf_machines, typecacheof(list( var/detonation_timer var/next_announce -/obj/machinery/doomsday_device/Initialize() +/obj/machinery/doomsday_device/Initialize(mapload) . = ..() countdown = new(src) diff --git a/code/modules/antagonists/wizard/equipment/artefact.dm b/code/modules/antagonists/wizard/equipment/artefact.dm index 6f7ba374f7..7df91f4679 100644 --- a/code/modules/antagonists/wizard/equipment/artefact.dm +++ b/code/modules/antagonists/wizard/equipment/artefact.dm @@ -444,6 +444,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/spellbook.dm b/code/modules/antagonists/wizard/equipment/spellbook.dm index 21de660edb..0701ade73c 100644 --- a/code/modules/antagonists/wizard/equipment/spellbook.dm +++ b/code/modules/antagonists/wizard/equipment/spellbook.dm @@ -618,7 +618,7 @@ else . += "It appears to have no author." -/obj/item/spellbook/Initialize() +/obj/item/spellbook/Initialize(mapload) . = ..() prepare_spells() diff --git a/code/modules/arousal/toys/dildos.dm b/code/modules/arousal/toys/dildos.dm index 4de6877915..f80373140d 100644 --- a/code/modules/arousal/toys/dildos.dm +++ b/code/modules/arousal/toys/dildos.dm @@ -71,7 +71,7 @@ update_appearance() return TRUE -/obj/item/dildo/Initialize() +/obj/item/dildo/Initialize(mapload) . = ..() if(random_color == TRUE) var/randcolor = pick(GLOB.dildo_colors) diff --git a/code/modules/assembly/infrared.dm b/code/modules/assembly/infrared.dm index d0ed0f2436..eedbb6ee42 100644 --- a/code/modules/assembly/infrared.dm +++ b/code/modules/assembly/infrared.dm @@ -12,7 +12,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/proximity.dm b/code/modules/assembly/proximity.dm index 60de1b3e87..49f912dff2 100644 --- a/code/modules/assembly/proximity.dm +++ b/code/modules/assembly/proximity.dm @@ -10,7 +10,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/signaler.dm b/code/modules/assembly/signaler.dm index e586f97a28..a4700e4f16 100644 --- a/code/modules/assembly/signaler.dm +++ b/code/modules/assembly/signaler.dm @@ -41,7 +41,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 e06bb22b0b..0234ac43df 100644 --- a/code/modules/assembly/timer.dm +++ b/code/modules/assembly/timer.dm @@ -22,7 +22,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/atmospherics/environmental/LINDA_turf_tile.dm b/code/modules/atmospherics/environmental/LINDA_turf_tile.dm index a0665707ff..2c1902d4cc 100644 --- a/code/modules/atmospherics/environmental/LINDA_turf_tile.dm +++ b/code/modules/atmospherics/environmental/LINDA_turf_tile.dm @@ -28,7 +28,7 @@ var/list/atmos_overlay_types //gas IDs of current active gas overlays -/turf/open/Initialize() +/turf/open/Initialize(mapload) if(!blocks_air) air = new(2500,src) air.copy_from_turf(src) diff --git a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm index c652a7f791..699d8d8353 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm @@ -39,7 +39,7 @@ fair_market_price = 10 payment_department = ACCOUNT_MED -/obj/machinery/atmospherics/components/unary/cryo_cell/Initialize() +/obj/machinery/atmospherics/components/unary/cryo_cell/Initialize(mapload) . = ..() initialize_directions = dir diff --git a/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm b/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm index 80a8ee4bf3..93d0bf8af7 100644 --- a/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm +++ b/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm @@ -24,7 +24,7 @@ var/heat_capacity = 0 var/interactive = TRUE // So mapmakers can disable interaction. -/obj/machinery/atmospherics/components/unary/thermomachine/Initialize() +/obj/machinery/atmospherics/components/unary/thermomachine/Initialize(mapload) . = ..() initialize_directions = dir @@ -197,7 +197,7 @@ on = TRUE icon_state = "freezer_1" -/obj/machinery/atmospherics/components/unary/thermomachine/freezer/on/Initialize() +/obj/machinery/atmospherics/components/unary/thermomachine/freezer/on/Initialize(mapload) . = ..() if(target_temperature == initial(target_temperature)) target_temperature = min_temperature @@ -205,7 +205,7 @@ /obj/machinery/atmospherics/components/unary/thermomachine/freezer/on/coldroom name = "cold room freezer" -/obj/machinery/atmospherics/components/unary/thermomachine/freezer/on/coldroom/Initialize() +/obj/machinery/atmospherics/components/unary/thermomachine/freezer/on/coldroom/Initialize(mapload) . = ..() target_temperature = T0C-80 diff --git a/code/modules/atmospherics/machinery/other/miner.dm b/code/modules/atmospherics/machinery/other/miner.dm index 1caae1376f..47deaba3c7 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/heat_exchange/he_pipes.dm b/code/modules/atmospherics/machinery/pipes/heat_exchange/he_pipes.dm index 5fdedd5be7..b71c16b2ff 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 @@ resistance_flags = LAVA_PROOF | FIRE_PROOF interacts_with_air = TRUE -/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/heat_exchange/manifold.dm b/code/modules/atmospherics/machinery/pipes/heat_exchange/manifold.dm index ce4aba6ab7..d2c5123527 100644 --- a/code/modules/atmospherics/machinery/pipes/heat_exchange/manifold.dm +++ b/code/modules/atmospherics/machinery/pipes/heat_exchange/manifold.dm @@ -16,7 +16,7 @@ var/mutable_appearance/center -/obj/machinery/atmospherics/pipe/heat_exchanging/manifold/Initialize() +/obj/machinery/atmospherics/pipe/heat_exchanging/manifold/Initialize(mapload) icon_state = "" center = mutable_appearance(icon, "manifold_center") return ..() diff --git a/code/modules/atmospherics/machinery/pipes/layermanifold.dm b/code/modules/atmospherics/machinery/pipes/layermanifold.dm index d019a03140..8a300e23f3 100644 --- a/code/modules/atmospherics/machinery/pipes/layermanifold.dm +++ b/code/modules/atmospherics/machinery/pipes/layermanifold.dm @@ -14,7 +14,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/pipes/manifold.dm b/code/modules/atmospherics/machinery/pipes/manifold.dm index 3f061e3779..d0b054fa3e 100644 --- a/code/modules/atmospherics/machinery/pipes/manifold.dm +++ b/code/modules/atmospherics/machinery/pipes/manifold.dm @@ -17,7 +17,7 @@ var/mutable_appearance/center -/obj/machinery/atmospherics/pipe/manifold/Initialize() +/obj/machinery/atmospherics/pipe/manifold/Initialize(mapload) icon_state = "" center = mutable_appearance(icon, "manifold_center") return ..() diff --git a/code/modules/atmospherics/machinery/pipes/manifold4w.dm b/code/modules/atmospherics/machinery/pipes/manifold4w.dm index bbceff56da..dd4cc1402c 100644 --- a/code/modules/atmospherics/machinery/pipes/manifold4w.dm +++ b/code/modules/atmospherics/machinery/pipes/manifold4w.dm @@ -16,7 +16,7 @@ var/mutable_appearance/center -/obj/machinery/atmospherics/pipe/manifold4w/Initialize() +/obj/machinery/atmospherics/pipe/manifold4w/Initialize(mapload) icon_state = "" center = mutable_appearance(icon, "manifold4w_center") return ..() diff --git a/code/modules/atmospherics/machinery/portable/pump.dm b/code/modules/atmospherics/machinery/portable/pump.dm index 68708c3233..12598b99d9 100644 --- a/code/modules/atmospherics/machinery/portable/pump.dm +++ b/code/modules/atmospherics/machinery/portable/pump.dm @@ -15,7 +15,7 @@ volume = 1000 -/obj/machinery/portable_atmospherics/pump/Initialize() +/obj/machinery/portable_atmospherics/pump/Initialize(mapload) . = ..() pump = new(src, FALSE) pump.on = TRUE diff --git a/code/modules/awaymissions/away_props.dm b/code/modules/awaymissions/away_props.dm index 36ed9b6ba3..72eeecedf4 100644 --- a/code/modules/awaymissions/away_props.dm +++ b/code/modules/awaymissions/away_props.dm @@ -20,7 +20,7 @@ invisibility = INVISIBILITY_MAXIMUM var/strength = 30 -/obj/effect/wind/Initialize() +/obj/effect/wind/Initialize(mapload) . = ..() START_PROCESSING(SSobj,src) diff --git a/code/modules/awaymissions/capture_the_flag.dm b/code/modules/awaymissions/capture_the_flag.dm index d32905e007..641a88ce22 100644 --- a/code/modules/awaymissions/capture_the_flag.dm +++ b/code/modules/awaymissions/capture_the_flag.dm @@ -35,7 +35,7 @@ QDEL_NULL(reset) return ..() -/obj/item/ctf/Initialize() +/obj/item/ctf/Initialize(mapload) . = ..() if(!reset) reset = new reset_path(get_turf(src)) @@ -167,7 +167,7 @@ var/static/arena_reset = FALSE var/static/list/people_who_want_to_play = list() -/obj/machinery/capture_the_flag/Initialize() +/obj/machinery/capture_the_flag/Initialize(mapload) . = ..() GLOB.poi_list |= src diff --git a/code/modules/awaymissions/corpse.dm b/code/modules/awaymissions/corpse.dm index 668a8dcb92..76af33b613 100644 --- a/code/modules/awaymissions/corpse.dm +++ b/code/modules/awaymissions/corpse.dm @@ -36,7 +36,7 @@ ///override this to add special spawn conditions to a ghost role /obj/effect/mob_spawn/proc/allow_spawn(mob/user, silent = FALSE) return TRUE - + //ATTACK GHOST IGNORING PARENT RETURN VALUE /obj/effect/mob_spawn/attack_ghost(mob/user, latejoinercalling) if(!SSticker.HasRoundStarted() || !loc || !ghost_usable) @@ -184,7 +184,7 @@ var/facial_hair_style 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 8aa265d39f..767304f799 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_icon() portal_visuals = new @@ -231,7 +231,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/Cabin.dm b/code/modules/awaymissions/mission_code/Cabin.dm index 3ad7c7cb50..b5ff23d75b 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 = 1 -/obj/structure/firepit/Initialize() +/obj/structure/firepit/Initialize(mapload) ..() toggleFirepit() diff --git a/code/modules/awaymissions/mission_code/jungleresort.dm b/code/modules/awaymissions/mission_code/jungleresort.dm index f520cfdbee..8c5b7c4946 100644 --- a/code/modules/awaymissions/mission_code/jungleresort.dm +++ b/code/modules/awaymissions/mission_code/jungleresort.dm @@ -32,7 +32,7 @@ else UnregisterSignal(M, COMSIG_MOB_SAY) -/obj/item/clothing/head/rice_hat/cursed/Initialize() +/obj/item/clothing/head/rice_hat/cursed/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, SHAMEBRERO_TRAIT) diff --git a/code/modules/awaymissions/mission_code/murderdome.dm b/code/modules/awaymissions/mission_code/murderdome.dm index 2a7cb21841..eef757cf8e 100644 --- a/code/modules/awaymissions/mission_code/murderdome.dm +++ b/code/modules/awaymissions/mission_code/murderdome.dm @@ -26,7 +26,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 962abc59fd..f72e0132cd 100644 --- a/code/modules/awaymissions/mission_code/stationCollision.dm +++ b/code/modules/awaymissions/mission_code/stationCollision.dm @@ -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 diff --git a/code/modules/awaymissions/signpost.dm b/code/modules/awaymissions/signpost.dm index 4d85d947c2..a53384c6fa 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 af801e1e42..2c01a66d43 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)) diff --git a/code/modules/awaymissions/zlevel.dm b/code/modules/awaymissions/zlevel.dm index 1e2e1fe43c..a30e51a0a3 100644 --- a/code/modules/awaymissions/zlevel.dm +++ b/code/modules/awaymissions/zlevel.dm @@ -21,7 +21,7 @@ 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/cargo/blackmarket/blackmarket_telepad.dm b/code/modules/cargo/blackmarket/blackmarket_telepad.dm index eb986a443a..1ad1496e60 100644 --- a/code/modules/cargo/blackmarket/blackmarket_telepad.dm +++ b/code/modules/cargo/blackmarket/blackmarket_telepad.dm @@ -25,7 +25,7 @@ var/transmitting // Current /datum/blackmarket_purchase being sent to the target uplink. var/list/datum/blackmarket_purchase/queue = list() // Queue for purchases that the machine should recieve and send. -/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 7d5b333f13..0c397fa7d6 100644 --- a/code/modules/cargo/blackmarket/blackmarket_uplink.dm +++ b/code/modules/cargo/blackmarket/blackmarket_uplink.dm @@ -1,6 +1,6 @@ /obj/item/blackmarket_uplink name = "Black Market Uplink" - desc = "A mishmash of a subspace amplifier, a radio, and an analyzer. Somehow able to access the black market, with a variable inventory in limited stock at inflated prices. No refunds, customer responsible for pick-ups." + desc = "A mishmash of a subspace amplifier, a radio, and an analyzer. Somehow able to access the black market, with a variable inventory in limited stock at inflated prices. No refunds, customer responsible for pick-ups." icon = 'icons/obj/blackmarket.dmi' icon_state = "uplink" // UI variables. @@ -13,7 +13,7 @@ var/money = 0 // How much money is inserted into the uplink. var/list/accessible_markets = list(/datum/blackmarket_market/blackmarket) // List of typepaths for "/datum/blackmarket_market"s that this uplink can access. -/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/bounty_console.dm b/code/modules/cargo/bounty_console.dm index 8a29715016..b2ee0e0e1a 100644 --- a/code/modules/cargo/bounty_console.dm +++ b/code/modules/cargo/bounty_console.dm @@ -9,7 +9,7 @@ var/printer_ready = 0 //cooldown var var/static/datum/bank_account/cargocash -/obj/machinery/computer/bounty/Initialize() +/obj/machinery/computer/bounty/Initialize(mapload) . = ..() printer_ready = world.time + PRINTER_TIMEOUT cargocash = SSeconomy.get_dep_account(ACCOUNT_CAR) @@ -20,7 +20,7 @@ /obj/item/paper/bounty_printout name = "paper - Bounties" -/obj/item/paper/bounty_printout/Initialize() +/obj/item/paper/bounty_printout/Initialize(mapload) . = ..() info = "

Nanotrasen Cargo Bounties


" update_icon() diff --git a/code/modules/cargo/console.dm b/code/modules/cargo/console.dm index 9801b165c7..b0eb932d85 100644 --- a/code/modules/cargo/console.dm +++ b/code/modules/cargo/console.dm @@ -34,7 +34,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/expressconsole.dm b/code/modules/cargo/expressconsole.dm index c065c387c5..50f9541b1e 100644 --- a/code/modules/cargo/expressconsole.dm +++ b/code/modules/cargo/expressconsole.dm @@ -26,7 +26,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/supplypod.dm b/code/modules/cargo/supplypod.dm index 2bdd84141c..5a7451f831 100644 --- a/code/modules/cargo/supplypod.dm +++ b/code/modules/cargo/supplypod.dm @@ -89,7 +89,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 697afd4885..c13ecb4c7e 100644 --- a/code/modules/clothing/chameleon.dm +++ b/code/modules/clothing/chameleon.dm @@ -289,7 +289,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/under/chameleon) icon_state = "engine" item_state = "engi_suit" -/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 @@ -303,7 +303,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/under/chameleon) 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) @@ -318,7 +318,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/suit/chameleon) 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 @@ -332,7 +332,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/suit/chameleon) 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) @@ -346,7 +346,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/glasses/chameleon) 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 @@ -360,7 +360,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/glasses/chameleon) 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) @@ -378,7 +378,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/gloves/chameleon) CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/gloves/chameleon/insulated) siemens_coefficient = 0 -/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 @@ -392,7 +392,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/gloves/chameleon/insulated) 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) @@ -406,7 +406,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/head/chameleon) 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 @@ -420,7 +420,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/head/chameleon) 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) @@ -430,7 +430,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/head/chameleon) 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() @@ -456,7 +456,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/mask/chameleon) 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 @@ -470,7 +470,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/mask/chameleon) 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) @@ -484,7 +484,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/mask/chameleon) // 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() @@ -507,7 +507,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/shoes/chameleon) 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 @@ -527,7 +527,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/shoes/chameleon/noslip) desc = "A pair of black shoes." clothing_flags = NOSLIP -/obj/item/clothing/shoes/chameleon/noslip/broken/Initialize() +/obj/item/clothing/shoes/chameleon/noslip/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) @@ -535,7 +535,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/storage/backpack/chameleon) 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 @@ -548,7 +548,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/storage/backpack/chameleon) 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) @@ -557,7 +557,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/storage/belt/chameleon) 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) @@ -576,7 +576,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/storage/belt/chameleon) 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) @@ -584,7 +584,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/radio/headset/chameleon) 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 @@ -597,7 +597,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/radio/headset/chameleon) 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) @@ -605,7 +605,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/pda/chameleon) 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 @@ -619,21 +619,21 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/pda/chameleon) return chameleon_action.emp_randomise() -/obj/item/pda/chameleon/broken/Initialize() +/obj/item/pda/chameleon/broken/Initialize(mapload) . = ..() chameleon_action.emp_randomise(INFINITY) CHAMELEON_CLOTHING_DEFINE(/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) @@ -648,7 +648,7 @@ CHAMELEON_CLOTHING_DEFINE(/obj/item/clothing/neck/cloak/chameleon) /obj/item/clothing/neck/cloak/chameleon var/datum/action/item_action/chameleon/change/chameleon_action -/obj/item/clothing/neck/cloak/chameleon/Initialize() +/obj/item/clothing/neck/cloak/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/clothing/neck diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 572cce28b2..c3e658518b 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -63,7 +63,7 @@ ///These are armor values that protect the clothing, taken from its armor datum. List updates on examine because it's currently only used to print armor ratings to chat in Topic(). var/list/durability_list = list() -/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/ears/_ears.dm b/code/modules/clothing/ears/_ears.dm index a2f0c80041..35871fb142 100644 --- a/code/modules/clothing/ears/_ears.dm +++ b/code/modules/clothing/ears/_ears.dm @@ -33,7 +33,7 @@ var/headphones_on = FALSE custom_price = PRICE_ALMOST_CHEAP -/obj/item/clothing/ears/headphones/Initialize() +/obj/item/clothing/ears/headphones/Initialize(mapload) . = ..() update_icon() diff --git a/code/modules/clothing/glasses/_glasses.dm b/code/modules/clothing/glasses/_glasses.dm index 9726ab6b59..d89c02f241 100644 --- a/code/modules/clothing/glasses/_glasses.dm +++ b/code/modules/clothing/glasses/_glasses.dm @@ -299,7 +299,7 @@ actions_types = list(/datum/action/item_action/flash) var/obj/item/assembly/flash/installed -/obj/item/clothing/glasses/sunglasses/stunglasses/Initialize() +/obj/item/clothing/glasses/sunglasses/stunglasses/Initialize(mapload) . = ..() if (!installed) installed = new(src) @@ -491,7 +491,7 @@ lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE resistance_flags = LAVA_PROOF | FIRE_PROOF -/obj/item/clothing/glasses/godeye/Initialize() +/obj/item/clothing/glasses/godeye/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, EYE_OF_GOD_TRAIT) diff --git a/code/modules/clothing/glasses/engine_goggles.dm b/code/modules/clothing/glasses/engine_goggles.dm index d7e7ae3669..461648c270 100644 --- a/code/modules/clothing/glasses/engine_goggles.dm +++ b/code/modules/clothing/glasses/engine_goggles.dm @@ -26,7 +26,7 @@ desc = "Goggles used by engineers. The Meson Scanner mode lets you see basic structural and terrain layouts through walls, the T-ray Scanner mode lets you see underfloor objects such as cables and pipes, and the Radiation Scanner mode let's you see objects contaminated by radiation. Each lens has been replaced with a corrective lens." vision_correction = 1 -/obj/item/clothing/glasses/meson/engine/Initialize() +/obj/item/clothing/glasses/meson/engine/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) update_icon() diff --git a/code/modules/clothing/gloves/color.dm b/code/modules/clothing/gloves/color.dm index 1e3f2c08cf..08b9c4fd23 100644 --- a/code/modules/clothing/gloves/color.dm +++ b/code/modules/clothing/gloves/color.dm @@ -44,7 +44,7 @@ resistance_flags = ACID_PROOF var/shocks_remaining = 10 -/obj/item/clothing/gloves/color/yellow/sprayon/Initialize() +/obj/item/clothing/gloves/color/yellow/sprayon/Initialize(mapload) .=..() ADD_TRAIT(src, TRAIT_NODROP, GLOVE_TRAIT) @@ -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/miscellaneous.dm b/code/modules/clothing/gloves/miscellaneous.dm index 381e70161b..88e6f79582 100644 --- a/code/modules/clothing/gloves/miscellaneous.dm +++ b/code/modules/clothing/gloves/miscellaneous.dm @@ -98,7 +98,7 @@ secondary_trait = TRAIT_ANTIMAGIC var/chaplain_spawnable = TRUE -/obj/item/clothing/gloves/fingerless/pugilist/chaplain/Initialize() +/obj/item/clothing/gloves/fingerless/pugilist/chaplain/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, TRUE, TRUE, FALSE, null, null, FALSE) @@ -138,7 +138,7 @@ var/warcry = "AT" secondary_trait = TRAIT_NOSOFTCRIT //basically extra health -/obj/item/clothing/gloves/fingerless/pugilist/rapid/Initialize() +/obj/item/clothing/gloves/fingerless/pugilist/rapid/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, GLOVE_TRAIT) diff --git a/code/modules/clothing/gloves/mittens.dm b/code/modules/clothing/gloves/mittens.dm index b1b17c9afe..2d00da6780 100644 --- a/code/modules/clothing/gloves/mittens.dm +++ b/code/modules/clothing/gloves/mittens.dm @@ -12,7 +12,7 @@ /obj/item/clothing/gloves/mittens/random -/obj/item/clothing/gloves/mittens/random/Initialize() +/obj/item/clothing/gloves/mittens/random/Initialize(mapload) ..() var/colours = list("black", "yellow", "lightbrown", "brown", "orange", "red", "purple", "green", "blue", "kitten") var/picked_c = pick(colours) diff --git a/code/modules/clothing/head/_head.dm b/code/modules/clothing/head/_head.dm index ea58d0bc88..29a07fd177 100644 --- a/code/modules/clothing/head/_head.dm +++ b/code/modules/clothing/head/_head.dm @@ -10,7 +10,7 @@ dynamic_hair_suffix = "+generic" var/datum/beepsky_fashion/beepsky_fashion //the associated datum for applying this to a secbot -/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/hardhat.dm b/code/modules/clothing/head/hardhat.dm index 95ce887693..7a11221315 100644 --- a/code/modules/clothing/head/hardhat.dm +++ b/code/modules/clothing/head/hardhat.dm @@ -117,7 +117,7 @@ visor_flags_inv = HIDEEYES | HIDEFACE visor_flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH -/obj/item/clothing/head/hardhat/weldhat/Initialize() +/obj/item/clothing/head/hardhat/weldhat/Initialize(mapload) . = ..() update_icon() diff --git a/code/modules/clothing/head/jobs.dm b/code/modules/clothing/head/jobs.dm index 592614af61..173e5ed2ec 100644 --- a/code/modules/clothing/head/jobs.dm +++ b/code/modules/clothing/head/jobs.dm @@ -99,7 +99,7 @@ pocket_storage_component_path = /datum/component/storage/concrete/pockets/small/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) @@ -147,7 +147,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/misc.dm b/code/modules/clothing/head/misc.dm index eb48048c00..7b30aa0ce7 100644 --- a/code/modules/clothing/head/misc.dm +++ b/code/modules/clothing/head/misc.dm @@ -238,7 +238,7 @@ dog_fashion = null -/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/cluwne.dm b/code/modules/clothing/masks/cluwne.dm index f39f5e73b8..cc2105d5fc 100644 --- a/code/modules/clothing/masks/cluwne.dm +++ b/code/modules/clothing/masks/cluwne.dm @@ -12,7 +12,7 @@ var/last_sound = 0 var/delay = 15 -/obj/item/clothing/mask/gas/cluwne/Initialize() +/obj/item/clothing/mask/gas/cluwne/Initialize(mapload) .=..() ADD_TRAIT(src, TRAIT_NODROP, CLOTHING_TRAIT) ADD_TRAIT(src, CURSED_ITEM_TRAIT, CLOTHING_TRAIT) @@ -68,7 +68,7 @@ var/is_cursed = FALSE //i don't care that this is *slightly* memory wasteful, it's just one more byte and it's not like some madman is going to spawn thousands of these var/is_very_cursed = FALSE -/obj/item/clothing/mask/gas/cluwne/happy_cluwne/Initialize() +/obj/item/clothing/mask/gas/cluwne/happy_cluwne/Initialize(mapload) .=..() if(prob(1)) //this function pre-determines the logic of the cluwne mask. applying and reapplying the mask does not alter or change anything is_cursed = TRUE diff --git a/code/modules/clothing/masks/gasmask.dm b/code/modules/clothing/masks/gasmask.dm index d78488ec0b..b74078ef17 100644 --- a/code/modules/clothing/masks/gasmask.dm +++ b/code/modules/clothing/masks/gasmask.dm @@ -55,7 +55,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/masks/miscellaneous.dm b/code/modules/clothing/masks/miscellaneous.dm index 45da6a9a75..91fd34456f 100644 --- a/code/modules/clothing/masks/miscellaneous.dm +++ b/code/modules/clothing/masks/miscellaneous.dm @@ -133,7 +133,7 @@ flags_inv = HIDEFACIALHAIR clothing_flags = NONE -/obj/item/clothing/mask/pig/cursed/Initialize() +/obj/item/clothing/mask/pig/cursed/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CURSED_MASK_TRAIT) playsound(get_turf(src), 'sound/magic/pighead_curse.ogg', 50, 1) @@ -159,7 +159,7 @@ /obj/item/clothing/mask/frog/cursed clothing_flags = NONE -/obj/item/clothing/mask/frog/cursed/Initialize() +/obj/item/clothing/mask/frog/cursed/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CURSED_MASK_TRAIT) @@ -190,7 +190,7 @@ flags_inv = HIDEFACIALHAIR clothing_flags = NONE -/obj/item/clothing/mask/cowmask/cursed/Initialize() +/obj/item/clothing/mask/cowmask/cursed/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CURSED_MASK_TRAIT) playsound(get_turf(src), 'sound/magic/cowhead_curse.ogg', 50, 1) @@ -215,7 +215,7 @@ clothing_flags = NONE flags_inv = HIDEFACIALHAIR -/obj/item/clothing/mask/horsehead/cursed/Initialize() +/obj/item/clothing/mask/horsehead/cursed/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CURSED_MASK_TRAIT) playsound(get_turf(src), 'sound/magic/horsehead_curse.ogg', 50, 1) diff --git a/code/modules/clothing/neck/_neck.dm b/code/modules/clothing/neck/_neck.dm index 1f40df0f57..4f852fb301 100644 --- a/code/modules/clothing/neck/_neck.dm +++ b/code/modules/clothing/neck/_neck.dm @@ -175,7 +175,7 @@ var/tagname = null var/treat_path = /obj/item/reagent_containers/food/snacks/cookie -/obj/item/clothing/neck/petcollar/Initialize() +/obj/item/clothing/neck/petcollar/Initialize(mapload) . = ..() if(treat_path) new treat_path(src) diff --git a/code/modules/clothing/shoes/bananashoes.dm b/code/modules/clothing/shoes/bananashoes.dm index fe392881c6..c5949406f7 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/cluwne.dm b/code/modules/clothing/shoes/cluwne.dm index aec57a2148..ec135014e9 100644 --- a/code/modules/clothing/shoes/cluwne.dm +++ b/code/modules/clothing/shoes/cluwne.dm @@ -7,7 +7,7 @@ item_flags = DROPDEL var/footstep = 1 -/obj/item/clothing/shoes/clown_shoes/cluwne/Initialize() +/obj/item/clothing/shoes/clown_shoes/cluwne/Initialize(mapload) .=..() ADD_TRAIT(src, TRAIT_NODROP, CLOTHING_TRAIT) ADD_TRAIT(src, CURSED_ITEM_TRAIT, CLOTHING_TRAIT) diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index cd01d6f099..726b284632 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -56,7 +56,7 @@ /obj/item/clothing/shoes/magboots/advance/debug -/obj/item/clothing/shoes/magboots/advance/debug/Initialize() +/obj/item/clothing/shoes/magboots/advance/debug/Initialize(mapload) . = ..() var/mob/living/L = loc if(istype(L)) diff --git a/code/modules/clothing/shoes/miscellaneous.dm b/code/modules/clothing/shoes/miscellaneous.dm index 7a67308760..a6b88df318 100644 --- a/code/modules/clothing/shoes/miscellaneous.dm +++ b/code/modules/clothing/shoes/miscellaneous.dm @@ -106,7 +106,7 @@ var/datum/component/waddle var/enabled_waddle = TRUE -/obj/item/clothing/shoes/clown_shoes/Initialize() +/obj/item/clothing/shoes/clown_shoes/Initialize(mapload) . = ..() AddComponent(/datum/component/squeak, list('sound/effects/clownstep1.ogg'=1,'sound/effects/clownstep2.ogg'=1), 50) @@ -231,7 +231,7 @@ /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) @@ -321,7 +321,7 @@ icon_state = "clockwork_treads" lace_time = 8 SECONDS -/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) @@ -333,7 +333,7 @@ var/wheelToggle = FALSE //False means wheels are not popped out var/obj/vehicle/ridden/scooter/wheelys/W -/obj/item/clothing/shoes/wheelys/Initialize() +/obj/item/clothing/shoes/wheelys/Initialize(mapload) . = ..() W = new /obj/vehicle/ridden/scooter/wheelys(null) diff --git a/code/modules/clothing/spacesuits/hardsuit.dm b/code/modules/clothing/spacesuits/hardsuit.dm index d8a6426295..0aa0e4d418 100644 --- a/code/modules/clothing/spacesuits/hardsuit.dm +++ b/code/modules/clothing/spacesuits/hardsuit.dm @@ -18,7 +18,7 @@ var/grace_count = 0 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 @@ -108,7 +108,7 @@ 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) return ..() @@ -238,7 +238,7 @@ brightness_on = 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) @@ -271,7 +271,7 @@ heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS mutantrace_variation = STYLE_DIGITIGRADE|STYLE_ALL_TAURIC -/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) @@ -308,7 +308,7 @@ /obj/item/clothing/head/helmet/space/hardsuit/syndi/update_icon_state() icon_state = "hardsuit[on]-[hardsuit_type]" -/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 @@ -396,7 +396,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 @@ -522,7 +522,7 @@ clothing_flags = STOPSPRESSUREDAMAGE | THICKMATERIAL | BLOCK_GAS_SMOKE_EFFECT | ALLOWINTERNALS | SCAN_REAGENTS 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) . = ..() bomb_radar = new /obj/machinery/doppler_array/integrated(src) @@ -568,7 +568,7 @@ helmettype = /obj/item/clothing/head/helmet/space/hardsuit/security mutantrace_variation = STYLE_DIGITIGRADE|STYLE_ALL_TAURIC -/obj/item/clothing/suit/space/hardsuit/security/Initialize() +/obj/item/clothing/suit/space/hardsuit/security/Initialize(mapload) . = ..() allowed = GLOB.security_hardsuit_allowed @@ -615,7 +615,7 @@ max_heat_protection_temperature = FIRE_IMMUNITY_MAX_TEMP_PROTECT //this needed to be added a long fucking time ago helmettype = /obj/item/clothing/head/helmet/space/hardsuit/captain -/obj/item/clothing/suit/space/hardsuit/captain/Initialize() +/obj/item/clothing/suit/space/hardsuit/captain/Initialize(mapload) . = ..() allowed = GLOB.security_hardsuit_allowed @@ -696,7 +696,7 @@ clothing_flags = STOPSPRESSUREDAMAGE | THICKMATERIAL | BLOCK_GAS_SMOKE_EFFECT | ALLOWINTERNALS | SCAN_REAGENTS resistance_flags = LAVA_PROOF | FIRE_PROOF | ACID_PROOF -/obj/item/clothing/head/helmet/space/hardsuit/ancient/mason/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/ancient/mason/Initialize(mapload) . = ..() bomb_radar = new /obj/machinery/doppler_array/integrated(src) @@ -765,7 +765,7 @@ helmettype = /obj/item/clothing/head/helmet/space/hardsuit/soviet mutantrace_variation = NONE -/obj/item/clothing/suit/space/hardsuit/soviet/Initialize() +/obj/item/clothing/suit/space/hardsuit/soviet/Initialize(mapload) . = ..() allowed = GLOB.security_hardsuit_allowed @@ -785,7 +785,7 @@ var/recharge_rate = 1 //How quickly the shield recharges once it starts charging var/shield_state = "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 @@ -810,7 +810,7 @@ slowdown = 0 max_charges = 5 -/obj/item/clothing/suit/space/hardsuit/shielded/ctf/Initialize() +/obj/item/clothing/suit/space/hardsuit/shielded/ctf/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CAPTURE_THE_FLAG_TRAIT) @@ -863,7 +863,7 @@ slowdown = 0 mutantrace_variation = STYLE_DIGITIGRADE|STYLE_ALL_TAURIC -/obj/item/clothing/suit/space/hardsuit/shielded/syndi/Initialize() +/obj/item/clothing/suit/space/hardsuit/shielded/syndi/Initialize(mapload) jetpack = new /obj/item/tank/jetpack/suit(src) . = ..() @@ -921,7 +921,7 @@ var/obj/item/clothing/suit/space/hardsuit/lavaknight/linkedsuit = null mutantrace_variation = NONE -/obj/item/clothing/head/helmet/space/hardsuit/lavaknight/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/lavaknight/Initialize(mapload) . = ..() if(istype(loc, /obj/item/clothing/suit/space/hardsuit/lavaknight)) var/obj/item/clothing/suit/space/hardsuit/lavaknight/S = loc @@ -964,7 +964,7 @@ heat_protection = CHEST|GROIN|LEGS|FEET|ARMS|HANDS var/energy_color = "#35FFF0" -/obj/item/clothing/suit/space/hardsuit/lavaknight/Initialize() +/obj/item/clothing/suit/space/hardsuit/lavaknight/Initialize(mapload) ..() light_color = energy_color set_light(1) diff --git a/code/modules/clothing/spacesuits/miscellaneous.dm b/code/modules/clothing/spacesuits/miscellaneous.dm index f51593b590..b135cd2bc5 100644 --- a/code/modules/clothing/spacesuits/miscellaneous.dm +++ b/code/modules/clothing/spacesuits/miscellaneous.dm @@ -180,7 +180,7 @@ Contains: brightness_on = 7 resistance_flags = ACID_PROOF -/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) @@ -367,7 +367,7 @@ Contains: actions_types = list() mutantrace_variation = NONE -/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) @@ -395,7 +395,7 @@ Contains: mutantrace_variation = NONE var/charges = INFINITY -/obj/item/clothing/head/helmet/space/hardsuit/ert/paranormal/Initialize() +/obj/item/clothing/head/helmet/space/hardsuit/ert/paranormal/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, FALSE, FALSE, TRUE, ITEM_SLOT_HEAD, charges, TRUE, null, CALLBACK(src, .proc/anti_magic_gone)) @@ -416,7 +416,7 @@ Contains: resistance_flags = FIRE_PROOF var/charges = INFINITY -/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, FALSE, ITEM_SLOT_OCLOTHING, charges, TRUE, null, CALLBACK(src, .proc/anti_magic_gone)) diff --git a/code/modules/clothing/spacesuits/plasmamen.dm b/code/modules/clothing/spacesuits/plasmamen.dm index 25ad19eee4..5117d7f811 100644 --- a/code/modules/clothing/spacesuits/plasmamen.dm +++ b/code/modules/clothing/spacesuits/plasmamen.dm @@ -58,7 +58,7 @@ visor_flags_inv = HIDEEYES|HIDEFACE|HIDEFACIALHAIR mutantrace_variation = NONE -/obj/item/clothing/head/helmet/space/plasmaman/Initialize() +/obj/item/clothing/head/helmet/space/plasmaman/Initialize(mapload) . = ..() visor_toggling() update_icon() diff --git a/code/modules/clothing/suits/armor.dm b/code/modules/clothing/suits/armor.dm index 90fd0b2812..acc29423f2 100644 --- a/code/modules/clothing/suits/armor.dm +++ b/code/modules/clothing/suits/armor.dm @@ -11,7 +11,7 @@ armor = list("melee" = 30, "bullet" = 30, "laser" = 30, "energy" = 10, "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 @@ -145,7 +145,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 @@ -207,7 +207,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 @@ -336,7 +336,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 @@ -349,6 +349,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/jobs.dm b/code/modules/clothing/suits/jobs.dm index 13bfd8b460..aaa08ff791 100644 --- a/code/modules/clothing/suits/jobs.dm +++ b/code/modules/clothing/suits/jobs.dm @@ -107,7 +107,7 @@ heat_protection = CHEST|GROIN|LEGS|ARMS mutantrace_variation = STYLE_DIGITIGRADE|STYLE_NO_ANTHRO_ICON -/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/miscellaneous.dm b/code/modules/clothing/suits/miscellaneous.dm index 57d2ae5c69..cea27f1ec0 100644 --- a/code/modules/clothing/suits/miscellaneous.dm +++ b/code/modules/clothing/suits/miscellaneous.dm @@ -185,7 +185,7 @@ body_parts_covered = ARMS 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 @@ -259,7 +259,7 @@ icon_state = "ponchoshame" item_state = "ponchoshame" -/obj/item/clothing/suit/poncho/ponchoshame/Initialize() +/obj/item/clothing/suit/poncho/ponchoshame/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, SHAMEBRERO_TRAIT) @@ -692,7 +692,7 @@ armor = list("melee" = 40, "bullet" = 45, "laser" = 45, "energy" = 35, "bomb" = 40, "bio" = 25, "rad" = 25, "fire" = 35, "acid" = 50) 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 @@ -708,7 +708,7 @@ armor = list("melee" = 25, "bullet" = 30, "laser" = 30, "energy" = 10, "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 @@ -736,7 +736,7 @@ armor = list("melee" = 25, "bullet" = 15, "laser" = 30, "energy" = 10, "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 @@ -752,7 +752,7 @@ armor = list("melee" = 35, "bullet" = 35, "laser" = 35, "energy" = 15, "bomb" = 30, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 55) hoodtype = /obj/item/clothing/head/hooded/winterhood/hos -/obj/item/clothing/suit/hooded/wintercoat/hos/Initialize() +/obj/item/clothing/suit/hooded/wintercoat/hos/Initialize(mapload) . = ..() allowed = GLOB.security_wintercoat_allowed @@ -1089,7 +1089,7 @@ armor = list("melee" = 15, "bullet" = 8, "laser" = 25, "energy" = 5, "bomb" = 12, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 50) hoodtype = /obj/item/clothing/head/hooded/winterhood/durathread -/obj/item/clothing/suit/hooded/wintercoat/durathread/Initialize() +/obj/item/clothing/suit/hooded/wintercoat/durathread/Initialize(mapload) . = ..() allowed = GLOB.security_wintercoat_allowed diff --git a/code/modules/clothing/suits/toggles.dm b/code/modules/clothing/suits/toggles.dm index 5ee247e135..25cbf27cf6 100644 --- a/code/modules/clothing/suits/toggles.dm +++ b/code/modules/clothing/suits/toggles.dm @@ -8,7 +8,7 @@ var/alternative_mode = FALSE var/no_t //do not update sprites when pulling up hood so we can avoid oddities with certain mechanics -/obj/item/clothing/suit/hooded/Initialize() +/obj/item/clothing/suit/hooded/Initialize(mapload) . = ..() hood = MakeHelmet() @@ -146,7 +146,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) . = ..() helmet = MakeHelmet() diff --git a/code/modules/clothing/under/accessories.dm b/code/modules/clothing/under/accessories.dm index 40d30235d8..062aa2d4b2 100644 --- a/code/modules/clothing/under/accessories.dm +++ b/code/modules/clothing/under/accessories.dm @@ -480,13 +480,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/cluwne.dm b/code/modules/clothing/under/cluwne.dm index e1af4b5171..572a2017e6 100644 --- a/code/modules/clothing/under/cluwne.dm +++ b/code/modules/clothing/under/cluwne.dm @@ -8,7 +8,7 @@ can_adjust = 0 mutantrace_variation = STYLE_DIGITIGRADE|STYLE_NO_ANTHRO_ICON -/obj/item/clothing/under/cluwne/Initialize() +/obj/item/clothing/under/cluwne/Initialize(mapload) .=..() ADD_TRAIT(src, TRAIT_NODROP, CLOTHING_TRAIT) ADD_TRAIT(src, CURSED_ITEM_TRAIT, CLOTHING_TRAIT) diff --git a/code/modules/clothing/under/color.dm b/code/modules/clothing/under/color.dm index 06d2771d88..215be905aa 100644 --- a/code/modules/clothing/under/color.dm +++ b/code/modules/clothing/under/color.dm @@ -11,7 +11,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) - subtypesof(/obj/item/clothing/under/color/jumpskirt) - /obj/item/clothing/under/color/random - /obj/item/clothing/under/color/grey/glorf - /obj/item/clothing/under/color/black/ghost) @@ -25,7 +25,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) if(ishuman(loc)) @@ -54,11 +54,11 @@ /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) -/obj/item/clothing/under/color/black/ghost/Initialize() +/obj/item/clothing/under/color/black/ghost/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, DROPDEL) /obj/item/clothing/under/color/grey diff --git a/code/modules/clothing/under/costume.dm b/code/modules/clothing/under/costume.dm index 9ebc79bd41..50da2d79c8 100644 --- a/code/modules/clothing/under/costume.dm +++ b/code/modules/clothing/under/costume.dm @@ -85,7 +85,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) @@ -125,7 +125,7 @@ can_adjust = FALSE mutantrace_variation = STYLE_DIGITIGRADE|STYLE_NO_ANTHRO_ICON -/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) @@ -282,7 +282,7 @@ can_adjust = FALSE fitted = FEMALE_UNIFORM_TOP mutantrace_variation = STYLE_DIGITIGRADE|STYLE_NO_ANTHRO_ICON - + /obj/item/clothing/under/costume/qipao/white name = "White Qipao" diff --git a/code/modules/clothing/under/jobs/civilian/clown_mime.dm b/code/modules/clothing/under/jobs/civilian/clown_mime.dm index 25c40ee5d8..cf4d7672ce 100644 --- a/code/modules/clothing/under/jobs/civilian/clown_mime.dm +++ b/code/modules/clothing/under/jobs/civilian/clown_mime.dm @@ -118,6 +118,6 @@ can_adjust = FALSE mutantrace_variation = STYLE_DIGITIGRADE|USE_TAUR_CLIP_MASK -/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) diff --git a/code/modules/events/pirates.dm b/code/modules/events/pirates.dm index 31859b4fc0..47a466bf0a 100644 --- a/code/modules/events/pirates.dm +++ b/code/modules/events/pirates.dm @@ -275,7 +275,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 347162d9c5..38d52797d7 100644 --- a/code/modules/events/shuttle_loan.dm +++ b/code/modules/events/shuttle_loan.dm @@ -271,7 +271,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) . = ..() setAnchored(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/spacevine.dm b/code/modules/events/spacevine.dm index ed6a087cd9..dd806c8eca 100644 --- a/code/modules/events/spacevine.dm +++ b/code/modules/events/spacevine.dm @@ -276,7 +276,7 @@ var/datum/spacevine_controller/master = null var/list/mutations = list() -/obj/structure/spacevine/Initialize() +/obj/structure/spacevine/Initialize(mapload) . = ..() add_atom_colour("#ffffff", FIXED_COLOUR_PRIORITY) diff --git a/code/modules/events/travelling_trader.dm b/code/modules/events/travelling_trader.dm index f7cbba2e4a..03aabc940b 100644 --- a/code/modules/events/travelling_trader.dm +++ b/code/modules/events/travelling_trader.dm @@ -98,7 +98,7 @@ var/reward = pickweight(possible_rewards) new reward(get_turf(src)) -/mob/living/carbon/human/dummy/travelling_trader/Initialize() +/mob/living/carbon/human/dummy/travelling_trader/Initialize(mapload) . = ..() // return a hint you fuck add_atom_colour("#570d6b", FIXED_COLOUR_PRIORITY) //make them purple (otherworldly!) set_light(1, -0.7, "#AAD84B") @@ -134,7 +134,7 @@ /obj/item/kitchen/fork/throwing = 1, /mob/living/simple_animal/cow/random = 1) -/mob/living/carbon/human/dummy/travelling_trader/cook/Initialize() +/mob/living/carbon/human/dummy/travelling_trader/cook/Initialize(mapload) //pick a random crafted food item as the requested item var/datum/crafting_recipe/food_recipe = pick(subtypesof(/datum/crafting_recipe/food)) var/result = initial(food_recipe.result) @@ -158,7 +158,7 @@ /obj/item/seeds/gatfruit = 1) //overall you have less chance of seeing them than a lifebringer just bringing the seeds to you directly -/mob/living/carbon/human/dummy/travelling_trader/gardener/Initialize() +/mob/living/carbon/human/dummy/travelling_trader/gardener/Initialize(mapload) requested_item = pick(subtypesof(/obj/item/reagent_containers/food/snacks/grown) - list(/obj/item/reagent_containers/food/snacks/grown/shell, /obj/item/reagent_containers/food/snacks/grown/shell/gatfruit, /obj/item/reagent_containers/food/snacks/grown/cherry_bomb)) @@ -188,7 +188,7 @@ /mob/living/simple_animal/hostile/netherworld/blankbody = 1, /mob/living/simple_animal/hostile/retaliate/goose = 1) -/mob/living/carbon/human/dummy/travelling_trader/animal_hunter/Initialize() +/mob/living/carbon/human/dummy/travelling_trader/animal_hunter/Initialize(mapload) . = ..() acceptance_speech = pick(list("This lifeform shall make for a great stew, thank you.", "This lifeform shall be of a true use to our cause, thank you.", "The lifeform is adequate. Goodbye.", "This lifeform shall make a great addition to my collection.")) @@ -222,7 +222,7 @@ /obj/structure/reagent_dispensers/keg/narsour = 3, /obj/structure/reagent_dispensers/keg/quintuple_sec = 3) -/mob/living/carbon/human/dummy/travelling_trader/bartender/Initialize() //pick a subtype of ethanol that isn't found in the default set of the booze dispensers reagents +/mob/living/carbon/human/dummy/travelling_trader/bartender/Initialize(mapload) //pick a subtype of ethanol that isn't found in the default set of the booze dispensers reagents . = ..() // RETURN A HINT. requested_item = pick(subtypesof(/datum/reagent/consumable/ethanol) - list(/datum/reagent/consumable/ethanol/beer, /datum/reagent/consumable/ethanol/kahlua, @@ -276,7 +276,7 @@ /obj/item/stack/sticky_tape/infinite = 2, /obj/item/clothing/suit/hooded/wintercoat/cosmic = 2) -/mob/living/carbon/human/dummy/travelling_trader/artifact_dealer/Initialize() +/mob/living/carbon/human/dummy/travelling_trader/artifact_dealer/Initialize(mapload) possible_rewards += list(pick(subtypesof(/obj/item/clothing/head/collectable)) = 1) //this is slightly lower because it's absolutely useless ..() diff --git a/code/modules/events/wizard/magicarp.dm b/code/modules/events/wizard/magicarp.dm index 57e2a2a051..052143722e 100644 --- a/code/modules/events/wizard/magicarp.dm +++ b/code/modules/events/wizard/magicarp.dm @@ -41,7 +41,7 @@ /obj/item/projectile/magic/death, /obj/item/projectile/magic/teleport, /obj/item/projectile/magic/door, /obj/item/projectile/magic/aoe/fireball, /obj/item/projectile/magic/spellblade, /obj/item/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/fields/fields.dm b/code/modules/fields/fields.dm index 8c7b414996..0bdabf5e8e 100644 --- a/code/modules/fields/fields.dm +++ b/code/modules/fields/fields.dm @@ -289,7 +289,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 a2e822ba08..72b1c43a38 100644 --- a/code/modules/flufftext/Hallucination.dm +++ b/code/modules/flufftext/Hallucination.dm @@ -1122,7 +1122,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) diff --git a/code/modules/food_and_drinks/drinks/drinks.dm b/code/modules/food_and_drinks/drinks/drinks.dm index 0370c087d9..a6a632b859 100644 --- a/code/modules/food_and_drinks/drinks/drinks.dm +++ b/code/modules/food_and_drinks/drinks/drinks.dm @@ -532,7 +532,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 1c151511af..0c6b06813e 100644 --- a/code/modules/food_and_drinks/drinks/drinks/bottle.dm +++ b/code/modules/food_and_drinks/drinks/drinks/bottle.dm @@ -89,7 +89,7 @@ var/icon/broken_outline = icon('icons/obj/drinks.dmi', "broken") sharpness = SHARP_EDGED -/obj/item/broken_bottle/Initialize() +/obj/item/broken_bottle/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 200, 55) @@ -243,7 +243,7 @@ /obj/item/reagent_containers/food/drinks/bottle/absinthe/empty list_reagents = null -/obj/item/reagent_containers/food/drinks/bottle/absinthe/Initialize() +/obj/item/reagent_containers/food/drinks/bottle/absinthe/Initialize(mapload) . = ..() redact() @@ -332,7 +332,7 @@ /obj/item/reagent_containers/food/drinks/bottle/sake/empty list_reagents = null -/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" @@ -509,7 +509,7 @@ ..() add_overlay("[initial(icon_state)]shine") -/obj/item/reagent_containers/food/drinks/bottle/blank/Initialize() +/obj/item/reagent_containers/food/drinks/bottle/blank/Initialize(mapload) . = ..() update_icon() diff --git a/code/modules/food_and_drinks/drinks/drinks/drinkingglass.dm b/code/modules/food_and_drinks/drinks/drinks/drinkingglass.dm index 9602c1d24e..4a4ee40f60 100644 --- a/code/modules/food_and_drinks/drinks/drinks/drinkingglass.dm +++ b/code/modules/food_and_drinks/drinks/drinks/drinkingglass.dm @@ -74,7 +74,7 @@ desc = "A shot glass - the universal symbol for bad decisions." return -/obj/item/reagent_containers/food/drinks/drinkingglass/filled/Initialize() +/obj/item/reagent_containers/food/drinks/drinkingglass/filled/Initialize(mapload) . = ..() on_reagent_change(ADD_REAGENT) diff --git a/code/modules/food_and_drinks/food/customizables.dm b/code/modules/food_and_drinks/food/customizables.dm index 42f536c4f3..923d365f73 100644 --- a/code/modules/food_and_drinks/food/customizables.dm +++ b/code/modules/food_and_drinks/food/customizables.dm @@ -281,7 +281,7 @@ icon = 'icons/obj/food/soupsalad.dmi' icon_state = "wishsoup" -/obj/item/reagent_containers/food/snacks/customizable/soup/Initialize() +/obj/item/reagent_containers/food/snacks/customizable/soup/Initialize(mapload) . = ..() eatverb = pick("slurp","sip","suck","inhale","drink") diff --git a/code/modules/food_and_drinks/food/snacks_burgers.dm b/code/modules/food_and_drinks/food/snacks_burgers.dm index f8c85700c9..344ff92717 100644 --- a/code/modules/food_and_drinks/food/snacks_burgers.dm +++ b/code/modules/food_and_drinks/food/snacks_burgers.dm @@ -13,7 +13,7 @@ bonus_reagents = list(/datum/reagent/consumable/nutriment/vitamin = 1) foodtype = GRAIN | MEAT -/obj/item/reagent_containers/food/snacks/burger/plain/Initialize() +/obj/item/reagent_containers/food/snacks/burger/plain/Initialize(mapload) . = ..() if(prob(1)) new/obj/effect/particle_effect/smoke(get_turf(src)) @@ -146,7 +146,7 @@ verb_say = "moans" verb_yell = "wails" -/obj/item/reagent_containers/food/snacks/burger/ghost/Initialize() +/obj/item/reagent_containers/food/snacks/burger/ghost/Initialize(mapload) . = ..() START_PROCESSING(SSobj, src) @@ -379,7 +379,7 @@ bonus_reagents = list(/datum/reagent/consumable/nutriment = 1) foodtype = GRAIN | MEAT | DAIRY -/obj/item/reagent_containers/food/snacks/burger/cheese/Initialize() +/obj/item/reagent_containers/food/snacks/burger/cheese/Initialize(mapload) . = ..() if(prob(33)) icon_state = "cheeseburgeralt" diff --git a/code/modules/food_and_drinks/food/snacks_egg.dm b/code/modules/food_and_drinks/food/snacks_egg.dm index 2143c6b8f2..489380777c 100644 --- a/code/modules/food_and_drinks/food/snacks_egg.dm +++ b/code/modules/food_and_drinks/food/snacks_egg.dm @@ -24,7 +24,7 @@ /obj/item/reagent_containers/food/snacks/egg/gland desc = "An egg! It looks weird..." -/obj/item/reagent_containers/food/snacks/egg/gland/Initialize() +/obj/item/reagent_containers/food/snacks/egg/gland/Initialize(mapload) . = ..() reagents.add_reagent(get_random_reagent_id(), 15) diff --git a/code/modules/food_and_drinks/food/snacks_meat.dm b/code/modules/food_and_drinks/food/snacks_meat.dm index 402192e034..5bcb106822 100644 --- a/code/modules/food_and_drinks/food/snacks_meat.dm +++ b/code/modules/food_and_drinks/food/snacks_meat.dm @@ -26,7 +26,7 @@ tastes = list("fish" = 1) foodtype = MEAT -/obj/item/reagent_containers/food/snacks/carpmeat/Initialize() +/obj/item/reagent_containers/food/snacks/carpmeat/Initialize(mapload) . = ..() eatverb = pick("bite","chew","choke down","gnaw","swallow","chomp") @@ -63,7 +63,7 @@ filling_color = "#ee7676" tastes = list("fish" = 1, "pan seared vegtables" = 1) foodtype = MEAT | VEGETABLES | FRIED - + /obj/item/reagent_containers/food/snacks/sushi_basic name = "funa hosomaki" desc = "A small cylindrical kudzu skin, filled with rice and fish." @@ -172,7 +172,7 @@ foodtype = MEAT | BREAKFAST var/roasted = FALSE -/obj/item/reagent_containers/food/snacks/sausage/Initialize() +/obj/item/reagent_containers/food/snacks/sausage/Initialize(mapload) . = ..() eatverb = pick("bite","chew","nibble","deep throat","gobble","chomp") @@ -283,7 +283,7 @@ tastes = list("soy" = 1, "vegetables" = 1) foodtype = VEGETABLES -/obj/item/reagent_containers/food/snacks/stewedsoymeat/Initialize() +/obj/item/reagent_containers/food/snacks/stewedsoymeat/Initialize(mapload) . = ..() eatverb = pick("slurp","sip","suck","inhale","drink") @@ -328,7 +328,7 @@ tastes = list("\"chicken\"" = 1) foodtype = MEAT -/obj/item/reagent_containers/food/snacks/nugget/Initialize() +/obj/item/reagent_containers/food/snacks/nugget/Initialize(mapload) . = ..() var/shape = pick("lump", "star", "lizard", "corgi") desc = "A 'chicken' nugget vaguely shaped like a [shape]." @@ -391,7 +391,7 @@ bonus_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/nutriment/vitamin = 1) tastes = list("meat" = 3, "smokey sauce" = 1) foodtype = MEAT - + /obj/item/reagent_containers/food/snacks/goliathcalamari name = "goliath calamari" desc = "ACKCHYUALLY, this isn't calamari, guys!" diff --git a/code/modules/food_and_drinks/food/snacks_other.dm b/code/modules/food_and_drinks/food/snacks_other.dm index b771a90907..c26da941b2 100644 --- a/code/modules/food_and_drinks/food/snacks_other.dm +++ b/code/modules/food_and_drinks/food/snacks_other.dm @@ -79,7 +79,7 @@ tastes = list("popcorn" = 3, "butter" = 1) foodtype = JUNKFOOD -/obj/item/reagent_containers/food/snacks/popcorn/Initialize() +/obj/item/reagent_containers/food/snacks/popcorn/Initialize(mapload) . = ..() eatverb = pick("bite","crunch","nibble","gnaw","gobble","chomp") @@ -453,7 +453,7 @@ tastes = list("candy" = 1) foodtype = JUNKFOOD | SUGAR | ANTITOXIC -/obj/item/reagent_containers/food/snacks/lollipop/Initialize() +/obj/item/reagent_containers/food/snacks/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))) @@ -472,7 +472,7 @@ /obj/item/reagent_containers/food/snacks/lollipop/cyborg var/spamchecking = TRUE -/obj/item/reagent_containers/food/snacks/lollipop/cyborg/Initialize() +/obj/item/reagent_containers/food/snacks/lollipop/cyborg/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/spamcheck), 1200) @@ -493,14 +493,14 @@ tastes = list("candy") foodtype = JUNKFOOD -/obj/item/reagent_containers/food/snacks/gumball/Initialize() +/obj/item/reagent_containers/food/snacks/gumball/Initialize(mapload) . = ..() color = rgb(rand(0, 255), rand(0, 255), rand(0, 255)) /obj/item/reagent_containers/food/snacks/gumball/cyborg var/spamchecking = TRUE -/obj/item/reagent_containers/food/snacks/gumball/cyborg/Initialize() +/obj/item/reagent_containers/food/snacks/gumball/cyborg/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/spamcheck), 1200) diff --git a/code/modules/food_and_drinks/food/snacks_pastry.dm b/code/modules/food_and_drinks/food/snacks_pastry.dm index 8c5631336e..831c5c6d16 100644 --- a/code/modules/food_and_drinks/food/snacks_pastry.dm +++ b/code/modules/food_and_drinks/food/snacks_pastry.dm @@ -19,7 +19,7 @@ var/extra_reagent = null var/decorated_adjective = "sprinkled" -/obj/item/reagent_containers/food/snacks/donut/Initialize() +/obj/item/reagent_containers/food/snacks/donut/Initialize(mapload) . = ..() if(prob(30)) decorate_donut() @@ -60,7 +60,7 @@ bitesize = 10 tastes = list("donut" = 3, "chaos" = 1) -/obj/item/reagent_containers/food/snacks/donut/chaos/Initialize() +/obj/item/reagent_containers/food/snacks/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, @@ -173,7 +173,7 @@ /obj/item/reagent_containers/food/snacks/donut/jelly/in_box_sprite() return "[replacetext(icon_state, "jelly", "donut")]_inbox" -/obj/item/reagent_containers/food/snacks/donut/jelly/Initialize() +/obj/item/reagent_containers/food/snacks/donut/jelly/Initialize(mapload) . = ..() if(extra_reagent) reagents.add_reagent(extra_reagent, 3) @@ -569,7 +569,7 @@ tastes = list("mushroom" = 1, "biscuit" = 1) foodtype = GRAIN | VEGETABLES -/obj/item/reagent_containers/food/snacks/plumphelmetbiscuit/Initialize() +/obj/item/reagent_containers/food/snacks/plumphelmetbiscuit/Initialize(mapload) var/fey = prob(10) if(fey) name = "exceptional plump helmet biscuit" @@ -736,7 +736,7 @@ list_reagents = list(/datum/reagent/consumable/nutriment = 6, /datum/reagent/consumable/nutriment/vitamin = 3) tastes = list("pancakes" = 1, "chocolate" = 1) -/obj/item/reagent_containers/food/snacks/pancakes/Initialize() +/obj/item/reagent_containers/food/snacks/pancakes/Initialize(mapload) . = ..() update_icon() diff --git a/code/modules/food_and_drinks/food/snacks_pie.dm b/code/modules/food_and_drinks/food/snacks_pie.dm index 5329829637..c98c170df3 100644 --- a/code/modules/food_and_drinks/food/snacks_pie.dm +++ b/code/modules/food_and_drinks/food/snacks_pie.dm @@ -164,7 +164,7 @@ foodtype = GRAIN | VEGETABLES -/obj/item/reagent_containers/food/snacks/pie/plump_pie/Initialize() +/obj/item/reagent_containers/food/snacks/pie/plump_pie/Initialize(mapload) . = ..() var/fey = prob(10) if(fey) diff --git a/code/modules/food_and_drinks/food/snacks_pizza.dm b/code/modules/food_and_drinks/food/snacks_pizza.dm index 75cf8ffb82..fc6cd1472f 100644 --- a/code/modules/food_and_drinks/food/snacks_pizza.dm +++ b/code/modules/food_and_drinks/food/snacks_pizza.dm @@ -35,7 +35,7 @@ tastes = list("crust" = 1, "tomato" = 1, "cheese" = 1) foodtype = GRAIN | VEGETABLES -/obj/item/reagent_containers/food/snacks/pizza/margherita/robo/Initialize() +/obj/item/reagent_containers/food/snacks/pizza/margherita/robo/Initialize(mapload) bonus_reagents += list("nanomachines" = 70) return ..() @@ -187,7 +187,7 @@ slice_path = /obj/item/reagent_containers/food/snacks/pizzaslice/arnold bonus_reagents = list(/datum/reagent/consumable/nutriment = 30, /datum/reagent/consumable/nutriment/vitamin = 6, /datum/reagent/iron = 10, /datum/reagent/medicine/omnizine = 30) tastes = list("crust" = 1, "tomato" = 1, "cheese" = 1, "pepperoni" = 2, "9 millimeter bullets" = 2) - + /obj/item/reagent_containers/food/snacks/proc/try_break_off(mob/living/M, mob/living/user) //maybe i give you a pizza maybe i break off your arm var/obj/item/bodypart/l_arm = user.get_bodypart(BODY_ZONE_L_ARM) diff --git a/code/modules/food_and_drinks/food/snacks_salad.dm b/code/modules/food_and_drinks/food/snacks_salad.dm index 8c6eecb829..3582015ee9 100644 --- a/code/modules/food_and_drinks/food/snacks_salad.dm +++ b/code/modules/food_and_drinks/food/snacks_salad.dm @@ -9,7 +9,7 @@ tastes = list("leaves" = 1) foodtype = VEGETABLES -/obj/item/reagent_containers/food/snacks/salad/Initialize() +/obj/item/reagent_containers/food/snacks/salad/Initialize(mapload) . = ..() eatverb = pick("crunch","devour","nibble","gnaw","gobble","chomp") //who the fuck gnaws and devours on a salad diff --git a/code/modules/food_and_drinks/food/snacks_soup.dm b/code/modules/food_and_drinks/food/snacks_soup.dm index 38a68ad364..2e45a13ea0 100644 --- a/code/modules/food_and_drinks/food/snacks_soup.dm +++ b/code/modules/food_and_drinks/food/snacks_soup.dm @@ -8,7 +8,7 @@ tastes = list("tasteless soup" = 1) foodtype = VEGETABLES -/obj/item/reagent_containers/food/snacks/soup/Initialize() +/obj/item/reagent_containers/food/snacks/soup/Initialize(mapload) . = ..() eatverb = pick("slurp","sip","suck","inhale","drink") @@ -19,7 +19,7 @@ list_reagents = list(/datum/reagent/water = 10) tastes = list("wishes" = 1) -/obj/item/reagent_containers/food/snacks/soup/wish/Initialize() +/obj/item/reagent_containers/food/snacks/soup/wish/Initialize(mapload) . = ..() var/wish_true = prob(25) if(wish_true) @@ -99,7 +99,7 @@ list_reagents = list(/datum/reagent/consumable/nutriment = 6) tastes = list("chaos" = 1) -/obj/item/reagent_containers/food/snacks/soup/mystery/Initialize() +/obj/item/reagent_containers/food/snacks/soup/mystery/Initialize(mapload) . = ..() extra_reagent = pick(/datum/reagent/consumable/capsaicin, /datum/reagent/consumable/frostoil, /datum/reagent/medicine/omnizine, /datum/reagent/consumable/banana, /datum/reagent/blood, @@ -184,7 +184,7 @@ bonus_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/nutriment/vitamin = 5) foodtype = VEGETABLES -/obj/item/reagent_containers/food/snacks/soup/beet/Initialize() +/obj/item/reagent_containers/food/snacks/soup/beet/Initialize(mapload) . = ..() name = pick("borsch","bortsch","borstch","borsh","borshch","borscht") tastes = list(name = 1) 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 a41970ea2b..0bf4179814 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm @@ -49,7 +49,7 @@ God bless America. /obj/item/his_grace)) var/datum/looping_sound/deep_fryer/fry_loop -/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 f09d3d6728..8bf13363a9 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/food_cart.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/food_cart.dm @@ -17,7 +17,7 @@ var/list/stored_food = list() var/obj/item/reagent_containers/mixer -/obj/machinery/food_cart/Initialize() +/obj/machinery/food_cart/Initialize(mapload) . = ..() create_reagents(LIQUID_CAPACITY, OPENCONTAINER | NO_REACT) mixer = new /obj/item/reagent_containers(src, MIXER_CAPACITY) diff --git a/code/modules/food_and_drinks/kitchen_machinery/gibber.dm b/code/modules/food_and_drinks/kitchen_machinery/gibber.dm index e4148d849a..fc00fd176e 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/gibber.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/gibber.dm @@ -17,7 +17,7 @@ var/meat_quality = 35 //food_quality of meat produced -/obj/machinery/gibber/Initialize() +/obj/machinery/gibber/Initialize(mapload) . = ..() add_overlay("grjam") diff --git a/code/modules/food_and_drinks/kitchen_machinery/grill.dm b/code/modules/food_and_drinks/kitchen_machinery/grill.dm index 02b24402db..c03c834407 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/grill.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/grill.dm @@ -11,7 +11,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 303d18b4a4..9f36fc058f 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm @@ -80,7 +80,7 @@ return "vanilla" -/obj/machinery/icecream_vat/Initialize() +/obj/machinery/icecream_vat/Initialize(mapload) . = ..() while(product_types.len < 9) product_types.Add(5) @@ -249,7 +249,7 @@ bitesize = 4 foodtype = DAIRY | SUGAR -/obj/item/reagent_containers/food/snacks/icecream/Initialize() +/obj/item/reagent_containers/food/snacks/icecream/Initialize(mapload) . = ..() reagents.maximum_volume = 20 diff --git a/code/modules/food_and_drinks/kitchen_machinery/microwave.dm b/code/modules/food_and_drinks/kitchen_machinery/microwave.dm index c4ac4c2dcf..41cd860362 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/smartfridge.dm b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm index 58769cebf1..e4a098c3f1 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm @@ -19,7 +19,7 @@ var/list/initial_contents var/visible_contents = TRUE -/obj/machinery/smartfridge/Initialize() +/obj/machinery/smartfridge/Initialize(mapload) . = ..() create_reagents(100, NO_REACT) @@ -258,7 +258,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. @@ -471,7 +471,7 @@ /obj/item/reagent_containers/medspray/synthtissue = 1, /obj/item/reagent_containers/medspray/sterilizine = 1) -/obj/machinery/smartfridge/organ/preloaded/Initialize() +/obj/machinery/smartfridge/organ/preloaded/Initialize(mapload) . = ..() var/list = list(/obj/item/organ/tongue, /obj/item/organ/brain, /obj/item/organ/heart, /obj/item/organ/liver, /obj/item/organ/ears, /obj/item/organ/eyes, /obj/item/organ/tail, /obj/item/organ/stomach) var/newtype = pick(list) diff --git a/code/modules/food_and_drinks/pizzabox.dm b/code/modules/food_and_drinks/pizzabox.dm index a2603d07ab..3c0d60907f 100644 --- a/code/modules/food_and_drinks/pizzabox.dm +++ b/code/modules/food_and_drinks/pizzabox.dm @@ -29,7 +29,7 @@ var/const/BOMB_TIMER_MIN = 1 var/const/BOMB_TIMER_MAX = 10 -/obj/item/pizzabox/Initialize() +/obj/item/pizzabox/Initialize(mapload) . = ..() update_icon() @@ -259,14 +259,14 @@ wires = null update_icon() -/obj/item/pizzabox/bomb/Initialize() +/obj/item/pizzabox/bomb/Initialize(mapload) . = ..() var/randompizza = pick(subtypesof(/obj/item/reagent_containers/food/snacks/pizza)) pizza = new randompizza(src) bomb = new(src) wires = new /datum/wires/explosive/pizza(src) -/obj/item/pizzabox/margherita/Initialize() +/obj/item/pizzabox/margherita/Initialize(mapload) . = ..() AddPizza() boxtag = "Margherita Deluxe" @@ -277,22 +277,22 @@ /obj/item/pizzabox/margherita/robo/AddPizza() pizza = new /obj/item/reagent_containers/food/snacks/pizza/margherita/robo(src) -/obj/item/pizzabox/vegetable/Initialize() +/obj/item/pizzabox/vegetable/Initialize(mapload) . = ..() pizza = new /obj/item/reagent_containers/food/snacks/pizza/vegetable(src) boxtag = "Gourmet Vegatable" -/obj/item/pizzabox/mushroom/Initialize() +/obj/item/pizzabox/mushroom/Initialize(mapload) . = ..() pizza = new /obj/item/reagent_containers/food/snacks/pizza/mushroom(src) boxtag = "Mushroom Special" -/obj/item/pizzabox/meat/Initialize() +/obj/item/pizzabox/meat/Initialize(mapload) . = ..() pizza = new /obj/item/reagent_containers/food/snacks/pizza/meat(src) boxtag = "Meatlover's Supreme" -/obj/item/pizzabox/pineapple/Initialize() +/obj/item/pizzabox/pineapple/Initialize(mapload) . = ..() pizza = new /obj/item/reagent_containers/food/snacks/pizza/pineapple(src) boxtag = "Honolulu Chew" @@ -312,7 +312,7 @@ /obj/item/reagent_containers/food/snacks/pizza/dank = 0.1) //pizzas here are weighted by chance to be someone's favorite 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/holiday/easter.dm b/code/modules/holiday/easter.dm index 84287daa4f..10b825440a 100644 --- a/code/modules/holiday/easter.dm +++ b/code/modules/holiday/easter.dm @@ -66,7 +66,7 @@ icon = 'icons/mob/easter.dmi' icon_state = "basket" -/obj/item/storage/bag/easterbasket/Initialize() +/obj/item/storage/bag/easterbasket/Initialize(mapload) . = ..() var/datum/component/storage/STR = GetComponent(/datum/component/storage) STR.can_hold = typecacheof(list(/obj/item/reagent_containers/food/snacks/egg, /obj/item/reagent_containers/food/snacks/chocolateegg, /obj/item/reagent_containers/food/snacks/boiledegg)) @@ -109,7 +109,7 @@ /obj/item/reagent_containers/food/snacks/egg/loaded containsPrize = TRUE -/obj/item/reagent_containers/food/snacks/egg/loaded/Initialize() +/obj/item/reagent_containers/food/snacks/egg/loaded/Initialize(mapload) . = ..() var/eggcolor = pick("blue","green","mime","orange","purple","rainbow","red","yellow") icon_state = "egg-[eggcolor]" diff --git a/code/modules/holiday/halloween/halloween.dm b/code/modules/holiday/halloween/halloween.dm index 0c9987fc00..5dbad1b7f0 100644 --- a/code/modules/holiday/halloween/halloween.dm +++ b/code/modules/holiday/halloween/halloween.dm @@ -42,7 +42,7 @@ var/trapped = 0 var/mob/trapped_mob -/obj/structure/closet/Initialize() +/obj/structure/closet/Initialize(mapload) ..() if(prob(30)) set_spooky_trap() @@ -137,7 +137,7 @@ layer = 4 var/timer = 0 -/mob/living/simple_animal/hostile/construct/shade/howling_ghost/Initialize() +/mob/living/simple_animal/hostile/construct/shade/howling_ghost/Initialize(mapload) . = ..() icon_state = pick("ghost","ghostian","ghostian2","ghostking","ghost1","ghost2") icon_living = icon_state @@ -196,7 +196,7 @@ unsuitable_atmos_damage = 0 var/timer -/mob/living/simple_animal/hostile/retaliate/clown/insane/Initialize() +/mob/living/simple_animal/hostile/retaliate/clown/insane/Initialize(mapload) . = ..() timer = rand(5,15) @@ -233,7 +233,7 @@ return /mob/living/simple_animal/hostile/retaliate/clown/insane/adjustHealth() - . = ..() + . = ..() if(prob(5)) playsound(loc, 'sound/spookoween/insane_low_laugh.ogg', 300, 1) @@ -281,7 +281,7 @@ var/obj/effect/wisp/pumpkin/wisp2 //Hoooo boy that's some wild code there. -/obj/item/wisp_lantern/pumpkin/Initialize() +/obj/item/wisp_lantern/pumpkin/Initialize(mapload) . = ..() qdel(wisp) wisp2 = new(src) diff --git a/code/modules/holiday/halloween/jacqueen.dm b/code/modules/holiday/halloween/jacqueen.dm index 723b404717..618ba9fcd7 100644 --- a/code/modules/holiday/halloween/jacqueen.dm +++ b/code/modules/holiday/halloween/jacqueen.dm @@ -61,7 +61,7 @@ /atom/movable/screen )) -/mob/living/simple_animal/jacq/Initialize() +/mob/living/simple_animal/jacq/Initialize(mapload) . = ..() //fuck you jacq, return a hint you shit cached_z = z poof() @@ -664,13 +664,13 @@ hat_type = "pumpkin_j" brightness_on = 4 -/obj/item/clothing/head/hardhat/pumpkinhead/jaqc/Initialize() +/obj/item/clothing/head/hardhat/pumpkinhead/jaqc/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, GLUED_ITEM_TRAIT) /obj/item/clothing/suit/ghost_sheet/sticky -/obj/item/clothing/suit/ghost_sheet/sticky/Initialize() +/obj/item/clothing/suit/ghost_sheet/sticky/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, GLUED_ITEM_TRAIT) @@ -723,7 +723,7 @@ icon_state = "jacq_potion" desc = "A potion with a strange concoction within. Be careful, as if it's thrown it explodes in a puff of smoke like Jacqueline." -/obj/item/reagent_containers/potion_container/Initialize() +/obj/item/reagent_containers/potion_container/Initialize(mapload) .=..() var/R = get_random_reagent_id() reagents.add_reagent(R, 30) @@ -748,6 +748,6 @@ icon_state = "jacq_candy" desc = "A candy with strange magic within. Be careful, as the magic isn't always helpful." -/obj/item/reagent_containers/food/snacks/special_candy/Initialize() +/obj/item/reagent_containers/food/snacks/special_candy/Initialize(mapload) .=..() reagents.add_reagent(get_random_reagent_id(), 5) diff --git a/code/modules/holodeck/holo_effect.dm b/code/modules/holodeck/holo_effect.dm index ffff8e190e..5d6259d9c2 100644 --- a/code/modules/holodeck/holo_effect.dm +++ b/code/modules/holodeck/holo_effect.dm @@ -105,7 +105,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 e4564ecb7e..a88b8ab905 100644 --- a/code/modules/holodeck/items.dm +++ b/code/modules/holodeck/items.dm @@ -26,12 +26,12 @@ var/active = 0 var/saber_color -/obj/item/holo/esword/green/Initialize() +/obj/item/holo/esword/green/Initialize(mapload) . = ..() saber_color = "green" -/obj/item/holo/esword/red/Initialize() +/obj/item/holo/esword/red/Initialize(mapload) . = ..() saber_color = "red" @@ -40,7 +40,7 @@ return ..() return ..() -/obj/item/holo/esword/Initialize() +/obj/item/holo/esword/Initialize(mapload) . = ..() saber_color = pick("red","blue","green","purple") diff --git a/code/modules/holodeck/turfs.dm b/code/modules/holodeck/turfs.dm index 169c9061d3..7340ffda61 100644 --- a/code/modules/holodeck/turfs.dm +++ b/code/modules/holodeck/turfs.dm @@ -58,7 +58,7 @@ icon_state = "asteroid0" tiled_dirt = FALSE -/turf/open/floor/holofloor/asteroid/Initialize() +/turf/open/floor/holofloor/asteroid/Initialize(mapload) icon_state = "asteroid[rand(0, 12)]" . = ..() @@ -68,7 +68,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)]" @@ -79,7 +79,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 . = ..() @@ -90,11 +90,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]" @@ -109,7 +109,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_icon), 1) @@ -167,6 +167,6 @@ canSmoothWith = list(/turf/open/floor/plating/ice/smooth, /turf/open/floor/plating/ice, /turf/open/floor/holofloor/ice) baseturfs = /turf/open/floor/holofloor/ice/smooth -/turf/open/floor/holofloor/ice/Initialize() +/turf/open/floor/holofloor/ice/Initialize(mapload) . = ..() MakeSlippery(TURF_WET_PERMAFROST, INFINITY, 0, INFINITY, TRUE) diff --git a/code/modules/hydroponics/beekeeping/beebox.dm b/code/modules/hydroponics/beekeeping/beebox.dm index 2857099d0f..28e537acbc 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 370b31da17..3cc3f9806d 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 = rand(8,-8) pixel_y = rand(8,-8) diff --git a/code/modules/hydroponics/beekeeping/honeycomb.dm b/code/modules/hydroponics/beekeeping/honeycomb.dm index 6ce04a8732..d31ea281c7 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 = rand(8,-8) pixel_y = rand(8,-8) diff --git a/code/modules/hydroponics/biogenerator.dm b/code/modules/hydroponics/biogenerator.dm index 8651ea82ab..71513ccfdf 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 create_reagents(1000) diff --git a/code/modules/hydroponics/fermenting_barrel.dm b/code/modules/hydroponics/fermenting_barrel.dm index 39b0bfdfde..fd0f39fd75 100644 --- a/code/modules/hydroponics/fermenting_barrel.dm +++ b/code/modules/hydroponics/fermenting_barrel.dm @@ -10,7 +10,7 @@ var/open = FALSE var/speed_multiplier = 1 //How fast it distills. Defaults to 100% (1.0). Lower is better. -/obj/structure/fermenting_barrel/Initialize() +/obj/structure/fermenting_barrel/Initialize(mapload) create_reagents(300, DRAINABLE | AMOUNT_VISIBLE) //Bluespace beakers, but without the portability or efficiency in circuits. . = ..() @@ -85,7 +85,7 @@ max_integrity = 300 var/open = FALSE -/obj/structure/custom_keg/Initialize() +/obj/structure/custom_keg/Initialize(mapload) create_reagents(1000, DRAINABLE | AMOUNT_VISIBLE) . = ..() diff --git a/code/modules/hydroponics/gene_modder.dm b/code/modules/hydroponics/gene_modder.dm index a6ba5ec461..3b1c4eb163 100644 --- a/code/modules/hydroponics/gene_modder.dm +++ b/code/modules/hydroponics/gene_modder.dm @@ -424,7 +424,7 @@ var/read_only = 0 //Well, it's still a floppy disk obj_flags = UNIQUE_RENAME -/obj/item/disk/plantgene/Initialize() +/obj/item/disk/plantgene/Initialize(mapload) . = ..() add_overlay("datadisk_gene") src.pixel_x = rand(-5, 5) diff --git a/code/modules/hydroponics/grown/banana.dm b/code/modules/hydroponics/grown/banana.dm index e825c88524..65a28eee2e 100644 --- a/code/modules/hydroponics/grown/banana.dm +++ b/code/modules/hydroponics/grown/banana.dm @@ -167,6 +167,6 @@ name = "synthesized banana peel" desc = "A synthetic banana peel." -/obj/item/grown/bananapeel/specialpeel/Initialize(AM) +/obj/item/grown/bananapeel/specialpeel/Initialize(mapload, AM) . = ..() AddComponent(/datum/component/slippery, 40) diff --git a/code/modules/hydroponics/grown/cocoa_vanilla.dm b/code/modules/hydroponics/grown/cocoa_vanilla.dm index 5de0740b87..3a1c78a7a9 100644 --- a/code/modules/hydroponics/grown/cocoa_vanilla.dm +++ b/code/modules/hydroponics/grown/cocoa_vanilla.dm @@ -96,7 +96,7 @@ foodtype = TOXIC tastes = list("acrid bitterness" = 1) -/obj/item/reagent_containers/food/snacks/grown/bungopit/Initialize() +/obj/item/reagent_containers/food/snacks/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/melon.dm b/code/modules/hydroponics/grown/melon.dm index b988261770..c8b952889b 100644 --- a/code/modules/hydroponics/grown/melon.dm +++ b/code/modules/hydroponics/grown/melon.dm @@ -61,7 +61,7 @@ wine_flavor = "divinity" /* -/obj/item/reagent_containers/food/snacks/grown/holymelon/Initialize() +/obj/item/reagent_containers/food/snacks/grown/holymelon/Initialize(mapload) . = ..() var/uses = 1 if(seed) diff --git a/code/modules/hydroponics/grown/random.dm b/code/modules/hydroponics/grown/random.dm index 75505202da..cc4da4c6e5 100644 --- a/code/modules/hydroponics/grown/random.dm +++ b/code/modules/hydroponics/grown/random.dm @@ -12,7 +12,7 @@ icon_harvest = "xpod-harvest" growthstages = 4 -/obj/item/seeds/random/Initialize() +/obj/item/seeds/random/Initialize(mapload) . = ..() randomize_stats() if(prob(60)) @@ -28,7 +28,7 @@ icon_state = "crunchy" bitesize_mod = 2 -/obj/item/reagent_containers/food/snacks/grown/random/Initialize() +/obj/item/reagent_containers/food/snacks/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 053daaf3af..e15c8f1323 100644 --- a/code/modules/hydroponics/grown/replicapod.dm +++ b/code/modules/hydroponics/grown/replicapod.dm @@ -24,7 +24,7 @@ var/list/quirks = null var/contains_sample = 0 -/obj/item/seeds/replicapod/Initialize() +/obj/item/seeds/replicapod/Initialize(mapload) . = ..() create_reagents(volume, INJECTABLE | DRAWABLE) diff --git a/code/modules/hydroponics/grown/towercap.dm b/code/modules/hydroponics/grown/towercap.dm index 38e4fcc6ff..25e6200d8a 100644 --- a/code/modules/hydroponics/grown/towercap.dm +++ b/code/modules/hydroponics/grown/towercap.dm @@ -159,7 +159,7 @@ /obj/structure/bonfire/dense density = TRUE -/obj/structure/bonfire/prelit/Initialize() +/obj/structure/bonfire/prelit/Initialize(mapload) . = ..() StartBurning() diff --git a/code/modules/hydroponics/growninedible.dm b/code/modules/hydroponics/growninedible.dm index f4859ffb1e..c8c6195d5a 100644 --- a/code/modules/hydroponics/growninedible.dm +++ b/code/modules/hydroponics/growninedible.dm @@ -9,7 +9,7 @@ var/obj/item/seeds/seed = null // type path, gets converted to item on New(). It's safe to assume it's always a seed item. var/tastes = list("indescribable" = 1) //Stops runtimes. Grown are un-eatable anyways so if you do then its a bug -/obj/item/grown/Initialize(newloc, obj/item/seeds/new_seed) +/obj/item/grown/Initialize(mapload, newloc, obj/item/seeds/new_seed) . = ..() create_reagents(50, NONE, HARVEST_REAGENTS_VALUE) diff --git a/code/modules/hydroponics/hydroitemdefines.dm b/code/modules/hydroponics/hydroitemdefines.dm index 798cd9a2f6..26566d3f85 100644 --- a/code/modules/hydroponics/hydroitemdefines.dm +++ b/code/modules/hydroponics/hydroitemdefines.dm @@ -109,7 +109,7 @@ hitsound = 'sound/weapons/bladeslice.ogg' sharpness = SHARP_EDGED -/obj/item/hatchet/Initialize() +/obj/item/hatchet/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 70, 100) @@ -143,7 +143,7 @@ hitsound = 'sound/weapons/bladeslice.ogg' var/swiping = FALSE -/obj/item/scythe/Initialize() +/obj/item/scythe/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 90, 105) @@ -191,7 +191,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 = rand(-5, 5) pixel_y = rand(-5, 5) diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm index fa7decc437..a91e3ddfd8 100644 --- a/code/modules/hydroponics/hydroponics.dm +++ b/code/modules/hydroponics/hydroponics.dm @@ -31,7 +31,7 @@ var/self_sustaining = FALSE //If the tray generates nutrients and water on its own // Here lies irrigation. You won't be missed, because you were never used. -/obj/machinery/hydroponics/Initialize() +/obj/machinery/hydroponics/Initialize(mapload) //Here lies "nutrilevel", killed by ArcaneMusic 20??-2019. Finally, we strive for a better future. Please use "reagents" instead create_reagents(20) reagents.add_reagent(/datum/reagent/plantnutriment/eznutriment, 10) //Half filled nutrient trays for dirt trays to have more to grow with in prison/lavaland. diff --git a/code/modules/hydroponics/sample.dm b/code/modules/hydroponics/sample.dm index 7fb92e8fcd..ebcb100b32 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/instruments/item.dm b/code/modules/instruments/instruments/item.dm index 0141a4baee..888aac4d40 100644 --- a/code/modules/instruments/instruments/item.dm +++ b/code/modules/instruments/instruments/item.dm @@ -103,7 +103,7 @@ item_state = "synth" allowed_instrument_ids = "piano" -/obj/item/instrument/piano_synth/Initialize() +/obj/item/instrument/piano_synth/Initialize(mapload) . = ..() song.allowed_instrument_ids = get_allowed_instrument_ids() @@ -155,7 +155,7 @@ force = 0 attack_verb = list("played","jazzed","trumpeted","mourned","dooted","spooked") -/obj/item/instrument/trumpet/spectral/Initialize() +/obj/item/instrument/trumpet/spectral/Initialize(mapload) . = ..() AddComponent(/datum/component/spooky) @@ -178,7 +178,7 @@ force = 0 attack_verb = list("played","jazzed","saxxed","mourned","dooted","spooked") -/obj/item/instrument/saxophone/spectral/Initialize() +/obj/item/instrument/saxophone/spectral/Initialize(mapload) . = ..() AddComponent(/datum/component/spooky) @@ -201,7 +201,7 @@ force = 0 attack_verb = list("played","jazzed","tromboned","mourned","dooted","spooked") -/obj/item/instrument/trombone/spectral/Initialize() +/obj/item/instrument/trombone/spectral/Initialize(mapload) . = ..() AddComponent(/datum/component/spooky) diff --git a/code/modules/integrated_electronics/core/assemblies.dm b/code/modules/integrated_electronics/core/assemblies.dm index ac27b4a30e..e605b80832 100644 --- a/code/modules/integrated_electronics/core/assemblies.dm +++ b/code/modules/integrated_electronics/core/assemblies.dm @@ -96,7 +96,7 @@ if(D.check_access(access_card)) D.open() -/obj/item/electronic_assembly/Initialize() +/obj/item/electronic_assembly/Initialize(mapload) LAZYSET(custom_materials, /datum/material/iron, round((max_complexity + max_components) * 0.25) * SScircuit.cost_multiplier) .=..() START_PROCESSING(SScircuit, src) diff --git a/code/modules/integrated_electronics/core/detailer.dm b/code/modules/integrated_electronics/core/detailer.dm index 03cd19cf96..374f4f602a 100644 --- a/code/modules/integrated_electronics/core/detailer.dm +++ b/code/modules/integrated_electronics/core/detailer.dm @@ -30,7 +30,7 @@ "custom" = COLOR_ASSEMBLY_WHITE ) -/obj/item/integrated_electronics/detailer/Initialize() +/obj/item/integrated_electronics/detailer/Initialize(mapload) .=..() update_icon() diff --git a/code/modules/integrated_electronics/core/integrated_circuit.dm b/code/modules/integrated_electronics/core/integrated_circuit.dm index 756706dcdf..7e667b3d09 100644 --- a/code/modules/integrated_electronics/core/integrated_circuit.dm +++ b/code/modules/integrated_electronics/core/integrated_circuit.dm @@ -81,7 +81,7 @@ a creative player the means to solve many problems. Circuits are held inside an else return user.canUseTopic(src, BE_CLOSE) -/obj/item/integrated_circuit/Initialize() +/obj/item/integrated_circuit/Initialize(mapload) displayed_name = name setup_io(inputs, /datum/integrated_io, inputs_default, IC_INPUT) setup_io(outputs, /datum/integrated_io, outputs_default, IC_OUTPUT) diff --git a/code/modules/integrated_electronics/core/printer.dm b/code/modules/integrated_electronics/core/printer.dm index 5f6440bffb..879cfdf6b6 100644 --- a/code/modules/integrated_electronics/core/printer.dm +++ b/code/modules/integrated_electronics/core/printer.dm @@ -31,7 +31,7 @@ fast_clone = TRUE w_class = WEIGHT_CLASS_TINY -/obj/item/integrated_circuit_printer/Initialize() +/obj/item/integrated_circuit_printer/Initialize(mapload) . = ..() var/datum/component/material_container/materials = AddComponent(/datum/component/material_container, list(/datum/material/iron), MINERAL_MATERIAL_AMOUNT * 25, TRUE, list(/obj/item/stack, /obj/item/integrated_circuit, /obj/item/electronic_assembly)) materials.precise_insertion = TRUE diff --git a/code/modules/integrated_electronics/passive/power.dm b/code/modules/integrated_electronics/passive/power.dm index a7ee449be2..adc99f0ff5 100644 --- a/code/modules/integrated_electronics/passive/power.dm +++ b/code/modules/integrated_electronics/passive/power.dm @@ -101,7 +101,7 @@ var/multi = 1 var/lfwb =TRUE -/obj/item/integrated_circuit/passive/power/chemical_cell/Initialize() +/obj/item/integrated_circuit/passive/power/chemical_cell/Initialize(mapload) . = ..() create_reagents(volume, OPENCONTAINER) diff --git a/code/modules/integrated_electronics/subtypes/arithmetic.dm b/code/modules/integrated_electronics/subtypes/arithmetic.dm index e207f57ddb..a5b559585c 100644 --- a/code/modules/integrated_electronics/subtypes/arithmetic.dm +++ b/code/modules/integrated_electronics/subtypes/arithmetic.dm @@ -241,7 +241,7 @@ inputs = list() spawn_flags = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH -/obj/item/integrated_circuit/arithmetic/pi/Initialize() +/obj/item/integrated_circuit/arithmetic/pi/Initialize(mapload) . = ..() desc = "Not recommended for cooking. Outputs '[PI]' when it receives a pulse." diff --git a/code/modules/integrated_electronics/subtypes/atmospherics.dm b/code/modules/integrated_electronics/subtypes/atmospherics.dm index b3056d46cf..b2cb7b9c24 100644 --- a/code/modules/integrated_electronics/subtypes/atmospherics.dm +++ b/code/modules/integrated_electronics/subtypes/atmospherics.dm @@ -17,7 +17,7 @@ var/datum/gas_mixture/air_contents var/volume = 2 //Pretty small, I know -/obj/item/integrated_circuit/atmospherics/Initialize() +/obj/item/integrated_circuit/atmospherics/Initialize(mapload) air_contents = new(volume) return ..() @@ -57,7 +57,7 @@ var/target_pressure = PUMP_MAX_PRESSURE power_draw_per_use = 20 -/obj/item/integrated_circuit/atmospherics/pump/Initialize() +/obj/item/integrated_circuit/atmospherics/pump/Initialize(mapload) air_contents = new(volume) extended_desc += " Use negative pressure to move air from target to source. \ Note that only part of the gas is moved on each transfer, \ @@ -246,7 +246,7 @@ var/obj/machinery/atmospherics/components/unary/portables_connector/connector -/obj/item/integrated_circuit/atmospherics/connector/Initialize() +/obj/item/integrated_circuit/atmospherics/connector/Initialize(mapload) air_contents = new(volume) START_PROCESSING(SSobj, src) . = ..() @@ -398,7 +398,7 @@ contaminated_air.merge(removed) -/obj/item/integrated_circuit/atmospherics/pump/filter/Initialize() +/obj/item/integrated_circuit/atmospherics/pump/filter/Initialize(mapload) air_contents = new(volume) . = ..() extended_desc = "Remember to properly spell and capitalize the filtered gas name. \ @@ -485,7 +485,7 @@ volume = 3 //emergency tank sized var/broken = FALSE -/obj/item/integrated_circuit/atmospherics/tank/Initialize() +/obj/item/integrated_circuit/atmospherics/tank/Initialize(mapload) air_contents = new(volume) START_PROCESSING(SSobj, src) extended_desc = "Take care not to pressurize it above [round(TANK_FAILURE_PRESSURE)] kPa, or else it will break." @@ -611,7 +611,7 @@ var/temperature = 293.15 var/heater_coefficient = 0.1 -/obj/item/integrated_circuit/atmospherics/cooler/Initialize() +/obj/item/integrated_circuit/atmospherics/cooler/Initialize(mapload) air_contents = new(volume) START_PROCESSING(SSobj, src) . = ..() @@ -701,7 +701,7 @@ var/obj/item/tank/internals/current_tank -/obj/item/integrated_circuit/input/tank_slot/Initialize() +/obj/item/integrated_circuit/input/tank_slot/Initialize(mapload) START_PROCESSING(SSobj, src) . = ..() diff --git a/code/modules/integrated_electronics/subtypes/converters.dm b/code/modules/integrated_electronics/subtypes/converters.dm index ebb91a894e..0c89e78564 100644 --- a/code/modules/integrated_electronics/subtypes/converters.dm +++ b/code/modules/integrated_electronics/subtypes/converters.dm @@ -151,7 +151,7 @@ var/number_of_pins = 8 var/max_string_length = 512 -/obj/item/integrated_circuit/converter/concatenator/Initialize() +/obj/item/integrated_circuit/converter/concatenator/Initialize(mapload) for(var/i = 1 to number_of_pins) inputs["input [i]"] = IC_PINTYPE_STRING . = ..() diff --git a/code/modules/integrated_electronics/subtypes/data_transfer.dm b/code/modules/integrated_electronics/subtypes/data_transfer.dm index 8db1db4e00..588d920fec 100644 --- a/code/modules/integrated_electronics/subtypes/data_transfer.dm +++ b/code/modules/integrated_electronics/subtypes/data_transfer.dm @@ -16,7 +16,7 @@ power_draw_per_use = 4 var/number_of_pins = 2 -/obj/item/integrated_circuit/transfer/multiplexer/Initialize() +/obj/item/integrated_circuit/transfer/multiplexer/Initialize(mapload) for(var/i = 1 to number_of_pins) inputs["input [i]"] = IC_PINTYPE_ANY // This is just a string since pins don't get built until ..() is called. @@ -64,7 +64,7 @@ power_draw_per_use = 4 var/number_of_pins = 2 -/obj/item/integrated_circuit/transfer/demultiplexer/Initialize() +/obj/item/integrated_circuit/transfer/demultiplexer/Initialize(mapload) for(var/i = 1 to number_of_pins) outputs["output [i]"] = IC_PINTYPE_ANY complexity = number_of_pins @@ -113,7 +113,7 @@ power_draw_per_use = 4 var/number_of_pins = 2 -/obj/item/integrated_circuit/transfer/pulsedemultiplexer/Initialize() +/obj/item/integrated_circuit/transfer/pulsedemultiplexer/Initialize(mapload) for(var/i = 1 to number_of_pins) activators["output [i]"] = IC_PINTYPE_PULSE_OUT complexity = number_of_pins @@ -158,7 +158,7 @@ power_draw_per_use = 4 var/number_of_pins = 2 -/obj/item/integrated_circuit/transfer/pulsemultiplexer/Initialize() +/obj/item/integrated_circuit/transfer/pulsemultiplexer/Initialize(mapload) for(var/i = 1 to number_of_pins) inputs["input [i]"] = IC_PINTYPE_ANY for(var/i = 1 to number_of_pins) diff --git a/code/modules/integrated_electronics/subtypes/input.dm b/code/modules/integrated_electronics/subtypes/input.dm index f66931e253..547036f08a 100644 --- a/code/modules/integrated_electronics/subtypes/input.dm +++ b/code/modules/integrated_electronics/subtypes/input.dm @@ -652,7 +652,7 @@ var/datum/radio_frequency/radio_connection var/hearing_range = 1 -/obj/item/integrated_circuit/input/signaler/Initialize() +/obj/item/integrated_circuit/input/signaler/Initialize(mapload) . = ..() spawn(40) set_frequency(frequency) @@ -738,7 +738,7 @@ power_draw_per_use = 50 var/address -/obj/item/integrated_circuit/input/ntnet_packet/Initialize() +/obj/item/integrated_circuit/input/ntnet_packet/Initialize(mapload) . = ..() var/datum/component/ntnet_interface/net = LoadComponent(/datum/component/ntnet_interface) address = net.hardware_id @@ -786,7 +786,7 @@ power_draw_per_use = 50 var/address -/obj/item/integrated_circuit/input/ntnet_advanced/Initialize() +/obj/item/integrated_circuit/input/ntnet_advanced/Initialize(mapload) . = ..() var/datum/component/ntnet_interface/net = LoadComponent(/datum/component/ntnet_interface) address = net.hardware_id diff --git a/code/modules/integrated_electronics/subtypes/lists.dm b/code/modules/integrated_electronics/subtypes/lists.dm index a5c482c7de..5855959627 100644 --- a/code/modules/integrated_electronics/subtypes/lists.dm +++ b/code/modules/integrated_electronics/subtypes/lists.dm @@ -360,7 +360,7 @@ spawn_flags = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH var/number_of_pins = 16 -/obj/item/integrated_circuit/lists/constructor/Initialize() +/obj/item/integrated_circuit/lists/constructor/Initialize(mapload) for(var/i = 1 to number_of_pins) inputs["input [i]"] = IC_PINTYPE_ANY // This is just a string since pins don't get built until ..() is called. complexity = number_of_pins / 2 @@ -406,7 +406,7 @@ spawn_flags = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH var/number_of_pins = 16 -/obj/item/integrated_circuit/lists/deconstructor/Initialize() +/obj/item/integrated_circuit/lists/deconstructor/Initialize(mapload) for(var/i = 1 to number_of_pins) outputs["output [i]"] = IC_PINTYPE_ANY // This is just a string since pins don't get built until ..() is called. complexity = number_of_pins / 2 diff --git a/code/modules/integrated_electronics/subtypes/memory.dm b/code/modules/integrated_electronics/subtypes/memory.dm index 34c36883d1..75ce4aefd7 100644 --- a/code/modules/integrated_electronics/subtypes/memory.dm +++ b/code/modules/integrated_electronics/subtypes/memory.dm @@ -11,7 +11,7 @@ power_draw_per_use = 1 var/number_of_pins = 1 -/obj/item/integrated_circuit/memory/Initialize() +/obj/item/integrated_circuit/memory/Initialize(mapload) for(var/i = 1 to number_of_pins) inputs["input [i]"] = IC_PINTYPE_ANY // This is just a string since pins don't get built until ..() is called. outputs["output [i]"] = IC_PINTYPE_ANY diff --git a/code/modules/integrated_electronics/subtypes/output.dm b/code/modules/integrated_electronics/subtypes/output.dm index 833b2963ad..e0b1afe72e 100644 --- a/code/modules/integrated_electronics/subtypes/output.dm +++ b/code/modules/integrated_electronics/subtypes/output.dm @@ -148,7 +148,7 @@ power_draw_per_use = 10 var/list/sounds = list() -/obj/item/integrated_circuit/output/sound/Initialize() +/obj/item/integrated_circuit/output/sound/Initialize(mapload) .= ..() extended_desc = list() extended_desc += "The first input pin determines which sound is used. The choices are; " @@ -230,7 +230,7 @@ desc = "Takes a sound name as an input, and will play said sound when pulsed. This circuit is often found in AI announcement systems." spawn_flags = IC_SPAWN_RESEARCH -/obj/item/integrated_circuit/output/sound/vox/Initialize() +/obj/item/integrated_circuit/output/sound/vox/Initialize(mapload) .= ..() sounds = GLOB.vox_sounds extended_desc = "The first input pin determines which sound is used. It uses the AI Vox Broadcast word list. So either experiment to find words that work, or ask the AI to help in figuring them out. The second pin determines the volume of sound that is played, and the third determines if the frequency of the sound will vary with each activation." diff --git a/code/modules/integrated_electronics/subtypes/reagents.dm b/code/modules/integrated_electronics/subtypes/reagents.dm index de6ad729e9..bdd9e954db 100644 --- a/code/modules/integrated_electronics/subtypes/reagents.dm +++ b/code/modules/integrated_electronics/subtypes/reagents.dm @@ -6,7 +6,7 @@ cooldown_per_use = 10 var/volume = 0 -/obj/item/integrated_circuit/reagent/Initialize() +/obj/item/integrated_circuit/reagent/Initialize(mapload) . = ..() if(volume) create_reagents(volume) @@ -75,7 +75,7 @@ var/transfer_amount = 10 var/busy = FALSE -/obj/item/integrated_circuit/reagent/injector/Initialize() +/obj/item/integrated_circuit/reagent/injector/Initialize(mapload) . = ..() reagents.reagents_holder_flags |= OPENCONTAINER @@ -271,7 +271,7 @@ activators = list("push ref" = IC_PINTYPE_PULSE_OUT) spawn_flags = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH -/obj/item/integrated_circuit/reagent/storage/Initialize() +/obj/item/integrated_circuit/reagent/storage/Initialize(mapload) . = ..() reagents.reagents_holder_flags |= OPENCONTAINER @@ -301,7 +301,7 @@ complexity = 8 spawn_flags = IC_SPAWN_RESEARCH -/obj/item/integrated_circuit/reagent/storage/cryo/Initialize() +/obj/item/integrated_circuit/reagent/storage/cryo/Initialize(mapload) . = ..() reagents.reagents_holder_flags |= NO_REACT @@ -520,7 +520,7 @@ else power_draw_idle = 0 -/obj/item/integrated_circuit/reagent/storage/heater/Initialize() +/obj/item/integrated_circuit/reagent/storage/heater/Initialize(mapload) .=..() START_PROCESSING(SScircuit, src) @@ -572,7 +572,7 @@ var/smoke_radius = 5 var/notified = FALSE -/obj/item/integrated_circuit/reagent/smoke/Initialize() +/obj/item/integrated_circuit/reagent/smoke/Initialize(mapload) . = ..() reagents.reagents_holder_flags |= OPENCONTAINER @@ -630,7 +630,7 @@ power_draw_per_use = 15 var/busy = FALSE -/obj/item/integrated_circuit/reagent/extinguisher/Initialize() +/obj/item/integrated_circuit/reagent/extinguisher/Initialize(mapload) .=..() reagents.reagents_holder_flags |= OPENCONTAINER set_pin_data(IC_OUTPUT,2, src) diff --git a/code/modules/integrated_electronics/subtypes/smart.dm b/code/modules/integrated_electronics/subtypes/smart.dm index e1fdc36552..0f97ff8e08 100644 --- a/code/modules/integrated_electronics/subtypes/smart.dm +++ b/code/modules/integrated_electronics/subtypes/smart.dm @@ -87,7 +87,7 @@ power_draw_per_use = 80 var/obj/item/card/id/idc -/obj/item/integrated_circuit/smart/advanced_pathfinder/Initialize() +/obj/item/integrated_circuit/smart/advanced_pathfinder/Initialize(mapload) .=..() idc = new(src) diff --git a/code/modules/integrated_electronics/subtypes/weaponized.dm b/code/modules/integrated_electronics/subtypes/weaponized.dm index 54b14cccbc..0458700f44 100644 --- a/code/modules/integrated_electronics/subtypes/weaponized.dm +++ b/code/modules/integrated_electronics/subtypes/weaponized.dm @@ -162,7 +162,7 @@ var/pre_attached_grenade_type demands_object_input = TRUE // You can put stuff in once the circuit is in assembly,passed down from additem and handled by attackby() -/obj/item/integrated_circuit/weaponized/grenade/Initialize() +/obj/item/integrated_circuit/weaponized/grenade/Initialize(mapload) . = ..() if(pre_attached_grenade_type) var/grenade = new pre_attached_grenade_type(src) diff --git a/code/modules/jobs/job_types/security_officer.dm b/code/modules/jobs/job_types/security_officer.dm index 1823a2498a..df2fd7a5c6 100644 --- a/code/modules/jobs/job_types/security_officer.dm +++ b/code/modules/jobs/job_types/security_officer.dm @@ -141,7 +141,7 @@ GLOBAL_LIST_INIT(available_depts, list(SEC_DEPT_ENGINEERING, SEC_DEPT_MEDICAL, S //The helmet is necessary because /obj/item/clothing/head/helmet/sec is overwritten in the chameleon list by the standard helmet, which has the same name and icon state -/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/library/lib_items.dm b/code/modules/library/lib_items.dm index fb6992dd4e..3b614d925c 100644 --- a/code/modules/library/lib_items.dm +++ b/code/modules/library/lib_items.dm @@ -175,7 +175,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) @@ -188,7 +188,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_icon() @@ -196,7 +196,7 @@ /obj/structure/bookcase/manuals/medical name = "medical manuals bookcase" -/obj/structure/bookcase/manuals/medical/Initialize() +/obj/structure/bookcase/manuals/medical/Initialize(mapload) . = ..() new /obj/item/book/manual/wiki/medical_cloning(src) update_icon() diff --git a/code/modules/library/lib_machines.dm b/code/modules/library/lib_machines.dm index 1125d15bca..4f73b037c8 100644 --- a/code/modules/library/lib_machines.dm +++ b/code/modules/library/lib_machines.dm @@ -183,7 +183,7 @@ var/printer_cooldown = 0 COOLDOWN_DECLARE(library_console_topic_cooldown) -/obj/machinery/computer/libraryconsole/bookmanagement/Initialize() +/obj/machinery/computer/libraryconsole/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 d60609147a..be5e9ea6b5 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/mapping/mapping_helpers/_mapping_helpers.dm b/code/modules/mapping/mapping_helpers/_mapping_helpers.dm index a96b81528f..7bb281e5d9 100644 --- a/code/modules/mapping/mapping_helpers/_mapping_helpers.dm +++ b/code/modules/mapping/mapping_helpers/_mapping_helpers.dm @@ -4,7 +4,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 @@ -83,7 +83,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.flags_1 |= NO_LAVA_GEN_1 diff --git a/code/modules/mapping/mapping_helpers/baseturf.dm b/code/modules/mapping/mapping_helpers/baseturf.dm index 4d79d3dba5..8bb44ae993 100644 --- a/code/modules/mapping/mapping_helpers/baseturf.dm +++ b/code/modules/mapping/mapping_helpers/baseturf.dm @@ -8,7 +8,7 @@ layer = POINT_LAYER -/obj/effect/baseturf_helper/Initialize() +/obj/effect/baseturf_helper/Initialize(mapload) . = ..() return INITIALIZE_HINT_LATELOAD diff --git a/code/modules/mining/abandoned_crates.dm b/code/modules/mining/abandoned_crates.dm index e97060b45d..3f213eb934 100644 --- a/code/modules/mining/abandoned_crates.dm +++ b/code/modules/mining/abandoned_crates.dm @@ -11,7 +11,7 @@ var/codelen = 4 tamperproof = 90 -/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 feb4b4b2da..494ca0e433 100644 --- a/code/modules/mining/aux_base.dm +++ b/code/modules/mining/aux_base.dm @@ -27,7 +27,7 @@ interface with the mining shuttle at the landing site if a mobile beacon is also var/obj/item/gps/internal/base/locator circuit = /obj/item/circuitboard/computer/auxiliary_base -/obj/machinery/computer/auxillary_base/Initialize() +/obj/machinery/computer/auxillary_base/Initialize(mapload) . = ..() locator = new(src) diff --git a/code/modules/mining/aux_base_camera.dm b/code/modules/mining/aux_base_camera.dm index be0a41427f..262e776c68 100644 --- a/code/modules/mining/aux_base_camera.dm +++ b/code/modules/mining/aux_base_camera.dm @@ -6,7 +6,7 @@ icon_state = "construction_drone" var/area/starting_area -/mob/camera/aiEye/remote/base_construction/Initialize() +/mob/camera/aiEye/remote/base_construction/Initialize(mapload) . = ..() starting_area = get_area(loc) diff --git a/code/modules/mining/equipment/explorer_gear.dm b/code/modules/mining/equipment/explorer_gear.dm index dc52fb7f20..a05085b57b 100644 --- a/code/modules/mining/equipment/explorer_gear.dm +++ b/code/modules/mining/equipment/explorer_gear.dm @@ -35,7 +35,7 @@ /obj/item/clothing/head/hooded/explorer/standard -/obj/item/clothing/suit/hooded/explorer/standard/Initialize() +/obj/item/clothing/suit/hooded/explorer/standard/Initialize(mapload) . = ..() AddComponent(/datum/component/armor_plate) RegisterSignal(src, COMSIG_ARMOR_PLATED, .proc/upgrade_icon) @@ -54,7 +54,7 @@ if(wearer.wear_suit == src) wearer.update_inv_wear_suit() -/obj/item/clothing/head/hooded/explorer/standard/Initialize() +/obj/item/clothing/head/hooded/explorer/standard/Initialize(mapload) . = ..() AddComponent(/datum/component/armor_plate) RegisterSignal(src, COMSIG_ARMOR_PLATED, .proc/upgrade_icon) @@ -91,7 +91,7 @@ ..() 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() @@ -108,7 +108,7 @@ armor = list("melee" = 70, "bullet" = 40, "laser" = 10, "energy" = 10, "bomb" = 50, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100) 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/pickaxe) -/obj/item/clothing/suit/space/hostile_environment/Initialize() +/obj/item/clothing/suit/space/hostile_environment/Initialize(mapload) . = ..() AddComponent(/datum/component/spraycan_paintable) START_PROCESSING(SSobj, src) @@ -137,7 +137,7 @@ armor = list("melee" = 70, "bullet" = 40, "laser" = 10, "energy" = 10, "bomb" = 50, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100) resistance_flags = FIRE_PROOF | LAVA_PROOF -/obj/item/clothing/head/helmet/space/hostile_environment/Initialize() +/obj/item/clothing/head/helmet/space/hostile_environment/Initialize(mapload) . = ..() AddComponent(/datum/component/spraycan_paintable) update_icon() diff --git a/code/modules/mining/equipment/kinetic_crusher.dm b/code/modules/mining/equipment/kinetic_crusher.dm index 409cdb825b..4d0a045344 100644 --- a/code/modules/mining/equipment/kinetic_crusher.dm +++ b/code/modules/mining/equipment/kinetic_crusher.dm @@ -34,7 +34,7 @@ detonation_damage = 60 wielded = 1 -/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 b2cd840468..98818cb957 100644 --- a/code/modules/mining/equipment/mineral_scanner.dm +++ b/code/modules/mining/equipment/mineral_scanner.dm @@ -78,6 +78,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 bb0ac0f957..0cb63d51a2 100644 --- a/code/modules/mining/equipment/mining_tools.dm +++ b/code/modules/mining/equipment/mining_tools.dm @@ -108,7 +108,7 @@ flags_1 = NONE toolspeed = 0.5 -/obj/item/pickaxe/drill/cyborg/Initialize() +/obj/item/pickaxe/drill/cyborg/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CYBORG_ITEM_TRAIT) @@ -155,7 +155,7 @@ attack_verb = list("bashed", "bludgeoned", "thrashed", "whacked") 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 1de3a86702..4552d103b6 100644 --- a/code/modules/mining/equipment/regenerative_core.dm +++ b/code/modules/mining/equipment/regenerative_core.dm @@ -29,7 +29,7 @@ var/inert var/preserved -/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_icon() diff --git a/code/modules/mining/equipment/resonator.dm b/code/modules/mining/equipment/resonator.dm index 16dd893c3a..fd9ff4c91e 100644 --- a/code/modules/mining/equipment/resonator.dm +++ b/code/modules/mining/equipment/resonator.dm @@ -111,7 +111,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 ba4b02fcf4..ecccc786c8 100644 --- a/code/modules/mining/equipment/survival_pod.dm +++ b/code/modules/mining/equipment/survival_pod.dm @@ -327,7 +327,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 adee8b66ce..18f816699c 100644 --- a/code/modules/mining/fulton.dm +++ b/code/modules/mining/fulton.dm @@ -161,7 +161,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 6ef4684921..97953e6297 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 9710773309..b9ab6463c7 100644 --- a/code/modules/mining/lavaland/ash_flora.dm +++ b/code/modules/mining/lavaland/ash_flora.dm @@ -20,7 +20,7 @@ var/regrowth_time_low = 8 MINUTES var/regrowth_time_high = 16 MINUTES -/obj/structure/flora/ash/Initialize() +/obj/structure/flora/ash/Initialize(mapload) . = ..() base_icon = "[icon_state][rand(1, 4)]" icon_state = base_icon @@ -152,7 +152,7 @@ seed = /obj/item/seeds/lavaland/polypore wine_power = 20 -/obj/item/reagent_containers/food/snacks/grown/ash_flora/Initialize() +/obj/item/reagent_containers/food/snacks/grown/ash_flora/Initialize(mapload) . = ..() pixel_x = rand(-4, 4) pixel_y = rand(-4, 4) diff --git a/code/modules/mining/lavaland/necropolis_chests.dm b/code/modules/mining/lavaland/necropolis_chests.dm index 0b394e0fc5..6f71f04d9f 100644 --- a/code/modules/mining/lavaland/necropolis_chests.dm +++ b/code/modules/mining/lavaland/necropolis_chests.dm @@ -184,7 +184,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 @@ -383,7 +383,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) @@ -473,7 +473,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) @@ -553,7 +553,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) @@ -637,7 +637,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 @@ -876,7 +876,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) diff --git a/code/modules/mining/machine_processing.dm b/code/modules/mining/machine_processing.dm index 851d78004b..3d89377952 100644 --- a/code/modules/mining/machine_processing.dm +++ b/code/modules/mining/machine_processing.dm @@ -65,7 +65,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) @@ -127,7 +127,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) AddComponent(/datum/component/material_container, list(/datum/material/iron, /datum/material/glass, /datum/material/silver, /datum/material/gold, /datum/material/diamond, /datum/material/plasma, /datum/material/uranium, /datum/material/bananium, /datum/material/titanium, /datum/material/bluespace), INFINITY, TRUE, /obj/item/stack) diff --git a/code/modules/mining/machine_stacking.dm b/code/modules/mining/machine_stacking.dm index 40f4db3660..c06a090314 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 c7ddaebe2d..491d647c37 100644 --- a/code/modules/mining/machine_vending.dm +++ b/code/modules/mining/machine_vending.dm @@ -88,7 +88,7 @@ src.equipment_path = path src.cost = cost -/obj/machinery/mineral/equipment_vendor/Initialize() +/obj/machinery/mineral/equipment_vendor/Initialize(mapload) . = ..() build_inventory() @@ -281,7 +281,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( diff --git a/code/modules/mining/mine_items.dm b/code/modules/mining/mine_items.dm index e9c38398fb..091e80aef6 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 8037a22a52..51a3d196b6 100644 --- a/code/modules/mining/minebot.dm +++ b/code/modules/mining/minebot.dm @@ -39,7 +39,7 @@ var/light_on = 0 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) . = ..() stored_gun = new(src) var/datum/action/innate/minedrone/toggle_light/toggle_light_action = new() diff --git a/code/modules/mining/mint.dm b/code/modules/mining/mint.dm index f8a4ba4a72..8f3431ba1b 100644 --- a/code/modules/mining/mint.dm +++ b/code/modules/mining/mint.dm @@ -16,7 +16,7 @@ var/chosen = /datum/material/iron //which material will be used to make coins -/obj/machinery/mineral/mint/Initialize() +/obj/machinery/mineral/mint/Initialize(mapload) . = ..() AddComponent(/datum/component/material_container, list( /datum/material/iron, diff --git a/code/modules/mining/money_bag.dm b/code/modules/mining/money_bag.dm index 7be07f2bf9..b9365d2f9d 100644 --- a/code/modules/mining/money_bag.dm +++ b/code/modules/mining/money_bag.dm @@ -9,7 +9,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 83344949ac..056ad2d642 100644 --- a/code/modules/mining/ores_coins.dm +++ b/code/modules/mining/ores_coins.dm @@ -384,7 +384,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 90b6da26fa..a4e5b6b8d4 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 c2d950bc8f..ba082f4870 100644 --- a/code/modules/mob/dead/new_player/new_player.dm +++ b/code/modules/mob/dead/new_player/new_player.dm @@ -19,7 +19,7 @@ //is there a result we want to read from the age gate var/age_gate_result -/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) @@ -760,7 +760,7 @@ client.prefs.scars_list["[cur_scar_index]"] = valid_scars client.prefs.save_character() - + client.prefs.copy_to(H, initial_spawn = TRUE) H.dna.update_dna_identity() if(mind) diff --git a/code/modules/mob/living/bloodcrawl.dm b/code/modules/mob/living/bloodcrawl.dm index 13803a63d2..6f2f7094e6 100644 --- a/code/modules/mob/living/bloodcrawl.dm +++ b/code/modules/mob/living/bloodcrawl.dm @@ -144,7 +144,7 @@ icon = 'icons/effects/blood.dmi' item_flags = ABSTRACT -/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 f38f326bc6..99ff254d08 100644 --- a/code/modules/mob/living/brain/MMI.dm +++ b/code/modules/mob/living/brain/MMI.dm @@ -32,7 +32,7 @@ else . += "mmi_dead" -/obj/item/mmi/Initialize() +/obj/item/mmi/Initialize(mapload) . = ..() radio = new(src) //Spawns a radio inside the MMI. radio.broadcasting = 0 //researching radio mmis turned the robofabs into radios because this didnt start as 0. @@ -215,7 +215,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 = 0 diff --git a/code/modules/mob/living/brain/brain.dm b/code/modules/mob/living/brain/brain.dm index 91fab5f2ec..4186148031 100644 --- a/code/modules/mob/living/brain/brain.dm +++ b/code/modules/mob/living/brain/brain.dm @@ -9,7 +9,7 @@ possible_a_intents = list(INTENT_HELP, INTENT_HARM) //for mechas speech_span = SPAN_ROBOT -/mob/living/brain/Initialize() +/mob/living/brain/Initialize(mapload) . = ..() create_dna(src) if(stored_dna.blood_type) diff --git a/code/modules/mob/living/brain/posibrain.dm b/code/modules/mob/living/brain/posibrain.dm index e1eb09405a..b3749b4a41 100644 --- a/code/modules/mob/living/brain/posibrain.dm +++ b/code/modules/mob/living/brain/posibrain.dm @@ -28,7 +28,7 @@ GLOBAL_VAR(posibrain_notify_cooldown) var/list/possible_names //If you leave this blank, it will use the global posibrain names var/picked_name -/obj/item/mmi/posibrain/Initialize() +/obj/item/mmi/posibrain/Initialize(mapload) . = ..() brainmob = new(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 e9a62d209b..1b7207d7eb 100644 --- a/code/modules/mob/living/carbon/alien/alien.dm +++ b/code/modules/mob/living/carbon/alien/alien.dm @@ -34,7 +34,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/lay_down) diff --git a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm index 28d311b034..6598dd6a54 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm @@ -17,7 +17,7 @@ Doesn't work on other aliens/AI.*/ action_icon_state = "spell_default" action_background_icon_state = "bg_alien" -/obj/effect/proc_holder/alien/Initialize() +/obj/effect/proc_holder/alien/Initialize(mapload) . = ..() action = new(src) 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 cf024d707d..3e8a5d8bdb 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm @@ -6,7 +6,7 @@ icon_state = "aliend" meleeKnockdownPower = 80 -/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 796a78d566..3e0faf44f0 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 67cf6f7d25..9f8b9d6845 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/caste/sentinel.dm @@ -6,7 +6,7 @@ icon_state = "aliens" meleeSlashHumanPower = 15 -/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 343b95f05d..71b1d09fad 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm @@ -28,7 +28,7 @@ GLOBAL_LIST_INIT(strippable_alien_humanoid_items, create_strippable_list(list( ))) //This is fine right now, if we're adding organ specific damage this needs to be updated -/mob/living/carbon/alien/humanoid/Initialize() +/mob/living/carbon/alien/humanoid/Initialize(mapload) AddAbility(new/obj/effect/proc_holder/alien/regurgitate(null)) . = ..() diff --git a/code/modules/mob/living/carbon/alien/humanoid/queen.dm b/code/modules/mob/living/carbon/alien/humanoid/queen.dm index bcc83f14f9..7717180e6c 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/queen.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/queen.dm @@ -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 7a610ac421..ce38f615f7 100644 --- a/code/modules/mob/living/carbon/alien/larva/larva.dm +++ b/code/modules/mob/living/carbon/alien/larva/larva.dm @@ -21,7 +21,7 @@ bodyparts = list(/obj/item/bodypart/chest/larva, /obj/item/bodypart/head/larva) //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 41c3882de6..2db912fe7e 100644 --- a/code/modules/mob/living/carbon/alien/organs.dm +++ b/code/modules/mob/living/carbon/alien/organs.dm @@ -4,7 +4,7 @@ var/list/alien_powers = list() organ_flags = ORGAN_NO_SPOIL|ORGAN_EDIBLE -/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/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index cc17928a98..e12a28d01a 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -1,7 +1,7 @@ /mob/living/carbon blood_volume = BLOOD_VOLUME_NORMAL -/mob/living/carbon/Initialize() +/mob/living/carbon/Initialize(mapload) . = ..() create_reagents(1000, NONE, NO_REAGENTS_VALUE) update_body_parts() //to update the carbon's new bodyparts appearance diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 0f149928df..c60e4c6cb2 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -5,7 +5,7 @@ icon_state = "caucasian_m" SET_APPEARANCE_FLAGS(KEEP_TOGETHER|TILE_BOUND|PIXEL_SCALE) -/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/lay_down) add_verb(src, /mob/living/carbon/human/verb/underwear_toggle) @@ -903,7 +903,7 @@ /mob/living/carbon/human/species var/race = null -/mob/living/carbon/human/species/Initialize() +/mob/living/carbon/human/species/Initialize(mapload) . = ..() set_species(race) 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 66402de911..3b84752e1e 100644 --- a/code/modules/mob/living/carbon/human/species_types/jellypeople.dm +++ b/code/modules/mob/living/carbon/human/species_types/jellypeople.dm @@ -474,7 +474,7 @@ light_color = "#FFFFFF" light_range = LUMINESCENT_DEFAULT_GLOW -/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/shadowpeople.dm b/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm index f412099831..33d92aa683 100644 --- a/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm +++ b/code/modules/mob/living/carbon/human/species_types/shadowpeople.dm @@ -168,7 +168,7 @@ sharpness = SHARP_EDGED total_mass = TOTAL_MASS_HAND_REPLACEMENT -/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/mob/living/carbon/monkey/monkey.dm b/code/modules/mob/living/carbon/monkey/monkey.dm index 8a029613e2..bb35ff082b 100644 --- a/code/modules/mob/living/carbon/monkey/monkey.dm +++ b/code/modules/mob/living/carbon/monkey/monkey.dm @@ -180,7 +180,7 @@ GLOBAL_LIST_INIT(strippable_monkey_items, create_strippable_list(list( /mob/living/carbon/monkey/angry aggressive = TRUE -/mob/living/carbon/monkey/angry/Initialize() +/mob/living/carbon/monkey/angry/Initialize(mapload) . = ..() if(prob(10)) var/obj/item/clothing/head/helmet/justice/escape/helmet = new(src) diff --git a/code/modules/mob/living/carbon/monkey/punpun.dm b/code/modules/mob/living/carbon/monkey/punpun.dm index d71a989c1d..c8b8dbbc9d 100644 --- a/code/modules/mob/living/carbon/monkey/punpun.dm +++ b/code/modules/mob/living/carbon/monkey/punpun.dm @@ -9,7 +9,7 @@ var/list/pet_monkey_names = list("Pun Pun", "Bubbles", "Mojo", "George", "Darwin", "Aldo", "Caeser", "Kanzi", "Kong", "Terk", "Grodd", "Mala", "Bojangles", "Coco", "Able", "Baker", "Scatter", "Norbit", "Travis") var/list/rare_pet_monkey_names = list("Professor Bobo", "Deempisi's Revenge", "Furious George", "King Louie", "Dr. Zaius", "Jimmy Rustles", "Dinner", "Lanky") -/mob/living/carbon/monkey/punpun/Initialize() +/mob/living/carbon/monkey/punpun/Initialize(mapload) Read_Memory() if(ancestor_name) name = ancestor_name diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index bf3094cb08..0fd3b19650 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -1,4 +1,4 @@ -/mob/living/Initialize() +/mob/living/Initialize(mapload) . = ..() if(unique_name) name = "[name] ([rand(1, 1000)])" diff --git a/code/modules/mob/living/silicon/ai/freelook/eye.dm b/code/modules/mob/living/silicon/ai/freelook/eye.dm index 3fad48e584..bc6ab7c34e 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_visible = TRUE var/ai_detector_color = COLOR_RED -/mob/camera/aiEye/Initialize() +/mob/camera/aiEye/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 54713acac4..b48b39a885 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/aiEye/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/aiEye/pic_in_pic() aiEye.screen = src @@ -103,7 +103,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 d19ef4c16e..fdde445379 100644 --- a/code/modules/mob/living/silicon/pai/pai.dm +++ b/code/modules/mob/living/silicon/pai/pai.dm @@ -95,7 +95,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 @@ -143,7 +143,7 @@ custom_holoform.Grant(src) emitter_next_use = world.time + 10 SECONDS -/mob/living/silicon/pai/deployed/Initialize() +/mob/living/silicon/pai/deployed/Initialize(mapload) . = ..() fold_out(TRUE) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index bd1c260bf5..19847d9bdc 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -731,7 +731,7 @@ /mob/living/silicon/robot/modules var/set_module = /obj/item/robot_module -/mob/living/silicon/robot/modules/Initialize() +/mob/living/silicon/robot/modules/Initialize(mapload) . = ..() module.transform_to(set_module) @@ -772,7 +772,7 @@ cell = /obj/item/stock_parts/cell/hyper // radio = /obj/item/radio/borg/syndicate -/mob/living/silicon/robot/modules/syndicate/Initialize() +/mob/living/silicon/robot/modules/syndicate/Initialize(mapload) . = ..() radio = new /obj/item/radio/borg/syndicate(src) laws = new /datum/ai_laws/syndicate_override() diff --git a/code/modules/mob/living/silicon/robot/robot_modules.dm b/code/modules/mob/living/silicon/robot/robot_modules.dm index b9c6f4e2c4..f2f1f8adbe 100644 --- a/code/modules/mob/living/silicon/robot/robot_modules.dm +++ b/code/modules/mob/living/silicon/robot/robot_modules.dm @@ -43,7 +43,7 @@ var/moduleselect_alternate_icon var/dogborg = FALSE -/obj/item/robot_module/Initialize() +/obj/item/robot_module/Initialize(mapload) . = ..() for(var/i in basic_modules) var/obj/item/I = new i(src) @@ -638,7 +638,7 @@ return FALSE return ..() -/obj/item/robot_module/security/Initialize() +/obj/item/robot_module/security/Initialize(mapload) . = ..() if(!CONFIG_GET(flag/weaken_secborg)) for(var/obj/item/gun/energy/disabler/cyborg/pewpew in basic_modules) diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm index b0ec2959d7..b97536b7a4 100644 --- a/code/modules/mob/living/silicon/silicon.dm +++ b/code/modules/mob/living/silicon/silicon.dm @@ -50,7 +50,7 @@ typing_indicator_state = /obj/effect/overlay/typing_indicator/machine -/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 99048b4e9f..5796fe67ac 100644 --- a/code/modules/mob/living/simple_animal/bot/SuperBeepsky.dm +++ b/code/modules/mob/living/simple_animal/bot/SuperBeepsky.dm @@ -30,7 +30,7 @@ playsound(src,'sound/effects/beepskyspinsabre.ogg',100,TRUE,-1) stun_attack(AM) -/mob/living/simple_animal/bot/secbot/grievous/Initialize() +/mob/living/simple_animal/bot/secbot/grievous/Initialize(mapload) . = ..() weapon = new baton_type(src) 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 bac59ef2e0..203ac5f846 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 @@ bot_reset() //Resets an AI's call, should it exist. update_icon() -/mob/living/simple_animal/bot/Initialize() +/mob/living/simple_animal/bot/Initialize(mapload) . = ..() GLOB.bots_list += src access_card = new /obj/item/card/id(src) @@ -871,7 +871,7 @@ Pass a positive integer as an argument to override a bot's default speed. anchored = FALSE var/mob/living/simple_animal/bot/owner = null -/obj/machinery/bot_core/Initialize() +/obj/machinery/bot_core/Initialize(mapload) . = ..() owner = loc if(!istype(owner)) diff --git a/code/modules/mob/living/simple_animal/bot/cleanbot.dm b/code/modules/mob/living/simple_animal/bot/cleanbot.dm index ed68d4d272..0ad684ab4b 100644 --- a/code/modules/mob/living/simple_animal/bot/cleanbot.dm +++ b/code/modules/mob/living/simple_animal/bot/cleanbot.dm @@ -102,7 +102,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 fff1782154..8ec0aab5bb 100644 --- a/code/modules/mob/living/simple_animal/bot/construction.dm +++ b/code/modules/mob/living/simple_animal/bot/construction.dm @@ -208,7 +208,7 @@ created_name = "Floorbot" var/toolbox = /obj/item/storage/toolbox -/obj/item/bot_assembly/floorbot/Initialize() +/obj/item/bot_assembly/floorbot/Initialize(mapload) . = ..() update_icon() @@ -277,7 +277,7 @@ var/healthanalyzer = /obj/item/healthanalyzer var/firstaid = /obj/item/storage/firstaid -/obj/item/bot_assembly/medbot/Initialize() +/obj/item/bot_assembly/medbot/Initialize(mapload) . = ..() spawn(5) if(skin) diff --git a/code/modules/mob/living/simple_animal/bot/firebot.dm b/code/modules/mob/living/simple_animal/bot/firebot.dm index 9eea7a85b1..0b97a553b2 100644 --- a/code/modules/mob/living/simple_animal/bot/firebot.dm +++ b/code/modules/mob/living/simple_animal/bot/firebot.dm @@ -39,7 +39,7 @@ var/extinguish_fires = TRUE var/stationary_mode = FALSE -/mob/living/simple_animal/bot/firebot/Initialize() +/mob/living/simple_animal/bot/firebot/Initialize(mapload) . = ..() update_icon() var/datum/job/engineer/J = new/datum/job/engineer diff --git a/code/modules/mob/living/simple_animal/bot/floorbot.dm b/code/modules/mob/living/simple_animal/bot/floorbot.dm index c8b502f032..8cd1cd519d 100644 --- a/code/modules/mob/living/simple_animal/bot/floorbot.dm +++ b/code/modules/mob/living/simple_animal/bot/floorbot.dm @@ -43,7 +43,7 @@ #define REPLACE_TILE 6 #define TILE_EMAG 7 -/mob/living/simple_animal/bot/floorbot/Initialize() +/mob/living/simple_animal/bot/floorbot/Initialize(mapload) . = ..() update_icon() var/datum/job/engineer/J = new/datum/job/engineer diff --git a/code/modules/mob/living/simple_animal/bot/honkbot.dm b/code/modules/mob/living/simple_animal/bot/honkbot.dm index eb415b9bb5..b8d82e8c7a 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_icon() auto_patrol = TRUE diff --git a/code/modules/mob/living/simple_animal/bot/mulebot.dm b/code/modules/mob/living/simple_animal/bot/mulebot.dm index 56e2f66feb..34b49f5a64 100644 --- a/code/modules/mob/living/simple_animal/bot/mulebot.dm +++ b/code/modules/mob/living/simple_animal/bot/mulebot.dm @@ -49,7 +49,7 @@ var/obj/item/stock_parts/cell/cell var/bloodiness = 0 -/mob/living/simple_animal/bot/mulebot/Initialize() +/mob/living/simple_animal/bot/mulebot/Initialize(mapload) . = ..() wires = new /datum/wires/mulebot(src) var/datum/job/cargo_tech/J = new/datum/job/cargo_tech diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm index c3ab805d62..4f6b6aa351 100644 --- a/code/modules/mob/living/simple_animal/bot/secbot.dm +++ b/code/modules/mob/living/simple_animal/bot/secbot.dm @@ -58,7 +58,7 @@ name = "Officer Pipsqueak" desc = "It's Officer Beep O'sky's smaller, just-as aggressive cousin, Pipsqueak." -/mob/living/simple_animal/bot/secbot/beepsky/jr/Initialize() +/mob/living/simple_animal/bot/secbot/beepsky/jr/Initialize(mapload) . = ..() resize = 0.8 update_transform() @@ -174,7 +174,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) . = ..() update_icon() var/datum/job/detective/J = new/datum/job/detective diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm index 7b1e2dcaba..3e32712fb3 100644 --- a/code/modules/mob/living/simple_animal/constructs.dm +++ b/code/modules/mob/living/simple_animal/constructs.dm @@ -46,7 +46,7 @@ var/runetype var/datum/mind/original_mind -/mob/living/simple_animal/hostile/construct/Initialize() +/mob/living/simple_animal/hostile/construct/Initialize(mapload) . = ..() update_health_hud() var/spellnum = 1 @@ -382,7 +382,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 4a96c4be67..6fb53d42a4 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/bumbles.dm b/code/modules/mob/living/simple_animal/friendly/bumbles.dm index 53be1434c9..dca823ba21 100644 --- a/code/modules/mob/living/simple_animal/friendly/bumbles.dm +++ b/code/modules/mob/living/simple_animal/friendly/bumbles.dm @@ -31,7 +31,7 @@ speak_chance = 1 unique_name = FALSE -/mob/living/simple_animal/pet/bumbles/Initialize() +/mob/living/simple_animal/pet/bumbles/Initialize(mapload) . = ..() add_verb(src, /mob/living/proc/lay_down) AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) diff --git a/code/modules/mob/living/simple_animal/friendly/butterfly.dm b/code/modules/mob/living/simple_animal/friendly/butterfly.dm index 1e6afd6044..5cb54ce6ca 100644 --- a/code/modules/mob/living/simple_animal/friendly/butterfly.dm +++ b/code/modules/mob/living/simple_animal/friendly/butterfly.dm @@ -28,7 +28,7 @@ verb_exclaim = "flutters intensely" verb_yell = "flutters intensely" -/mob/living/simple_animal/butterfly/Initialize() +/mob/living/simple_animal/butterfly/Initialize(mapload) . = ..() var/newcolor = rgb(rand(0, 255), rand(0, 255), rand(0, 255)) add_atom_colour(newcolor, FIXED_COLOUR_PRIORITY) diff --git a/code/modules/mob/living/simple_animal/friendly/cat.dm b/code/modules/mob/living/simple_animal/friendly/cat.dm index 4594d27ecd..0d04d4b562 100644 --- a/code/modules/mob/living/simple_animal/friendly/cat.dm +++ b/code/modules/mob/living/simple_animal/friendly/cat.dm @@ -36,7 +36,7 @@ var/held_icon = "cat2" footstep_type = FOOTSTEP_MOB_CLAW -/mob/living/simple_animal/pet/cat/Initialize() +/mob/living/simple_animal/pet/cat/Initialize(mapload) . = ..() add_verb(src, /mob/living/proc/lay_down) AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) @@ -107,7 +107,7 @@ var/cats_deployed = 0 var/memory_saved = FALSE -/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/cockroach.dm b/code/modules/mob/living/simple_animal/friendly/cockroach.dm index b0d66a1209..66e9c75315 100644 --- a/code/modules/mob/living/simple_animal/friendly/cockroach.dm +++ b/code/modules/mob/living/simple_animal/friendly/cockroach.dm @@ -31,7 +31,7 @@ var/squish_chance = 50 del_on_death = 1 -/mob/living/simple_animal/cockroach/Initialize() +/mob/living/simple_animal/cockroach/Initialize(mapload) . = ..() AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) diff --git a/code/modules/mob/living/simple_animal/friendly/crab.dm b/code/modules/mob/living/simple_animal/friendly/crab.dm index addbd493a5..8fd97a465c 100644 --- a/code/modules/mob/living/simple_animal/friendly/crab.dm +++ b/code/modules/mob/living/simple_animal/friendly/crab.dm @@ -26,7 +26,7 @@ var/obj/item/inventory_mask gold_core_spawnable = FRIENDLY_SPAWN -/mob/living/simple_animal/crab/Initialize() +/mob/living/simple_animal/crab/Initialize(mapload) . = ..() AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) diff --git a/code/modules/mob/living/simple_animal/friendly/dog.dm b/code/modules/mob/living/simple_animal/friendly/dog.dm index e8c29e6d55..bce46fe10d 100644 --- a/code/modules/mob/living/simple_animal/friendly/dog.dm +++ b/code/modules/mob/living/simple_animal/friendly/dog.dm @@ -84,7 +84,7 @@ 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) @@ -92,11 +92,11 @@ D.update_owner(src) break -/mob/living/simple_animal/pet/dog/corgi/Initialize() +/mob/living/simple_animal/pet/dog/corgi/Initialize(mapload) . = ..() regenerate_icons() -/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) @@ -398,7 +398,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 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 dfb00f2657..475886a2e1 100644 --- a/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm +++ b/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm @@ -79,7 +79,7 @@ "These rules are at admin discretion and will be heavily enforced.\n"+\ "If you do not have the regular drone laws, follow your laws to the best of your ability." -/mob/living/simple_animal/drone/Initialize() +/mob/living/simple_animal/drone/Initialize(mapload) . = ..() GLOB.drones_list += src access_card = new /obj/item/card/id(src) 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 df4d1e0673..10cb6bde83 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 @@ -17,7 +17,7 @@ var/seasonal_hats = TRUE //If TRUE, and there are no default hats, different holidays will grant different hats var/static/list/possible_seasonal_hats //This is built automatically in build_seasonal_hats() but can also be edited by admins! -/obj/item/drone_shell/Initialize() +/obj/item/drone_shell/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 f3842b507a..4acbd41977 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 @@ -31,7 +31,7 @@ hacked = TRUE 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 @@ -45,7 +45,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 @@ -55,7 +55,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'." @@ -79,7 +79,7 @@ default_hatmask = null picked = TRUE -/mob/living/simple_animal/drone/polymorphed/Initialize() +/mob/living/simple_animal/drone/polymorphed/Initialize(mapload) . = ..() liberate() visualAppearence = pick(MAINTDRONE, REPAIRDRONE, SCOUTDRONE) @@ -136,7 +136,7 @@ /mob/living/simple_animal/drone/cogscarab/admin //an admin-only subtype of cogscarab with a no-cost fabricator and slab in its box default_storage = /obj/item/storage/toolbox/brass/prefilled/ratvar/admin -/mob/living/simple_animal/drone/cogscarab/Initialize() +/mob/living/simple_animal/drone/cogscarab/Initialize(mapload) . = ..() set_light(2, 0.5) qdel(access_card) //we don't have free access 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 81925d922f..c6dfc772c1 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(/datum/reagent/milk_reagent) +/mob/living/simple_animal/hostile/retaliate/goat/Initialize(mapload, /datum/reagent/milk_reagent) udder = new (null, milk_reagent) . = ..() @@ -144,7 +144,7 @@ footstep_type = FOOTSTEP_MOB_SHOE -/mob/living/simple_animal/cow/Initialize() +/mob/living/simple_animal/cow/Initialize(mapload) udder = new(null, milk_reagent) . = ..() @@ -197,7 +197,7 @@ name = "strange cow" desc = "Something seems off about the milk this cow is producing." -/mob/living/simple_animal/cow/random/Initialize() +/mob/living/simple_animal/cow/random/Initialize(mapload) milk_reagent = get_random_reagent_id() //this has a blacklist so don't worry about romerol cows, etc ..() @@ -210,7 +210,7 @@ speak_chance = 10 //the cow is eager to share its wisdom! //but is wise enough to not lag the server too bad milk_reagent = /datum/reagent/medicine/liquid_wisdom -/mob/living/simple_animal/cow/wisdom/Initialize() +/mob/living/simple_animal/cow/wisdom/Initialize(mapload) . = ..() speak = GLOB.wisdoms //Done here so it's setup properly @@ -248,7 +248,7 @@ footstep_type = FOOTSTEP_MOB_CLAW -/mob/living/simple_animal/chick/Initialize() +/mob/living/simple_animal/chick/Initialize(mapload) . = ..() pixel_x = rand(-6, 6) pixel_y = rand(0, 10) @@ -310,7 +310,7 @@ footstep_type = FOOTSTEP_MOB_CLAW -/mob/living/simple_animal/chicken/Initialize() +/mob/living/simple_animal/chicken/Initialize(mapload) . = ..() if(!body_color) body_color = pick(validColors) @@ -408,7 +408,7 @@ --kiwi_count return ..() -/mob/living/simple_animal/kiwi/Initialize() +/mob/living/simple_animal/kiwi/Initialize(mapload) . = ..() ++kiwi_count @@ -482,7 +482,7 @@ footstep_type = FOOTSTEP_MOB_CLAW -/mob/living/simple_animal/babyKiwi/Initialize() +/mob/living/simple_animal/babyKiwi/Initialize(mapload) . = ..() pixel_x = rand(-6, 6) pixel_y = rand(0, 10) @@ -506,7 +506,7 @@ /obj/item/udder name = "udder" -/obj/item/udder/Initialize(loc, milk_reagent) +/obj/item/udder/Initialize(mapload, loc, milk_reagent) if(!milk_reagent) milk_reagent = /datum/reagent/consumable/milk create_reagents(50, NONE, NO_REAGENTS_VALUE) diff --git a/code/modules/mob/living/simple_animal/friendly/gondola.dm b/code/modules/mob/living/simple_animal/friendly/gondola.dm index e29cbb8062..8ba92fd967 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) . = ..() if (!(istype(src, /mob/living/simple_animal/pet/gondola/gondolapod))) CreateGondola() diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm index 66b4bd5e73..d49eb1251d 100644 --- a/code/modules/mob/living/simple_animal/friendly/mouse.dm +++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm @@ -30,7 +30,7 @@ var/chew_probability = 1 faction = list("rat") -/mob/living/simple_animal/mouse/Initialize() +/mob/living/simple_animal/mouse/Initialize(mapload) . = ..() AddComponent(/datum/component/squeak, list('sound/effects/mousesqueek.ogg'=1), 100) if(!body_color) @@ -174,7 +174,7 @@ GLOBAL_VAR(tom_existed) desc = "Jerry the cat is not amused." gold_core_spawnable = NO_SPAWN -/mob/living/simple_animal/mouse/brown/Tom/Initialize() +/mob/living/simple_animal/mouse/brown/Tom/Initialize(mapload) . = ..() GLOB.tom_existed = TRUE diff --git a/code/modules/mob/living/simple_animal/friendly/pet.dm b/code/modules/mob/living/simple_animal/friendly/pet.dm index dbdb5c646c..78193b481f 100644 --- a/code/modules/mob/living/simple_animal/friendly/pet.dm +++ b/code/modules/mob/living/simple_animal/friendly/pet.dm @@ -38,7 +38,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/friendly/possum.dm b/code/modules/mob/living/simple_animal/friendly/possum.dm index 5e7ed572e2..4f1e27d1db 100644 --- a/code/modules/mob/living/simple_animal/friendly/possum.dm +++ b/code/modules/mob/living/simple_animal/friendly/possum.dm @@ -27,7 +27,7 @@ mob_biotypes = MOB_ORGANIC|MOB_BEAST gold_core_spawnable = FRIENDLY_SPAWN -/mob/living/simple_animal/opossum/Initialize() +/mob/living/simple_animal/opossum/Initialize(mapload) . = ..() AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) diff --git a/code/modules/mob/living/simple_animal/friendly/snake.dm b/code/modules/mob/living/simple_animal/friendly/snake.dm index 61c735c7c1..3e40ab53bc 100644 --- a/code/modules/mob/living/simple_animal/friendly/snake.dm +++ b/code/modules/mob/living/simple_animal/friendly/snake.dm @@ -38,7 +38,7 @@ obj_damage = 0 environment_smash = ENVIRONMENT_SMASH_NONE -/mob/living/simple_animal/hostile/retaliate/poison/snake/Initialize() +/mob/living/simple_animal/hostile/retaliate/poison/snake/Initialize(mapload) . = ..() AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) diff --git a/code/modules/mob/living/simple_animal/gremlin/gremlin.dm b/code/modules/mob/living/simple_animal/gremlin/gremlin.dm index a6312b9ddf..da6fed4051 100644 --- a/code/modules/mob/living/simple_animal/gremlin/gremlin.dm +++ b/code/modules/mob/living/simple_animal/gremlin/gremlin.dm @@ -63,7 +63,7 @@ GLOBAL_LIST(bad_gremlin_items) var/list/hear_memory = list() var/const/max_hear_memory = 20 -/mob/living/simple_animal/hostile/gremlin/Initialize() +/mob/living/simple_animal/hostile/gremlin/Initialize(mapload) . = ..() AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) ADD_TRAIT(src, TRAIT_SHOCKIMMUNE, INNATE_TRAIT) 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 7083f891b8..77d4fd1013 100644 --- a/code/modules/mob/living/simple_animal/guardian/types/assassin.dm +++ b/code/modules/mob/living/simple_animal/guardian/types/assassin.dm @@ -17,7 +17,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 fc2912ec2f..78225a458c 100644 --- a/code/modules/mob/living/simple_animal/guardian/types/support.dm +++ b/code/modules/mob/living/simple_animal/guardian/types/support.dm @@ -15,7 +15,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/alien.dm b/code/modules/mob/living/simple_animal/hostile/alien.dm index 57ddbe6290..a620c9a58b 100644 --- a/code/modules/mob/living/simple_animal/hostile/alien.dm +++ b/code/modules/mob/living/simple_animal/hostile/alien.dm @@ -40,7 +40,7 @@ death_sound = 'sound/voice/hiss6.ogg' deathmessage = "lets out a waning guttural screech, green blood bubbling from its maw..." -/mob/living/simple_animal/hostile/alien/Initialize() +/mob/living/simple_animal/hostile/alien/Initialize(mapload) . = ..() AddComponent(/datum/component/footstep, FOOTSTEP_MOB_CLAW) @@ -86,7 +86,7 @@ melee_damage_upper = 20 del_on_death = TRUE loot = list(/obj/effect/mob_spawn/alien/corpse/humanoid/sentinel) - + /mob/living/simple_animal/hostile/alien/queen name = "alien queen" diff --git a/code/modules/mob/living/simple_animal/hostile/banana_spider.dm b/code/modules/mob/living/simple_animal/hostile/banana_spider.dm index 802f55a934..f8e8bf75d4 100644 --- a/code/modules/mob/living/simple_animal/hostile/banana_spider.dm +++ b/code/modules/mob/living/simple_animal/hostile/banana_spider.dm @@ -30,7 +30,7 @@ var/projectile_density = TRUE //griffons get shot del_on_death = TRUE -/mob/living/simple_animal/banana_spider/Initialize() +/mob/living/simple_animal/banana_spider/Initialize(mapload) . = ..() var/area/A = get_area(src) if(A) @@ -105,6 +105,6 @@ juice_results = list(/datum/reagent/consumable/banana = 0) -/obj/item/reagent_containers/food/snacks/deadbanana_spider/Initialize() +/obj/item/reagent_containers/food/snacks/deadbanana_spider/Initialize(mapload) . = ..() AddComponent(/datum/component/slippery, 20) diff --git a/code/modules/mob/living/simple_animal/hostile/bees.dm b/code/modules/mob/living/simple_animal/hostile/bees.dm index 399a403ce7..1f0efddd8d 100644 --- a/code/modules/mob/living/simple_animal/hostile/bees.dm +++ b/code/modules/mob/living/simple_animal/hostile/bees.dm @@ -60,7 +60,7 @@ var/static/hydroponicstypecache = typecacheof(/obj/machinery/hydroponics) var/held_icon = "" // bees are small and have no held icon (aka the coder doesn't know how to sprite it) -/mob/living/simple_animal/hostile/poison/bees/Initialize() +/mob/living/simple_animal/hostile/poison/bees/Initialize(mapload) . = ..() generate_bee_visuals() AddComponent(/datum/component/swarming) @@ -211,7 +211,7 @@ beehome = BB break // End loop after the first compatible find. -/mob/living/simple_animal/hostile/poison/bees/toxin/Initialize() +/mob/living/simple_animal/hostile/poison/bees/toxin/Initialize(mapload) . = ..() var/datum/reagent/R = pick(typesof(/datum/reagent/toxin)) assign_reagent(GLOB.chemical_reagents_list[R]) @@ -289,7 +289,7 @@ ..() -/obj/item/queen_bee/bought/Initialize() +/obj/item/queen_bee/bought/Initialize(mapload) . = ..() queen = new(src) @@ -310,6 +310,6 @@ /mob/living/simple_animal/hostile/poison/bees/short desc = "These bees seem unstable and won't survive for long." -/mob/living/simple_animal/hostile/poison/bees/short/Initialize() +/mob/living/simple_animal/hostile/poison/bees/short/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/death), 50 SECONDS) 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 1b0d210d9c..1dedf8cd29 100644 --- a/code/modules/mob/living/simple_animal/hostile/bosses/boss.dm +++ b/code/modules/mob/living/simple_animal/hostile/bosses/boss.dm @@ -13,7 +13,7 @@ var/point_regen_amount = 1 sentience_type = SENTIENCE_BOSS -/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 fe00af9384..6db5250469 100644 --- a/code/modules/mob/living/simple_animal/hostile/bosses/paperwizard.dm +++ b/code/modules/mob/living/simple_animal/hostile/bosses/paperwizard.dm @@ -182,7 +182,7 @@ duration = 18 randomdir = FALSE -/obj/effect/temp_visual/paperwiz_dying/Initialize() +/obj/effect/temp_visual/paperwiz_dying/Initialize(mapload) . = ..() visible_message("The wizard cries out in pain as a gate appears behind him, sucking him in!") playsound(get_turf(src),'sound/magic/mandswap.ogg', 50, 1, 1) diff --git a/code/modules/mob/living/simple_animal/hostile/bread.dm b/code/modules/mob/living/simple_animal/hostile/bread.dm index 1fe1a13e75..663b1fae72 100644 --- a/code/modules/mob/living/simple_animal/hostile/bread.dm +++ b/code/modules/mob/living/simple_animal/hostile/bread.dm @@ -32,7 +32,7 @@ verb_yell = "growls loudly" del_on_death = TRUE -/mob/living/simple_animal/bread/hostile/Initialize() +/mob/living/simple_animal/bread/hostile/Initialize(mapload) . = ..() var/area/A = get_area(src) if(A) diff --git a/code/modules/mob/living/simple_animal/hostile/carp.dm b/code/modules/mob/living/simple_animal/hostile/carp.dm index 747abb4b19..98dddab7bd 100644 --- a/code/modules/mob/living/simple_animal/hostile/carp.dm +++ b/code/modules/mob/living/simple_animal/hostile/carp.dm @@ -85,7 +85,7 @@ melee_damage_lower = 20 melee_damage_upper = 20 -/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(4, 10) @@ -109,7 +109,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/floor_cluwne.dm b/code/modules/mob/living/simple_animal/hostile/floor_cluwne.dm index b6d5db7d6d..d52da8f095 100644 --- a/code/modules/mob/living/simple_animal/hostile/floor_cluwne.dm +++ b/code/modules/mob/living/simple_animal/hostile/floor_cluwne.dm @@ -49,7 +49,7 @@ GLOBAL_VAR_INIT(floor_cluwnes, 0) hud_possible = list(ANTAG_HUD) -/mob/living/simple_animal/hostile/floor_cluwne/Initialize() +/mob/living/simple_animal/hostile/floor_cluwne/Initialize(mapload) . = ..() access_card = new /obj/item/card/id(src) var/datum/job/captain/C = new /datum/job/captain @@ -431,7 +431,7 @@ GLOBAL_VAR_INIT(floor_cluwnes, 0) duration = 600 randomdir = FALSE -/obj/effect/temp_visual/fcluwne_manifest/Initialize() +/obj/effect/temp_visual/fcluwne_manifest/Initialize(mapload) . = ..() playsound(src, 'sound/misc/floor_cluwne_emerge.ogg', 100, 1) flick("fcluwne_manifest",src) @@ -440,7 +440,7 @@ GLOBAL_VAR_INIT(floor_cluwnes, 0) name = "floor cluwne" desc = "If you have this, tell a coder or admin!" -/obj/effect/dummy/floorcluwne_orbit/Initialize() +/obj/effect/dummy/floorcluwne_orbit/Initialize(mapload) . = ..() GLOB.floor_cluwnes++ name += " ([GLOB.floor_cluwnes])" 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 2349685a4e..23a0d44d56 100644 --- a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm +++ b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm @@ -57,7 +57,7 @@ var/datum/action/innate/spider/lay_web/lay_web var/directive = "" //Message passed down to children, to relay the creator's orders -/mob/living/simple_animal/hostile/poison/giant_spider/Initialize() +/mob/living/simple_animal/hostile/poison/giant_spider/Initialize(mapload) . = ..() lay_web = new lay_web.Grant(src) @@ -122,7 +122,7 @@ var/datum/action/innate/spider/set_directive/set_directive var/static/list/consumed_mobs = list() //the tags of mobs that have been consumed by nurse spiders to lay eggs -/mob/living/simple_animal/hostile/poison/giant_spider/nurse/Initialize() +/mob/living/simple_animal/hostile/poison/giant_spider/nurse/Initialize(mapload) . = ..() wrap = new AddAbility(wrap) @@ -208,7 +208,7 @@ var/datum/action/innate/spider/comm/letmetalkpls gold_core_spawnable = NO_SPAWN -/mob/living/simple_animal/hostile/poison/giant_spider/nurse/midwife/Initialize() +/mob/living/simple_animal/hostile/poison/giant_spider/nurse/midwife/Initialize(mapload) . = ..() letmetalkpls = new letmetalkpls.Grant(src) @@ -396,7 +396,7 @@ action_icon_state = "wrap_0" action_background_icon_state = "bg_alien" -/obj/effect/proc_holder/wrap/Initialize() +/obj/effect/proc_holder/wrap/Initialize(mapload) . = ..() action = new(src) diff --git a/code/modules/mob/living/simple_animal/hostile/headcrab.dm b/code/modules/mob/living/simple_animal/hostile/headcrab.dm index 5e34d17bb2..c23e438b31 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/egg_lain = 0 gold_core_spawnable = NO_SPAWN //are you sure about this?? // CITADEL CHANGE, Yes. -/mob/living/simple_animal/hostile/headcrab/Initialize() +/mob/living/simple_animal/hostile/headcrab/Initialize(mapload) . = ..() AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) diff --git a/code/modules/mob/living/simple_animal/hostile/hivebot.dm b/code/modules/mob/living/simple_animal/hostile/hivebot.dm index b627bf67c2..b02919446b 100644 --- a/code/modules/mob/living/simple_animal/hostile/hivebot.dm +++ b/code/modules/mob/living/simple_animal/hostile/hivebot.dm @@ -33,7 +33,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!" diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index 029adbe92f..78635bab06 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -65,7 +65,7 @@ ///Declares a cooldown for potential charges right off the bat. COOLDOWN_DECLARE(charge_cooldown) -/mob/living/simple_animal/hostile/Initialize() +/mob/living/simple_animal/hostile/Initialize(mapload) . = ..() if(!targets_from) 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 b98ee5adfb..a0528b4109 100644 --- a/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm +++ b/code/modules/mob/living/simple_animal/hostile/jungle/leaper.dm @@ -60,7 +60,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)) @@ -78,7 +78,7 @@ max_integrity = 10 density = FALSE -/obj/structure/leaper_bubble/Initialize() +/obj/structure/leaper_bubble/Initialize(mapload) . = ..() INVOKE_ASYNC(src, /atom/movable.proc/float, TRUE) QDEL_IN(src, 100) @@ -126,7 +126,7 @@ 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) diff --git a/code/modules/mob/living/simple_animal/hostile/killertomato.dm b/code/modules/mob/living/simple_animal/hostile/killertomato.dm index d3d3dadd1e..1d23e04b2d 100644 --- a/code/modules/mob/living/simple_animal/hostile/killertomato.dm +++ b/code/modules/mob/living/simple_animal/hostile/killertomato.dm @@ -29,6 +29,6 @@ maxbodytemp = 500 gold_core_spawnable = HOSTILE_SPAWN -/mob/living/simple_animal/hostile/killertomato/Initialize() +/mob/living/simple_animal/hostile/killertomato/Initialize(mapload) . = ..() AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) 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 f2dc6abe40..db5ea11f4d 100644 --- a/code/modules/mob/living/simple_animal/hostile/mecha_pilot.dm +++ b/code/modules/mob/living/simple_animal/hostile/mecha_pilot.dm @@ -40,7 +40,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/mecha/combat, TRUE) @@ -60,7 +60,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/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 c28fa99054..3369588915 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 @@ -57,7 +57,7 @@ Difficulty: Medium /datum/action/innate/megafauna_attack/kinetic_accelerator, /datum/action/innate/megafauna_attack/transform_weapon) -/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/Initialize() +/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner/Initialize(mapload) . = ..() internal = new/obj/item/gps/internal/miner(src) 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 9bcc21efa6..c3a8eec30f 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm @@ -120,7 +120,7 @@ Difficulty: Hard SetRecoveryTime(10) -/mob/living/simple_animal/hostile/megafauna/bubblegum/Initialize() +/mob/living/simple_animal/hostile/megafauna/bubblegum/Initialize(mapload) . = ..() if(istype(src, /mob/living/simple_animal/hostile/megafauna/bubblegum/hallucination)) return @@ -454,7 +454,7 @@ Difficulty: Hard deathmessage = "Explodes into a pool of blood!" deathsound = 'sound/effects/splat.ogg' -/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 0135984be9..265785d9ce 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm @@ -94,7 +94,7 @@ Difficulty: Very Hard INVOKE_ASYNC(src, .proc/alternating_dir_shots) -/mob/living/simple_animal/hostile/megafauna/colossus/Initialize() +/mob/living/simple_animal/hostile/megafauna/colossus/Initialize(mapload) . = ..() internal = new/obj/item/gps/internal/colossus(src) @@ -262,7 +262,7 @@ Difficulty: Very Hard return FALSE return TRUE -/obj/machinery/smartfridge/black_box/Initialize() +/obj/machinery/smartfridge/black_box/Initialize(mapload) . = ..() var/static/obj/machinery/smartfridge/black_box/current if(current && current != src) @@ -426,7 +426,7 @@ Difficulty: Very Hard /obj/machinery/anomalous_crystal/honk //Strips and equips you as a clown. I apologize for nothing observer_desc = "This crystal strips and equips its targets as clowns." - possible_methods = list(ACTIVATE_TOUCH) //Because We love AOE transformations! + possible_methods = list(ACTIVATE_TOUCH) //Because We love AOE transformations! activation_sound = 'sound/items/bikehorn.ogg' /obj/machinery/anomalous_crystal/honk/ActivationReaction(mob/user) @@ -452,7 +452,7 @@ Difficulty: Very Hard 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]\"." @@ -518,7 +518,7 @@ Difficulty: Very Hard cooldown_add = 50 var/obj/item/projectile/generated_projectile = /obj/item/projectile/beam/emitter -/obj/machinery/anomalous_crystal/emitter/Initialize() +/obj/machinery/anomalous_crystal/emitter/Initialize(mapload) . = ..() generated_projectile = pick(/obj/item/projectile/colossus) @@ -629,7 +629,7 @@ Difficulty: Very Hard stop_automated_movement = 1 var/heal_power = 5 -/mob/living/simple_animal/hostile/lightgeist/Initialize() +/mob/living/simple_animal/hostile/lightgeist/Initialize(mapload) . = ..() remove_verb(src, /mob/living/verb/pulled) remove_verb(src, /mob/verb/me_verb) 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 a5fc918181..609d4dcefa 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 @@ -48,7 +48,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) . = ..() AddComponent(/datum/component/knockback, 7, FALSE, TRUE) AddComponent(/datum/component/lifesteal, 50) @@ -309,7 +309,7 @@ Difficulty: Extremely Hard desc = "A pair of winter boots contractually made by a devil, they cannot be taken off once put on." slowdown = SHOES_SPEED_SLIGHT -/obj/item/clothing/shoes/winterboots/ice_boots/speedy/Initialize() +/obj/item/clothing/shoes/winterboots/ice_boots/speedy/Initialize(mapload) . = ..() ADD_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT) @@ -318,7 +318,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) . = ..() AddComponent(/datum/component/knockback, 4, FALSE, TRUE) AddComponent(/datum/component/lifesteal, 5) diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/dragon_vore.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/dragon_vore.dm index a2d18c508e..7a946e662b 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/dragon_vore.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/dragon_vore.dm @@ -2,7 +2,7 @@ vore_active = TRUE isPredator = TRUE -/mob/living/simple_animal/hostile/megafauna/dragon/Initialize() +/mob/living/simple_animal/hostile/megafauna/dragon/Initialize(mapload) // Create and register 'stomachs' var/obj/belly/megafauna/dragon/maw/maw = new(src) var/obj/belly/megafauna/dragon/gullet/gullet = new(src) 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 dc13d870c5..a544650e9a 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/drake.dm @@ -74,7 +74,7 @@ Difficulty: Medium footstep_type = FOOTSTEP_MOB_HEAVY -/mob/living/simple_animal/hostile/megafauna/dragon/Initialize() +/mob/living/simple_animal/hostile/megafauna/dragon/Initialize(mapload) smallsprite.Grant(src) . = ..() internal = new/obj/item/gps/internal/dragon(src) 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 c1aea8db9d..19b6abf4c2 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm @@ -81,7 +81,7 @@ Difficulty: Normal 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) . = ..() internal = new/obj/item/gps/internal/hierophant(src) 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 15bfe2b7f7..1b17b408b1 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/legion.dm @@ -59,7 +59,7 @@ SHITCODE AHEAD. BE ADVISED. Also comment extravaganza var/size = 3 var/charging = FALSE -/mob/living/simple_animal/hostile/megafauna/legion/Initialize() +/mob/living/simple_animal/hostile/megafauna/legion/Initialize(mapload) . = ..() internal = new/obj/item/gps/internal/legion(src) @@ -345,7 +345,7 @@ SHITCODE AHEAD. BE ADVISED. Also comment extravaganza ///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 923a626b28..6ce43ed409 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/swarmer.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/swarmer.dm @@ -64,7 +64,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 internal = new/obj/item/gps/internal/swarmer_beacon(src) @@ -104,7 +104,7 @@ GLOBAL_LIST_INIT(AISwarmerCapsByType, list(/mob/living/simple_animal/hostile/swa weather_immunities = list("ash") //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) . = ..() ToggleLight() //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 938483be84..0d6287e50c 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/wendigo.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/wendigo.dm @@ -70,7 +70,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/mining_mobs/basilisk.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/basilisk.dm index c5be239b3b..ffe24c9dd9 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 @@ -110,7 +110,7 @@ qdel(O) src.visible_message("[src] examines [O] 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 4425bce532..7b21ce6a62 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 @@ -203,7 +203,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) ..() 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 dca508cfeb..c744d4ed58 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 @@ -275,7 +275,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 3845c6f406..2017d75c36 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 @@ -35,7 +35,7 @@ var/chase_time = 100 var/will_burrow = TRUE -/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 6bd55d06ae..dbd271c30c 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 @@ -101,7 +101,7 @@ stat_attack = UNCONSCIOUS robust_searching = 1 -/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 e35220a920..d0aa25aabc 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 @@ -46,7 +46,7 @@ /obj/item/organ/lungs, /obj/item/organ/stomach, /obj/item/organ/tongue) // So we dont eat implants or brains. Still can eat robotic stuff thats subtyped of base line but thats a issue for another day. var/obj/item/udder/gutlunch/udder = null -/mob/living/simple_animal/hostile/asteroid/gutlunch/Initialize() +/mob/living/simple_animal/hostile/asteroid/gutlunch/Initialize(mapload) udder = new() . = ..() AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) @@ -103,7 +103,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 @@ -130,7 +130,7 @@ /obj/item/udder/gutlunch name = "nutrient sac" -/obj/item/udder/gutlunch/Initialize() +/obj/item/udder/gutlunch/Initialize(mapload) . = ..() reagents = new(50) reagents.my_atom = src 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 7db91b50ad..757272ca98 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 @@ -92,7 +92,7 @@ var/swarming = FALSE var/my_creator = null -/mob/living/simple_animal/hostile/asteroid/hivelordbrood/Initialize() +/mob/living/simple_animal/hostile/asteroid/hivelordbrood/Initialize(mapload) . = ..() if(swarming) AddComponent(/datum/component/swarming) //oh god not the bees @@ -126,7 +126,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) @@ -278,7 +278,7 @@ see_in_dark = 8 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) @@ -298,7 +298,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" = 45, "Ashwalker" = 10, "Golem" = 10,"Clown" = 10, pick(list("Shadow", "YeOlde","Operative", "Cultist", "Lavaknight")) = 4, "Assistant" = 20, "Beelegion" = 1)) switch(type) if("Miner") diff --git a/code/modules/mob/living/simple_animal/hostile/mushroom.dm b/code/modules/mob/living/simple_animal/hostile/mushroom.dm index f41746ea69..527fd51260 100644 --- a/code/modules/mob/living/simple_animal/hostile/mushroom.dm +++ b/code/modules/mob/living/simple_animal/hostile/mushroom.dm @@ -40,7 +40,7 @@ var/static/mutable_appearance/cap_living //Where we store our cap icons so we dont generate them constantly to update our icon var/static/mutable_appearance/cap_dead -/mob/living/simple_animal/hostile/mushroom/Initialize() +/mob/living/simple_animal/hostile/mushroom/Initialize(mapload) . = ..() AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) @@ -57,7 +57,7 @@ if(!stat)//Mushrooms slowly regenerate if conscious, for people who want to save them from being eaten adjustBruteLoss(-2) -/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 92f331071a..c3a272fee0 100644 --- a/code/modules/mob/living/simple_animal/hostile/netherworld.dm +++ b/code/modules/mob/living/simple_animal/hostile/netherworld.dm @@ -34,7 +34,7 @@ deathmessage = "wails as its form turns into a pulpy mush." death_sound = 'sound/voice/hiss6.ogg' -/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/effects/hyperspace_begin.ogg', 'sound/effects/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/desceration-01.ogg', 'sound/misc/desceration-02.ogg', 'sound/misc/desceration-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/gunshot_silenced.ogg', 'sound/weapons/gunshot2.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/machines/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', get_announcer_sound("outbreak5"), get_announcer_sound("outbreak7"), get_announcer_sound("poweroff"), get_announcer_sound("radiation"), get_announcer_sound("shuttlerecalled"), get_announcer_sound("shuttledock"), get_announcer_sound("shuttlecalled"), get_announcer_sound("aimalf")) //hahahaha fuck you code divers @@ -81,7 +81,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/pirate.dm b/code/modules/mob/living/simple_animal/hostile/pirate.dm index 74e37bea21..01015c43ab 100644 --- a/code/modules/mob/living/simple_animal/hostile/pirate.dm +++ b/code/modules/mob/living/simple_animal/hostile/pirate.dm @@ -55,7 +55,7 @@ speed = 1 spacewalk = TRUE -/mob/living/simple_animal/hostile/pirate/melee/Initialize() +/mob/living/simple_animal/hostile/pirate/melee/Initialize(mapload) . = ..() sord = new(src) @@ -63,7 +63,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) diff --git a/code/modules/mob/living/simple_animal/hostile/plaguerat.dm b/code/modules/mob/living/simple_animal/hostile/plaguerat.dm index 497359829e..7112740b39 100644 --- a/code/modules/mob/living/simple_animal/hostile/plaguerat.dm +++ b/code/modules/mob/living/simple_animal/hostile/plaguerat.dm @@ -42,7 +42,7 @@ GLOBAL_LIST_EMPTY(plague_rats) var/obj/machinery/atmospherics/components/unary/entry_vent var/obj/machinery/atmospherics/components/unary/exit_vent -/mob/living/simple_animal/hostile/plaguerat/Initialize() +/mob/living/simple_animal/hostile/plaguerat/Initialize(mapload) . = ..() GLOB.plague_rats += src AddComponent(/datum/component/swarming) diff --git a/code/modules/mob/living/simple_animal/hostile/regalrat.dm b/code/modules/mob/living/simple_animal/hostile/regalrat.dm index 6995202e9c..f90fb55424 100644 --- a/code/modules/mob/living/simple_animal/hostile/regalrat.dm +++ b/code/modules/mob/living/simple_animal/hostile/regalrat.dm @@ -29,7 +29,7 @@ var/datum/action/cooldown/riot ///Number assigned to rats and mice, checked when determining infighting. -/mob/living/simple_animal/hostile/regalrat/Initialize() +/mob/living/simple_animal/hostile/regalrat/Initialize(mapload) . = ..() coffer = new /datum/action/cooldown/coffer coffer.Grant(src) @@ -183,7 +183,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 AddComponent(/datum/component/swarming) 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 cb1ee6c6f6..c45587e2aa 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/bat.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/bat.dm @@ -41,7 +41,7 @@ atmos_requirements = list("min_oxy" = 0, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 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/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) 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 e2f83677d8..0233cb9c5d 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/clown.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/clown.dm @@ -85,7 +85,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) @@ -147,7 +147,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) . = ..() AddElement(/datum/element/ventcrawling, given_tier = VENTCRAWLER_ALWAYS) 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 2433b45cc0..ea250d60ba 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 = HOSTILE_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) . = ..() if(prob(1)) name = "rare frog" 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 f6ab2a1a9e..a0a2b897e4 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/ghost.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/ghost.dm @@ -45,7 +45,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) . = ..() give_hair() set_light(1, 2) // same glowing as visible player ghosts diff --git a/code/modules/mob/living/simple_animal/hostile/skeleton.dm b/code/modules/mob/living/simple_animal/hostile/skeleton.dm index ebacf1edef..a812e9d3c4 100644 --- a/code/modules/mob/living/simple_animal/hostile/skeleton.dm +++ b/code/modules/mob/living/simple_animal/hostile/skeleton.dm @@ -123,6 +123,6 @@ attack_sound = 'sound/weapons/sonic_jackhammer.ogg' 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 df73516337..01f6b72128 100644 --- a/code/modules/mob/living/simple_animal/hostile/syndicate.dm +++ b/code/modules/mob/living/simple_animal/hostile/syndicate.dm @@ -62,7 +62,7 @@ speed = 1 spacewalk = TRUE -/mob/living/simple_animal/hostile/syndicate/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/space/Initialize(mapload) . = ..() set_light(4) @@ -98,7 +98,7 @@ speed = 1 spacewalk = TRUE -/mob/living/simple_animal/hostile/syndicate/melee/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/melee/space/Initialize(mapload) . = ..() set_light(4) @@ -122,7 +122,7 @@ status_flags = 0 var/obj/effect/light_emitter/red_energy_sword/sord -/mob/living/simple_animal/hostile/syndicate/melee/sword/Initialize() +/mob/living/simple_animal/hostile/syndicate/melee/sword/Initialize(mapload) . = ..() set_light(2) @@ -147,7 +147,7 @@ speed = 1 spacewalk = TRUE -/mob/living/simple_animal/hostile/syndicate/melee/sword/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/melee/sword/space/Initialize(mapload) . = ..() sord = new(src) set_light(4) @@ -192,7 +192,7 @@ speed = 1 spacewalk = TRUE -/mob/living/simple_animal/hostile/syndicate/ranged/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/ranged/space/Initialize(mapload) . = ..() set_light(4) @@ -225,7 +225,7 @@ speed = 1 spacewalk = TRUE -/mob/living/simple_animal/hostile/syndicate/ranged/smg/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/ranged/smg/space/Initialize(mapload) . = ..() set_light(4) @@ -255,7 +255,7 @@ speed = 1 spacewalk = TRUE -/mob/living/simple_animal/hostile/syndicate/ranged/shotgun/space/Initialize() +/mob/living/simple_animal/hostile/syndicate/ranged/shotgun/space/Initialize(mapload) . = ..() set_light(4) @@ -309,6 +309,6 @@ del_on_death = 1 deathmessage = "is smashed into pieces!" -/mob/living/simple_animal/hostile/viscerator/Initialize() +/mob/living/simple_animal/hostile/viscerator/Initialize(mapload) . = ..() AddComponent(/datum/component/swarming) 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 cc5b0b8a75..452138fa80 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 @@ -20,7 +20,7 @@ /// The amount of time it takes to create a venus human trap, in deciseconds var/growth_time = 1200 -/obj/structure/alien/resin/flower_bud_enemy/Initialize() +/obj/structure/alien/resin/flower_bud_enemy/Initialize(mapload) . = ..() var/list/anchors = list() anchors += locate(x-2,y+2,z) diff --git a/code/modules/mob/living/simple_animal/hostile/wizard.dm b/code/modules/mob/living/simple_animal/hostile/wizard.dm index 59bd67e42a..97f4a0a5fc 100644 --- a/code/modules/mob/living/simple_animal/hostile/wizard.dm +++ b/code/modules/mob/living/simple_animal/hostile/wizard.dm @@ -37,7 +37,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 = NONE 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 f10b184a45..eb35606e0d 100644 --- a/code/modules/mob/living/simple_animal/hostile/wumborian_fugu.dm +++ b/code/modules/mob/living/simple_animal/hostile/wumborian_fugu.dm @@ -38,7 +38,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 4cc66bc4bd..fe479bb943 100644 --- a/code/modules/mob/living/simple_animal/parrot.dm +++ b/code/modules/mob/living/simple_animal/parrot.dm @@ -104,7 +104,7 @@ var/obj/item/held_item = null -/mob/living/simple_animal/parrot/Initialize() +/mob/living/simple_animal/parrot/Initialize(mapload) . = ..() if(spawns_with_headset) if(!ears) @@ -902,7 +902,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() @@ -1004,7 +1004,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/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index 2a978bedb4..13209dee0f 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -151,7 +151,7 @@ //Generic flags var/simple_mob_flags = NONE -/mob/living/simple_animal/Initialize() +/mob/living/simple_animal/Initialize(mapload) . = ..() GLOB.simple_animals[AIStatus] += src if(gender == PLURAL) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 4b8fa75aee..c2b531770d 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -1,4 +1,4 @@ -/mob/Initialize() +/mob/Initialize(mapload) add_to_mob_list() if(stat == DEAD) add_to_dead_mob_list() diff --git a/code/modules/modular_computers/computers/item/computer.dm b/code/modules/modular_computers/computers/item/computer.dm index 1d90c3a651..c98d0eb850 100644 --- a/code/modules/modular_computers/computers/item/computer.dm +++ b/code/modules/modular_computers/computers/item/computer.dm @@ -54,7 +54,7 @@ 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 b4669c72f8..bb39381e6d 100644 --- a/code/modules/modular_computers/computers/item/laptop.dm +++ b/code/modules/modular_computers/computers/item/laptop.dm @@ -35,7 +35,7 @@ if(card_slot2.stored_card) . += "\The [src] has \a [card_slot2] with an id inside, Alt-click to remove the id." -/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 6bc2919bea..2ed2ec78a5 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 8741c468d2..2c6bef81c2 100644 --- a/code/modules/modular_computers/computers/item/tablet.dm +++ b/code/modules/modular_computers/computers/item/tablet.dm @@ -29,7 +29,7 @@ if(inserted_item && (!isturf(loc))) . += "Ctrl-click to remove [inserted_item]." -/obj/item/modular_computer/tablet/Initialize() +/obj/item/modular_computer/tablet/Initialize(mapload) . = ..() if(can_have_pen) if(inserted_item) @@ -214,6 +214,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 2c760a4b6c..44a96aa2e7 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,16 +52,16 @@ /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 . = ..() install_component(new /obj/item/computer_hardware/sensorpackage) -/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/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) @@ -69,13 +69,13 @@ 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/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 @@ -94,7 +94,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)) @@ -102,7 +102,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 9da6b35ff9..0cb2a65375 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 dd78a985e1..5fb771cb85 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 aa6108fcbd..3cbdc4a923 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 29614cc7b0..b0bf605f9a 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 f59a06dc69..716c4a0dad 100644 --- a/code/modules/ninja/energy_katana.dm +++ b/code/modules/ninja/energy_katana.dm @@ -32,7 +32,7 @@ var/datum/action/innate/dash/ninja/jaunt var/dash_toggled = TRUE -/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 d9d362c43c..6c9a0b08ab 100644 --- a/code/modules/ninja/suit/suit.dm +++ b/code/modules/ninja/suit/suit.dm @@ -66,7 +66,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 c957a927ec..ed83a0f67b 100644 --- a/code/modules/paperwork/clipboard.dm +++ b/code/modules/paperwork/clipboard.dm @@ -29,7 +29,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/filingcabinet.dm b/code/modules/paperwork/filingcabinet.dm index 59bbf47128..f6725eeb1d 100644 --- a/code/modules/paperwork/filingcabinet.dm +++ b/code/modules/paperwork/filingcabinet.dm @@ -192,7 +192,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 2c534d0178..d69da4d797 100644 --- a/code/modules/paperwork/folders.dm +++ b/code/modules/paperwork/folders.dm @@ -100,7 +100,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_icon() @@ -113,7 +113,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_icon() @@ -121,12 +121,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_icon() -/obj/item/folder/syndicate/mining/Initialize() +/obj/item/folder/syndicate/mining/Initialize(mapload) . = ..() new /obj/item/documents/syndicate/mining(src) update_icon() diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index 366d1a3f68..9b10ea230d 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 = initial(pixel_x) + rand(-9, 9) pixel_y = initial(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 0dbc80521b..bd59ed7a10 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_icon() @@ -120,7 +120,7 @@ return ..() -/obj/item/paperslip/Initialize() +/obj/item/paperslip/Initialize(mapload) . = ..() pixel_x = initial(pixel_x) + rand(-5, 5) pixel_y = initial(pixel_y) + rand(-5, 5) diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm index 20c9c6211a..0ad49e192d 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 @@ -212,7 +212,7 @@ reagents.trans_to(M, reagents.total_volume, log = "sleepypen inject") -/obj/item/pen/sleepy/Initialize() +/obj/item/pen/sleepy/Initialize(mapload) . = ..() create_reagents(45, OPENCONTAINER) reagents.add_reagent(/datum/reagent/toxin/chloralhydrate, 20) diff --git a/code/modules/paperwork/photocopier.dm b/code/modules/paperwork/photocopier.dm index 06adda95dd..8079950aff 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 e874f2836d..ff1a1fd563 100644 --- a/code/modules/paperwork/ticketmachine.dm +++ b/code/modules/paperwork/ticketmachine.dm @@ -44,7 +44,7 @@ tickets.Cut() update_icon() -/obj/machinery/ticket_machine/Initialize() +/obj/machinery/ticket_machine/Initialize(mapload) . = ..() update_icon() @@ -69,7 +69,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 @@ -92,7 +92,7 @@ desc = "A remote controller for the HoP's ticket machine." var/obj/machinery/ticket_machine/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 8361accba2..6f35e7a99d 100644 --- a/code/modules/photography/photos/album.dm +++ b/code/modules/photography/photos/album.dm @@ -11,7 +11,7 @@ resistance_flags = FLAMMABLE 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.can_hold = typecacheof(list(/obj/item/photo)) diff --git a/code/modules/plumbing/plumbers/medipenrefill.dm b/code/modules/plumbing/plumbers/medipenrefill.dm index fb7553a4d5..140114673a 100644 --- a/code/modules/plumbing/plumbers/medipenrefill.dm +++ b/code/modules/plumbing/plumbers/medipenrefill.dm @@ -15,7 +15,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/modules/pool/pool_controller.dm b/code/modules/pool/pool_controller.dm index ff52fb9fef..f2a3b23e57 100644 --- a/code/modules/pool/pool_controller.dm +++ b/code/modules/pool/pool_controller.dm @@ -64,7 +64,7 @@ . = ..() . += "Alt click to drain reagents." -/obj/machinery/pool/controller/Initialize() +/obj/machinery/pool/controller/Initialize(mapload) . = ..() START_PROCESSING(SSfastprocess, src) create_reagents(1000) diff --git a/code/modules/pool/pool_drain.dm b/code/modules/pool/pool_drain.dm index 527c25b9f0..09afe09cd1 100644 --- a/code/modules/pool/pool_drain.dm +++ b/code/modules/pool/pool_drain.dm @@ -24,7 +24,7 @@ var/cooldown -/obj/machinery/pool/drain/Initialize() +/obj/machinery/pool/drain/Initialize(mapload) START_PROCESSING(SSfastprocess, src) whirling_mobs = list() return ..() diff --git a/code/modules/power/antimatter/control.dm b/code/modules/power/antimatter/control.dm index f8f31f6990..f514cd3135 100644 --- a/code/modules/power/antimatter/control.dm +++ b/code/modules/power/antimatter/control.dm @@ -30,7 +30,7 @@ var/stored_power = 0//Power to deploy per tick -/obj/machinery/power/am_control_unit/Initialize() +/obj/machinery/power/am_control_unit/Initialize(mapload) . = ..() linked_shielding = list() linked_cores = list() diff --git a/code/modules/power/antimatter/shielding.dm b/code/modules/power/antimatter/shielding.dm index 52478e532e..1faa2eb801 100644 --- a/code/modules/power/antimatter/shielding.dm +++ b/code/modules/power/antimatter/shielding.dm @@ -28,7 +28,7 @@ var/dirs = 0 -/obj/machinery/am_shielding/Initialize() +/obj/machinery/am_shielding/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/controllerscan), 10) diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index 10a4f5844a..6d1da2bc20 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -370,7 +370,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) diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm index 3d07b60c41..08a804550e 100644 --- a/code/modules/power/gravitygenerator.dm +++ b/code/modules/power/gravitygenerator.dm @@ -98,7 +98,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.dm b/code/modules/power/lighting.dm index 00487ee607..a473b7f62f 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -250,7 +250,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) @@ -259,7 +259,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) @@ -267,7 +267,7 @@ // create a new lighting fixture -/obj/machinery/light/Initialize() +/obj/machinery/light/Initialize(mapload) . = ..() if(start_with_cell && !no_emergency) cell = new/obj/item/stock_parts/cell/emergency_light(src) @@ -797,7 +797,7 @@ desc = "A broken [name]." -/obj/item/light/Initialize() +/obj/item/light/Initialize(mapload) . = ..() update() diff --git a/code/modules/power/monitor.dm b/code/modules/power/monitor.dm index 393d403c4d..e5099dd009 100644 --- a/code/modules/power/monitor.dm +++ b/code/modules/power/monitor.dm @@ -31,7 +31,7 @@ . = ..() . += "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/multiz.dm b/code/modules/power/multiz.dm index d5f2846293..9a012991f7 100644 --- a/code/modules/power/multiz.dm +++ b/code/modules/power/multiz.dm @@ -41,7 +41,7 @@ addtimer(CALLBACK(src, .proc/refresh), 20) //Wait a bit so we can find the one below, then get powering return TRUE -/obj/machinery/power/deck_relay/Initialize() +/obj/machinery/power/deck_relay/Initialize(mapload) . = ..() addtimer(CALLBACK(src, .proc/find_relays), 30) addtimer(CALLBACK(src, .proc/refresh), 50) //Wait a bit so we can find the one below, then get powering diff --git a/code/modules/power/port_gen.dm b/code/modules/power/port_gen.dm index a57711a539..48c67f164e 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) @@ -85,12 +85,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 10219c29c1..618dbb2120 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() @@ -56,7 +56,7 @@ /obj/machinery/power/rtg/advanced/fullupgrade //fully ugpraded stock parts desc = "An advanced RTG capable of moderating isotope decay, increasing power output but reducing lifetime. It uses plasma-fueled radiation collectors to increase output even further. This model is fully upgraded with the latest tech available in this quadrant." -/obj/machinery/power/rtg/advanced/fullupgrade/Initialize() +/obj/machinery/power/rtg/advanced/fullupgrade/Initialize(mapload) . = ..() //This looks terrifying. And apparently instancing vars and modifying the amount variable causes runtime errors. Guess we're sticking to copy pasta, thanks, byond. component_parts = list() diff --git a/code/modules/power/singularity/collector.dm b/code/modules/power/singularity/collector.dm index a6b144ebe6..16e49cd451 100644 --- a/code/modules/power/singularity/collector.dm +++ b/code/modules/power/singularity/collector.dm @@ -33,7 +33,7 @@ /obj/machinery/power/rad_collector/anchored anchored = TRUE -/obj/machinery/power/rad_collector/Initialize() +/obj/machinery/power/rad_collector/Initialize(mapload) . = ..() Radio = new /obj/item/radio(src) Radio.listening = 0 diff --git a/code/modules/power/singularity/emitter.dm b/code/modules/power/singularity/emitter.dm index 6961ec54bb..8f9a7805c6 100644 --- a/code/modules/power/singularity/emitter.dm +++ b/code/modules/power/singularity/emitter.dm @@ -57,7 +57,7 @@ state = EMITTER_WELDED use_power = FALSE -/obj/machinery/power/emitter/Initialize() +/obj/machinery/power/emitter/Initialize(mapload) . = ..() RefreshParts() wires = new /datum/wires/emitter(src) @@ -454,7 +454,7 @@ resistance_flags = FIRE_PROOF | UNACIDABLE | ACID_PROOF 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 af2237a426..161b43b3af 100644 --- a/code/modules/power/singularity/field_generator.dm +++ b/code/modules/power/singularity/field_generator.dm @@ -54,7 +54,7 @@ field_generator power level display . += "+p[power_level]" -/obj/machinery/field/generator/Initialize() +/obj/machinery/field/generator/Initialize(mapload) . = ..() fields = list() connected_gens = list() diff --git a/code/modules/power/singularity/narsie.dm b/code/modules/power/singularity/narsie.dm index 5f6e110a9c..0f58805976 100644 --- a/code/modules/power/singularity/narsie.dm +++ b/code/modules/power/singularity/narsie.dm @@ -27,7 +27,7 @@ grav_pull = 10 consume_range = 12 //How many tiles out do we eat -/obj/singularity/narsie/large/Initialize() +/obj/singularity/narsie/large/Initialize(mapload) . = ..() send_to_playing_players("NAR'SIE HAS RISEN") sound_to_playing_players('sound/creatures/narsie_rises.ogg') @@ -44,7 +44,7 @@ var/souls = 0 var/resolved = FALSE -/obj/singularity/narsie/large/cult/Initialize() +/obj/singularity/narsie/large/cult/Initialize(mapload) . = ..() GLOB.cult_narsie = src var/list/all_cults = list() diff --git a/code/modules/power/singularity/particle_accelerator/particle_control.dm b/code/modules/power/singularity/particle_accelerator/particle_control.dm index 96c8d9a263..3a592a4f98 100644 --- a/code/modules/power/singularity/particle_accelerator/particle_control.dm +++ b/code/modules/power/singularity/particle_accelerator/particle_control.dm @@ -19,7 +19,7 @@ var/strength = 0 var/powered = FALSE -/obj/machinery/particle_accelerator/control_box/Initialize() +/obj/machinery/particle_accelerator/control_box/Initialize(mapload) . = ..() wires = new /datum/wires/particle_accelerator/control_box(src) connected_parts = list() diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index 32e6186133..fff91df1b9 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -44,7 +44,7 @@ if(!terminal) . += "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 907c4e7d65..fad48b4854 100644 --- a/code/modules/power/solar.dm +++ b/code/modules/power/solar.dm @@ -297,7 +297,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 22ce4e7ce5..f75b5551ad 100644 --- a/code/modules/power/supermatter/supermatter.dm +++ b/code/modules/power/supermatter/supermatter.dm @@ -192,7 +192,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal) ///Disables the sm's proccessing totally. var/processes = TRUE -/obj/machinery/power/supermatter_crystal/Initialize() +/obj/machinery/power/supermatter_crystal/Initialize(mapload) . = ..() uid = gl_uid++ SSair.atmos_air_machinery += src diff --git a/code/modules/power/terminal.dm b/code/modules/power/terminal.dm index 3fa815bf99..fc6ff29856 100644 --- a/code/modules/power/terminal.dm +++ b/code/modules/power/terminal.dm @@ -12,7 +12,7 @@ var/obj/machinery/power/master = null -/obj/machinery/power/terminal/Initialize() +/obj/machinery/power/terminal/Initialize(mapload) . = ..() var/turf/T = get_turf(src) if(level == 1) diff --git a/code/modules/power/tesla/coil.dm b/code/modules/power/tesla/coil.dm index 13f2aab811..c32bbc0c86 100644 --- a/code/modules/power/tesla/coil.dm +++ b/code/modules/power/tesla/coil.dm @@ -23,7 +23,7 @@ /obj/machinery/power/tesla_coil/power circuit = /obj/item/circuitboard/machine/tesla_coil/power -/obj/machinery/power/tesla_coil/Initialize() +/obj/machinery/power/tesla_coil/Initialize(mapload) . = ..() wires = new /datum/wires/tesla_coil(src) linked_techweb = SSresearch.science_tech @@ -162,7 +162,7 @@ buckle_lying = FALSE buckle_requires_restraints = TRUE -/obj/machinery/power/grounding_rod/Initialize() +/obj/machinery/power/grounding_rod/Initialize(mapload) GLOB.grounding_rods |= src return ..() diff --git a/code/modules/power/turbine.dm b/code/modules/power/turbine.dm index dda7f27eee..c01e3f3dcc 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 @@ -162,7 +162,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) @@ -288,7 +288,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 6a73d9a366..4794aa6c10 100644 --- a/code/modules/projectiles/ammunition/_ammunition.dm +++ b/code/modules/projectiles/ammunition/_ammunition.dm @@ -26,7 +26,7 @@ name = "spent bullet casing" BB = null -/obj/item/ammo_casing/Initialize() +/obj/item/ammo_casing/Initialize(mapload) . = ..() if(projectile_type) BB = new projectile_type(src) diff --git a/code/modules/projectiles/ammunition/ballistic/shotgun.dm b/code/modules/projectiles/ammunition/ballistic/shotgun.dm index 04e8e62029..441d112e32 100644 --- a/code/modules/projectiles/ammunition/ballistic/shotgun.dm +++ b/code/modules/projectiles/ammunition/ballistic/shotgun.dm @@ -124,7 +124,7 @@ projectile_type = /obj/item/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) @@ -137,7 +137,7 @@ icon_state = "cnrshell" reagent_amount = 10 -/obj/item/ammo_casing/shotgun/dart/noreact/Initialize() +/obj/item/ammo_casing/shotgun/dart/noreact/Initialize(mapload) . = ..() reagents.reagents_holder_flags |= NO_REACT @@ -146,7 +146,7 @@ projectile_type = /obj/item/projectile/bullet/dart/piercing reagent_amount = 50 -/obj/item/ammo_casing/shotgun/dart/bioterror/Initialize() +/obj/item/ammo_casing/shotgun/dart/bioterror/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/toxin/amanitin, 12) //for a nasty surprise after you get shot and somehow escape and don't think to quickly purge, and even shock those who are loaded up on purging agents reagents.add_reagent(/datum/reagent/toxin/chloralhydrate, 6) diff --git a/code/modules/projectiles/boxes_magazines/_box_magazine.dm b/code/modules/projectiles/boxes_magazines/_box_magazine.dm index 9ea030da99..e44fcb38c8 100644 --- a/code/modules/projectiles/boxes_magazines/_box_magazine.dm +++ b/code/modules/projectiles/boxes_magazines/_box_magazine.dm @@ -23,7 +23,7 @@ var/list/bullet_cost var/list/base_cost// override this one as well if you override bullet_cost -/obj/item/ammo_box/Initialize() +/obj/item/ammo_box/Initialize(mapload) . = ..() if (!bullet_cost) for (var/material in custom_materials) diff --git a/code/modules/projectiles/boxes_magazines/external/rechargable.dm b/code/modules/projectiles/boxes_magazines/external/rechargable.dm index 76d8f217ab..45b7efca92 100644 --- a/code/modules/projectiles/boxes_magazines/external/rechargable.dm +++ b/code/modules/projectiles/boxes_magazines/external/rechargable.dm @@ -67,7 +67,7 @@ var/e_cost = 100 projectile_type = /obj/item/projectile/beam -/obj/item/ammo_casing/mws_batt/Initialize() +/obj/item/ammo_casing/mws_batt/Initialize(mapload) . = ..() pixel_x = rand(-10, 10) pixel_y = rand(-10, 10) diff --git a/code/modules/projectiles/boxes_magazines/internal/revolver.dm b/code/modules/projectiles/boxes_magazines/internal/revolver.dm index a9cad1adc8..3e91b2670e 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 = 0 -/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 a1c7c312ab..3210ad2d15 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -94,7 +94,7 @@ var/automatic = 0 //can gun use it, 0 is no, anything above 0 is the delay between clicks in ds -/obj/item/gun/Initialize() +/obj/item/gun/Initialize(mapload) . = ..() if(no_pin_required) pin = null diff --git a/code/modules/projectiles/guns/ballistic.dm b/code/modules/projectiles/guns/ballistic.dm index 1416dfa812..836ed3b804 100644 --- a/code/modules/projectiles/guns/ballistic.dm +++ b/code/modules/projectiles/guns/ballistic.dm @@ -10,7 +10,7 @@ var/magazine_wording = "magazine" var/sawn_item_state = "gun" -/obj/item/gun/ballistic/Initialize() +/obj/item/gun/ballistic/Initialize(mapload) . = ..() if(!spawnwithmagazine) update_icon() diff --git a/code/modules/projectiles/guns/ballistic/automatic.dm b/code/modules/projectiles/guns/ballistic/automatic.dm index 9388ca214a..aa3ac20cb8 100644 --- a/code/modules/projectiles/guns/ballistic/automatic.dm +++ b/code/modules/projectiles/guns/ballistic/automatic.dm @@ -110,7 +110,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_icon() @@ -172,7 +172,7 @@ burst_shot_delay = 2 pin = /obj/item/firing_pin/implant/pindicate -/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_icon() @@ -180,7 +180,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_icon() @@ -274,7 +274,7 @@ /obj/item/gun/ballistic/automatic/shotgun/bulldog/unrestricted pin = /obj/item/firing_pin -/obj/item/gun/ballistic/automatic/shotgun/bulldog/Initialize() +/obj/item/gun/ballistic/automatic/shotgun/bulldog/Initialize(mapload) . = ..() update_icon() diff --git a/code/modules/projectiles/guns/ballistic/magweapon.dm b/code/modules/projectiles/guns/ballistic/magweapon.dm index c01a2fb74a..f3a11eb179 100644 --- a/code/modules/projectiles/guns/ballistic/magweapon.dm +++ b/code/modules/projectiles/guns/ballistic/magweapon.dm @@ -21,7 +21,7 @@ var/obj/item/stock_parts/cell/cell var/cell_type = /obj/item/stock_parts/cell/magnetic -/obj/item/gun/ballistic/automatic/magrifle/Initialize() +/obj/item/gun/ballistic/automatic/magrifle/Initialize(mapload) . = ..() if(cell_type) cell = new cell_type(src) diff --git a/code/modules/projectiles/guns/ballistic/revolver.dm b/code/modules/projectiles/guns/ballistic/revolver.dm index 0d60203cb5..afb30631e0 100644 --- a/code/modules/projectiles/guns/ballistic/revolver.dm +++ b/code/modules/projectiles/guns/ballistic/revolver.dm @@ -6,7 +6,7 @@ fire_sound = "sound/weapons/revolvershot.ogg" casing_ejector = FALSE -/obj/item/gun/ballistic/revolver/Initialize() +/obj/item/gun/ballistic/revolver/Initialize(mapload) . = ..() if(!istype(magazine, /obj/item/ammo_box/magazine/internal/cylinder)) verbs += /obj/item/gun/ballistic/revolver/verb/spin @@ -109,7 +109,7 @@ ) var/list/safe_calibers -/obj/item/gun/ballistic/revolver/detective/Initialize() +/obj/item/gun/ballistic/revolver/detective/Initialize(mapload) . = ..() safe_calibers = magazine.caliber @@ -191,7 +191,7 @@ . = ..() spun = TRUE -/obj/item/gun/ballistic/revolver/russian/Initialize() +/obj/item/gun/ballistic/revolver/russian/Initialize(mapload) . = ..() do_spin() spun = TRUE diff --git a/code/modules/projectiles/guns/ballistic/shotgun.dm b/code/modules/projectiles/guns/ballistic/shotgun.dm index f84ed9cd8d..f7d57b43a0 100644 --- a/code/modules/projectiles/guns/ballistic/shotgun.dm +++ b/code/modules/projectiles/guns/ballistic/shotgun.dm @@ -192,7 +192,7 @@ flags_1 = NONE mag_type = /obj/item/ammo_box/magazine/internal/boltaction/enchanted/arcane_barrage -/obj/item/gun/ballistic/shotgun/boltaction/enchanted/Initialize() +/obj/item/gun/ballistic/shotgun/boltaction/enchanted/Initialize(mapload) . = ..() bolt_open = TRUE pump() @@ -303,7 +303,7 @@ . = ..() . += "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) diff --git a/code/modules/projectiles/guns/ballistic/toy.dm b/code/modules/projectiles/guns/ballistic/toy.dm index 1f0601ac77..a72a172891 100644 --- a/code/modules/projectiles/guns/ballistic/toy.dm +++ b/code/modules/projectiles/guns/ballistic/toy.dm @@ -35,7 +35,7 @@ /obj/item/gun/ballistic/automatic/toy/pistol/riot mag_type = /obj/item/ammo_box/magazine/toy/pistol/riot -/obj/item/gun/ballistic/automatic/toy/pistol/riot/Initialize() +/obj/item/gun/ballistic/automatic/toy/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 34e9247184..dd759f9e3c 100644 --- a/code/modules/projectiles/guns/energy.dm +++ b/code/modules/projectiles/guns/energy.dm @@ -49,7 +49,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/dueling.dm b/code/modules/projectiles/guns/energy/dueling.dm index 04eff5afa9..b11e5533cc 100644 --- a/code/modules/projectiles/guns/energy/dueling.dm +++ b/code/modules/projectiles/guns/energy/dueling.dm @@ -168,7 +168,7 @@ /obj/item/gun/energy/dueling/hugbox/stamina hugbox = DUEL_HUGBOX_NONLETHAL -/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 294040b040..a34e0f6f12 100644 --- a/code/modules/projectiles/guns/energy/energy_gun.dm +++ b/code/modules/projectiles/guns/energy/energy_gun.dm @@ -22,7 +22,7 @@ gunlight_state = "mini-light" can_flashlight = 0 // Can't attach or detach the flashlight, and override it's icon update -/obj/item/gun/energy/e_gun/mini/Initialize() +/obj/item/gun/energy/e_gun/mini/Initialize(mapload) 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 4d394401c4..a899dc9b79 100644 --- a/code/modules/projectiles/guns/energy/kinetic_accelerator.dm +++ b/code/modules/projectiles/guns/energy/kinetic_accelerator.dm @@ -125,7 +125,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.dm b/code/modules/projectiles/guns/energy/laser.dm index 8e61221cc8..f73ac9cfb8 100644 --- a/code/modules/projectiles/guns/energy/laser.dm +++ b/code/modules/projectiles/guns/energy/laser.dm @@ -204,7 +204,7 @@ throwforce = 10 obj_flags = UNIQUE_RENAME -/obj/item/gun/energy/laser/redtag/hitscan/chaplain/Initialize() +/obj/item/gun/energy/laser/redtag/hitscan/chaplain/Initialize(mapload) . = ..() AddComponent(/datum/component/anti_magic, TRUE, TRUE, FALSE, null, null, FALSE) diff --git a/code/modules/projectiles/guns/energy/laser_gatling.dm b/code/modules/projectiles/guns/energy/laser_gatling.dm index 2bb1ece906..16a977515c 100644 --- a/code/modules/projectiles/guns/energy/laser_gatling.dm +++ b/code/modules/projectiles/guns/energy/laser_gatling.dm @@ -17,7 +17,7 @@ var/overheat_max = 50 var/heat_diffusion = 1 -/obj/item/minigunpack/Initialize() +/obj/item/minigunpack/Initialize(mapload) . = ..() gun = new(src) START_PROCESSING(SSfastprocess, src) @@ -114,7 +114,7 @@ item_flags = NEEDS_PERMIT | SLOWS_WHILE_IN_HAND 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. ammo_pack = loc else diff --git a/code/modules/projectiles/guns/energy/pulse.dm b/code/modules/projectiles/guns/energy/pulse.dm index b05be99808..d5dc39695b 100644 --- a/code/modules/projectiles/guns/energy/pulse.dm +++ b/code/modules/projectiles/guns/energy/pulse.dm @@ -17,7 +17,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) . = ..() GLOB.poi_list += src var/turf/T = get_turf(src) diff --git a/code/modules/projectiles/guns/magic.dm b/code/modules/projectiles/guns/magic.dm index ebc4a2f2a4..4192f038c2 100644 --- a/code/modules/projectiles/guns/magic.dm +++ b/code/modules/projectiles/guns/magic.dm @@ -49,7 +49,7 @@ charges--//... drain a charge recharge_newshot() -/obj/item/gun/magic/Initialize() +/obj/item/gun/magic/Initialize(mapload) . = ..() charges = max_charges chambered = new ammo_type(src) diff --git a/code/modules/projectiles/guns/magic/motivation.dm b/code/modules/projectiles/guns/magic/motivation.dm index a33165b28b..db4c222619 100644 --- a/code/modules/projectiles/guns/magic/motivation.dm +++ b/code/modules/projectiles/guns/magic/motivation.dm @@ -23,7 +23,7 @@ block_parry_data = /datum/block_parry_data/motivation //to get this to toggle correctly -/obj/item/gun/magic/staff/motivation/Initialize() +/obj/item/gun/magic/staff/motivation/Initialize(mapload) . = ..() judgementcut = new(src) diff --git a/code/modules/projectiles/guns/magic/staff.dm b/code/modules/projectiles/guns/magic/staff.dm index 6ebdc5e7b8..f22cf6e1a9 100644 --- a/code/modules/projectiles/guns/magic/staff.dm +++ b/code/modules/projectiles/guns/magic/staff.dm @@ -86,7 +86,7 @@ sharpness = SHARP_EDGED max_charges = 4 -/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 f48020aeb5..8ff955fe66 100644 --- a/code/modules/projectiles/guns/magic/wand.dm +++ b/code/modules/projectiles/guns/magic/wand.dm @@ -9,7 +9,7 @@ max_charges = 100 //100, 50, 50, 34 (max charge distribution by 25%ths) var/variable_charges = 1 -/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/misc/beam_rifle.dm b/code/modules/projectiles/guns/misc/beam_rifle.dm index 2ef974a450..7608cd24bc 100644 --- a/code/modules/projectiles/guns/misc/beam_rifle.dm +++ b/code/modules/projectiles/guns/misc/beam_rifle.dm @@ -169,7 +169,7 @@ to_chat(user, "You set \the [src] to [projectile_setting_pierce? "pierce":"impact"] mode.") aiming_beam() -/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/misc/blastcannon.dm b/code/modules/projectiles/guns/misc/blastcannon.dm index 64cffe52e7..ec25ee3493 100644 --- a/code/modules/projectiles/guns/misc/blastcannon.dm +++ b/code/modules/projectiles/guns/misc/blastcannon.dm @@ -26,7 +26,7 @@ debug_power = 80 bombcheck = FALSE -/obj/item/gun/blastcannon/Initialize() +/obj/item/gun/blastcannon/Initialize(mapload) . = ..() if(!pin) pin = new diff --git a/code/modules/projectiles/guns/misc/chameleon.dm b/code/modules/projectiles/guns/misc/chameleon.dm index 4fa614ae5c..428de747f7 100644 --- a/code/modules/projectiles/guns/misc/chameleon.dm +++ b/code/modules/projectiles/guns/misc/chameleon.dm @@ -25,7 +25,7 @@ var/can_hitscan = FALSE var/hitscan_mode = FALSE -/obj/item/gun/energy/laser/chameleon/Initialize() +/obj/item/gun/energy/laser/chameleon/Initialize(mapload) . = ..() chameleon_action = new(src) chameleon_action.chameleon_type = /obj/item/gun diff --git a/code/modules/projectiles/guns/misc/chem_gun.dm b/code/modules/projectiles/guns/misc/chem_gun.dm index ccc4c5bd15..9f0815ebfb 100644 --- a/code/modules/projectiles/guns/misc/chem_gun.dm +++ b/code/modules/projectiles/guns/misc/chem_gun.dm @@ -21,7 +21,7 @@ var/list/allowed_containers = list(/obj/item/reagent_containers/glass/bottle/vial/small, /obj/item/reagent_containers/glass/bottle/vial/large) var/quickload = TRUE -/obj/item/gun/chem/Initialize() +/obj/item/gun/chem/Initialize(mapload) . = ..() chambered = new /obj/item/ammo_casing/chemgun(src) START_PROCESSING(SSobj, src) @@ -111,7 +111,7 @@ icon_state = "chemgunrepeater" item_state = "syringegun" -obj/item/gun/chem/smart/Initialize() +obj/item/gun/chem/smart/Initialize(mapload) . = ..() chambered = new /obj/item/ammo_casing/chemgun/smart(src) diff --git a/code/modules/projectiles/guns/misc/medbeam.dm b/code/modules/projectiles/guns/misc/medbeam.dm index 6864dad33e..4a64317fd9 100644 --- a/code/modules/projectiles/guns/misc/medbeam.dm +++ b/code/modules/projectiles/guns/misc/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) @@ -130,6 +130,6 @@ /obj/item/gun/medbeam/mech mounted = 1 -/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/misc/syringe_gun.dm b/code/modules/projectiles/guns/misc/syringe_gun.dm index 91275e197a..07066023b3 100644 --- a/code/modules/projectiles/guns/misc/syringe_gun.dm +++ b/code/modules/projectiles/guns/misc/syringe_gun.dm @@ -14,7 +14,7 @@ var/list/syringes = list() var/max_syringes = 1 -/obj/item/gun/syringe/Initialize() +/obj/item/gun/syringe/Initialize(mapload) . = ..() chambered = new /obj/item/ammo_casing/syringegun(src) @@ -83,7 +83,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) @@ -113,7 +113,7 @@ suppressed = TRUE //Softer fire sound can_unsuppress = FALSE -/obj/item/gun/syringe/dart/Initialize() +/obj/item/gun/syringe/dart/Initialize(mapload) . = ..() chambered = new /obj/item/ammo_casing/syringegun/dart(src) diff --git a/code/modules/projectiles/pins.dm b/code/modules/projectiles/pins.dm index cef730366e..0f5e558841 100644 --- a/code/modules/projectiles/pins.dm +++ b/code/modules/projectiles/pins.dm @@ -13,7 +13,7 @@ var/pin_removeable = 0 // Can be replaced by any pin. var/obj/item/gun/gun -/obj/item/firing_pin/Initialize(newloc) +/obj/item/firing_pin/Initialize(mapload, newloc) . = ..() if(istype(newloc, /obj/item/gun)) gun = newloc @@ -238,7 +238,7 @@ var/only_lethals = FALSE var/can_toggle = TRUE -/obj/item/firing_pin/security_level/Initialize() +/obj/item/firing_pin/security_level/Initialize(mapload) . = ..() fail_message = "INVALID SECURITY LEVEL. CURRENT: [uppertext(NUM2SECLEVEL(GLOB.security_level))]. \ MIN: [uppertext(NUM2SECLEVEL(min_sec_level))]. MAX: [uppertext(NUM2SECLEVEL(max_sec_level))]. \ diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm index 8d467c9901..b7ce58cda4 100644 --- a/code/modules/projectiles/projectile.dm +++ b/code/modules/projectiles/projectile.dm @@ -166,7 +166,7 @@ /// For telling whether we want to roll for bone breaking or lacerations if we're bothering with wounds sharpness = SHARP_NONE -/obj/item/projectile/Initialize() +/obj/item/projectile/Initialize(mapload) . = ..() permutated = list() decayedRange = range diff --git a/code/modules/projectiles/projectile/beams.dm b/code/modules/projectiles/projectile/beams.dm index 79e9ab8b4b..ee10d978e2 100644 --- a/code/modules/projectiles/projectile/beams.dm +++ b/code/modules/projectiles/projectile/beams.dm @@ -30,7 +30,7 @@ wound_bonus = 0 damage = 25 -/obj/item/projectile/beam/laser/hellfire/Initialize() +/obj/item/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 4978e679b4..3b7e86e77c 100644 --- a/code/modules/projectiles/projectile/bullets/dart_syringe.dm +++ b/code/modules/projectiles/projectile/bullets/dart_syringe.dm @@ -4,7 +4,7 @@ damage = 6 var/piercing = FALSE -/obj/item/projectile/bullet/dart/Initialize() +/obj/item/projectile/bullet/dart/Initialize(mapload) . = ..() create_reagents(50, NO_REACT, NO_REAGENTS_VALUE) @@ -32,13 +32,13 @@ /obj/item/projectile/bullet/dart/piercing piercing = TRUE -/obj/item/projectile/bullet/dart/metalfoam/Initialize() +/obj/item/projectile/bullet/dart/metalfoam/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/aluminium, 15) reagents.add_reagent(/datum/reagent/foaming_agent, 5) reagents.add_reagent(/datum/reagent/toxin/acid, 5) -/obj/item/projectile/bullet/dart/catranq/Initialize() +/obj/item/projectile/bullet/dart/catranq/Initialize(mapload) . = ..() reagents.add_reagent(/datum/reagent/fermi/furranium, 5) // Turns out I don't even need to give this guy actual tranquilizer chems. diff --git a/code/modules/projectiles/projectile/bullets/shotgun.dm b/code/modules/projectiles/projectile/bullets/shotgun.dm index 9670907ec3..cdee721509 100644 --- a/code/modules/projectiles/projectile/bullets/shotgun.dm +++ b/code/modules/projectiles/projectile/bullets/shotgun.dm @@ -71,7 +71,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) -/obj/item/projectile/bullet/shotgun_meteorslug/Initialize() +/obj/item/projectile/bullet/shotgun_meteorslug/Initialize(mapload) . = ..() SpinAnimation() @@ -118,7 +118,7 @@ wound_bonus = 0 bare_wound_bonus = 7.5 -/obj/item/projectile/bullet/pellet/shotgun_improvised/Initialize() +/obj/item/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 a0414d8a9c..446d87702e 100644 --- a/code/modules/projectiles/projectile/bullets/special.dm +++ b/code/modules/projectiles/projectile/bullets/special.dm @@ -11,7 +11,7 @@ icon_state = "banana" range = 200 -/obj/item/projectile/bullet/honker/Initialize() +/obj/item/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 22eaadb1e0..7ecf48cf6a 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/item/projectile/energy/net/Initialize() +/obj/item/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 6cbe258560..77f013ebba 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/item/projectile/energy/nuclear_particle/Initialize() +/obj/item/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 76cd1a6bc5..ea9cca5bbc 100644 --- a/code/modules/projectiles/projectile/magic.dm +++ b/code/modules/projectiles/projectile/magic.dm @@ -382,7 +382,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/plasma.dm b/code/modules/projectiles/projectile/special/plasma.dm index 77509cb574..050d6a4364 100644 --- a/code/modules/projectiles/projectile/special/plasma.dm +++ b/code/modules/projectiles/projectile/special/plasma.dm @@ -13,7 +13,7 @@ muzzle_type = /obj/effect/projectile/muzzle/plasma_cutter impact_type = /obj/effect/projectile/impact/plasma_cutter -/obj/item/projectile/plasma/Initialize() +/obj/item/projectile/plasma/Initialize(mapload) . = ..() if(!lavaland_equipment_pressure_check(get_turf(src))) name = "weakened [name]" diff --git a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm index 6aec48182a..2e8f301e13 100644 --- a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm +++ b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm @@ -92,7 +92,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) @@ -534,7 +534,7 @@ return "purple" -/obj/machinery/chem_dispenser/drinks/Initialize() +/obj/machinery/chem_dispenser/drinks/Initialize(mapload) . = ..() AddComponent(/datum/component/simple_rotation, ROTATION_ALTCLICK | ROTATION_CLOCKWISE) @@ -629,7 +629,7 @@ obj_flags = CAN_BE_HIT | EMAGGED flags_1 = NODECONSTRUCT_1 -/obj/machinery/chem_dispenser/drinks/fullupgrade/Initialize() +/obj/machinery/chem_dispenser/drinks/fullupgrade/Initialize(mapload) . = ..() dispensable_reagents |= emagged_reagents //adds emagged reagents component_parts = list() @@ -689,7 +689,7 @@ obj_flags = CAN_BE_HIT | EMAGGED flags_1 = NODECONSTRUCT_1 -/obj/machinery/chem_dispenser/drinks/beer/fullupgrade/Initialize() +/obj/machinery/chem_dispenser/drinks/beer/fullupgrade/Initialize(mapload) . = ..() dispensable_reagents |= emagged_reagents //adds emagged reagents component_parts = list() @@ -736,7 +736,7 @@ upgrade_reagents2 = null upgrade_reagents3 = null -/obj/machinery/chem_dispenser/mutagensaltpeter/Initialize() +/obj/machinery/chem_dispenser/mutagensaltpeter/Initialize(mapload) . = ..() component_parts = list() component_parts += new /obj/item/circuitboard/machine/chem_dispenser(null) @@ -753,7 +753,7 @@ obj_flags = CAN_BE_HIT | EMAGGED flags_1 = NODECONSTRUCT_1 -/obj/machinery/chem_dispenser/fullupgrade/Initialize() +/obj/machinery/chem_dispenser/fullupgrade/Initialize(mapload) . = ..() dispensable_reagents |= emagged_reagents //adds emagged reagents component_parts = list() @@ -818,7 +818,7 @@ /datum/reagent/medicine/morphine ) -/obj/machinery/chem_dispenser/abductor/Initialize() +/obj/machinery/chem_dispenser/abductor/Initialize(mapload) . = ..() component_parts = list() component_parts += new /obj/item/circuitboard/machine/chem_dispenser(null) diff --git a/code/modules/reagents/chemistry/machinery/chem_master.dm b/code/modules/reagents/chemistry/machinery/chem_master.dm index 128c4ed3cb..0e53b0796b 100644 --- a/code/modules/reagents/chemistry/machinery/chem_master.dm +++ b/code/modules/reagents/chemistry/machinery/chem_master.dm @@ -22,7 +22,7 @@ var/list/pillStyles var/fermianalyze //Give more detail on fermireactions on analysis -/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/pandemic.dm b/code/modules/reagents/chemistry/machinery/pandemic.dm index d4d8ae47fe..4729443d7a 100644 --- a/code/modules/reagents/chemistry/machinery/pandemic.dm +++ b/code/modules/reagents/chemistry/machinery/pandemic.dm @@ -16,7 +16,7 @@ var/datum/symptom/selected_symptom var/obj/item/reagent_containers/beaker -/obj/machinery/computer/pandemic/Initialize() +/obj/machinery/computer/pandemic/Initialize(mapload) . = ..() update_icon() diff --git a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm index 65cc97f586..b3c4cc8908 100644 --- a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm +++ b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm @@ -25,13 +25,13 @@ var/static/radial_juice = image(icon = 'icons/mob/radial.dmi', icon_state = "radial_juice") var/static/radial_mix = image(icon = 'icons/mob/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) beaker.desc += " May contain blended dust. Don't breathe this in!" -/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 80b8011af0..e601e9f551 100644 --- a/code/modules/reagents/chemistry/machinery/smoke_machine.dm +++ b/code/modules/reagents/chemistry/machinery/smoke_machine.dm @@ -29,7 +29,7 @@ opaque = FALSE alpha = 100 -/obj/machinery/smoke_machine/Initialize() +/obj/machinery/smoke_machine/Initialize(mapload) . = ..() create_reagents(REAGENTS_BASE_VOLUME) for(var/obj/item/stock_parts/matter_bin/B in component_parts) diff --git a/code/modules/reagents/chemistry/recipes/special.dm b/code/modules/reagents/chemistry/recipes/special.dm index 4aab8e4046..58dd37133a 100644 --- a/code/modules/reagents/chemistry/recipes/special.dm +++ b/code/modules/reagents/chemistry/recipes/special.dm @@ -177,7 +177,7 @@ GLOBAL_LIST_INIT(food_reagents, build_reagents_to_food()) //reagentid = related return list() . = ..() -/obj/item/paper/secretrecipe/Initialize() +/obj/item/paper/secretrecipe/Initialize(mapload) . = ..() if(SSpersistence.initialized) UpdateInfo() diff --git a/code/modules/reagents/reagent_containers/blood_pack.dm b/code/modules/reagents/reagent_containers/blood_pack.dm index acfda85963..c6df9ebb0c 100644 --- a/code/modules/reagents/reagent_containers/blood_pack.dm +++ b/code/modules/reagents/reagent_containers/blood_pack.dm @@ -10,7 +10,7 @@ var/color_to_apply = "#FFFFFF" var/mutable_appearance/fill_overlay -/obj/item/reagent_containers/blood/Initialize() +/obj/item/reagent_containers/blood/Initialize(mapload) . = ..() if(blood_type != null) reagents.add_reagent(/datum/reagent/blood, 200, list("donor"=null,"viruses"=null,"blood_DNA"=null,"bloodcolor"=bloodtype_to_color(blood_type), "blood_type"=blood_type,"resistances"=null,"trace_chem"=null)) @@ -43,7 +43,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", "SY", "HF", "GEL", "BUG") return ..() diff --git a/code/modules/reagents/reagent_containers/borghypo.dm b/code/modules/reagents/reagent_containers/borghypo.dm index 3388018280..0b3e5bcf75 100644 --- a/code/modules/reagents/reagent_containers/borghypo.dm +++ b/code/modules/reagents/reagent_containers/borghypo.dm @@ -34,7 +34,7 @@ Borg Hypospray //Used as list for input() in shakers. 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 be8c7fac36..47f5c94e09 100644 --- a/code/modules/reagents/reagent_containers/bottle.dm +++ b/code/modules/reagents/reagent_containers/bottle.dm @@ -8,7 +8,7 @@ possible_transfer_amounts = list(5,10,15,25,30) volume = 30 -/obj/item/reagent_containers/glass/bottle/Initialize() +/obj/item/reagent_containers/glass/bottle/Initialize(mapload) . = ..() if(!icon_state) icon_state = "bottle" @@ -159,7 +159,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) diff --git a/code/modules/reagents/reagent_containers/glass.dm b/code/modules/reagents/reagent_containers/glass.dm index cc7ff43bab..503c9df8d0 100644 --- a/code/modules/reagents/reagent_containers/glass.dm +++ b/code/modules/reagents/reagent_containers/glass.dm @@ -128,7 +128,7 @@ possible_transfer_amounts = list(5,10,15,20,25,30,50,60) container_flags = PH_WEAK|APTFT_ALTCLICK|APTFT_VERB -/obj/item/reagent_containers/glass/beaker/Initialize() +/obj/item/reagent_containers/glass/beaker/Initialize(mapload) . = ..() update_icon() diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index a6b6640ead..75c9f3c117 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -370,7 +370,7 @@ quickload = TRUE penetrates = TRUE -/obj/item/hypospray/mkii/Initialize() +/obj/item/hypospray/mkii/Initialize(mapload) . = ..() if(!spawnwithvial) update_icon() diff --git a/code/modules/reagents/reagent_containers/hypovial.dm b/code/modules/reagents/reagent_containers/hypovial.dm index 92c33af3b1..43f9f88976 100644 --- a/code/modules/reagents/reagent_containers/hypovial.dm +++ b/code/modules/reagents/reagent_containers/hypovial.dm @@ -21,7 +21,7 @@ always_reskinnable = TRUE cached_icon = "hypovial" -/obj/item/reagent_containers/glass/bottle/vial/Initialize() +/obj/item/reagent_containers/glass/bottle/vial/Initialize(mapload) . = ..() update_icon() diff --git a/code/modules/reagents/reagent_containers/pill.dm b/code/modules/reagents/reagent_containers/pill.dm index 6cf528eed7..50db4f0610 100644 --- a/code/modules/reagents/reagent_containers/pill.dm +++ b/code/modules/reagents/reagent_containers/pill.dm @@ -15,7 +15,7 @@ var/self_delay = FALSE //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)]" @@ -248,7 +248,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.") -/obj/item/reagent_containers/pill/floorpill/Initialize() +/obj/item/reagent_containers/pill/floorpill/Initialize(mapload) list_reagents = list(get_random_reagent_id() = rand(10,50)) . = ..() name = pick(names) diff --git a/code/modules/reagents/reagent_containers/rags.dm b/code/modules/reagents/reagent_containers/rags.dm index 78cb9d43ea..ec73dd837c 100644 --- a/code/modules/reagents/reagent_containers/rags.dm +++ b/code/modules/reagents/reagent_containers/rags.dm @@ -134,7 +134,7 @@ var/folded_icon = "towel" var/list/possible_colors -/obj/item/reagent_containers/rag/towel/Initialize() +/obj/item/reagent_containers/rag/towel/Initialize(mapload) . = ..() if(possible_colors) add_atom_colour(pick(possible_colors), FIXED_COLOUR_PRIORITY) diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index f59e45ff01..2670401964 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -229,7 +229,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) diff --git a/code/modules/reagents/reagent_containers/syringes.dm b/code/modules/reagents/reagent_containers/syringes.dm index c2f80de761..c1812d9121 100644 --- a/code/modules/reagents/reagent_containers/syringes.dm +++ b/code/modules/reagents/reagent_containers/syringes.dm @@ -18,7 +18,7 @@ custom_price = PRICE_CHEAP_AS_FREE sharpness = SHARP_POINTY -/obj/item/reagent_containers/syringe/Initialize() +/obj/item/reagent_containers/syringe/Initialize(mapload) . = ..() if(list_reagents) //syringe starts in inject mode if its already got something inside mode = SYRINGE_INJECT diff --git a/code/modules/reagents/reagent_dispenser.dm b/code/modules/reagents/reagent_dispenser.dm index 8215c9d8db..e66850b061 100644 --- a/code/modules/reagents/reagent_dispenser.dm +++ b/code/modules/reagents/reagent_dispenser.dm @@ -22,7 +22,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) @@ -212,7 +212,7 @@ density = FALSE reagent_id = /datum/reagent/consumable/condensedcapsaicin -/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 e9c17ecc28..a21b026080 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -321,7 +321,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 @@ -334,7 +334,7 @@ GLOBAL_LIST_EMPTY(conveyors_by_id) w_class = WEIGHT_CLASS_NORMAL 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 f6c27f4a79..2816b5519c 100644 --- a/code/modules/recycling/disposal/pipe.dm +++ b/code/modules/recycling/disposal/pipe.dm @@ -240,7 +240,7 @@ canclank = TRUE 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 2d40ec64eb..1ae5698312 100644 --- a/code/modules/recycling/disposal/pipe_sorting.dm +++ b/code/modules/recycling/disposal/pipe_sorting.dm @@ -36,7 +36,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/research/designs.dm b/code/modules/research/designs.dm index cfb6d92723..9c80176f46 100644 --- a/code/modules/research/designs.dm +++ b/code/modules/research/designs.dm @@ -79,7 +79,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 = rand(-5, 5) pixel_y = rand(-5, 5) diff --git a/code/modules/research/experimentor.dm b/code/modules/research/experimentor.dm index e6128ed5c2..ba0b17c113 100644 --- a/code/modules/research/experimentor.dm +++ b/code/modules/research/experimentor.dm @@ -66,7 +66,7 @@ if(initial(tempCheck.icon_state) != null) critical_items += I -/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 @@ -537,7 +537,7 @@ var/cooldownMax = 60 var/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/nanites/nanite_chamber.dm b/code/modules/research/nanites/nanite_chamber.dm index 8675d54b46..fe776e86c5 100644 --- a/code/modules/research/nanites/nanite_chamber.dm +++ b/code/modules/research/nanites/nanite_chamber.dm @@ -20,7 +20,7 @@ var/busy_message var/message_cooldown = 0 -/obj/machinery/nanite_chamber/Initialize() +/obj/machinery/nanite_chamber/Initialize(mapload) . = ..() occupant_typecache = GLOB.typecache_living diff --git a/code/modules/research/nanites/nanite_chamber_computer.dm b/code/modules/research/nanites/nanite_chamber_computer.dm index f69cb58456..0755487a7a 100644 --- a/code/modules/research/nanites/nanite_chamber_computer.dm +++ b/code/modules/research/nanites/nanite_chamber_computer.dm @@ -6,7 +6,7 @@ icon_screen = "nanite_chamber_control" circuit = /obj/item/circuitboard/computer/nanite_chamber_control -/obj/machinery/computer/nanite_chamber_control/Initialize() +/obj/machinery/computer/nanite_chamber_control/Initialize(mapload) . = ..() find_chamber() diff --git a/code/modules/research/nanites/nanite_program_hub.dm b/code/modules/research/nanites/nanite_program_hub.dm index 9a625cd0c7..a097a08532 100644 --- a/code/modules/research/nanites/nanite_program_hub.dm +++ b/code/modules/research/nanites/nanite_program_hub.dm @@ -22,7 +22,7 @@ list(name = "Protocols"), ) -/obj/machinery/nanite_program_hub/Initialize() +/obj/machinery/nanite_program_hub/Initialize(mapload) . = ..() linked_techweb = SSresearch.science_tech @@ -148,6 +148,6 @@ disk.name = initial(disk.name) . = TRUE -/obj/machinery/nanite_program_hub/admin/Initialize() +/obj/machinery/nanite_program_hub/admin/Initialize(mapload) . = ..() linked_techweb = SSresearch.admin_tech diff --git a/code/modules/research/nanites/program_disks.dm b/code/modules/research/nanites/program_disks.dm index 667618173c..291982059c 100644 --- a/code/modules/research/nanites/program_disks.dm +++ b/code/modules/research/nanites/program_disks.dm @@ -7,7 +7,7 @@ var/program_type var/datum/nanite_program/program -/obj/item/disk/nanite_program/Initialize() +/obj/item/disk/nanite_program/Initialize(mapload) . = ..() if(program_type) program = new program_type diff --git a/code/modules/research/nanites/public_chamber.dm b/code/modules/research/nanites/public_chamber.dm index b7a8db4080..c6c53779a9 100644 --- a/code/modules/research/nanites/public_chamber.dm +++ b/code/modules/research/nanites/public_chamber.dm @@ -18,7 +18,7 @@ var/busy_icon_state var/message_cooldown = 0 -/obj/machinery/public_nanite_chamber/Initialize() +/obj/machinery/public_nanite_chamber/Initialize(mapload) . = ..() occupant_typecache = GLOB.typecache_living diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index a9284a19f7..29181021c7 100644 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -87,7 +87,7 @@ Nothing else in the console has ID requirements. linked_imprinter = D D.linked_console = src -/obj/machinery/computer/rdconsole/Initialize() +/obj/machinery/computer/rdconsole/Initialize(mapload) . = ..() stored_research = SSresearch.science_tech stored_research.consoles_accessing[src] = TRUE @@ -1145,7 +1145,7 @@ Nothing else in the console has ID requirements. req_access = null req_access_txt = "29" -/obj/machinery/computer/rdconsole/robotics/Initialize() +/obj/machinery/computer/rdconsole/robotics/Initialize(mapload) . = ..() if(circuit) circuit.name = "R&D Console - Robotics (Computer Board)" diff --git a/code/modules/research/rdmachines.dm b/code/modules/research/rdmachines.dm index f39f5b1584..3ab3465b9e 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) . = ..() wires = new /datum/wires/rnd(src) diff --git a/code/modules/research/research_disk.dm b/code/modules/research/research_disk.dm index a656093d98..0ac80040f9 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 = rand(-5, 5) 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 @@ -36,7 +36,7 @@ desc = "A technology disk containing schematics for syndicate inspired equipment." custom_materials = null -/obj/item/disk/tech_disk/illegal/Initialize() +/obj/item/disk/tech_disk/illegal/Initialize(mapload) . = ..() stored_research = new /datum/techweb/syndicate @@ -45,6 +45,6 @@ desc = "You feel like it's not Gray because of its color." custom_materials = null -/obj/item/disk/tech_disk/abductor/Initialize() +/obj/item/disk/tech_disk/abductor/Initialize(mapload) . = ..() stored_research = new /datum/techweb/abductor diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm index beb3561025..1794fd852b 100644 --- a/code/modules/research/server.dm +++ b/code/modules/research/server.dm @@ -18,7 +18,7 @@ var/temp_tolerance_high = T20C var/temp_penalty_coefficient = 0.5 //1 = -1 points per degree above high tolerance. 0.5 = -0.5 points per degree above high tolerance. -/obj/machinery/rnd/server/Initialize() +/obj/machinery/rnd/server/Initialize(mapload) . = ..() SSresearch.servers |= src stored_research = SSresearch.science_tech diff --git a/code/modules/research/stock_parts.dm b/code/modules/research/stock_parts.dm index de0ebcb63a..c823799952 100644 --- a/code/modules/research/stock_parts.dm +++ b/code/modules/research/stock_parts.dm @@ -123,7 +123,7 @@ If you create T5+ please take a pass at gene_modder.dm [L40]. Max_values MUST fi var/rating = 1 rad_flags = RAD_NO_CONTAMINATE -/obj/item/stock_parts/Initialize() +/obj/item/stock_parts/Initialize(mapload) . = ..() pixel_x = rand(-5, 5) pixel_y = rand(-5, 5) diff --git a/code/modules/research/xenobiology/crossbreeding/__corecross.dm b/code/modules/research/xenobiology/crossbreeding/__corecross.dm index 17a6b77bfe..b37bbb59b6 100644 --- a/code/modules/research/xenobiology/crossbreeding/__corecross.dm +++ b/code/modules/research/xenobiology/crossbreeding/__corecross.dm @@ -37,7 +37,7 @@ To add a crossbreed: throw_speed = 3 throw_range = 6 -/obj/item/slimecross/Initialize() +/obj/item/slimecross/Initialize(mapload) . = ..() name = effect + " " + colour + " extract" var/itemcolor = "#FFFFFF" @@ -92,7 +92,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) @@ -132,7 +132,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.reagents_holder_flags = DRAWABLE // Cannot be refilled, since it's basically an autoinjector! @@ -176,7 +176,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.reagents_holder_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 97a87a5e01..255e6cd9f5 100644 --- a/code/modules/research/xenobiology/crossbreeding/_misc.dm +++ b/code/modules/research/xenobiology/crossbreeding/_misc.dm @@ -73,7 +73,7 @@ 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, 1) diff --git a/code/modules/research/xenobiology/crossbreeding/_weapons.dm b/code/modules/research/xenobiology/crossbreeding/_weapons.dm index 1b2f43c518..00748d2609 100644 --- a/code/modules/research/xenobiology/crossbreeding/_weapons.dm +++ b/code/modules/research/xenobiology/crossbreeding/_weapons.dm @@ -17,7 +17,7 @@ fire_sound = 'sound/effects/attackblob.ogg' total_mass = TOTAL_MASS_HAND_REPLACEMENT -/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 1a8b82232b..d76198ae24 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 75a15be9ce..a51adfffe6 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 d117e6104c..7c129b8179 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 8d80613be4..f69d1bd674 100644 --- a/code/modules/research/xenobiology/crossbreeding/consuming.dm +++ b/code/modules/research/xenobiology/crossbreeding/consuming.dm @@ -277,7 +277,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 ac9d2e58c5..cc85486bad 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 4a094744f7..4389801882 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 = 5 //In sets of 2 seconds. -/obj/item/slimecross/recurring/Initialize() +/obj/item/slimecross/recurring/Initialize(mapload) . = ..() extract = new extract_type(src.loc) visible_message("[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 f871cac778..7f3d2ce791 100644 --- a/code/modules/research/xenobiology/crossbreeding/regenerative.dm +++ b/code/modules/research/xenobiology/crossbreeding/regenerative.dm @@ -178,7 +178,7 @@ Regenerative extracts: target.forceMove(T) do_sparks(5,FALSE,target) -/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/selfsustaining.dm b/code/modules/research/xenobiology/crossbreeding/selfsustaining.dm index a88b5cd35b..ae003d984f 100644 --- a/code/modules/research/xenobiology/crossbreeding/selfsustaining.dm +++ b/code/modules/research/xenobiology/crossbreeding/selfsustaining.dm @@ -14,7 +14,7 @@ Self-sustaining extracts: var/obj/item/slime_extract/extract //Just divides into the actual item. -/obj/item/slimecross/selfsustaining/Initialize() +/obj/item/slimecross/selfsustaining/Initialize(mapload) ..() visible_message("The [src] shudders, and splits into four smaller extracts.") for(var/i = 0, i < 4, i++) diff --git a/code/modules/research/xenobiology/crossbreeding/stabilized.dm b/code/modules/research/xenobiology/crossbreeding/stabilized.dm index 69bd2c7e28..2def0640a9 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) @@ -110,7 +110,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/xenobio_camera.dm b/code/modules/research/xenobiology/xenobio_camera.dm index ef9c751d57..bccc738398 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/aiEye/remote/xenobio/Initialize() +/mob/camera/aiEye/remote/xenobio/Initialize(mapload) var/area/A = get_area(loc) allowed_area = A.name . = ..() @@ -41,7 +41,7 @@ light_color = LIGHT_COLOR_PINK -/obj/machinery/computer/camera_advanced/xenobio/Initialize() +/obj/machinery/computer/camera_advanced/xenobio/Initialize(mapload) . = ..() slime_place_action = new slime_up_action = new diff --git a/code/modules/research/xenobiology/xenobiology.dm b/code/modules/research/xenobiology/xenobiology.dm index 9bf794a0a2..dd2579663a 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/lavaland_ruin_code.dm b/code/modules/ruins/lavaland_ruin_code.dm index e572f1ee02..93be0d1eed 100644 --- a/code/modules/ruins/lavaland_ruin_code.dm +++ b/code/modules/ruins/lavaland_ruin_code.dm @@ -7,7 +7,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 @@ -33,7 +33,7 @@ icon_state = "datadisk1" max_blueprints = 1 -/obj/item/disk/design_disk/plant_disk/Initialize() +/obj/item/disk/design_disk/plant_disk/Initialize(mapload) . = ..() var/datum/design/diskplantgene/P = new blueprints[1] = P @@ -46,7 +46,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 @@ -160,7 +160,7 @@ important_info = "DO NOT abandon the base." outfit = /datum/outfit/lavaland_syndicate/comms -/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)) @@ -172,7 +172,7 @@ 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) . = ..() new /obj/item/gps/internal/lavaland_syndicate_base(src) diff --git a/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm b/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm index d9dfdd8c19..0fa7670fb2 100644 --- a/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm +++ b/code/modules/ruins/lavalandruin_code/elephantgraveyard.dm @@ -39,7 +39,7 @@ slowdown = 0.5 floor_variance = 30 -/turf/open/floor/plating/asteroid/basalt/wasteland/Initialize() +/turf/open/floor/plating/asteroid/basalt/wasteland/Initialize(mapload) .=..() if(prob(floor_variance)) icon_state = "[environment_type][rand(0,6)]" @@ -68,7 +68,7 @@ icon_state = "puddle-oil" dispensedreagent = /datum/reagent/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/necropolis_gate.dm b/code/modules/ruins/objects_and_mobs/necropolis_gate.dm index d62b3c2611..e85c9d39f0 100644 --- a/code/modules/ruins/objects_and_mobs/necropolis_gate.dm +++ b/code/modules/ruins/objects_and_mobs/necropolis_gate.dm @@ -26,7 +26,7 @@ var/uses var/ashwalker_only = FALSE -/obj/structure/necropolis_gate/Initialize() +/obj/structure/necropolis_gate/Initialize(mapload) . = ..() setDir(SOUTH) var/turf/sight_blocker_turf = get_turf(src) @@ -155,7 +155,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 @@ -228,7 +228,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 5e2fc3d7e4..b80df40488 100644 --- a/code/modules/ruins/objects_and_mobs/sin_ruins.dm +++ b/code/modules/ruins/objects_and_mobs/sin_ruins.dm @@ -48,7 +48,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 ab38ed8e4d..b347c66dbe 100644 --- a/code/modules/ruins/spaceruin_code/caravanambush.dm +++ b/code/modules/ruins/spaceruin_code/caravanambush.dm @@ -53,7 +53,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 3fe4cad794..63f85c3291 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 4a03844a33..79119c8448 100644 --- a/code/modules/ruins/spaceruin_code/hilbertshotel.dm +++ b/code/modules/ruins/spaceruin_code/hilbertshotel.dm @@ -18,7 +18,7 @@ GLOBAL_VAR_INIT(hhmysteryRoomNumber, 1337) var/ruinSpawned = FALSE var/mysteryRoom -/obj/item/hilbertshotel/Initialize() +/obj/item/hilbertshotel/Initialize(mapload) . = ..() //Load templates INVOKE_ASYNC(src, .proc/prepare_rooms) @@ -478,7 +478,7 @@ GLOBAL_VAR_INIT(hhmysteryRoomNumber, 1337) /obj/item/paper/crumpled/docslogs name = "Research Logs" -/obj/item/paper/crumpled/docslogs/Initialize() +/obj/item/paper/crumpled/docslogs/Initialize(mapload) . = ..() GLOB.hhmysteryRoomNumber = rand(1, SHORT_REAL_LIMIT) info = {" diff --git a/code/modules/security_levels/keycard_authentication.dm b/code/modules/security_levels/keycard_authentication.dm index 7326cad816..562dc17182 100644 --- a/code/modules/security_levels/keycard_authentication.dm +++ b/code/modules/security_levels/keycard_authentication.dm @@ -26,7 +26,7 @@ GLOBAL_DATUM_INIT(keycard_events, /datum/events, new) var/obj/item/card/id/first_id = null var/waiting = 0 -/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/custom_shuttle.dm b/code/modules/shuttle/custom_shuttle.dm index e9a5ca4688..e8e5fe8d4d 100644 --- a/code/modules/shuttle/custom_shuttle.dm +++ b/code/modules/shuttle/custom_shuttle.dm @@ -235,7 +235,7 @@ designate_time = 100 circuit = /obj/item/circuitboard/computer/shuttle/docker -/obj/machinery/computer/camera_advanced/shuttle_docker/custom/Initialize() +/obj/machinery/computer/camera_advanced/shuttle_docker/custom/Initialize(mapload) . = ..() GLOB.jam_on_wardec += src diff --git a/code/modules/shuttle/emergency.dm b/code/modules/shuttle/emergency.dm index 2a15558e64..d4e6f3e050 100644 --- a/code/modules/shuttle/emergency.dm +++ b/code/modules/shuttle/emergency.dm @@ -630,7 +630,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/navigation_computer.dm b/code/modules/shuttle/navigation_computer.dm index 029d50585a..c02405fc3f 100644 --- a/code/modules/shuttle/navigation_computer.dm +++ b/code/modules/shuttle/navigation_computer.dm @@ -22,7 +22,7 @@ var/turf/designating_target_loc var/jammed = FALSE -/obj/machinery/computer/camera_advanced/shuttle_docker/Initialize() +/obj/machinery/computer/camera_advanced/shuttle_docker/Initialize(mapload) . = ..() GLOB.navigation_computers += src whitelist_turfs = typecacheof(whitelist_turfs) diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm index d3e52410d6..376a253379 100644 --- a/code/modules/shuttle/shuttle.dm +++ b/code/modules/shuttle/shuttle.dm @@ -281,7 +281,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/shuttle_creation/shuttle_creator.dm b/code/modules/shuttle/shuttle_creation/shuttle_creator.dm index b9374a09c4..d04b27d52e 100644 --- a/code/modules/shuttle/shuttle_creation/shuttle_creator.dm +++ b/code/modules/shuttle/shuttle_creation/shuttle_creator.dm @@ -39,7 +39,7 @@ GLOBAL_LIST_EMPTY(custom_shuttle_machines) //Machines that require updating (He //After designation var/linkedShuttleId -/obj/item/shuttle_creator/Initialize() +/obj/item/shuttle_creator/Initialize(mapload) . = ..() internal_shuttle_creator = new() internal_shuttle_creator.owner_rsd = src diff --git a/code/modules/shuttle/shuttle_creation/shuttle_creator_eye.dm b/code/modules/shuttle/shuttle_creation/shuttle_creator_eye.dm index ff96e2ae65..2bbe7d7407 100644 --- a/code/modules/shuttle/shuttle_creation/shuttle_creator_eye.dm +++ b/code/modules/shuttle/shuttle_creation/shuttle_creator_eye.dm @@ -8,7 +8,7 @@ var/turf/source_turf var/max_range = 12 -/mob/camera/aiEye/remote/shuttle_creation/Initialize() +/mob/camera/aiEye/remote/shuttle_creation/Initialize(mapload) . = ..() setLoc(get_turf(source_turf)) diff --git a/code/modules/shuttle/spaceship_navigation_beacon.dm b/code/modules/shuttle/spaceship_navigation_beacon.dm index dbf81d791e..e3232ec904 100644 --- a/code/modules/shuttle/spaceship_navigation_beacon.dm +++ b/code/modules/shuttle/spaceship_navigation_beacon.dm @@ -17,7 +17,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 05450fd7c2..1e9bc45c35 100644 --- a/code/modules/shuttle/special.dm +++ b/code/modules/shuttle/special.dm @@ -15,7 +15,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." @@ -144,7 +144,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.access |= ACCESS_CENT_BAR @@ -159,7 +159,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) . = ..() access_card = new /obj/item/card/id(src) var/datum/job/captain/C = new /datum/job/captain diff --git a/code/modules/shuttle/white_ship.dm b/code/modules/shuttle/white_ship.dm index 66146edea1..20a39ed1fb 100644 --- a/code/modules/shuttle/white_ship.dm +++ b/code/modules/shuttle/white_ship.dm @@ -41,7 +41,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/smithing/anvil.dm b/code/modules/smithing/anvil.dm index 9dffc883d4..197b39272d 100644 --- a/code/modules/smithing/anvil.dm +++ b/code/modules/smithing/anvil.dm @@ -68,7 +68,7 @@ RECIPE_GLAIVE = /obj/item/smithing/glaivehead, RECIPE_PIKE = /obj/item/smithing/pikehead) -/obj/structure/anvil/Initialize() +/obj/structure/anvil/Initialize(mapload) ..() currentquality = anvilquality diff --git a/code/modules/smithing/finished_items.dm b/code/modules/smithing/finished_items.dm index 27be8c034d..97618df8fc 100644 --- a/code/modules/smithing/finished_items.dm +++ b/code/modules/smithing/finished_items.dm @@ -18,7 +18,7 @@ var/wielded_mult = 1 var/wield_force = 15 -/obj/item/melee/smith/Initialize() +/obj/item/melee/smith/Initialize(mapload) ..() if(desc == "cringe") desc = "A handmade [name]." @@ -55,7 +55,7 @@ icon_state = "minipick" //todo:sprite sharpness = SHARP_POINTY//it doesnt have a blade it has a point -/obj/item/mining_scanner/prospector/Initialize() +/obj/item/mining_scanner/prospector/Initialize(mapload) ..() var/mutable_appearance/overlay desc = "A handmade [name]." @@ -73,7 +73,7 @@ icon_state = "pickaxe" sharpness = SHARP_POINTY -/obj/item/pickaxe/smithed/Initialize() +/obj/item/pickaxe/smithed/Initialize(mapload) ..() desc = "A handmade [name]." var/mutable_appearance/overlay @@ -94,7 +94,7 @@ icon_state = "shovel" sharpness = SHARP_EDGED //it cuts through the earth -/obj/item/shovel/smithed/Initialize() +/obj/item/shovel/smithed/Initialize(mapload) ..() desc = "A handmade [name]." var/mutable_appearance/overlay diff --git a/code/modules/smithing/furnace.dm b/code/modules/smithing/furnace.dm index ee1d6a1b93..70bff32030 100644 --- a/code/modules/smithing/furnace.dm +++ b/code/modules/smithing/furnace.dm @@ -10,7 +10,7 @@ var/fueluse = 1 -/obj/structure/furnace/Initialize() +/obj/structure/furnace/Initialize(mapload) ..() create_reagents(250, TRANSPARENT) START_PROCESSING(SSobj, src) diff --git a/code/modules/spells/spell.dm b/code/modules/spells/spell.dm index 2272a14612..b740cca114 100644 --- a/code/modules/spells/spell.dm +++ b/code/modules/spells/spell.dm @@ -15,7 +15,7 @@ var/action_background_icon_state = "bg_spell" var/base_action = /datum/action/spell_action -/obj/effect/proc_holder/Initialize() +/obj/effect/proc_holder/Initialize(mapload) . = ..() if(has_action) action = new base_action(src) @@ -144,7 +144,7 @@ GLOBAL_LIST_INIT(spells, typesof(/obj/effect/proc_holder/spell)) //needed for th action_background_icon_state = "bg_spell" base_action = /datum/action/spell_action/spell -/obj/effect/proc_holder/spell/Initialize() +/obj/effect/proc_holder/spell/Initialize(mapload) . = ..() if(mobs_whitelist) mobs_whitelist = typecacheof(mobs_whitelist) @@ -204,7 +204,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,1) -/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 fe53fd37e4..073f96d498 100644 --- a/code/modules/spells/spell_types/godhand.dm +++ b/code/modules/spells/spell_types/godhand.dm @@ -15,7 +15,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 df579d9243..4a48c868b8 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 69f2d5454e..297f918c6f 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 e317820e7d..f17af626a1 100644 --- a/code/modules/station_goals/shield.dm +++ b/code/modules/station_goals/shield.dm @@ -95,7 +95,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 0d2659dff8..998473abe3 100644 --- a/code/modules/surgery/organs/augments_arms.dm +++ b/code/modules/surgery/organs/augments_arms.dm @@ -14,7 +14,7 @@ var/obj/item/holder = null // You can use this var for item path, it would be converted into an item on New() -/obj/item/organ/cyberimp/arm/Initialize() +/obj/item/organ/cyberimp/arm/Initialize(mapload) . = ..() if(ispath(holder)) holder = new holder(src) @@ -242,7 +242,7 @@ desc = "An integrated projector mounted onto a user's arm that is able to be used as a powerful flash." contents = newlist(/obj/item/assembly/flash/armimplant) -/obj/item/organ/cyberimp/arm/flash/Initialize() +/obj/item/organ/cyberimp/arm/flash/Initialize(mapload) . = ..() if(locate(/obj/item/assembly/flash/armimplant) in items_list) var/obj/item/assembly/flash/armimplant/F = locate(/obj/item/assembly/flash/armimplant) in items_list @@ -258,7 +258,7 @@ desc = "A powerful cybernetic implant that contains combat modules built into the user's arm." contents = newlist(/obj/item/melee/transforming/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) . = ..() if(locate(/obj/item/assembly/flash/armimplant) in items_list) var/obj/item/assembly/flash/armimplant/F = locate(/obj/item/assembly/flash/armimplant) in items_list diff --git a/code/modules/surgery/organs/eyes.dm b/code/modules/surgery/organs/eyes.dm index 06865a0f39..526285f60d 100644 --- a/code/modules/surgery/organs/eyes.dm +++ b/code/modules/surgery/organs/eyes.dm @@ -246,7 +246,7 @@ var/obj/effect/abstract/eye_lighting/on_mob var/image/mob_overlay -/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") @@ -407,7 +407,7 @@ mouse_opacity = MOUSE_OPACITY_TRANSPARENT var/obj/item/organ/eyes/robotic/glow/parent -/obj/effect/abstract/eye_lighting/Initialize() +/obj/effect/abstract/eye_lighting/Initialize(mapload) . = ..() parent = loc if(!istype(parent)) diff --git a/code/modules/surgery/organs/organ_internal.dm b/code/modules/surgery/organs/organ_internal.dm index 05f3f06b06..d4a2663374 100644 --- a/code/modules/surgery/organs/organ_internal.dm +++ b/code/modules/surgery/organs/organ_internal.dm @@ -31,7 +31,7 @@ var/useable = TRUE var/list/food_reagents = list(/datum/reagent/consumable/nutriment = 5) -/obj/item/organ/Initialize() +/obj/item/organ/Initialize(mapload) . = ..() if(organ_flags & ORGAN_EDIBLE) AddComponent(/datum/component/edible, food_reagents, null, RAW | MEAT | GROSS, null, 10, null, null, null, CALLBACK(src, .proc/OnEatFrom)) @@ -359,7 +359,7 @@ name = "Illegal organ" desc = "Something hecked up" -/obj/item/organ/random/Initialize() +/obj/item/organ/random/Initialize(mapload) ..() var/list = list(/obj/item/organ/tongue, /obj/item/organ/brain, /obj/item/organ/heart, /obj/item/organ/liver, /obj/item/organ/ears, /obj/item/organ/eyes, /obj/item/organ/tail, /obj/item/organ/stomach) var/newtype = pick(list) diff --git a/code/modules/surgery/organs/tongue.dm b/code/modules/surgery/organs/tongue.dm index 0ba265c36c..b281132ce0 100644 --- a/code/modules/surgery/organs/tongue.dm +++ b/code/modules/surgery/organs/tongue.dm @@ -168,7 +168,7 @@ var/phomeme_type = "sans" var/list/phomeme_types = list(/datum/accent/span/sans, /datum/accent/span/papyrus) -/obj/item/organ/tongue/bone/Initialize() +/obj/item/organ/tongue/bone/Initialize(mapload) initial_accents += pick(phomeme_types) . = ..() diff --git a/code/modules/surgery/surgery.dm b/code/modules/surgery/surgery.dm index 0ffae2bb7d..06415e7685 100644 --- a/code/modules/surgery/surgery.dm +++ b/code/modules/surgery/surgery.dm @@ -147,7 +147,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 1d2286214d..4161ed1f70 100644 --- a/code/modules/surgery/tools.dm +++ b/code/modules/surgery/tools.dm @@ -160,7 +160,7 @@ icon_state = "surgicaldrill_a" hitsound = 'sound/items/welder.ogg' -/obj/item/surgicaldrill/advanced/Initialize() +/obj/item/surgicaldrill/advanced/Initialize(mapload) . = ..() set_light(1) @@ -214,7 +214,7 @@ toolspeed = 1 bare_wound_bonus = 20 -/obj/item/scalpel/Initialize() +/obj/item/scalpel/Initialize(mapload) . = ..() AddComponent(/datum/component/butchering, 80 * toolspeed, 100, 0) @@ -235,7 +235,7 @@ light_color = LIGHT_COLOR_GREEN sharpness = SHARP_POINTY -/obj/item/scalpel/advanced/Initialize() +/obj/item/scalpel/advanced/Initialize(mapload) . = ..() set_light(1) @@ -311,7 +311,7 @@ wound_bonus = 5 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 diff --git a/code/modules/tcg/cards.dm b/code/modules/tcg/cards.dm index f5c7c47aaf..7717a44410 100644 --- a/code/modules/tcg/cards.dm +++ b/code/modules/tcg/cards.dm @@ -353,7 +353,7 @@ material_flags = NONE sideslist = list("nanotrasen", "syndicate") -/obj/item/coin/thunderdome/Initialize() +/obj/item/coin/thunderdome/Initialize(mapload) . = ..() transform = matrix(0.5,0,0,0,0.5,0) @@ -377,7 +377,7 @@ var/static/radial_shuffle = image(icon = 'icons/mob/radial.dmi', icon_state = "radial_shuffle") var/static/radial_pickup = image(icon = 'icons/mob/radial.dmi', icon_state = "radial_pickup") -/obj/item/tcgcard_deck/Initialize() +/obj/item/tcgcard_deck/Initialize(mapload) . = ..() LoadComponent(/datum/component/storage/concrete/tcg) @@ -669,7 +669,7 @@ card.forceMove(src) cards.Add(card) -/obj/item/tcgcard_binder/full/Initialize() //For admemes. +/obj/item/tcgcard_binder/full/Initialize(mapload) //For admemes. . = ..() for(var/cardtype in subtypesof(/datum/tcg_card)) var/obj/item/tcg_card/card = new(get_turf(src), cardtype) diff --git a/code/modules/uplink/uplink_devices.dm b/code/modules/uplink/uplink_devices.dm index 9660718bb6..54b4035acb 100644 --- a/code/modules/uplink/uplink_devices.dm +++ b/code/modules/uplink/uplink_devices.dm @@ -52,7 +52,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 d5ddfe63cc..cb32b11083 100644 --- a/code/modules/vehicles/atv.dm +++ b/code/modules/vehicles/atv.dm @@ -6,7 +6,7 @@ key_type = /obj/item/key var/static/mutable_appearance/atvcover -/obj/vehicle/ridden/atv/Initialize() +/obj/vehicle/ridden/atv/Initialize(mapload) . = ..() var/datum/component/riding/D = LoadComponent(/datum/component/riding) D.vehicle_move_delay = CONFIG_GET(number/movedelay/run_delay) @@ -34,7 +34,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 3784f4d459..2fbe20a75f 100644 --- a/code/modules/vehicles/bicycle.dm +++ b/code/modules/vehicles/bicycle.dm @@ -8,7 +8,7 @@ 'sound/misc/bike2.mid', 'sound/misc/bike3.mid') -/obj/vehicle/ridden/bicycle/Initialize() +/obj/vehicle/ridden/bicycle/Initialize(mapload) . = ..() var/datum/component/riding/D = LoadComponent(/datum/component/riding) D.set_riding_offsets(RIDING_OFFSET_ALL, list(TEXT_NORTH = list(0, 4), TEXT_SOUTH = list(0, 4), TEXT_EAST = list(0, 4), TEXT_WEST = list( 0, 4))) diff --git a/code/modules/vehicles/cars/car.dm b/code/modules/vehicles/cars/car.dm index 0196abe82c..81b2db6cf8 100644 --- a/code/modules/vehicles/cars/car.dm +++ b/code/modules/vehicles/cars/car.dm @@ -8,7 +8,7 @@ var/engine_sound_length = 20 //Set this to the length of the engine sound var/escape_time = 200 //Time it takes to break out of the car -/obj/vehicle/sealed/car/Initialize() +/obj/vehicle/sealed/car/Initialize(mapload) . = ..() LoadComponent(/datum/component/riding) diff --git a/code/modules/vehicles/cars/clowncar.dm b/code/modules/vehicles/cars/clowncar.dm index f65df26488..f8aa8177ca 100644 --- a/code/modules/vehicles/cars/clowncar.dm +++ b/code/modules/vehicles/cars/clowncar.dm @@ -20,7 +20,7 @@ var/cannonmode = CLOWN_CANNON_INACTIVE var/light_on = TRUE -/obj/vehicle/sealed/car/clowncar/Initialize() +/obj/vehicle/sealed/car/clowncar/Initialize(mapload) . = ..() START_PROCESSING(SSobj,src) @@ -246,7 +246,7 @@ key_type = null explode_on_death = FALSE -/obj/vehicle/sealed/car/clowncar/twitch_plays/Initialize() +/obj/vehicle/sealed/car/clowncar/twitch_plays/Initialize(mapload) . = ..() AddComponent(/datum/component/twitch_plays/simple_movement) GLOB.poi_list |= src diff --git a/code/modules/vehicles/lavaboat.dm b/code/modules/vehicles/lavaboat.dm index 32f53a15aa..3d83c48633 100644 --- a/code/modules/vehicles/lavaboat.dm +++ b/code/modules/vehicles/lavaboat.dm @@ -9,7 +9,7 @@ resistance_flags = LAVA_PROOF | FIRE_PROOF can_buckle = TRUE -/obj/vehicle/ridden/lavaboat/Initialize() +/obj/vehicle/ridden/lavaboat/Initialize(mapload) . = ..() var/datum/component/riding/D = LoadComponent(/datum/component/riding) D.keytype = /obj/item/oar @@ -61,7 +61,7 @@ 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) . = ..() var/datum/component/riding/D = LoadComponent(/datum/component/riding) D.vehicle_move_delay = 1 diff --git a/code/modules/vehicles/ridden.dm b/code/modules/vehicles/ridden.dm index f71d9367d3..810f7f8c80 100644 --- a/code/modules/vehicles/ridden.dm +++ b/code/modules/vehicles/ridden.dm @@ -7,7 +7,7 @@ var/legs_required = 1 var/arms_required = 0 //why not? -/obj/vehicle/ridden/Initialize() +/obj/vehicle/ridden/Initialize(mapload) . = ..() LoadComponent(/datum/component/riding) diff --git a/code/modules/vehicles/scooter.dm b/code/modules/vehicles/scooter.dm index d4a87a0f1e..13a614449a 100644 --- a/code/modules/vehicles/scooter.dm +++ b/code/modules/vehicles/scooter.dm @@ -3,7 +3,7 @@ desc = "A fun way to get around." icon_state = "scooter" -/obj/vehicle/ridden/scooter/Initialize() +/obj/vehicle/ridden/scooter/Initialize(mapload) . = ..() var/datum/component/riding/D = LoadComponent(/datum/component/riding) D.set_riding_offsets(RIDING_OFFSET_ALL, list(TEXT_NORTH = list(0), TEXT_SOUTH = list(-2), TEXT_EAST = list(0), TEXT_WEST = list( 2))) @@ -57,7 +57,7 @@ ///Stamina drain multiplier var/instability = 10 -/obj/vehicle/ridden/scooter/skateboard/Initialize() +/obj/vehicle/ridden/scooter/skateboard/Initialize(mapload) . = ..() var/datum/component/riding/D = LoadComponent(/datum/component/riding) D.vehicle_move_delay = 1 @@ -253,7 +253,7 @@ icon = null density = FALSE -/obj/vehicle/ridden/scooter/wheelys/Initialize() +/obj/vehicle/ridden/scooter/wheelys/Initialize(mapload) . = ..() var/datum/component/riding/D = LoadComponent(/datum/component/riding) D.vehicle_move_delay = 1 diff --git a/code/modules/vehicles/secway.dm b/code/modules/vehicles/secway.dm index 8ad8b5f1ee..6f03605605 100644 --- a/code/modules/vehicles/secway.dm +++ b/code/modules/vehicles/secway.dm @@ -12,7 +12,7 @@ var/last_tick = 0 var/list/progressbars_by_rider = list() -/obj/vehicle/ridden/secway/Initialize() +/obj/vehicle/ridden/secway/Initialize(mapload) . = ..() var/datum/component/riding/D = LoadComponent(/datum/component/riding) D.vehicle_move_delay = 1 diff --git a/code/modules/vehicles/speedbike.dm b/code/modules/vehicles/speedbike.dm index a560cbb8f3..d0b9c1fe96 100644 --- a/code/modules/vehicles/speedbike.dm +++ b/code/modules/vehicles/speedbike.dm @@ -2,7 +2,7 @@ /obj/vehicle/ridden/space name = "Generic Space Vehicle!" -/obj/vehicle/ridden/space/Initialize() +/obj/vehicle/ridden/space/Initialize(mapload) . = ..() var/datum/component/riding/D = LoadComponent(/datum/component/riding) D.override_allow_spacemove = TRUE @@ -15,7 +15,7 @@ var/overlay_state = "cover_blue" var/mutable_appearance/overlay -/obj/vehicle/ridden/space/speedbike/Initialize() +/obj/vehicle/ridden/space/speedbike/Initialize(mapload) . = ..() overlay = mutable_appearance(icon, overlay_state, ABOVE_MOB_LAYER) add_overlay(overlay) @@ -50,7 +50,7 @@ pixel_y = -48 pixel_x = -48 -/obj/vehicle/ridden/space/speedwagon/Initialize() +/obj/vehicle/ridden/space/speedwagon/Initialize(mapload) . = ..() add_overlay(overlay) var/datum/component/riding/D = LoadComponent(/datum/component/riding) diff --git a/code/modules/vehicles/wheelchair.dm b/code/modules/vehicles/wheelchair.dm index 28145ba8e1..3530b454d0 100644 --- a/code/modules/vehicles/wheelchair.dm +++ b/code/modules/vehicles/wheelchair.dm @@ -12,7 +12,7 @@ arms_required = 1 var/override_movespeed = FALSE -/obj/vehicle/ridden/wheelchair/Initialize() +/obj/vehicle/ridden/wheelchair/Initialize(mapload) . = ..() var/datum/component/riding/D = LoadComponent(/datum/component/riding) D.vehicle_move_delay = 0 diff --git a/code/modules/vending/autodrobe.dm b/code/modules/vending/autodrobe.dm index f1fbb95ff2..5a6c7c973f 100644 --- a/code/modules/vending/autodrobe.dm +++ b/code/modules/vending/autodrobe.dm @@ -171,7 +171,7 @@ payment_department = ACCOUNT_SRV light_mask="theater-light-mask" -/obj/machinery/vending/autodrobe/Initialize() +/obj/machinery/vending/autodrobe/Initialize(mapload) . = ..() cost_multiplier_per_dept = list("[ACCESS_THEATRE]" = 0) diff --git a/code/modules/vending/boozeomat.dm b/code/modules/vending/boozeomat.dm index df57dadd2e..c3e5f6ce0e 100644 --- a/code/modules/vending/boozeomat.dm +++ b/code/modules/vending/boozeomat.dm @@ -79,7 +79,7 @@ age_restrictions = FALSE payment_department = NO_FREEBIES -/obj/machinery/vending/boozeomat/syndicate_access/Initialize() +/obj/machinery/vending/boozeomat/syndicate_access/Initialize(mapload) . = ..() cost_multiplier_per_dept = list("[ACCESS_SYNDICATE]" = 0) diff --git a/code/modules/vending/cigarette.dm b/code/modules/vending/cigarette.dm index 269e0aaa7b..e5655ac9e0 100644 --- a/code/modules/vending/cigarette.dm +++ b/code/modules/vending/cigarette.dm @@ -37,7 +37,7 @@ /obj/item/lighter/greyscale = 4, /obj/item/storage/fancy/rollingpapers = 5) -/obj/machinery/vending/cigarette/syndicate/Initialize() +/obj/machinery/vending/cigarette/syndicate/Initialize(mapload) . = ..() cost_multiplier_per_dept = list("[ACCESS_SYNDICATE]" = 0) diff --git a/code/modules/vending/cola.dm b/code/modules/vending/cola.dm index 6bc5b9cb93..f60c3fc2fa 100644 --- a/code/modules/vending/cola.dm +++ b/code/modules/vending/cola.dm @@ -36,7 +36,7 @@ icon_state = "random_cola" desc = "Uh oh!" -/obj/machinery/vending/cola/random/Initialize() +/obj/machinery/vending/cola/random/Initialize(mapload) ..() var/T = pick(subtypesof(/obj/machinery/vending/cola) - /obj/machinery/vending/cola/random) new T(loc) diff --git a/code/modules/vending/snack.dm b/code/modules/vending/snack.dm index edd4802dc2..efb6670496 100644 --- a/code/modules/vending/snack.dm +++ b/code/modules/vending/snack.dm @@ -41,7 +41,7 @@ icon_state = "random_snack" desc = "Uh oh!" -/obj/machinery/vending/snack/random/Initialize() +/obj/machinery/vending/snack/random/Initialize(mapload) ..() var/T = pick(subtypesof(/obj/machinery/vending/snack) - /obj/machinery/vending/snack/random) new T(loc) diff --git a/code/modules/vore/eating/belly_obj.dm b/code/modules/vore/eating/belly_obj.dm index 474c912c23..3d8870d41a 100644 --- a/code/modules/vore/eating/belly_obj.dm +++ b/code/modules/vore/eating/belly_obj.dm @@ -147,7 +147,7 @@ //ommitted list // "shrink_grow_size", -/obj/belly/Initialize() +/obj/belly/Initialize(mapload) . = ..() take_ownership(src.loc) diff --git a/code/modules/wiremod/components/abstract/compare.dm b/code/modules/wiremod/components/abstract/compare.dm index ef6ba171b7..7523b7801a 100644 --- a/code/modules/wiremod/components/abstract/compare.dm +++ b/code/modules/wiremod/components/abstract/compare.dm @@ -21,7 +21,7 @@ var/list/datum/port/input/compare_ports = list() -/obj/item/circuit_component/compare/Initialize() +/obj/item/circuit_component/compare/Initialize(mapload) . = ..() for(var/port_id in 1 to input_port_amount) var/letter = ascii2text(text2ascii("A") + (port_id-1)) diff --git a/code/modules/wiremod/components/abstract/module.dm b/code/modules/wiremod/components/abstract/module.dm index a3c04b2a11..970b893ac3 100644 --- a/code/modules/wiremod/components/abstract/module.dm +++ b/code/modules/wiremod/components/abstract/module.dm @@ -93,7 +93,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/components/action/light.dm b/code/modules/wiremod/components/action/light.dm index 14427eae0e..11c40983c3 100644 --- a/code/modules/wiremod/components/action/light.dm +++ b/code/modules/wiremod/components/action/light.dm @@ -26,7 +26,7 @@ . = ..() . += create_ui_notice("Maximum Brightness: [max_power]", "orange", "lightbulb") -/obj/item/circuit_component/light/Initialize() +/obj/item/circuit_component/light/Initialize(mapload) . = ..() red = add_input_port("Red", PORT_TYPE_NUMBER) green = add_input_port("Green", PORT_TYPE_NUMBER) diff --git a/code/modules/wiremod/components/action/mmi.dm b/code/modules/wiremod/components/action/mmi.dm index 9c242059a6..b67f48f559 100644 --- a/code/modules/wiremod/components/action/mmi.dm +++ b/code/modules/wiremod/components/action/mmi.dm @@ -36,7 +36,7 @@ /// Maximum length of the message that can be sent to the MMI var/max_length = 300 -/obj/item/circuit_component/mmi/Initialize() +/obj/item/circuit_component/mmi/Initialize(mapload) . = ..() message = add_input_port("Message", PORT_TYPE_STRING) send = add_input_port("Send Message", PORT_TYPE_SIGNAL) diff --git a/code/modules/wiremod/components/action/pathfind.dm b/code/modules/wiremod/components/action/pathfind.dm index 10856e0de8..744ae66dd7 100644 --- a/code/modules/wiremod/components/action/pathfind.dm +++ b/code/modules/wiremod/components/action/pathfind.dm @@ -33,7 +33,7 @@ . += create_ui_notice("Pathfinding Cooldown: [DisplayTimeText(different_path_cooldown)]", "orange", "stopwatch") . += create_ui_notice("Maximum Range: [max_range] tiles", "orange", "info") -/obj/item/circuit_component/pathfind/Initialize() +/obj/item/circuit_component/pathfind/Initialize(mapload) . = ..() input_X = add_input_port("Target X", PORT_TYPE_NUMBER, FALSE) input_Y = add_input_port("Target Y", PORT_TYPE_NUMBER, FALSE) diff --git a/code/modules/wiremod/components/action/pull.dm b/code/modules/wiremod/components/action/pull.dm index ecaa6bd3aa..89530ce787 100644 --- a/code/modules/wiremod/components/action/pull.dm +++ b/code/modules/wiremod/components/action/pull.dm @@ -11,7 +11,7 @@ var/datum/port/input/target circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL -/obj/item/circuit_component/pull/Initialize() +/obj/item/circuit_component/pull/Initialize(mapload) . = ..() target = add_input_port("Target", PORT_TYPE_ATOM) diff --git a/code/modules/wiremod/components/action/radio.dm b/code/modules/wiremod/components/action/radio.dm index 540b79f7cf..135cbdca0a 100644 --- a/code/modules/wiremod/components/action/radio.dm +++ b/code/modules/wiremod/components/action/radio.dm @@ -30,7 +30,7 @@ ) public_options = add_option_port("Encryption Options", component_options) -/obj/item/circuit_component/radio/Initialize() +/obj/item/circuit_component/radio/Initialize(mapload) . = ..() freq = add_input_port("Frequency", PORT_TYPE_NUMBER, default = FREQ_SIGNALER) code = add_input_port("Code", PORT_TYPE_NUMBER, default = DEFAULT_SIGNALER_CODE) diff --git a/code/modules/wiremod/components/action/soundemitter.dm b/code/modules/wiremod/components/action/soundemitter.dm index 6d18978c53..1806030984 100644 --- a/code/modules/wiremod/components/action/soundemitter.dm +++ b/code/modules/wiremod/components/action/soundemitter.dm @@ -27,7 +27,7 @@ . += create_ui_notice("Sound Cooldown: [DisplayTimeText(sound_cooldown)]", "orange", "stopwatch") -/obj/item/circuit_component/soundemitter/Initialize() +/obj/item/circuit_component/soundemitter/Initialize(mapload) . = ..() volume = add_input_port("Volume", PORT_TYPE_NUMBER, default = 35) frequency = add_input_port("Frequency", PORT_TYPE_NUMBER, default = 0) diff --git a/code/modules/wiremod/components/action/speech.dm b/code/modules/wiremod/components/action/speech.dm index 6732a2058a..fc8cb3a627 100644 --- a/code/modules/wiremod/components/action/speech.dm +++ b/code/modules/wiremod/components/action/speech.dm @@ -18,7 +18,7 @@ . = ..() . += create_ui_notice("Speech Cooldown: [DisplayTimeText(speech_cooldown)]", "orange", "stopwatch") -/obj/item/circuit_component/speech/Initialize() +/obj/item/circuit_component/speech/Initialize(mapload) . = ..() message = add_input_port("Message", PORT_TYPE_STRING, FALSE) diff --git a/code/modules/wiremod/components/admin/getvar.dm b/code/modules/wiremod/components/admin/getvar.dm index cef8341f38..28d25cdb53 100644 --- a/code/modules/wiremod/components/admin/getvar.dm +++ b/code/modules/wiremod/components/admin/getvar.dm @@ -18,7 +18,7 @@ var/datum/port/output/output_value -/obj/item/circuit_component/get_variable/Initialize() +/obj/item/circuit_component/get_variable/Initialize(mapload) . = ..() entity = add_input_port("Target", PORT_TYPE_ATOM) variable_name = add_input_port("Variable Name", PORT_TYPE_STRING) diff --git a/code/modules/wiremod/components/admin/proccall.dm b/code/modules/wiremod/components/admin/proccall.dm index 1349c81636..4f4d1c55d3 100644 --- a/code/modules/wiremod/components/admin/proccall.dm +++ b/code/modules/wiremod/components/admin/proccall.dm @@ -34,7 +34,7 @@ proccall_options = add_option_port("Proccall Options", component_options) -/obj/item/circuit_component/proccall/Initialize() +/obj/item/circuit_component/proccall/Initialize(mapload) . = ..() entity = add_input_port("Target", PORT_TYPE_ATOM) proc_name = add_input_port("Proc Name", PORT_TYPE_STRING) diff --git a/code/modules/wiremod/components/admin/sdql.dm b/code/modules/wiremod/components/admin/sdql.dm index 871c3f247e..ed71414dd2 100644 --- a/code/modules/wiremod/components/admin/sdql.dm +++ b/code/modules/wiremod/components/admin/sdql.dm @@ -14,7 +14,7 @@ var/datum/port/output/results -/obj/item/circuit_component/sdql_operation/Initialize() +/obj/item/circuit_component/sdql_operation/Initialize(mapload) . = ..() sdql_operation = add_input_port("SDQL String", PORT_TYPE_STRING) results = add_output_port("Result", PORT_TYPE_LIST) diff --git a/code/modules/wiremod/components/admin/setvar.dm b/code/modules/wiremod/components/admin/setvar.dm index 0c66450cc9..5319d7cdcb 100644 --- a/code/modules/wiremod/components/admin/setvar.dm +++ b/code/modules/wiremod/components/admin/setvar.dm @@ -18,7 +18,7 @@ var/datum/port/input/new_value -/obj/item/circuit_component/set_variable/Initialize() +/obj/item/circuit_component/set_variable/Initialize(mapload) . = ..() entity = add_input_port("Target", PORT_TYPE_ATOM) variable_name = add_input_port("Variable Name", PORT_TYPE_STRING) diff --git a/code/modules/wiremod/components/admin/spawn.dm b/code/modules/wiremod/components/admin/spawn.dm index 2d3697598b..795a438a70 100644 --- a/code/modules/wiremod/components/admin/spawn.dm +++ b/code/modules/wiremod/components/admin/spawn.dm @@ -20,7 +20,7 @@ /// The result from the output var/datum/port/output/spawned_atom -/obj/item/circuit_component/spawn_atom/Initialize() +/obj/item/circuit_component/spawn_atom/Initialize(mapload) . = ..() input_path = add_input_port("Type", PORT_TYPE_ANY) spawn_at = add_input_port("Spawn At", PORT_TYPE_ATOM) diff --git a/code/modules/wiremod/components/admin/to_type.dm b/code/modules/wiremod/components/admin/to_type.dm index e4a34223bb..56a6b3a0e8 100644 --- a/code/modules/wiremod/components/admin/to_type.dm +++ b/code/modules/wiremod/components/admin/to_type.dm @@ -14,7 +14,7 @@ /// The type output var/datum/port/output/type_output -/obj/item/circuit_component/to_type/Initialize() +/obj/item/circuit_component/to_type/Initialize(mapload) . = ..() input_path = add_input_port("Type", PORT_TYPE_STRING) type_output = add_output_port("Typepath", PORT_TYPE_ANY) diff --git a/code/modules/wiremod/components/atom/direction.dm b/code/modules/wiremod/components/atom/direction.dm index 140720a2d3..b7437aca84 100644 --- a/code/modules/wiremod/components/atom/direction.dm +++ b/code/modules/wiremod/components/atom/direction.dm @@ -28,7 +28,7 @@ . = ..() . += create_ui_notice("Maximum Range: [max_range] tiles", "orange", "info") -/obj/item/circuit_component/direction/Initialize() +/obj/item/circuit_component/direction/Initialize(mapload) . = ..() input_port = add_input_port("Organism", PORT_TYPE_ATOM) diff --git a/code/modules/wiremod/components/atom/gps.dm b/code/modules/wiremod/components/atom/gps.dm index cdf61385a0..ba807cb8a7 100644 --- a/code/modules/wiremod/components/atom/gps.dm +++ b/code/modules/wiremod/components/atom/gps.dm @@ -14,7 +14,7 @@ circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL -/obj/item/circuit_component/gps/Initialize() +/obj/item/circuit_component/gps/Initialize(mapload) . = ..() x_pos = add_output_port("X", PORT_TYPE_NUMBER) diff --git a/code/modules/wiremod/components/atom/health.dm b/code/modules/wiremod/components/atom/health.dm index 7849180f9a..8c5095fb72 100644 --- a/code/modules/wiremod/components/atom/health.dm +++ b/code/modules/wiremod/components/atom/health.dm @@ -29,7 +29,7 @@ . = ..() . += create_ui_notice("Maximum Range: [max_range] tiles", "orange", "info") -/obj/item/circuit_component/health/Initialize() +/obj/item/circuit_component/health/Initialize(mapload) . = ..() input_port = add_input_port("Organism", PORT_TYPE_ATOM) diff --git a/code/modules/wiremod/components/atom/hear.dm b/code/modules/wiremod/components/atom/hear.dm index 23fbba1e0a..1069110603 100644 --- a/code/modules/wiremod/components/atom/hear.dm +++ b/code/modules/wiremod/components/atom/hear.dm @@ -16,7 +16,7 @@ /// The trigger sent when this event occurs var/datum/port/output/trigger_port -/obj/item/circuit_component/hear/Initialize() +/obj/item/circuit_component/hear/Initialize(mapload) . = ..() message_port = add_output_port("Message", PORT_TYPE_STRING) language_port = add_output_port("Language", PORT_TYPE_STRING) diff --git a/code/modules/wiremod/components/atom/self.dm b/code/modules/wiremod/components/atom/self.dm index 7389a19f69..b1f469ff79 100644 --- a/code/modules/wiremod/components/atom/self.dm +++ b/code/modules/wiremod/components/atom/self.dm @@ -10,7 +10,7 @@ /// The shell this component is attached to. var/datum/port/output/output -/obj/item/circuit_component/self/Initialize() +/obj/item/circuit_component/self/Initialize(mapload) . = ..() output = add_output_port("Self", PORT_TYPE_ATOM) diff --git a/code/modules/wiremod/components/atom/species.dm b/code/modules/wiremod/components/atom/species.dm index 9404a37697..2d865c4a73 100644 --- a/code/modules/wiremod/components/atom/species.dm +++ b/code/modules/wiremod/components/atom/species.dm @@ -15,7 +15,7 @@ circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL -/obj/item/circuit_component/species/Initialize() +/obj/item/circuit_component/species/Initialize(mapload) . = ..() input_port = add_input_port("Organism", PORT_TYPE_ATOM) diff --git a/code/modules/wiremod/components/hud/bar_overlay.dm b/code/modules/wiremod/components/hud/bar_overlay.dm index f7ecfb1e1f..c275ab3147 100644 --- a/code/modules/wiremod/components/hud/bar_overlay.dm +++ b/code/modules/wiremod/components/hud/bar_overlay.dm @@ -17,7 +17,7 @@ var/overlay_limit = 10 -/obj/item/circuit_component/object_overlay/bar/Initialize() +/obj/item/circuit_component/object_overlay/bar/Initialize(mapload) . = ..() bar_number = add_input_port("Number", PORT_TYPE_NUMBER) diff --git a/code/modules/wiremod/components/hud/counter_overlay.dm b/code/modules/wiremod/components/hud/counter_overlay.dm index ecce816e74..83d7acfd11 100644 --- a/code/modules/wiremod/components/hud/counter_overlay.dm +++ b/code/modules/wiremod/components/hud/counter_overlay.dm @@ -22,7 +22,7 @@ var/list/numbers = list() var/counter_appearance -/obj/item/circuit_component/counter_overlay/Initialize() +/obj/item/circuit_component/counter_overlay/Initialize(mapload) . = ..() counter_number = add_input_port("Displayed Number", PORT_TYPE_NUMBER) diff --git a/code/modules/wiremod/components/hud/object_overlay.dm b/code/modules/wiremod/components/hud/object_overlay.dm index 2cab4a57fa..3b20e4f551 100644 --- a/code/modules/wiremod/components/hud/object_overlay.dm +++ b/code/modules/wiremod/components/hud/object_overlay.dm @@ -29,7 +29,7 @@ var/list/active_overlays = list() var/list/options_map -/obj/item/circuit_component/object_overlay/Initialize() +/obj/item/circuit_component/object_overlay/Initialize(mapload) . = ..() target = add_input_port("Target", PORT_TYPE_ATOM) diff --git a/code/modules/wiremod/components/hud/target_intercept.dm b/code/modules/wiremod/components/hud/target_intercept.dm index 2a19264b00..d04dc2c946 100644 --- a/code/modules/wiremod/components/hud/target_intercept.dm +++ b/code/modules/wiremod/components/hud/target_intercept.dm @@ -16,7 +16,7 @@ var/obj/item/organ/cyberimp/bci/bci var/intercept_cooldown = 1 SECONDS -/obj/item/circuit_component/target_intercept/Initialize() +/obj/item/circuit_component/target_intercept/Initialize(mapload) . = ..() trigger_input = add_input_port("Activate", PORT_TYPE_SIGNAL) trigger_output = add_output_port("Triggered", PORT_TYPE_SIGNAL) diff --git a/code/modules/wiremod/components/list/concat.dm b/code/modules/wiremod/components/list/concat.dm index 32e16758d3..6574f1f02d 100644 --- a/code/modules/wiremod/components/list/concat.dm +++ b/code/modules/wiremod/components/list/concat.dm @@ -17,7 +17,7 @@ var/datum/port/output/output circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL -/obj/item/circuit_component/concat_list/Initialize() +/obj/item/circuit_component/concat_list/Initialize(mapload) . = ..() list_port = add_input_port("List", PORT_TYPE_LIST) separator = add_input_port("Seperator", PORT_TYPE_STRING) diff --git a/code/modules/wiremod/components/list/get_column.dm b/code/modules/wiremod/components/list/get_column.dm index 07ff7ef11b..2b35951b1e 100644 --- a/code/modules/wiremod/components/list/get_column.dm +++ b/code/modules/wiremod/components/list/get_column.dm @@ -17,7 +17,7 @@ /// The filtered list var/datum/port/output/output_list -/obj/item/circuit_component/get_column/Initialize() +/obj/item/circuit_component/get_column/Initialize(mapload) . = ..() received_table = add_input_port("Input", PORT_TYPE_TABLE) column_name = add_input_port("Column Name", PORT_TYPE_STRING) diff --git a/code/modules/wiremod/components/list/index.dm b/code/modules/wiremod/components/list/index.dm index d51a60e2bf..2aaf1b6629 100644 --- a/code/modules/wiremod/components/list/index.dm +++ b/code/modules/wiremod/components/list/index.dm @@ -15,7 +15,7 @@ var/datum/port/output/output circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL -/obj/item/circuit_component/index/Initialize() +/obj/item/circuit_component/index/Initialize(mapload) . = ..() index_port = add_input_port("Index", PORT_TYPE_ANY) list_port = add_input_port("List", PORT_TYPE_LIST) diff --git a/code/modules/wiremod/components/list/index_table.dm b/code/modules/wiremod/components/list/index_table.dm index 376bc46465..502073cf74 100644 --- a/code/modules/wiremod/components/list/index_table.dm +++ b/code/modules/wiremod/components/list/index_table.dm @@ -17,7 +17,7 @@ /// The filtered list var/datum/port/output/output_list -/obj/item/circuit_component/index_table/Initialize() +/obj/item/circuit_component/index_table/Initialize(mapload) . = ..() received_table = add_input_port("Input", PORT_TYPE_TABLE) target_index = add_input_port("Index", PORT_TYPE_NUMBER) diff --git a/code/modules/wiremod/components/list/list_literal.dm b/code/modules/wiremod/components/list/list_literal.dm index e9bd741606..c9dc3ea03d 100644 --- a/code/modules/wiremod/components/list/list_literal.dm +++ b/code/modules/wiremod/components/list/list_literal.dm @@ -51,7 +51,7 @@ index -= 1 entry_ports += add_input_port("Index [index+1]", PORT_TYPE_ANY, index = index+1) -/obj/item/circuit_component/list_literal/Initialize() +/obj/item/circuit_component/list_literal/Initialize(mapload) . = ..() set_list_size(default_list_size) list_output = add_output_port("Value", PORT_TYPE_LIST) diff --git a/code/modules/wiremod/components/list/select.dm b/code/modules/wiremod/components/list/select.dm index 8eba84d034..19ddb51c03 100644 --- a/code/modules/wiremod/components/list/select.dm +++ b/code/modules/wiremod/components/list/select.dm @@ -35,7 +35,7 @@ ) comparison_options = add_option_port("Comparison Options", component_options) -/obj/item/circuit_component/select/Initialize() +/obj/item/circuit_component/select/Initialize(mapload) . = ..() received_table = add_input_port("Input", PORT_TYPE_TABLE) column_name = add_input_port("Column Name", PORT_TYPE_STRING) diff --git a/code/modules/wiremod/components/list/split.dm b/code/modules/wiremod/components/list/split.dm index 27af366fac..444157342c 100644 --- a/code/modules/wiremod/components/list/split.dm +++ b/code/modules/wiremod/components/list/split.dm @@ -18,7 +18,7 @@ circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL -/obj/item/circuit_component/split/Initialize() +/obj/item/circuit_component/split/Initialize(mapload) . = ..() input_port = add_input_port("Input", PORT_TYPE_STRING) separator = add_input_port("Seperator", PORT_TYPE_STRING) diff --git a/code/modules/wiremod/components/math/arithmetic.dm b/code/modules/wiremod/components/math/arithmetic.dm index 77c8b93b25..9d7361c66b 100644 --- a/code/modules/wiremod/components/math/arithmetic.dm +++ b/code/modules/wiremod/components/math/arithmetic.dm @@ -37,7 +37,7 @@ ) arithmetic_option = add_option_port("Arithmetic Option", component_options) -/obj/item/circuit_component/arithmetic/Initialize() +/obj/item/circuit_component/arithmetic/Initialize(mapload) . = ..() arithmetic_ports = list() for(var/port_id in 1 to input_port_amount) diff --git a/code/modules/wiremod/components/math/length.dm b/code/modules/wiremod/components/math/length.dm index d6702c9b5d..14bc58c998 100644 --- a/code/modules/wiremod/components/math/length.dm +++ b/code/modules/wiremod/components/math/length.dm @@ -14,7 +14,7 @@ var/datum/port/output/output circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL -/obj/item/circuit_component/length/Initialize() +/obj/item/circuit_component/length/Initialize(mapload) . = ..() input_port = add_input_port("Input", PORT_TYPE_ANY) diff --git a/code/modules/wiremod/components/math/not.dm b/code/modules/wiremod/components/math/not.dm index 6a55024b54..ad8a1d6791 100644 --- a/code/modules/wiremod/components/math/not.dm +++ b/code/modules/wiremod/components/math/not.dm @@ -14,7 +14,7 @@ var/datum/port/output/result circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL -/obj/item/circuit_component/not/Initialize() +/obj/item/circuit_component/not/Initialize(mapload) . = ..() input_port = add_input_port("Input", PORT_TYPE_ANY) diff --git a/code/modules/wiremod/components/math/random.dm b/code/modules/wiremod/components/math/random.dm index 548376ed8d..7e428f5ea6 100644 --- a/code/modules/wiremod/components/math/random.dm +++ b/code/modules/wiremod/components/math/random.dm @@ -17,7 +17,7 @@ /// The result from the output var/datum/port/output/output -/obj/item/circuit_component/random/Initialize() +/obj/item/circuit_component/random/Initialize(mapload) . = ..() minimum = add_input_port("Minimum", PORT_TYPE_NUMBER, FALSE) maximum = add_input_port("Maximum", PORT_TYPE_NUMBER, FALSE) diff --git a/code/modules/wiremod/components/ntnet/ntnet_receive.dm b/code/modules/wiremod/components/ntnet/ntnet_receive.dm index 0bcb1c5ed0..30bbaee855 100644 --- a/code/modules/wiremod/components/ntnet/ntnet_receive.dm +++ b/code/modules/wiremod/components/ntnet/ntnet_receive.dm @@ -20,7 +20,7 @@ var/datum/port/input/option/data_type_options var/datum/port/input/option/secondary_data_type_options -/obj/item/circuit_component/ntnet_receive/Initialize() +/obj/item/circuit_component/ntnet_receive/Initialize(mapload) . = ..() data_package = add_output_port("Data Package", PORT_TYPE_ANY) secondary_package = add_output_port("Secondary Package", PORT_TYPE_ANY) diff --git a/code/modules/wiremod/components/ntnet/ntnet_send.dm b/code/modules/wiremod/components/ntnet/ntnet_send.dm index 33d9370fae..44316f80ee 100644 --- a/code/modules/wiremod/components/ntnet/ntnet_send.dm +++ b/code/modules/wiremod/components/ntnet/ntnet_send.dm @@ -16,7 +16,7 @@ var/datum/port/input/secondary_package var/datum/port/input/enc_key -/obj/item/circuit_component/ntnet_send/Initialize() +/obj/item/circuit_component/ntnet_send/Initialize(mapload) . = ..() data_package = add_input_port("Data Package", PORT_TYPE_ANY) secondary_package = add_input_port("Secondary Package", PORT_TYPE_ANY) diff --git a/code/modules/wiremod/components/sensors/pressuresensor.dm b/code/modules/wiremod/components/sensors/pressuresensor.dm index 25f39b9c8e..f02642151a 100644 --- a/code/modules/wiremod/components/sensors/pressuresensor.dm +++ b/code/modules/wiremod/components/sensors/pressuresensor.dm @@ -12,7 +12,7 @@ /// The result from the output var/datum/port/output/result -/obj/item/circuit_component/pressuresensor/Initialize() +/obj/item/circuit_component/pressuresensor/Initialize(mapload) . = ..() result = add_output_port("Result", PORT_TYPE_NUMBER) diff --git a/code/modules/wiremod/components/sensors/tempsensor.dm b/code/modules/wiremod/components/sensors/tempsensor.dm index bb2410ce77..caa76a8cb8 100644 --- a/code/modules/wiremod/components/sensors/tempsensor.dm +++ b/code/modules/wiremod/components/sensors/tempsensor.dm @@ -12,7 +12,7 @@ /// The result from the output var/datum/port/output/result -/obj/item/circuit_component/tempsensor/Initialize() +/obj/item/circuit_component/tempsensor/Initialize(mapload) . = ..() result = add_output_port("Result", PORT_TYPE_NUMBER) diff --git a/code/modules/wiremod/components/string/concat.dm b/code/modules/wiremod/components/string/concat.dm index 55dd5530a1..10fcb1dd05 100644 --- a/code/modules/wiremod/components/string/concat.dm +++ b/code/modules/wiremod/components/string/concat.dm @@ -14,7 +14,7 @@ var/datum/port/output/output circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL -/obj/item/circuit_component/concat/Initialize() +/obj/item/circuit_component/concat/Initialize(mapload) . = ..() for(var/port_id in 1 to input_port_amount) var/letter = ascii2text(text2ascii("A") + (port_id-1)) diff --git a/code/modules/wiremod/components/string/textcase.dm b/code/modules/wiremod/components/string/textcase.dm index a021074433..9a01ae8765 100644 --- a/code/modules/wiremod/components/string/textcase.dm +++ b/code/modules/wiremod/components/string/textcase.dm @@ -27,7 +27,7 @@ ) textcase_options = add_option_port("Textcase Options", component_options) -/obj/item/circuit_component/textcase/Initialize() +/obj/item/circuit_component/textcase/Initialize(mapload) . = ..() input_port = add_input_port("Input", PORT_TYPE_STRING) output = add_output_port("Output", PORT_TYPE_STRING) diff --git a/code/modules/wiremod/components/string/tonumber.dm b/code/modules/wiremod/components/string/tonumber.dm index 6012ab339d..6083940a16 100644 --- a/code/modules/wiremod/components/string/tonumber.dm +++ b/code/modules/wiremod/components/string/tonumber.dm @@ -15,7 +15,7 @@ circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL -/obj/item/circuit_component/tonumber/Initialize() +/obj/item/circuit_component/tonumber/Initialize(mapload) . = ..() input_port = add_input_port("Input", PORT_TYPE_STRING) diff --git a/code/modules/wiremod/components/string/tostring.dm b/code/modules/wiremod/components/string/tostring.dm index bc044f157a..a4d30682ba 100644 --- a/code/modules/wiremod/components/string/tostring.dm +++ b/code/modules/wiremod/components/string/tostring.dm @@ -17,7 +17,7 @@ var/max_range = 5 -/obj/item/circuit_component/tostring/Initialize() +/obj/item/circuit_component/tostring/Initialize(mapload) . = ..() input_port = add_input_port("Input", PORT_TYPE_ANY) diff --git a/code/modules/wiremod/components/utility/clock.dm b/code/modules/wiremod/components/utility/clock.dm index 4c570b0ec5..093aac90f4 100644 --- a/code/modules/wiremod/components/utility/clock.dm +++ b/code/modules/wiremod/components/utility/clock.dm @@ -17,7 +17,7 @@ . = ..() . += create_ui_notice("Clock Interval: [DisplayTimeText(COMP_CLOCK_DELAY)]", "orange", "clock") -/obj/item/circuit_component/clock/Initialize() +/obj/item/circuit_component/clock/Initialize(mapload) . = ..() on = add_input_port("On", PORT_TYPE_NUMBER) diff --git a/code/modules/wiremod/components/utility/delay.dm b/code/modules/wiremod/components/utility/delay.dm index 37fa5a79f6..46d9e6f081 100644 --- a/code/modules/wiremod/components/utility/delay.dm +++ b/code/modules/wiremod/components/utility/delay.dm @@ -18,7 +18,7 @@ /// The output of the signal var/datum/port/output/output -/obj/item/circuit_component/delay/Initialize() +/obj/item/circuit_component/delay/Initialize(mapload) . = ..() delay_amount = add_input_port("Delay", PORT_TYPE_NUMBER, FALSE) trigger = add_input_port("Trigger", PORT_TYPE_SIGNAL) diff --git a/code/modules/wiremod/components/utility/getter.dm b/code/modules/wiremod/components/utility/getter.dm index 7bca3083da..30c3cb2ac1 100644 --- a/code/modules/wiremod/components/utility/getter.dm +++ b/code/modules/wiremod/components/utility/getter.dm @@ -26,7 +26,7 @@ variable_name.possible_options = null return ..() -/obj/item/circuit_component/getter/Initialize() +/obj/item/circuit_component/getter/Initialize(mapload) . = ..() value = add_output_port("Value", PORT_TYPE_ANY) diff --git a/code/modules/wiremod/components/utility/router.dm b/code/modules/wiremod/components/utility/router.dm index 4086392f5b..bf9fdba0e0 100644 --- a/code/modules/wiremod/components/utility/router.dm +++ b/code/modules/wiremod/components/utility/router.dm @@ -35,7 +35,7 @@ ) router_options = add_option_port("Router Options", component_options) -/obj/item/circuit_component/router/Initialize() +/obj/item/circuit_component/router/Initialize(mapload) . = ..() current_type = router_options.value if(input_port_amount > 1) diff --git a/code/modules/wiremod/components/utility/setter.dm b/code/modules/wiremod/components/utility/setter.dm index 614e700798..6b5658645c 100644 --- a/code/modules/wiremod/components/utility/setter.dm +++ b/code/modules/wiremod/components/utility/setter.dm @@ -30,7 +30,7 @@ variable_name.possible_options = null return ..() -/obj/item/circuit_component/setter/Initialize() +/obj/item/circuit_component/setter/Initialize(mapload) . = ..() input_port = add_input_port("Input", PORT_TYPE_ANY) trigger = add_input_port("Store", PORT_TYPE_SIGNAL) diff --git a/code/modules/wiremod/components/utility/typecast.dm b/code/modules/wiremod/components/utility/typecast.dm index ee204c332e..ebbb687da6 100644 --- a/code/modules/wiremod/components/utility/typecast.dm +++ b/code/modules/wiremod/components/utility/typecast.dm @@ -16,7 +16,7 @@ var/current_type -/obj/item/circuit_component/typecast/Initialize() +/obj/item/circuit_component/typecast/Initialize(mapload) . = ..() current_type = typecast_options.value input_value = add_input_port("Input", PORT_TYPE_ANY) diff --git a/code/modules/wiremod/core/component.dm b/code/modules/wiremod/core/component.dm index 0939debc3c..579ab7645c 100644 --- a/code/modules/wiremod/core/component.dm +++ b/code/modules/wiremod/core/component.dm @@ -56,7 +56,7 @@ /obj/item/circuit_component/proc/add_option_port(name, list/list_to_use) return add_input_port(name, PORT_TYPE_OPTION, 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 7400aafbf2..948ea080e7 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 f69caa7542..b767615e87 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 df0dec936c..ed0f1053a3 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 9aee88a300..2b579a0d81 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 5e5284bdeb..a1e66832c9 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 b44bb40d02..6c342effa1 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, \ @@ -64,7 +64,7 @@ /// Called when the airlock is unbolted var/datum/port/output/unbolted -/obj/item/circuit_component/airlock/Initialize() +/obj/item/circuit_component/airlock/Initialize(mapload) . = ..() // Input Signals bolt = add_input_port("Bolt", PORT_TYPE_SIGNAL) diff --git a/code/modules/wiremod/shell/bot.dm b/code/modules/wiremod/shell/bot.dm index f3c9fcae8d..a7aee6a2c5 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, \ @@ -30,7 +30,7 @@ /// The user who used the bot var/datum/port/output/entity -/obj/item/circuit_component/bot/Initialize() +/obj/item/circuit_component/bot/Initialize(mapload) . = ..() entity = add_output_port("User", PORT_TYPE_ATOM) signal = add_output_port("Signal", PORT_TYPE_SIGNAL) diff --git a/code/modules/wiremod/shell/brain_computer_interface.dm b/code/modules/wiremod/shell/brain_computer_interface.dm index d288edbc2d..f9723e115c 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) . = ..() AddComponent(/datum/component/shell, list( @@ -167,7 +167,7 @@ var/datum/weakref/user -/obj/item/circuit_component/bci_core/Initialize() +/obj/item/circuit_component/bci_core/Initialize(mapload) . = ..() message = add_input_port("Message", PORT_TYPE_STRING) @@ -341,7 +341,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 d5fe33e285..526567a92a 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() @@ -29,7 +29,7 @@ /// The user who used the bot var/datum/port/output/entity -/obj/item/circuit_component/compact_remote/Initialize() +/obj/item/circuit_component/compact_remote/Initialize(mapload) . = ..() entity = add_output_port("User", PORT_TYPE_ATOM) signal = add_output_port("Signal", PORT_TYPE_SIGNAL) diff --git a/code/modules/wiremod/shell/controller.dm b/code/modules/wiremod/shell/controller.dm index d3af0ca88e..9539a0521a 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() @@ -33,7 +33,7 @@ /// The entity output var/datum/port/output/entity -/obj/item/circuit_component/controller/Initialize() +/obj/item/circuit_component/controller/Initialize(mapload) . = ..() entity = add_output_port("User", PORT_TYPE_ATOM) signal = add_output_port("Signal", PORT_TYPE_SIGNAL) diff --git a/code/modules/wiremod/shell/drone.dm b/code/modules/wiremod/shell/drone.dm index d091f20b65..0133f35230 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() @@ -44,7 +44,7 @@ /// Delay between each movement var/move_delay = 0.2 SECONDS -/obj/item/circuit_component/bot_circuit/Initialize() +/obj/item/circuit_component/bot_circuit/Initialize(mapload) . = ..() north = add_input_port("Move North", PORT_TYPE_SIGNAL) east = add_input_port("Move East", PORT_TYPE_SIGNAL) diff --git a/code/modules/wiremod/shell/moneybot.dm b/code/modules/wiremod/shell/moneybot.dm index fe3cd30733..133f0a5e59 100644 --- a/code/modules/wiremod/shell/moneybot.dm +++ b/code/modules/wiremod/shell/moneybot.dm @@ -22,7 +22,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(), @@ -49,7 +49,7 @@ var/obj/structure/money_bot/attached_bot -/obj/item/circuit_component/money_dispenser/Initialize() +/obj/item/circuit_component/money_dispenser/Initialize(mapload) . = ..() dispense_amount = add_input_port("Amount", PORT_TYPE_NUMBER) on_fail = add_output_port("On Failed", PORT_TYPE_SIGNAL) @@ -93,7 +93,7 @@ /// The person who input the money var/datum/port/output/entity -/obj/item/circuit_component/money_bot/Initialize() +/obj/item/circuit_component/money_bot/Initialize(mapload) . = ..() total_money = add_output_port("Total Money", PORT_TYPE_NUMBER) money_input = add_output_port("Last Input Money", PORT_TYPE_NUMBER) diff --git a/code/modules/wiremod/shell/scanner.dm b/code/modules/wiremod/shell/scanner.dm index fd46910914..3120ac192a 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() @@ -35,7 +35,7 @@ -/obj/item/circuit_component/wiremod_scanner/Initialize() +/obj/item/circuit_component/wiremod_scanner/Initialize(mapload) . = ..() attacker = add_output_port("Scanner", PORT_TYPE_ATOM) attacking = add_output_port("Scanned Entity", PORT_TYPE_ATOM) diff --git a/code/modules/wiremod/shell/scanner_gate.dm b/code/modules/wiremod/shell/scanner_gate.dm index 312c690bd8..b8484f3182 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/scanline_timer -/obj/structure/scanner_gate_shell/Initialize() +/obj/structure/scanner_gate_shell/Initialize(mapload) . = ..() set_scanline("passive") var/static/list/loc_connections = list( @@ -45,7 +45,7 @@ var/obj/structure/scanner_gate_shell/attached_gate -/obj/item/circuit_component/scanner_gate/Initialize() +/obj/item/circuit_component/scanner_gate/Initialize(mapload) . = ..() scanned = add_output_port("Scanned Object", PORT_TYPE_ATOM) diff --git a/code/modules/wiremod/shell/server.dm b/code/modules/wiremod/shell/server.dm index 5e5a44f897..57c4945e2c 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 f208cafe4e..2c5adc3585 100644 --- a/code/modules/zombie/items.dm +++ b/code/modules/zombie/items.dm @@ -19,7 +19,7 @@ wound_bonus = -30 bare_wound_bonus = 15 -/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 a724d26314..d8908ee21a 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) diff --git a/modular_citadel/code/modules/clothing/neck.dm b/modular_citadel/code/modules/clothing/neck.dm index f57e2ae530..9507e65e0e 100644 --- a/modular_citadel/code/modules/clothing/neck.dm +++ b/modular_citadel/code/modules/clothing/neck.dm @@ -18,6 +18,6 @@ playsound(owner, 'sound/misc/souldeath.ogg', 100, FALSE) -/obj/item/clothing/neck/undertale/Initialize() +/obj/item/clothing/neck/undertale/Initialize(mapload) ..() AddComponent(/datum/component/souldeath/neck) diff --git a/modular_citadel/code/modules/custom_loadout/custom_items.dm b/modular_citadel/code/modules/custom_loadout/custom_items.dm index b8ee221e73..e8bbc5ac45 100644 --- a/modular_citadel/code/modules/custom_loadout/custom_items.dm +++ b/modular_citadel/code/modules/custom_loadout/custom_items.dm @@ -137,7 +137,7 @@ item_state = "satchel_carrot" mob_overlay_icon = 'icons/mob/clothing/custom_w.dmi' -/obj/item/storage/backpack/satchel/carrot/Initialize() +/obj/item/storage/backpack/satchel/carrot/Initialize(mapload) . = ..() AddComponent(/datum/component/squeak, list('sound/items/toysqueak1.ogg'=1), 50) diff --git a/modular_citadel/code/modules/eventmaps/Spookystation/JTGSZwork.dm b/modular_citadel/code/modules/eventmaps/Spookystation/JTGSZwork.dm index 85bbf109bf..a2ccc319d0 100644 --- a/modular_citadel/code/modules/eventmaps/Spookystation/JTGSZwork.dm +++ b/modular_citadel/code/modules/eventmaps/Spookystation/JTGSZwork.dm @@ -179,7 +179,7 @@ heavyfootstep = FOOTSTEP_GENERIC_HEAVY var/turfverb = "dig out" -/turf/open/floor/spooktime/nonspooktimegrass/Initialize() //Init rng icon. +/turf/open/floor/spooktime/nonspooktimegrass/Initialize(mapload) //Init rng icon. . = ..() icon_state = "grass_[rand(1,3)]" @@ -264,7 +264,7 @@ var/obj/structure/flora/turfDebris = null -/turf/open/floor/spooktime/spooktimegrass/Initialize() //Considering adding dirtgen here too. +/turf/open/floor/spooktime/spooktimegrass/Initialize(mapload) //Considering adding dirtgen here too. . = ..() if(prob(1)) icon_state = "smoothdarkdirt" //Sometimes we can be dirt. @@ -590,7 +590,7 @@ GLOBAL_LIST_EMPTY(rain_sounds) var/dyndial_cycle_ticker = 0 //How many var/playchime = 1 //Procs will reset their vars. -/obj/machinery/grandfatherclock/Initialize() +/obj/machinery/grandfatherclock/Initialize(mapload) . = ..() update_icon() //We get it done @@ -1030,7 +1030,7 @@ GLOBAL_LIST_EMPTY(rain_sounds) w_class = WEIGHT_CLASS_SMALL var/open = FALSE -/obj/item/umbrella/Initialize() +/obj/item/umbrella/Initialize(mapload) ..() color = RANDOM_COLOUR update_icon() diff --git a/modular_citadel/code/modules/festive/wheelchair.dm b/modular_citadel/code/modules/festive/wheelchair.dm index b4a1acd81c..75f2756449 100644 --- a/modular_citadel/code/modules/festive/wheelchair.dm +++ b/modular_citadel/code/modules/festive/wheelchair.dm @@ -1,4 +1,4 @@ -/obj/vehicle/sealed/vectorcraft/rideable/Initialize() +/obj/vehicle/sealed/vectorcraft/rideable/Initialize(mapload) . = ..() /obj/vehicle/sealed/vectorcraft/rideable/post_unbuckle_mob(mob/living/M) diff --git a/modular_citadel/code/modules/vectorcrafts/vectorcraft.dm b/modular_citadel/code/modules/vectorcrafts/vectorcraft.dm index bbb0ff86e8..399a1c5f06 100644 --- a/modular_citadel/code/modules/vectorcrafts/vectorcraft.dm +++ b/modular_citadel/code/modules/vectorcrafts/vectorcraft.dm @@ -35,7 +35,7 @@ var/mob/living/carbon/human/driver -/obj/vehicle/sealed/vectorcraft/Initialize() +/obj/vehicle/sealed/vectorcraft/Initialize(mapload) ..() i_m_acell = max_acceleration i_m_decell = max_deceleration diff --git a/modular_citadel/code/modules/vectorcrafts/vectortruck.dm b/modular_citadel/code/modules/vectorcrafts/vectortruck.dm index ef02584510..c46a81df59 100644 --- a/modular_citadel/code/modules/vectorcrafts/vectortruck.dm +++ b/modular_citadel/code/modules/vectorcrafts/vectortruck.dm @@ -47,7 +47,7 @@ var/weewoo = FALSE var/weewoocount = 0 -/obj/vehicle/sealed/vectorcraft/boot/ambulance/Initialize() +/obj/vehicle/sealed/vectorcraft/boot/ambulance/Initialize(mapload) . = ..() Sl = new /obj/machinery/sleeper