From f04f992cfe8eea1b74b0c7c3e2f8433bfbd82360 Mon Sep 17 00:00:00 2001
From: CHOMPStation2StaffMirrorBot
<94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com>
Date: Mon, 21 Apr 2025 10:16:48 -0700
Subject: [PATCH] [MIRROR] code/global.dm => code/_global_vars/ (#10689)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
---
.../events/wildlife_encounter.dm | 2 +-
code/ATMOSPHERICS/_atmos_setup.dm | 4 +-
.../binary_devices/algae_generator_vr.dm | 4 +-
.../components/omni_devices/omni_base.dm | 2 +-
.../components/unary/vent_pump.dm | 2 +-
code/ATMOSPHERICS/components/valve.dm | 2 +-
code/ATMOSPHERICS/pipes/he_pipes.dm | 2 +-
code/ATMOSPHERICS/pipes/manifold.dm | 6 +-
code/ATMOSPHERICS/pipes/simple.dm | 2 +-
code/ZAS/ConnectionManager.dm | 4 +-
code/ZAS/Fire.dm | 4 +-
code/ZAS/Turf.dm | 10 +-
code/__defines/_init.dm | 2 +-
code/__defines/misc.dm | 8 +-
code/_global_vars/__unsorted.dm | 87 ++++++++
code/_global_vars/configuration.dm | 3 +
code/_global_vars/lists/flavor_misc.dm | 37 ++++
code/_global_vars/lists/logging.dm | 17 ++
code/_global_vars/lists/mapping.dm | 31 +++
code/_global_vars/logging.dm | 30 +++
code/_helpers/files.dm | 3 +-
code/_helpers/game.dm | 4 +-
code/_helpers/logging.dm | 78 ++++---
code/_helpers/logging/debug.dm | 2 +-
code/_helpers/logging/ui.dm | 4 +-
code/_helpers/logging_vr.dm | 6 +-
code/_helpers/mobs.dm | 8 +-
code/_helpers/names.dm | 2 +-
code/_helpers/text.dm | 1 +
code/_helpers/unsorted.dm | 6 +-
code/_macros.dm | 3 +
code/_macros_vr.dm | 2 -
code/_onclick/hud/picture_in_picture.dm | 3 +-
.../configuration/entries/game_options.dm | 4 +
.../emergency_shuttle_controller.dm | 2 +-
code/controllers/subsystems/air_traffic.dm | 2 +-
.../subsystems/appreciation_messages.dm | 2 +-
code/controllers/subsystems/atoms.dm | 2 +-
code/controllers/subsystems/game_master.dm | 12 +-
code/controllers/subsystems/holomaps.dm | 2 +-
code/controllers/subsystems/inactivity.dm | 2 +-
code/controllers/subsystems/mapping.dm | 2 +-
code/controllers/subsystems/motion_tracker.dm | 2 +-
code/controllers/subsystems/overlays_ch.dm | 2 +-
code/controllers/subsystems/skybox.dm | 2 +-
code/controllers/subsystems/ticker.dm | 18 +-
code/controllers/subsystems/title_ch.dm | 5 -
code/controllers/subsystems/transcore_vr.dm | 8 +-
code/controllers/subsystems/vote.dm | 12 +-
code/controllers/subsystems/xenoarch.dm | 2 +-
code/datums/components/overlay_lighting.dm | 6 +-
code/datums/datacore.dm | 16 +-
code/datums/diseases/_MobProcs.dm | 2 +-
code/datums/diseases/_disease.dm | 2 +-
code/datums/diseases/advance/advance.dm | 2 +-
code/datums/game_masters/default.dm | 2 +-
code/datums/mixed.dm | 17 +-
code/datums/modules.dm | 4 +-
code/datums/uplink/announcements.dm | 10 +-
code/defines/obj.dm | 2 +-
code/defines/procs/announce.dm | 8 +-
code/game/antagonist/alien/borer.dm | 2 +-
code/game/antagonist/alien/xenomorph.dm | 2 +-
code/game/antagonist/antagonist.dm | 8 +-
code/game/atoms.dm | 6 +-
code/game/atoms_movable.dm | 4 +-
code/game/dna/dna2.dm | 1 -
code/game/dna/dna_modifier.dm | 4 +-
code/game/gamemodes/cult/cult_items.dm | 2 +-
code/game/gamemodes/cult/hell_universe.dm | 2 +-
code/game/gamemodes/cult/narsie.dm | 4 +-
code/game/gamemodes/endgame/endgame.dm | 6 +-
.../endgame/supermatter_cascade/universe.dm | 4 +-
code/game/gamemodes/events.dm | 10 +-
code/game/gamemodes/events/black_hole.dm | 2 +-
code/game/gamemodes/events/clang.dm | 2 +-
code/game/gamemodes/events/dust.dm | 2 +-
code/game/gamemodes/game_mode.dm | 6 +-
.../gamemodes/malfunction/malf_hardware.dm | 2 +-
.../tree_manipulation.dm | 2 +-
code/game/gamemodes/meteor/meteors.dm | 2 +-
code/game/gamemodes/nuclear/pinpointer.dm | 4 +-
code/game/gamemodes/objective.dm | 2 +-
code/game/gamemodes/sandbox/h_sandbox.dm | 2 +-
.../technomancer/spells/condensation.dm | 2 +-
code/game/jobs/job/civilian_chaplain.dm | 2 +-
code/game/jobs/job_controller.dm | 6 +-
code/game/jobs/whitelist.dm | 2 +-
code/game/json.dm | 2 +-
code/game/machinery/adv_med.dm | 2 +-
code/game/machinery/atm_ret_field.dm | 2 +-
code/game/machinery/computer/card.dm | 8 +-
code/game/machinery/computer/medical.dm | 34 ++--
code/game/machinery/computer/pod.dm | 12 +-
code/game/machinery/computer/security.dm | 34 ++--
code/game/machinery/computer/skills.dm | 20 +-
.../machinery/computer/specops_shuttle.dm | 6 +-
code/game/machinery/computer/timeclock_vr.dm | 20 +-
.../machinery/computer3/computers/card.dm | 4 +-
code/game/machinery/cryopod.dm | 14 +-
code/game/machinery/door_control.dm | 16 +-
code/game/machinery/doorbell_vr.dm | 2 +-
code/game/machinery/doors/airlock.dm | 2 +-
code/game/machinery/doors/brigdoors.dm | 4 +-
code/game/machinery/doors/door.dm | 2 +-
code/game/machinery/doors/firedoor.dm | 4 +-
code/game/machinery/doors/windowdoor.dm | 2 +-
code/game/machinery/exonet_node.dm | 2 +-
code/game/machinery/fire_alarm.dm | 2 +-
code/game/machinery/flasher.dm | 2 +-
code/game/machinery/holosign.dm | 2 +-
code/game/machinery/igniter.dm | 4 +-
code/game/machinery/machinery.dm | 4 +-
code/game/machinery/magnet.dm | 4 +-
code/game/machinery/neonsign.dm | 2 +-
code/game/machinery/nuclear_bomb.dm | 4 +-
code/game/machinery/pandemic.dm | 2 +-
code/game/machinery/pipe/construction.dm | 2 +-
code/game/machinery/records_scanner.dm | 4 +-
code/game/machinery/requests_console.dm | 2 +-
code/game/machinery/status_display_ai.dm | 2 +-
code/game/machinery/teleporter.dm | 4 +-
code/game/machinery/wall_frames.dm | 4 +-
code/game/mecha/mecha.dm | 4 +-
code/game/objects/effects/alien/aliens.dm | 2 +-
code/game/objects/effects/chem/chemsmoke.dm | 4 +-
code/game/objects/effects/chem/foam.dm | 2 +-
code/game/objects/effects/confetti_vr.dm | 4 +-
.../objects/effects/decals/Cleanable/fuel.dm | 2 +-
.../game/objects/effects/decals/contraband.dm | 4 +-
.../objects/effects/decals/posters/posters.dm | 4 +-
code/game/objects/effects/effect_system.dm | 12 +-
code/game/objects/effects/effect_system_ch.dm | 4 +-
.../objects/effects/explosion_particles.dm | 2 +-
code/game/objects/effects/landmarks.dm | 36 ++--
.../effects/map_effects/effect_emitter.dm | 2 +-
.../objects/effects/spawners/gibspawner.dm | 4 +-
.../temporary_visuials/temproary_visual.dm | 2 +-
code/game/objects/explosion.dm | 2 +-
code/game/objects/explosion_recursive.dm | 2 +-
code/game/objects/items/apc_frame.dm | 2 +-
code/game/objects/items/blueprints.dm | 2 +-
code/game/objects/items/blueprints_vr.dm | 8 +-
.../items/devices/communicator/UI_tgui.dm | 4 +-
.../items/devices/communicator/helper.dm | 10 +-
.../game/objects/items/devices/holowarrant.dm | 6 +-
.../objects/items/devices/transfer_valve.dm | 4 +-
code/game/objects/items/devices/uplink.dm | 4 +-
code/game/objects/items/toys/toys_vr.dm | 12 +-
code/game/objects/items/weapons/AI_modules.dm | 10 +-
.../objects/items/weapons/picnic_blankets.dm | 2 +-
code/game/objects/items/weapons/policetape.dm | 16 +-
code/game/objects/items/weapons/stunbaton.dm | 2 +-
code/game/objects/items/weapons/syndie.dm | 2 +-
.../game/objects/items/weapons/tanks/tanks.dm | 4 +-
code/game/objects/items/weapons/tape.dm | 4 +-
.../objects/items/weapons/teleportation.dm | 6 +-
code/game/objects/structures.dm | 2 +-
code/game/objects/structures/catwalk.dm | 2 +-
code/game/objects/structures/cliff.dm | 4 +-
code/game/objects/structures/fitness_vr.dm | 2 +-
code/game/objects/structures/gravemarker.dm | 2 +-
code/game/objects/structures/grille.dm | 4 +-
code/game/objects/structures/lattice.dm | 6 +-
code/game/objects/structures/ledges.dm | 2 +-
code/game/objects/structures/morgue.dm | 2 +-
code/game/objects/structures/railing.dm | 2 +-
code/game/objects/structures/reflectors_ch.dm | 2 +-
code/game/objects/structures/signs.dm | 2 +-
code/game/objects/structures/transit_tubes.dm | 4 +-
code/game/objects/structures/trash_pile_vr.dm | 6 +-
code/game/objects/structures/watercloset.dm | 2 +-
.../objects/structures/windoor_assembly.dm | 2 +-
code/game/objects/structures/window.dm | 2 +-
.../game/objects/structures/window_spawner.dm | 2 +-
code/game/turfs/simulated/dungeon/wall.dm | 8 +-
code/game/turfs/simulated/floor_attackby.dm | 4 +-
code/game/turfs/simulated/floor_icon.dm | 4 +-
code/game/turfs/simulated/floor_types.dm | 4 +-
code/game/turfs/simulated/wall_icon.dm | 4 +-
code/game/turfs/simulated/wall_types.dm | 6 +-
code/game/turfs/simulated/wall_types_vr.dm | 4 +-
code/game/turfs/simulated/walls.dm | 2 +-
code/game/turfs/space/space.dm | 12 +-
code/game/turfs/space/transit.dm | 2 +-
code/game/turfs/turf_changing.dm | 4 +-
code/game/world.dm | 32 +--
code/global.dm | 190 ------------------
code/global_init.dm | 12 +-
code/global_vr.dm | 23 ---
code/modules/admin/admin.dm | 12 +-
code/modules/admin/admin_investigate.dm | 4 +-
code/modules/admin/admin_verb_lists.dm | 6 +-
code/modules/admin/admin_verb_lists_vr.dm | 2 +-
code/modules/admin/news.dm | 8 +-
code/modules/admin/player_effects.dm | 2 +-
.../admin/secrets/admin_secrets/admin_logs.dm | 4 +-
.../secrets/admin_secrets/bombing_list.dm | 2 +-
.../secrets/admin_secrets/prison_warp.dm | 8 +-
.../admin_secrets/show_crew_manifest.dm | 2 +-
.../secrets/admin_secrets/show_law_changes.dm | 8 +-
.../secrets/admin_secrets/show_signalers.dm | 6 +-
.../secrets/fun_secrets/fix_all_lights.dm | 2 +-
.../secrets/fun_secrets/toggle_bomb_cap.dm | 22 +-
.../admin/secrets/random_events/gravity.dm | 6 +-
.../admin/secrets/random_events/gravity_vr.dm | 10 +-
code/modules/admin/topic.dm | 34 ++--
code/modules/admin/verbs/atmosdebug.dm | 8 +-
code/modules/admin/verbs/buildmode.dm | 8 +-
code/modules/admin/verbs/custom_event.dm | 14 +-
code/modules/admin/verbs/debug.dm | 34 ++--
code/modules/admin/verbs/grief_fixers.dm | 2 +-
code/modules/admin/verbs/mapping.dm | 2 +-
code/modules/admin/verbs/randomverbs.dm | 16 +-
code/modules/admin/verbs/smite.dm | 2 +-
.../view_variables/mass_edit_variables.dm | 2 +-
.../view_variables/view_variables_global.dm | 9 +-
code/modules/ai/ai_holder_combat.dm | 6 +-
code/modules/ai/ai_holder_disabled.dm | 8 +-
code/modules/ai/ai_holder_movement.dm | 6 +-
.../ai/ai_holder_subtypes/simple_mob_ai.dm | 6 +-
.../ai/ai_holder_subtypes/simple_mob_ai_ch.dm | 2 +-
code/modules/asset_cache/asset_list.dm | 2 +-
.../asset_cache/assets/spritesheets/pipes.dm | 2 +-
.../iconforge/batched_spritesheet.dm | 6 +-
code/modules/awaymissions/gateway.dm | 12 +-
code/modules/awaymissions/redgate.dm | 40 ++--
code/modules/awaymissions/zlevel.dm | 10 +-
code/modules/blob2/blobs/base_blob.dm | 4 +-
code/modules/blob2/overmind/powers.dm | 4 +-
code/modules/client/client defines.dm | 2 +-
code/modules/client/client procs.dm | 8 +-
.../preference_setup/general/06_flavor.dm | 6 +-
code/modules/client/preferences.dm | 2 +-
.../modules/client/preferences_spawnpoints.dm | 18 +-
.../client/verbs/character_directory.dm | 4 +-
.../rig/modules/specific/pat_module_vr.dm | 4 +-
code/modules/clothing/spacesuits/rig/rig.dm | 2 +-
code/modules/economy/cash_register.dm | 2 +-
code/modules/economy/economy_misc.dm | 4 +-
.../eventkit/generic_objects/generic_item.dm | 2 +-
.../generic_objects/generic_structure.dm | 2 +-
code/modules/events/blob.dm | 2 +-
code/modules/events/brand_intelligence.dm | 2 +-
code/modules/events/canister_leak.dm | 2 +-
.../modules/events/communications_blackout.dm | 2 +-
code/modules/events/disease_outbreak.dm | 2 +-
code/modules/events/electrical_storm.dm | 2 +-
code/modules/events/escaped_slimes.dm | 2 +-
code/modules/events/gravity.dm | 12 +-
code/modules/events/gravity_vr.dm | 6 +-
code/modules/events/grid_check.dm | 2 +-
code/modules/events/grubinfestation_vr.dm | 2 +-
code/modules/events/ian_storm_vr.dm | 2 +-
code/modules/events/ion_storm.dm | 4 +-
code/modules/events/meteors.dm | 8 +-
code/modules/events/money_hacker.dm | 4 +-
code/modules/events/prison_break.dm | 2 +-
code/modules/events/spider_infestation.dm | 2 +-
code/modules/events/supply_demand_vr.dm | 4 +-
code/modules/food/kitchen/gibber.dm | 2 +-
.../event2/events/cargo/shipping_error.dm | 2 +-
.../events/command/manifest_malfunction.dm | 14 +-
.../event2/events/command/money_hacker.dm | 10 +-
.../event2/events/command/raise_funds.dm | 4 +-
.../events/engineering/airlock_failure.dm | 6 +-
.../event2/events/engineering/blob.dm | 8 +-
.../events/engineering/brand_intelligence.dm | 4 +-
.../events/engineering/camera_damage.dm | 2 +-
.../events/engineering/canister_leak.dm | 4 +-
.../event2/events/engineering/dust.dm | 2 +-
.../event2/events/engineering/gas_leak.dm | 4 +-
.../event2/events/engineering/grid_check.dm | 2 +-
.../events/engineering/meteor_defense.dm | 10 +-
.../event2/events/engineering/spacevine.dm | 2 +-
.../event2/events/engineering/wallrot.dm | 2 +-
.../event2/events/engineering/window_break.dm | 2 +-
.../event2/events/everyone/comms_blackout.dm | 4 +-
.../events/everyone/electrical_fault.dm | 2 +-
.../event2/events/everyone/gravity.dm | 2 +-
.../event2/events/everyone/gravity_vr.dm | 8 +-
.../event2/events/everyone/infestation.dm | 2 +-
.../event2/events/everyone/pda_spam.dm | 2 +-
.../event2/events/everyone/radiation_storm.dm | 4 +-
.../event2/events/everyone/random_antag.dm | 2 +-
.../event2/events/everyone/solar_storm.dm | 4 +-
.../events/everyone/sudden_weather_shift.dm | 2 +-
.../event2/events/medical/appendicitis.dm | 10 +-
.../event2/events/security/carp_migration.dm | 2 +-
.../events/security/drill_announcement.dm | 4 +-
.../event2/events/security/prison_break.dm | 14 +-
.../event2/events/security/rogue_drones.dm | 4 +-
.../events/security/security_advisement.dm | 30 +--
.../events/security/spider_infestation.dm | 6 +-
.../event2/events/security/stowaway.dm | 6 +-
.../event2/events/security/surprise_carp.dm | 2 +-
.../event2/events/security/swarm_boarder.dm | 8 +-
.../event2/events/synthetic/ion_storm.dm | 2 +-
code/modules/holomap/station_holomap.dm | 2 +-
code/modules/hydroponics/seed.dm | 2 +-
.../hydroponics/spreading/spreading.dm | 2 +-
.../hydroponics/spreading/spreading_growth.dm | 2 +-
.../spreading/spreading_response.dm | 2 +-
.../core/assemblies/generic.dm | 2 +-
.../core/special_pins/char_pin.dm | 2 +-
.../core/special_pins/dir_pin.dm | 2 +-
.../core/special_pins/string_pin.dm | 2 +-
code/modules/lighting/sunlight_handler.dm | 8 +-
code/modules/materials/materials/glass.dm | 2 +-
.../mining/machinery/machine_processing.dm | 4 +-
.../mining/machinery/machine_stacking.dm | 4 +-
.../mining/machinery/machine_unloading.dm | 4 +-
code/modules/mining/mine_turfs.dm | 10 +-
code/modules/mob/dead/observer/free_vr.dm | 6 +-
code/modules/mob/dead/observer/observer.dm | 12 +-
code/modules/mob/living/bot/bot.dm | 8 +-
code/modules/mob/living/bot/medbot.dm | 4 +-
code/modules/mob/living/bot/secbot.dm | 8 +-
.../mob/living/carbon/alien/diona/diona.dm | 2 +-
code/modules/mob/living/carbon/human/death.dm | 4 +-
.../mob/living/carbon/human/death_vr.dm | 2 +-
.../mob/living/carbon/human/examine.dm | 4 +-
code/modules/mob/living/carbon/human/human.dm | 56 +++---
.../living/carbon/human/human_attackhand.dm | 2 +-
.../mob/living/carbon/human/human_damage.dm | 4 +-
.../mob/living/carbon/human/human_defense.dm | 2 +-
.../mob/living/carbon/human/human_helpers.dm | 22 +-
.../mob/living/carbon/human/human_movement.dm | 2 +-
code/modules/mob/living/carbon/human/life.dm | 12 +-
.../species/shadekin/shadekin_abilities.dm | 4 +-
.../carbon/human/species/station/monkey.dm | 2 +-
.../mob/living/carbon/human/unarmed_attack.dm | 2 +-
code/modules/mob/living/damage_procs.dm | 4 +-
code/modules/mob/living/living.dm | 2 +-
code/modules/mob/living/living_defense.dm | 6 +-
code/modules/mob/living/organs.dm | 2 +-
code/modules/mob/living/silicon/ai/death.dm | 2 +-
.../modules/mob/living/silicon/ai/latejoin.dm | 2 +-
code/modules/mob/living/silicon/ai/login.dm | 2 +-
code/modules/mob/living/silicon/ai/logout.dm | 2 +-
.../modules/mob/living/silicon/ai/multicam.dm | 2 +-
.../modules/mob/living/silicon/decoy/death.dm | 2 +-
code/modules/mob/living/silicon/pai/pai_vr.dm | 2 +-
.../living/silicon/pai/software_modules.dm | 16 +-
.../silicon/robot/dogborg/dog_sleeper.dm | 2 +-
.../mob/living/silicon/robot/drone/drone.dm | 2 +-
.../silicon/robot/drone/drone_manufacturer.dm | 2 +-
.../modules/mob/living/silicon/robot/robot.dm | 2 +-
.../mob/living/silicon/robot/robot_items.dm | 2 +-
.../living/silicon/robot/robot_ui_module.dm | 10 +-
.../mob/living/simple_mob/simple_mob.dm | 4 +-
.../subtypes/animal/alien animals/teppi.dm | 2 +-
.../subtypes/animal/giant_spider/hunter.dm | 2 +-
.../simple_mob/subtypes/animal/sif/racoon.dm | 2 +-
.../simple_mob/subtypes/animal/sif/siffet.dm | 2 +-
.../simple_mob/subtypes/glamour/blaidd.dm | 2 +-
.../simple_mob/subtypes/glamour/ddraig.dm | 2 +-
.../subtypes/vore/demon/demon_abilities.dm | 2 +-
.../living/simple_mob/subtypes/vore/devil.dm | 2 +-
.../living/simple_mob/subtypes/vore/horse.dm | 2 +-
.../living/simple_mob/subtypes/vore/meowl.dm | 2 +-
.../vore/mobs_monsters/clowns/c_shift.dm | 2 +-
.../living/simple_mob/subtypes/vore/otie.dm | 2 +-
.../subtypes/vore/shadekin/ability_procs.dm | 2 +-
.../vore/shadekin/rakshasa_abilities.dm | 4 +-
.../subtypes/vore/shadekin/shadekin.dm | 2 +-
.../simple_mob/subtypes/vore/stalker.dm | 2 +-
code/modules/mob/mob.dm | 6 +-
code/modules/mob/mob_helpers.dm | 2 +-
code/modules/mob/mob_movement.dm | 2 +-
code/modules/mob/new_player/login.dm | 6 +-
code/modules/mob/new_player/new_player.dm | 8 +-
code/modules/modular_computers/NTNet/NTNet.dm | 2 +-
.../programs/security/digitalwarrant.dm | 10 +-
code/modules/multiz/pipes.dm | 4 +-
code/modules/multiz/portals_vr.dm | 6 +-
code/modules/multiz/stairs.dm | 6 +-
code/modules/multiz/turf.dm | 2 +-
code/modules/organs/organ_external.dm | 8 +-
.../overmap/disperser/disperser_console.dm | 2 +-
code/modules/overmap/sectors.dm | 2 +-
.../overmap/ships/computers/sensors.dm | 2 +-
code/modules/overmap/ships/ship.dm | 2 +-
code/modules/overmap/turfs.dm | 2 +-
code/modules/paperwork/filingcabinet.dm | 8 +-
code/modules/paperwork/papershredder.dm | 2 +-
code/modules/paperwork/pen.dm | 2 +-
code/modules/pda/cart_apps.dm | 14 +-
code/modules/pda/core_apps.dm | 8 +-
code/modules/pda/radio.dm | 2 +-
code/modules/pda/utilities.dm | 2 +-
code/modules/planet/sif.dm | 4 +-
code/modules/planet/sun.dm | 6 +-
code/modules/planet/virgo3b_vr.dm | 4 +-
code/modules/planet/virgo4_vr.dm | 4 +-
code/modules/planet/weather.dm | 2 +-
code/modules/power/antimatter/shielding.dm | 6 +-
code/modules/power/cable.dm | 6 +-
code/modules/power/fusion/_setup.dm | 8 +-
code/modules/power/fusion/core/_core.dm | 2 +-
code/modules/power/fusion/core/core_field.dm | 14 +-
code/modules/power/generator.dm | 2 +-
code/modules/power/gravitygenerator.dm | 2 +-
code/modules/power/power.dm | 6 +-
code/modules/power/sensors/powernet_sensor.dm | 2 +-
.../power/singularity/field_generator.dm | 2 +-
code/modules/power/singularity/singularity.dm | 4 +-
code/modules/power/supermatter/supermatter.dm | 22 +-
code/modules/power/tesla/energy_ball.dm | 2 +-
code/modules/power/turbine.dm | 4 +-
code/modules/projectiles/ammunition.dm | 4 +-
.../modules/projectiles/guns/energy/cyborg.dm | 4 +-
.../modules/projectiles/projectile/special.dm | 2 +-
code/modules/reagents/reagents/dispenser.dm | 4 +-
code/modules/reagents/reagents/drugs.dm | 4 +-
code/modules/reagents/reagents/food_drinks.dm | 2 +-
code/modules/reagents/reagents/toxins.dm | 2 +-
code/modules/recycling/conveyor2.dm | 10 +-
.../recycling/disposal-construction.dm | 2 +-
code/modules/recycling/disposal.dm | 6 +-
code/modules/research/message_server.dm | 2 +-
code/modules/research/rdconsole.dm | 4 +-
code/modules/research/rdconsole_tgui.dm | 2 +-
code/modules/research/server.dm | 8 +-
code/modules/resleeving/autoresleever.dm | 2 +-
code/modules/resleeving/infocore_records.dm | 2 +-
code/modules/resleeving/machines.dm | 2 +-
.../security levels/keycard authentication.dm | 2 +-
.../security levels/security levels.dm | 4 +-
code/modules/shieldgen/energy_field.dm | 6 +-
code/modules/shieldgen/handheld_defuser.dm | 2 +-
code/modules/shieldgen/shield_diffuser.dm | 2 +-
code/modules/shieldgen/shield_generator.dm | 6 +-
code/modules/shuttles/web_datums.dm | 4 +-
code/modules/tables/interactions.dm | 2 +-
code/modules/tables/tables.dm | 2 +-
code/modules/telesci/quantum_pad.dm | 2 +-
code/modules/telesci/telesci_computer.dm | 2 +-
code/modules/tgs/v5/chat_commands_zz_ch.dm | 8 +-
code/modules/tgui/modules/atmos_control.dm | 6 +-
code/modules/tgui/modules/communications.dm | 4 +-
code/modules/tgui/modules/crew_manifest.dm | 4 +-
.../modules/tgui/modules/ntos-only/cardmod.dm | 8 +-
code/modules/tgui/modules/overmap.dm | 2 +-
code/modules/tgui/modules/power_monitor.dm | 2 +-
code/modules/tgui/modules/rcon.dm | 2 +-
.../tgui/modules/supermatter_monitor.dm | 2 +-
code/modules/turbolift/turbolift_door.dm | 2 +-
code/modules/vehicles/vehicle.dm | 4 +-
code/modules/vore/eating/belly_obj_vr.dm | 2 +-
code/modules/webhooks/webhook_roundstart.dm | 2 +-
.../finds/Weapons/archeo_melee.dm | 6 +-
maps/common/common_turfs.dm | 2 +-
maps/redgate/facility_items.dm | 6 +-
maps/redgate/falls/atoll_decals.dm | 4 +-
maps/redgate/falls/atoll_objs.dm | 4 +-
maps/redgate/falls/atoll_turfs.dm | 2 +-
modular_chomp/code/ZAS/Fire.dm | 2 +-
.../code/game/objects/effects/dark_growth.dm | 2 +-
.../code/game/objects/items/weapons/RCD.dm | 2 +-
.../game/turfs/simulated/shuttlewalls_icon.dm | 4 +-
.../code/modules/event/electrical_fire.dm | 4 +-
.../code/modules/event/horde_infestation.dm | 4 +-
modular_chomp/code/modules/event/meatyores.dm | 2 +-
.../code/modules/event/metroid_infestation.dm | 2 +-
.../subtypes/humanoid/starhunters/base.dm | 2 +-
.../subtypes/vore/shadekin/shadekin.dm | 4 +-
.../code/modules/paperwork/filingcabinet.dm | 8 +-
modular_chomp/code/modules/pda/core_apps.dm | 4 +-
.../code/modules/recycling/v_garbosystem.dm | 6 +-
.../relic_base/events/wildlife_encounter.dm | 2 +-
.../events/wildlife_encounter.dm | 2 +-
.../WikiCommon/WikiQuickElements.tsx | 2 +-
vorestation.dme | 6 +-
474 files changed, 1401 insertions(+), 1421 deletions(-)
create mode 100644 code/_global_vars/__unsorted.dm
create mode 100644 code/_global_vars/lists/flavor_misc.dm
create mode 100644 code/_global_vars/lists/logging.dm
delete mode 100644 code/_macros_vr.dm
delete mode 100644 code/global.dm
delete mode 100644 code/global_vr.dm
diff --git a/archive/maps/southern_cross/events/wildlife_encounter.dm b/archive/maps/southern_cross/events/wildlife_encounter.dm
index 57fde54ef1..45f504e558 100644
--- a/archive/maps/southern_cross/events/wildlife_encounter.dm
+++ b/archive/maps/southern_cross/events/wildlife_encounter.dm
@@ -7,7 +7,7 @@
event_type = /datum/event2/event/wildlife_encounter
/datum/event2/meta/wildlife_encounter/get_weight()
- var/explorers = metric.count_people_with_job(/datum/job/explorer) + metric.count_people_with_job(/datum/job/sar)
+ var/explorers = GLOB.metric.count_people_with_job(/datum/job/explorer) + GLOB.metric.count_people_with_job(/datum/job/sar)
if(!explorers)
return 0
diff --git a/code/ATMOSPHERICS/_atmos_setup.dm b/code/ATMOSPHERICS/_atmos_setup.dm
index bd141a30b9..217ca3062e 100644
--- a/code/ATMOSPHERICS/_atmos_setup.dm
+++ b/code/ATMOSPHERICS/_atmos_setup.dm
@@ -178,7 +178,7 @@ var/global/list/pipe_colors = list("grey" = PIPE_COLOR_GREY, "red" = PIPE_COLOR_
var/cache_name = state
- for(var/D in cardinal)
+ for(var/D in GLOB.cardinal)
var/image/I = image('icons/atmos/pipe_underlays.dmi', icon_state = state, dir = D)
underlays[cache_name + "[D]"] = I
for(var/pipe_color in pipe_colors)
@@ -210,7 +210,7 @@ var/global/list/pipe_colors = list("grey" = PIPE_COLOR_GREY, "red" = PIPE_COLOR_
if(state == "")
continue
- for(var/D in cardinal)
+ for(var/D in GLOB.cardinal)
var/image/I = image('icons/atmos/pipe_underlays.dmi', icon_state = state, dir = D)
switch(state)
if("intact")
diff --git a/code/ATMOSPHERICS/components/binary_devices/algae_generator_vr.dm b/code/ATMOSPHERICS/components/binary_devices/algae_generator_vr.dm
index 47110628b1..b74a5249ae 100644
--- a/code/ATMOSPHERICS/components/binary_devices/algae_generator_vr.dm
+++ b/code/ATMOSPHERICS/components/binary_devices/algae_generator_vr.dm
@@ -45,7 +45,7 @@
var/image/I = image(icon = icon, icon_state = "algae-pipe-overlay", dir = dir)
I.color = PIPE_COLOR_BLUE
add_overlay(I)
- I = image(icon = icon, icon_state = "algae-pipe-overlay", dir = reverse_dir[dir])
+ I = image(icon = icon, icon_state = "algae-pipe-overlay", dir = GLOB.reverse_dir[dir])
I.color = PIPE_COLOR_BLACK
add_overlay(I)
@@ -186,7 +186,7 @@
data["materials"] = materials_ui
data["last_flow_rate"] = last_flow_rate
data["last_power_draw"] = last_power_draw
- data["inputDir"] = dir2text(reverse_dir[dir])
+ data["inputDir"] = dir2text(GLOB.reverse_dir[dir])
data["outputDir"] = dir2text(dir)
data["usePower"] = use_power
data["errorText"] = ui_error
diff --git a/code/ATMOSPHERICS/components/omni_devices/omni_base.dm b/code/ATMOSPHERICS/components/omni_devices/omni_base.dm
index 135d65016a..e9b8031f09 100644
--- a/code/ATMOSPHERICS/components/omni_devices/omni_base.dm
+++ b/code/ATMOSPHERICS/components/omni_devices/omni_base.dm
@@ -31,7 +31,7 @@
icon_state = "base"
ports = new()
- for(var/d in cardinal)
+ for(var/d in GLOB.cardinal)
var/datum/omni_port/new_port = new(src, d)
switch(d)
if(NORTH)
diff --git a/code/ATMOSPHERICS/components/unary/vent_pump.dm b/code/ATMOSPHERICS/components/unary/vent_pump.dm
index f8d16f14d2..389a3d49f7 100644
--- a/code/ATMOSPHERICS/components/unary/vent_pump.dm
+++ b/code/ATMOSPHERICS/components/unary/vent_pump.dm
@@ -129,7 +129,7 @@
// Return the air from the turf in "front" of us (opposite the way the pipe is facing)
/obj/machinery/atmospherics/unary/vent_pump/high_volume/wall_mounted/return_air()
- var/turf/T = get_step(src, reverse_dir[dir])
+ var/turf/T = get_step(src, GLOB.reverse_dir[dir])
if(isnull(T))
return ..()
return T.return_air()
diff --git a/code/ATMOSPHERICS/components/valve.dm b/code/ATMOSPHERICS/components/valve.dm
index e5d2837b51..479ec37ecc 100644
--- a/code/ATMOSPHERICS/components/valve.dm
+++ b/code/ATMOSPHERICS/components/valve.dm
@@ -151,7 +151,7 @@
var/node1_dir
var/node2_dir
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
if(direction&initialize_directions)
if (!node1_dir)
node1_dir = direction
diff --git a/code/ATMOSPHERICS/pipes/he_pipes.dm b/code/ATMOSPHERICS/pipes/he_pipes.dm
index d2b1a5f8e3..396ef2fcd8 100644
--- a/code/ATMOSPHERICS/pipes/he_pipes.dm
+++ b/code/ATMOSPHERICS/pipes/he_pipes.dm
@@ -47,7 +47,7 @@
var/node1_dir
var/node2_dir
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
if(direction&initialize_directions_he)
if (!node1_dir)
node1_dir = direction
diff --git a/code/ATMOSPHERICS/pipes/manifold.dm b/code/ATMOSPHERICS/pipes/manifold.dm
index 35eb418516..a0f7789c7c 100644
--- a/code/ATMOSPHERICS/pipes/manifold.dm
+++ b/code/ATMOSPHERICS/pipes/manifold.dm
@@ -137,7 +137,7 @@
/obj/machinery/atmospherics/pipe/manifold/atmos_init()
var/connect_directions = (NORTH|SOUTH|EAST|WEST)&(~dir)
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
if(direction&connect_directions)
for(var/obj/machinery/atmospherics/target in get_step(src,direction))
if (can_be_node(target, 1))
@@ -148,7 +148,7 @@
break
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
if(direction&connect_directions)
for(var/obj/machinery/atmospherics/target in get_step(src,direction))
if (can_be_node(target, 2))
@@ -159,7 +159,7 @@
break
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
if(direction&connect_directions)
for(var/obj/machinery/atmospherics/target in get_step(src,direction))
if (can_be_node(target, 3))
diff --git a/code/ATMOSPHERICS/pipes/simple.dm b/code/ATMOSPHERICS/pipes/simple.dm
index e5a029405f..de5a26a8e3 100644
--- a/code/ATMOSPHERICS/pipes/simple.dm
+++ b/code/ATMOSPHERICS/pipes/simple.dm
@@ -132,7 +132,7 @@
var/node1_dir
var/node2_dir
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
if(direction&initialize_directions)
if (!node1_dir)
node1_dir = direction
diff --git a/code/ZAS/ConnectionManager.dm b/code/ZAS/ConnectionManager.dm
index 8d7e270cde..dc0f5293b9 100644
--- a/code/ZAS/ConnectionManager.dm
+++ b/code/ZAS/ConnectionManager.dm
@@ -1,13 +1,13 @@
/*
Overview:
- The connection_manager class stores connections in each cardinal direction on a turf.
+ The connection_manager class stores connections in each GLOB.cardinal direction on a turf.
It isn't always present if a turf has no connections, check if(connections) before using.
Contains procs for mass manipulation of connection data.
Class Vars:
- NSEWUD - Connections to this turf in each cardinal direction.
+ NSEWUD - Connections to this turf in each GLOB.cardinal direction.
Class Procs:
diff --git a/code/ZAS/Fire.dm b/code/ZAS/Fire.dm
index 8b4135b100..2c68761c7b 100644
--- a/code/ZAS/Fire.dm
+++ b/code/ZAS/Fire.dm
@@ -158,7 +158,7 @@ If it gains pressure too slowly, it may leak or just rupture instead of explodin
A.fire_act(air_contents, air_contents.temperature, air_contents.volume)
//spread
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
var/turf/simulated/enemy_tile = get_step(my_tile, direction)
if(istype(enemy_tile))
@@ -197,7 +197,7 @@ If it gains pressure too slowly, it may leak or just rupture instead of explodin
qdel(src)
return
- set_dir(pick(cardinal))
+ set_dir(pick(GLOB.cardinal))
var/datum/gas_mixture/air_contents = loc.return_air()
color = fire_color(air_contents.temperature)
diff --git a/code/ZAS/Turf.dm b/code/ZAS/Turf.dm
index d2c413090a..c344fa96ce 100644
--- a/code/ZAS/Turf.dm
+++ b/code/ZAS/Turf.dm
@@ -77,7 +77,7 @@
var/unconnected_dirs = check_dirs
#ifdef MULTIZAS
- var/to_check = cornerdirsz
+ var/to_check = GLOB.cornerdirsz
#else
var/to_check = cornerdirs
#endif
@@ -99,7 +99,7 @@
/*
//check that they are connected by the corner turf
var/connected_dirs = get_zone_neighbours(get_step(src, dir))
- if(connected_dirs && (dir & reverse_dir[connected_dirs]) == dir)
+ if(connected_dirs && (dir & GLOB.reverse_dir[connected_dirs]) == dir)
unconnected_dirs &= ~dir //they are, so unflag the cardinals in question
*/
var/turf/simulated/T = get_step(src, dir)
@@ -120,9 +120,9 @@
. = 0
if(istype(T) && T.zone)
#ifdef MULTIZAS
- var/to_check = cardinalz
+ var/to_check = GLOB.cardinalz
#else
- var/to_check = cardinal
+ var/to_check = GLOB.cardinal
#endif
for(var/dir in to_check)
var/turf/simulated/other = get_step(T, dir)
@@ -205,7 +205,7 @@
if(istype(unsim, /turf/simulated))
var/turf/simulated/sim = unsim
- sim.open_directions |= GLOB.reverse_dir[d] // CHOMPEdit
+ sim.open_directions |= GLOB.reverse_dir[d]
if(TURF_HAS_VALID_ZONE(sim)) // CHOMPEdit
diff --git a/code/__defines/_init.dm b/code/__defines/_init.dm
index 0a07f34f7d..f06df7febb 100644
--- a/code/__defines/_init.dm
+++ b/code/__defines/_init.dm
@@ -1,5 +1,5 @@
// NEVER leave this on in your PR or the server will probably explode
-// #define ENABLE_BYOND_TRACY
+#define ENABLE_BYOND_TRACY
/datum/super_early_init
/datum/super_early_init/New()
diff --git a/code/__defines/misc.dm b/code/__defines/misc.dm
index 08c34716f0..8613662ba2 100644
--- a/code/__defines/misc.dm
+++ b/code/__defines/misc.dm
@@ -143,10 +143,10 @@
#define WALL_CAN_OPEN 1
#define WALL_OPENING 2
-#define BOMBCAP_DVSTN_RADIUS (max_explosion_range/4)
-#define BOMBCAP_HEAVY_RADIUS (max_explosion_range/2)
-#define BOMBCAP_LIGHT_RADIUS max_explosion_range
-#define BOMBCAP_FLASH_RADIUS (max_explosion_range*1.5)
+#define BOMBCAP_DVSTN_RADIUS (GLOB.max_explosion_range/4)
+#define BOMBCAP_HEAVY_RADIUS (GLOB.max_explosion_range/2)
+#define BOMBCAP_LIGHT_RADIUS GLOB.max_explosion_range
+#define BOMBCAP_FLASH_RADIUS (GLOB.max_explosion_range*1.5)
// NTNet module-configuration values. Do not change these. If you need to add another use larger number (5..6..7 etc)
#define NTNET_SOFTWAREDOWNLOAD 1 // Downloads of software from NTNet
#define NTNET_PEERTOPEER 2 // P2P transfers of files between devices
diff --git a/code/_global_vars/__unsorted.dm b/code/_global_vars/__unsorted.dm
new file mode 100644
index 0000000000..2f45f9460a
--- /dev/null
+++ b/code/_global_vars/__unsorted.dm
@@ -0,0 +1,87 @@
+// Items that ask to be called every cycle.
+GLOBAL_DATUM(data_core, /datum/datacore)
+
+//I would upgrade all instances of global.machines to SSmachines.all_machines but it's used in so many places and a search returns so many matches for 'machines' that isn't a use of the global...
+GLOBAL_LIST_INIT(machines, SSmachines.all_machines)
+
+GLOBAL_LIST_EMPTY(active_diseases)
+GLOBAL_LIST_EMPTY(hud_icon_reference)
+
+GLOBAL_LIST_EMPTY(global_mutations) // List of hidden mutation things.
+
+GLOBAL_DATUM_INIT(universe, /datum/universal_state, new)
+
+GLOBAL_LIST(global_map)
+
+// Noises made when hit while typing.
+GLOBAL_LIST_INIT(hit_appends, list("-OOF", "-ACK", "-UGH", "-HRNK", "-HURGH", "-GLORF"))
+
+// var/station_name = "Northern Star"
+// var/const/station_orig = "Northern Star" //station_name can't be const due to event prefix/suffix
+// var/const/station_short = "Northern Star"
+// var/const/dock_name = "Vir Interstellar Spaceport"
+// var/const/boss_name = "Central Command"
+// var/const/boss_short = "CentCom"
+// var/const/company_name = "NanoTrasen"
+// var/const/company_short = "NT"
+// var/const/star_name = "Vir"
+// var/const/starsys_name = "Vir"
+GLOBAL_VAR_INIT(servernews_hash, "") //ChompADD - news hash gen
+GLOBAL_VAR_INIT(game_year, (text2num(time2text(world.realtime, "YYYY")) + 544)) // CHOMPEdit
+GLOBAL_VAR_INIT(round_progressing, TRUE)
+
+GLOBAL_VAR_INIT(master_mode, "extended") // "extended"
+GLOBAL_VAR_INIT(secret_force_mode, "secret") // if this is anything but "secret", the secret rotation will forceably choose this mode.
+
+GLOBAL_DATUM_INIT(mods, /datum/moduletypes, new())
+
+GLOBAL_VAR_INIT(gravity_is_on, TRUE)
+
+GLOBAL_VAR(join_motd)
+
+// Metric datum, used to keep track of the round.
+GLOBAL_DATUM_INIT(metric, /datum/metric, new())
+
+// For FTP requests. (i.e. downloading runtime logs.)
+// However it'd be ok to use for accessing attack logs and such too, which are even laggier.
+GLOBAL_VAR_INIT(fileaccess_timer, 0)
+GLOBAL_VAR(custom_event_msg)
+
+
+// Used by robots and robot preferences for regular modules.
+GLOBAL_LIST_INIT(robot_module_types, list(
+ "Standard", "Engineering", /*"Surgeon",*/ "Crisis", "Miner",
+ "Janitor", "Service", "Clown", "Clerical", "Security",
+ "Research", "Command", "Exploration" //CHOMPedit: Enables Exploration borg.
+))
+// List of modules added during code red
+GLOBAL_LIST_INIT(emergency_module_types, list(
+ "Combat"
+))
+// List of modules available to AI shells
+GLOBAL_LIST_INIT(shell_module_types, list(
+ "Standard", "Engineering", "Surgeon", "Crisis", "Miner",
+ "Janitor", "Service", "Clown", "Clerical", "Security",
+ "Research", "Command", "Exploration" //CHOMPedit: Enables Exploration borg.
+))
+// List of whitelisted modules
+GLOBAL_LIST_INIT(whitelisted_module_types, list(
+ "Lost"
+))
+
+// Bomb cap!
+GLOBAL_VAR_INIT(max_explosion_range, 14)
+
+// Announcer intercom, because too much stuff creates an intercom for one message then hard del()s it.
+GLOBAL_DATUM_INIT(global_announcer, /obj/item/radio/intercom/omni, new /obj/item/radio/intercom/omni(null))
+
+GLOBAL_LIST_INIT(station_departments, list("Command", "Medical", "Engineering", "Research", "Security", "Cargo", "Exploration", "Civilian"))
+
+//Icons for in-game HUD glasses. Why don't we just share these a little bit?
+GLOBAL_DATUM_INIT(ingame_hud, /icon, icon('icons/mob/hud.dmi'))
+GLOBAL_DATUM_INIT(ingame_hud_med, /icon, icon('icons/mob/hud_med.dmi'))
+GLOBAL_DATUM_INIT(buildmode_hud, /icon, icon('icons/misc/buildmode.dmi'))
+
+//Keyed list for caching icons so you don't need to make them for records, IDs, etc all separately.
+//Could be useful for AI impersonation or something at some point?
+GLOBAL_LIST_EMPTY(cached_character_icons)
diff --git a/code/_global_vars/configuration.dm b/code/_global_vars/configuration.dm
index ef4184dd36..1f96d27682 100644
--- a/code/_global_vars/configuration.dm
+++ b/code/_global_vars/configuration.dm
@@ -6,3 +6,6 @@ GLOBAL_DATUM_INIT(revdata, /datum/getrev, new)
GLOBAL_VAR_INIT(game_version, "CHOMPStation") // CHOMPEdit TFF 24/12/19 - Chompers
GLOBAL_VAR_INIT(changelog_hash, "")
+
+// Debug2 is used in conjunction with a lot of admin verbs and therefore is actually legit.
+GLOBAL_VAR_INIT(Debug2, FALSE)
diff --git a/code/_global_vars/lists/flavor_misc.dm b/code/_global_vars/lists/flavor_misc.dm
new file mode 100644
index 0000000000..3aaa1c3d4a
--- /dev/null
+++ b/code/_global_vars/lists/flavor_misc.dm
@@ -0,0 +1,37 @@
+GLOBAL_LIST_INIT(scarySounds, list(
+ 'sound/weapons/thudswoosh.ogg',
+ 'sound/weapons/Taser.ogg',
+ 'sound/weapons/armbomb.ogg',
+ 'sound/voice/hiss1.ogg',
+ 'sound/voice/hiss2.ogg',
+ 'sound/voice/hiss3.ogg',
+ 'sound/voice/hiss4.ogg',
+ 'sound/voice/hiss5.ogg',
+ 'sound/voice/hiss6.ogg',
+ 'sound/effects/Glassbr1.ogg',
+ 'sound/effects/Glassbr2.ogg',
+ 'sound/effects/Glassbr3.ogg',
+ 'sound/items/Welder.ogg',
+ 'sound/items/Welder2.ogg',
+ 'sound/machines/door/old_airlock.ogg',
+ 'sound/effects/clownstep1.ogg',
+ 'sound/effects/clownstep2.ogg',
+ 'sound/voice/teppi/roar.ogg',
+ 'sound/voice/moth/scream_moth.ogg',
+ 'sound/voice/nya.ogg',
+ 'sound/voice/succlet_shriek.ogg'
+))
+
+GLOBAL_LIST_INIT(scawwySownds, list(
+ 'sound/voice/ScawwySownds/a scawey sownd.ogg',
+ 'sound/voice/ScawwySownds/is that you.ogg',
+ 'sound/voice/ScawwySownds/lookit this darkness wow.ogg',
+ 'sound/voice/ScawwySownds/maint preds.ogg',
+ 'sound/voice/ScawwySownds/spooky sounds.ogg',
+ 'sound/voice/ScawwySownds/sus.ogg',
+ 'sound/voice/ScawwySownds/this is scaewy.ogg',
+ 'sound/voice/ScawwySownds/what is that behind you.ogg',
+ 'sound/voice/ScawwySownds/what you doin over dere.ogg',
+ 'sound/voice/ScawwySownds/whats up with all the trash.ogg',
+ 'sound/voice/ScawwySownds/youre afraid of the dark arent you.ogg'
+))
diff --git a/code/_global_vars/lists/logging.dm b/code/_global_vars/lists/logging.dm
new file mode 100644
index 0000000000..fb667277af
--- /dev/null
+++ b/code/_global_vars/lists/logging.dm
@@ -0,0 +1,17 @@
+GLOBAL_LIST_EMPTY(admin_log)
+GLOBAL_PROTECT(admin_log)
+
+GLOBAL_LIST_EMPTY(lastsignalers) // Keeps last 100 signals here in format: "[src] used \ref[src] @ location [src.loc]: [freq]/[code]"
+GLOBAL_PROTECT(lastsignalers)
+
+GLOBAL_LIST_EMPTY(combatlog)
+GLOBAL_PROTECT(combatlog)
+
+GLOBAL_LIST_EMPTY(IClog)
+GLOBAL_PROTECT(IClog)
+
+GLOBAL_LIST_EMPTY(OOClog)
+GLOBAL_PROTECT(OOClog)
+
+GLOBAL_LIST_EMPTY(adminlog)
+GLOBAL_PROTECT(adminlog)
diff --git a/code/_global_vars/lists/mapping.dm b/code/_global_vars/lists/mapping.dm
index 7f415df82f..df4d9c90ae 100644
--- a/code/_global_vars/lists/mapping.dm
+++ b/code/_global_vars/lists/mapping.dm
@@ -30,3 +30,34 @@ GLOBAL_LIST_INIT(cww_dir, list( // cww_dir[dir] = counter-clockwise rotation of
32, 40, 36, 44, 33, 41, 37, 45, 34, 42, 38, 46, 35, 43, 39, 47, // DOWN - Same as first line but +32
48, 56, 52, 60, 49, 57, 53, 61, 50, 58, 54, 62, 51, 59, 55, 63 // UP+DOWN - Same as first line but +48
))
+
+GLOBAL_LIST_EMPTY(monkeystart)
+GLOBAL_LIST_EMPTY(wizardstart)
+GLOBAL_LIST_EMPTY(newplayer_start)
+
+GLOBAL_LIST_EMPTY(latejoin)
+GLOBAL_LIST_EMPTY(latejoin_gateway)
+GLOBAL_LIST_EMPTY(latejoin_elevator)
+GLOBAL_LIST_EMPTY(latejoin_cryo)
+GLOBAL_LIST_EMPTY(latejoin_cyborg)
+
+GLOBAL_LIST_EMPTY(prisonwarp) // Prisoners go to these
+GLOBAL_LIST_EMPTY(holdingfacility) // Captured people go here
+GLOBAL_LIST_EMPTY(xeno_spawn) // Aliens spawn at at these.
+GLOBAL_LIST_EMPTY(tdome1)
+GLOBAL_LIST_EMPTY(tdome2)
+GLOBAL_LIST_EMPTY(tdomeobserve)
+GLOBAL_LIST_EMPTY(tdomeadmin)
+GLOBAL_LIST_EMPTY(prisonsecuritywarp) // Prison security goes to these.
+GLOBAL_LIST_EMPTY(prisonwarped) // List of players already warped.
+GLOBAL_LIST_EMPTY(blobstart)
+GLOBAL_LIST_EMPTY(ninjastart)
+
+GLOBAL_LIST_EMPTY(awaydestinations) // Away missions. A list of landmarks that the warpgate can take you to.
+
+GLOBAL_LIST_EMPTY(vinestart)
+GLOBAL_LIST_EMPTY(verminstart)
+
+GLOBAL_LIST_EMPTY(awayabductors) // List of scatter landmarks for Abductors in Gateways
+GLOBAL_LIST_EMPTY(eventdestinations) // List of scatter landmarks for VOREStation event portals
+GLOBAL_LIST_EMPTY(eventabductors) // List of scatter landmarks for VOREStation abductor portals
diff --git a/code/_global_vars/logging.dm b/code/_global_vars/logging.dm
index 06a240822d..5ac744da96 100644
--- a/code/_global_vars/logging.dm
+++ b/code/_global_vars/logging.dm
@@ -1,2 +1,32 @@
GLOBAL_VAR(round_id)
GLOBAL_PROTECT(round_id)
+
+/// The directory in which ALL log files should be stored
+GLOBAL_VAR_INIT(log_directory, "data/logs/") //See world.dm for the full calculated path
+GLOBAL_PROTECT(log_directory)
+
+GLOBAL_VAR(diary)
+GLOBAL_PROTECT(diary)
+
+GLOBAL_VAR(error_log)
+GLOBAL_PROTECT(error_log)
+
+GLOBAL_VAR(sql_error_log)
+GLOBAL_PROTECT(sql_error_log)
+
+GLOBAL_VAR(query_debug_log)
+GLOBAL_PROTECT(query_debug_log)
+
+GLOBAL_VAR(debug_log)
+GLOBAL_PROTECT(debug_log)
+
+GLOBAL_VAR(href_logfile)
+GLOBAL_PROTECT(href_logfile)
+
+/// All bomb related messages
+GLOBAL_LIST_EMPTY(bombers)
+GLOBAL_PROTECT(bombers)
+
+/// Stores who uploaded laws to which silicon-based lifeform, and what the law was
+GLOBAL_LIST_EMPTY(lawchanges)
+GLOBAL_PROTECT(lawchanges)
diff --git a/code/_helpers/files.dm b/code/_helpers/files.dm
index ec2fb1ca74..a776c3363d 100644
--- a/code/_helpers/files.dm
+++ b/code/_helpers/files.dm
@@ -17,7 +17,6 @@
*
* However it'd be ok to use for accessing attack logs and such too, which are even laggier.
*/
-GLOBAL_VAR_INIT(fileaccess_timer, 0)
/client/proc/browse_files(root_type=BROWSE_ROOT_ALL_LOGS, max_iterations=10, list/valid_extensions=list("txt","log","htm", "html", "gz", "json"))
// wow why was this ever a parameter
@@ -26,7 +25,7 @@ GLOBAL_VAR_INIT(fileaccess_timer, 0)
if(BROWSE_ROOT_ALL_LOGS)
root = "data/logs/"
if(BROWSE_ROOT_CURRENT_LOGS)
- root = log_path
+ root = GLOB.log_directory
var/path = root
for(var/i in 1 to max_iterations)
diff --git a/code/_helpers/game.dm b/code/_helpers/game.dm
index a24004ebe4..28664420aa 100644
--- a/code/_helpers/game.dm
+++ b/code/_helpers/game.dm
@@ -382,7 +382,7 @@
else
return 0
-/proc/get_cardinal_step_away(atom/start, atom/finish) //returns the position of a step from start away from finish, in one of the cardinal directions
+/proc/get_cardinal_step_away(atom/start, atom/finish) //returns the position of a step from start away from finish, in one of the GLOB.cardinal directions
//returns only NORTH, SOUTH, EAST, or WEST
var/dx = finish.x - start.x
var/dy = finish.y - start.y
@@ -550,7 +550,7 @@
return mixedcolor
/**
-* Gets the highest and lowest pressures from the tiles in cardinal directions
+* Gets the highest and lowest pressures from the tiles in GLOB.cardinal directions
* around us, then checks the difference.
*/
/proc/getOPressureDifferential(var/turf/loc)
diff --git a/code/_helpers/logging.dm b/code/_helpers/logging.dm
index 7595e1f1ae..5a98ad4f20 100644
--- a/code/_helpers/logging.dm
+++ b/code/_helpers/logging.dm
@@ -6,7 +6,7 @@
/* For logging round startup. */
/proc/start_log(log)
- WRITE_LOG(log, "START: Starting up [log_path].")
+ WRITE_LOG(log, "START: Starting up [GLOB.log_directory].")
return log
/* Close open log handles. This should be called as late as possible, and no logging should hapen after. */
@@ -27,29 +27,28 @@
to_world_log("## TESTING: [msg]")
/proc/log_admin(text)
- admin_log.Add(text)
+ GLOB.admin_log.Add(text)
if (CONFIG_GET(flag/log_admin))
- WRITE_LOG(diary, "ADMIN: [text]")
+ WRITE_LOG(GLOB.diary, "ADMIN: [text]")
/proc/log_admin_private(text)
- admin_log.Add(text)
+ GLOB.admin_log.Add(text)
if (CONFIG_GET(flag/log_admin))
- WRITE_LOG(diary, "ADMINPRIVATE: [text]")
+ WRITE_LOG(GLOB.diary, "ADMINPRIVATE: [text]")
/proc/log_adminpm(text, client/source, client/dest)
- admin_log.Add(text)
+ GLOB.admin_log.Add(text)
if (CONFIG_GET(flag/log_admin))
- WRITE_LOG(diary, "ADMINPM: [key_name(source)]->[key_name(dest)]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "ADMINPM: [key_name(source)]->[key_name(dest)]: [html_decode(text)]")
/proc/log_pray(text, client/source)
- admin_log.Add(text)
+ GLOB.admin_log.Add(text)
if (CONFIG_GET(flag/log_admin))
- WRITE_LOG(diary, "PRAY: [key_name(source)]: [text]")
+ WRITE_LOG(GLOB.diary, "PRAY: [key_name(source)]: [text]")
/proc/log_debug(text)
- //if (CONFIG_GET(flag/log_debug)) // CHOMPRemove
- // WRITE_LOG(debug_log, "DEBUG: [sanitize(text)]") // CHOMPRemove
- WRITE_LOG(debug_log, "DEBUG: [sanitize(text)]")
+ if (CONFIG_GET(flag/log_debug))
+ WRITE_LOG(GLOB.debug_log, "DEBUG: [sanitize(text)]")
for(var/client/C in GLOB.admins)
if(C.prefs?.read_preference(/datum/preference/toggle/show_debug_logs))
@@ -59,25 +58,25 @@
/proc/log_game(text)
if (CONFIG_GET(flag/log_game))
- WRITE_LOG(diary, "GAME: [text]")
+ WRITE_LOG(GLOB.diary, "GAME: [text]")
/proc/log_vote(text)
if (CONFIG_GET(flag/log_vote))
- WRITE_LOG(diary, "VOTE: [text]")
+ WRITE_LOG(GLOB.diary, "VOTE: [text]")
/proc/log_access_in(client/new_client)
if (CONFIG_GET(flag/log_access))
var/message = "[key_name(new_client)] - IP:[new_client.address] - CID:[new_client.computer_id] - BYOND v[new_client.byond_version]"
- WRITE_LOG(diary, "ACCESS IN: [message]") //VOREStation Edit
+ WRITE_LOG(GLOB.diary, "ACCESS IN: [message]") //VOREStation Edit
/proc/log_access_out(mob/last_mob)
if (CONFIG_GET(flag/log_access))
var/message = "[key_name(last_mob)] - IP:[last_mob.lastKnownIP] - CID:Logged Out - BYOND Logged Out"
- WRITE_LOG(diary, "ACCESS OUT: [message]")
+ WRITE_LOG(GLOB.diary, "ACCESS OUT: [message]")
/proc/log_say(text, mob/speaker)
if (CONFIG_GET(flag/log_say))
- WRITE_LOG(diary, "SAY: [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "SAY: [speaker.simple_info_line()]: [html_decode(text)]")
//Log the message to in-game dialogue logs, as well. //CHOMPEdit Begin
if(speaker.client)
@@ -98,7 +97,7 @@
/proc/log_ooc(text, client/user)
if (CONFIG_GET(flag/log_ooc))
- WRITE_LOG(diary, "OOC: [user.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "OOC: [user.simple_info_line()]: [html_decode(text)]")
if(!SSdbcore.IsConnected())
establish_db_connection()
if(!SSdbcore.IsConnected())
@@ -114,7 +113,7 @@
/proc/log_aooc(text, client/user)
if (CONFIG_GET(flag/log_ooc))
- WRITE_LOG(diary, "AOOC: [user.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "AOOC: [user.simple_info_line()]: [html_decode(text)]")
if(!SSdbcore.IsConnected())
establish_db_connection()
if(!SSdbcore.IsConnected())
@@ -130,7 +129,7 @@
/proc/log_looc(text, client/user)
if (CONFIG_GET(flag/log_ooc))
- WRITE_LOG(diary, "LOOC: [user.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "LOOC: [user.simple_info_line()]: [html_decode(text)]")
if(!SSdbcore.IsConnected())
establish_db_connection()
if(!SSdbcore.IsConnected())
@@ -146,7 +145,7 @@
/proc/log_whisper(text, mob/speaker)
if (CONFIG_GET(flag/log_whisper))
- WRITE_LOG(diary, "WHISPER: [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "WHISPER: [speaker.simple_info_line()]: [html_decode(text)]")
if(speaker.client)
//speaker.dialogue_log += span_bold("([time_stamp()])") + " (" + span_bold("[speaker]/[speaker.client]") + ") " + span_underline("SAY:") + " - " + span_gray(span_italics("[text]"))
@@ -165,7 +164,7 @@
/proc/log_emote(text, mob/speaker)
if (CONFIG_GET(flag/log_emote))
- WRITE_LOG(diary, "EMOTE: [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "EMOTE: [speaker.simple_info_line()]: [html_decode(text)]")
//CHOMPEdit Begin
if(speaker.client)
//speaker.dialogue_log += span_bold("([time_stamp()])") + " (" + span_bold("[speaker]/[speaker.client]") + ") " + span_underline("EMOTE:") + " - " + span_pink("[text]")
@@ -185,23 +184,23 @@
/proc/log_attack(attacker, defender, message)
if (CONFIG_GET(flag/log_attack))
- WRITE_LOG(diary, "ATTACK: [attacker] against [defender]: [message]")
+ WRITE_LOG(GLOB.diary, "ATTACK: [attacker] against [defender]: [message]")
/proc/log_adminsay(text, mob/speaker)
if (CONFIG_GET(flag/log_adminchat))
- WRITE_LOG(diary, "ADMINSAY: [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "ADMINSAY: [speaker.simple_info_line()]: [html_decode(text)]")
/proc/log_modsay(text, mob/speaker)
if (CONFIG_GET(flag/log_adminchat))
- WRITE_LOG(diary, "MODSAY: [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "MODSAY: [speaker.simple_info_line()]: [html_decode(text)]")
/proc/log_eventsay(text, mob/speaker)
if (CONFIG_GET(flag/log_adminchat))
- WRITE_LOG(diary, "EVENTSAY: [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "EVENTSAY: [speaker.simple_info_line()]: [html_decode(text)]")
/proc/log_ghostsay(text, mob/speaker)
if (CONFIG_GET(flag/log_say))
- WRITE_LOG(diary, "DEADCHAT: [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "DEADCHAT: [speaker.simple_info_line()]: [html_decode(text)]")
//CHOMPEdit Begin
if(speaker.client)
if(!SSdbcore.IsConnected())
@@ -222,7 +221,7 @@
/proc/log_ghostemote(text, mob/speaker)
if (CONFIG_GET(flag/log_emote))
- WRITE_LOG(diary, "DEADEMOTE: [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "DEADEMOTE: [speaker.simple_info_line()]: [html_decode(text)]")
//CHOMPEdit Begin
if(speaker.client)
if(!SSdbcore.IsConnected())
@@ -240,11 +239,11 @@
/proc/log_adminwarn(text)
if (CONFIG_GET(flag/log_adminwarn))
- WRITE_LOG(diary, "ADMINWARN: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "ADMINWARN: [html_decode(text)]")
/proc/log_pda(text, mob/speaker)
if (CONFIG_GET(flag/log_pda))
- WRITE_LOG(diary, "PDA: [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "PDA: [speaker.simple_info_line()]: [html_decode(text)]")
//CHOMPEdit Begin
if(speaker.client)
if(!SSdbcore.IsConnected())
@@ -265,26 +264,25 @@
/proc/log_to_dd(text)
to_world_log(text) //this comes before the config check because it can't possibly runtime
- //if(CONFIG_GET(flag/log_world_output)) // CHOMPRemove
- // WRITE_LOG(diary, "DD_OUTPUT: [text]") // CHOMPRemove
- WRITE_LOG(diary, "DD_OUTPUT: [text]")
+ if(CONFIG_GET(flag/log_world_output))
+ WRITE_LOG(GLOB.diary, "DD_OUTPUT: [text]")
/proc/log_error(text)
to_world_log(text)
- WRITE_LOG(error_log, "RUNTIME: [text]")
+ WRITE_LOG(GLOB.error_log, "RUNTIME: [text]")
/proc/log_misc(text)
- WRITE_LOG(diary, "MISC: [text]")
+ WRITE_LOG(GLOB.diary, "MISC: [text]")
/proc/log_sql(text)
- WRITE_LOG(sql_error_log, "SQL: [text]")
+ WRITE_LOG(GLOB.sql_error_log, "SQL: [text]")
/proc/log_query_debug(text)
- WRITE_LOG(query_debug_log, "SQL: [text]")
+ WRITE_LOG(GLOB.query_debug_log, "SQL: [text]")
/proc/log_topic(text)
- if(Debug2)
- WRITE_LOG(diary, "TOPIC: [text]")
+ if(GLOB.Debug2)
+ WRITE_LOG(GLOB.diary, "TOPIC: [text]")
/proc/log_unit_test(text)
to_world_log("## UNIT_TEST: [text]")
@@ -296,7 +294,7 @@
#endif
/proc/log_asset(text)
- WRITE_LOG(diary, "ASSET: [text]")
+ WRITE_LOG(GLOB.diary, "ASSET: [text]")
/proc/report_progress(var/progress_message)
admin_notice(span_boldannounce("[progress_message]"), R_DEBUG)
diff --git a/code/_helpers/logging/debug.dm b/code/_helpers/logging/debug.dm
index 9a847ee61b..18bce9523f 100644
--- a/code/_helpers/logging/debug.dm
+++ b/code/_helpers/logging/debug.dm
@@ -7,5 +7,5 @@
entry += " | DATA: "
entry += data
- WRITE_LOG(diary, entry)
+ WRITE_LOG(GLOB.diary, entry)
SEND_TEXT(world.log, text)
diff --git a/code/_helpers/logging/ui.dm b/code/_helpers/logging/ui.dm
index ed6a0b6588..57e927c5b3 100644
--- a/code/_helpers/logging/ui.dm
+++ b/code/_helpers/logging/ui.dm
@@ -1,6 +1,6 @@
/proc/log_href(text)
//WRITE_LOG(GLOB.world_href_log, "HREF: [text]")
- WRITE_LOG(href_logfile, "HREF: [text]")
+ WRITE_LOG(GLOB.href_logfile, "HREF: [text]")
/**
* Appends a tgui-related log entry. All arguments are optional.
@@ -33,4 +33,4 @@
if(message)
entry += "\n[message]"
//WRITE_LOG(GLOB.tgui_log, entry)
- WRITE_LOG(diary, entry)
+ WRITE_LOG(GLOB.diary, entry)
diff --git a/code/_helpers/logging_vr.dm b/code/_helpers/logging_vr.dm
index abaf7a0654..a4cd514d56 100644
--- a/code/_helpers/logging_vr.dm
+++ b/code/_helpers/logging_vr.dm
@@ -1,6 +1,6 @@
/proc/log_nsay(text, inside, mob/speaker)
if (CONFIG_GET(flag/log_say))
- WRITE_LOG(diary, "NSAY (NIF:[inside]): [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "NSAY (NIF:[inside]): [speaker.simple_info_line()]: [html_decode(text)]")
//CHOMPEdit Begin
if(speaker.client)
if(!SSdbcore.IsConnected())
@@ -18,7 +18,7 @@
/proc/log_nme(text, inside, mob/speaker)
if (CONFIG_GET(flag/log_emote))
- WRITE_LOG(diary, "NME (NIF:[inside]): [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "NME (NIF:[inside]): [speaker.simple_info_line()]: [html_decode(text)]")
//CHOMPEdit Begin
if(speaker.client)
if(!SSdbcore.IsConnected())
@@ -36,7 +36,7 @@
/proc/log_subtle(text, mob/speaker)
if (CONFIG_GET(flag/log_emote))
- WRITE_LOG(diary, "SUBTLE: [speaker.simple_info_line()]: [html_decode(text)]")
+ WRITE_LOG(GLOB.diary, "SUBTLE: [speaker.simple_info_line()]: [html_decode(text)]")
//CHOMPEdit Begin
if(speaker.client)
if(!SSdbcore.IsConnected())
diff --git a/code/_helpers/mobs.dm b/code/_helpers/mobs.dm
index 2f18207faa..afc0b5397d 100644
--- a/code/_helpers/mobs.dm
+++ b/code/_helpers/mobs.dm
@@ -130,7 +130,7 @@
else return "unknown"
/proc/RoundHealth(health)
- var/list/icon_states = cached_icon_states(ingame_hud_med)
+ var/list/icon_states = cached_icon_states(GLOB.ingame_hud_med)
for(var/icon_state in icon_states)
if(health >= text2num(icon_state))
return icon_state
@@ -367,11 +367,11 @@ Proc for attack log creation, because really why not
/proc/cached_character_icon(var/mob/desired)
var/cachekey = "\ref[desired][desired.real_name]"
- if(cached_character_icons[cachekey])
- . = cached_character_icons[cachekey]
+ if(GLOB.cached_character_icons[cachekey])
+ . = GLOB.cached_character_icons[cachekey]
else
. = getCompoundIcon(desired)
- cached_character_icons[cachekey] = .
+ GLOB.cached_character_icons[cachekey] = .
/proc/not_has_ooc_text(mob/user)
if (CONFIG_GET(flag/allow_metadata) && (!user.client?.prefs?.read_preference(/datum/preference/text/living/ooc_notes) || length(user.client.prefs.read_preference(/datum/preference/text/living/ooc_notes)) < 15))
diff --git a/code/_helpers/names.dm b/code/_helpers/names.dm
index 913e69b705..988df64661 100644
--- a/code/_helpers/names.dm
+++ b/code/_helpers/names.dm
@@ -176,7 +176,7 @@ GLOBAL_VAR(syndicate_code_response) //Code response for traitors.
var/locations[] = GLOB.teleportlocs.len ? GLOB.teleportlocs : drinks//if null, defaults to drinks instead.
var/names[] = list()
- for(var/datum/data/record/t in data_core.general)//Picks from crew manifest.
+ for(var/datum/data/record/t in GLOB.data_core.general)//Picks from crew manifest.
names += t.fields["name"]
var/maxwords = words//Extra var to check for duplicates.
diff --git a/code/_helpers/text.dm b/code/_helpers/text.dm
index 6bad8903ac..db57366d4c 100644
--- a/code/_helpers/text.dm
+++ b/code/_helpers/text.dm
@@ -8,6 +8,7 @@
* Misc
*/
+GLOBAL_LIST_INIT(alphabet_upper, list("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"))
/*
* SQL sanitization
diff --git a/code/_helpers/unsorted.dm b/code/_helpers/unsorted.dm
index 89ca64ff50..1662ebdde1 100644
--- a/code/_helpers/unsorted.dm
+++ b/code/_helpers/unsorted.dm
@@ -303,7 +303,7 @@ Turf and target are seperate in case you want to teleport some distance from a t
if(oldname)
//update the datacore records! This is goig to be a bit costly.
- for(var/list/L in list(data_core.general,data_core.medical,data_core.security,data_core.locked))
+ for(var/list/L in list(GLOB.data_core.general, GLOB.data_core.medical, GLOB.data_core.security, GLOB.data_core.locked))
for(var/datum/data/record/R in L)
if(R.fields["name"] == oldname)
R.fields["name"] = newname
@@ -1179,8 +1179,8 @@ var/global/list/common_tools = list(
if(surface)
return surface
-/proc/reverse_direction(var/dir)
- return global.reverse_dir[dir]
+/proc/reverse_direction(dir)
+ return GLOB.reverse_dir[dir]
/*
Checks if that loc and dir has a item on the wall
diff --git a/code/_macros.dm b/code/_macros.dm
index ee43ee9494..f47d75f49d 100644
--- a/code/_macros.dm
+++ b/code/_macros.dm
@@ -45,3 +45,6 @@
#define PIXEL_MULTIPLIER WORLD_ICON_SIZE/32 //Needed for the R-UST port
#define JOINTEXT(X) jointext(X, null)
+
+#define isbelly(A) istype(A, /obj/belly)
+#define iscapturecrystal(A) istype(A, /obj/item/capture_crystal)
diff --git a/code/_macros_vr.dm b/code/_macros_vr.dm
deleted file mode 100644
index 314689541e..0000000000
--- a/code/_macros_vr.dm
+++ /dev/null
@@ -1,2 +0,0 @@
-#define isbelly(A) istype(A, /obj/belly)
-#define iscapturecrystal(A) istype(A, /obj/item/capture_crystal)
diff --git a/code/_onclick/hud/picture_in_picture.dm b/code/_onclick/hud/picture_in_picture.dm
index 5a2de7000b..4b7da6b978 100644
--- a/code/_onclick/hud/picture_in_picture.dm
+++ b/code/_onclick/hud/picture_in_picture.dm
@@ -40,7 +40,8 @@
base.layer = DISPOSAL_LAYER
base.plane = PLATING_PLANE
base.appearance_flags = PIXEL_SCALE
- for(var/direction in cardinal)
+
+ for(var/direction in GLOB.cardinal)
var/mutable_appearance/dir = new /mutable_appearance(base)
dir.dir = direction
dir.icon_state = "background_[direction]"
diff --git a/code/controllers/configuration/entries/game_options.dm b/code/controllers/configuration/entries/game_options.dm
index 2f0fc843e9..ab85d71902 100644
--- a/code/controllers/configuration/entries/game_options.dm
+++ b/code/controllers/configuration/entries/game_options.dm
@@ -106,3 +106,7 @@
/datum/config_entry/string/alert_desc_delta
default = "The station's self-destruct mechanism has been engaged. All crew are instructed to obey all instructions given by heads of staff. Any violations of these orders can be punished by death. This is not a drill."
+
+// Amount of time that must pass between a player dying as a mouse and repawning as a mouse. In minutes.
+/datum/config_entry/number/mouse_respawn_time
+ default = 2.5
diff --git a/code/controllers/emergency_shuttle_controller.dm b/code/controllers/emergency_shuttle_controller.dm
index 6b445f3639..a2ebd1c569 100644
--- a/code/controllers/emergency_shuttle_controller.dm
+++ b/code/controllers/emergency_shuttle_controller.dm
@@ -136,7 +136,7 @@ var/global/datum/emergency_shuttle_controller/emergency_shuttle = new
priority_announcement.Announce(using_map.shuttle_recall_message)
/datum/emergency_shuttle_controller/proc/can_call()
- if (!universe.OnShuttleCall(null))
+ if (!GLOB.universe.OnShuttleCall(null))
return 0
if (deny_shuttle)
return 0
diff --git a/code/controllers/subsystems/air_traffic.dm b/code/controllers/subsystems/air_traffic.dm
index a4e094eece..8ee8a354fd 100644
--- a/code/controllers/subsystems/air_traffic.dm
+++ b/code/controllers/subsystems/air_traffic.dm
@@ -78,7 +78,7 @@ SUBSYSTEM_DEF(atc)
/datum/controller/subsystem/atc/proc/msg(var/message,var/sender)
ASSERT(message)
- global_announcer.autosay("[message]", sender ? sender : "[using_map.dock_name] Control")
+ GLOB.global_announcer.autosay("[message]", sender ? sender : "[using_map.dock_name] Control")
/datum/controller/subsystem/atc/proc/is_squelched()
return squelched
diff --git a/code/controllers/subsystems/appreciation_messages.dm b/code/controllers/subsystems/appreciation_messages.dm
index e3d53ea179..2bb454ca12 100644
--- a/code/controllers/subsystems/appreciation_messages.dm
+++ b/code/controllers/subsystems/appreciation_messages.dm
@@ -93,7 +93,7 @@ SUBSYSTEM_DEF(appreciation)
/datum/controller/subsystem/appreciation/proc/msg(var/message,var/sender)
ASSERT(message)
- global_announcer.autosay("[message]", sender ? sender : "Cultural Awareness")
+ GLOB.global_announcer.autosay("[message]", sender ? sender : "Cultural Awareness")
/datum/controller/subsystem/appreciation/proc/is_squelched()
return squelched
diff --git a/code/controllers/subsystems/atoms.dm b/code/controllers/subsystems/atoms.dm
index e74800a6f8..972765a4f2 100644
--- a/code/controllers/subsystems/atoms.dm
+++ b/code/controllers/subsystems/atoms.dm
@@ -126,7 +126,7 @@ SUBSYSTEM_DEF(atoms)
/datum/controller/subsystem/atoms/Shutdown()
var/initlog = InitLog()
if(initlog)
- text2file(initlog, "[log_path]-initialize.log")
+ text2file(initlog, "[GLOB.log_directory]-initialize.log")
#undef BAD_INIT_QDEL_BEFORE
#undef BAD_INIT_DIDNT_INIT
diff --git a/code/controllers/subsystems/game_master.dm b/code/controllers/subsystems/game_master.dm
index 7aa2256378..94da99a548 100644
--- a/code/controllers/subsystems/game_master.dm
+++ b/code/controllers/subsystems/game_master.dm
@@ -42,7 +42,7 @@ SUBSYSTEM_DEF(game_master)
adjust_staleness(1)
adjust_danger(-1)
- var/global_afk = metric.assess_all_living_mobs()
+ var/global_afk = GLOB.metric.assess_all_living_mobs()
global_afk = abs(global_afk - 100)
global_afk = round(global_afk / 100, 0.1)
adjust_staleness(global_afk) // Staleness increases faster if more people are less active.
@@ -214,22 +214,22 @@ SUBSYSTEM_DEF(game_master)
dat += "
"
dat += "| All Living Mobs | "
- dat += "[metric.assess_all_living_mobs()]% | "
+ dat += "[GLOB.metric.assess_all_living_mobs()]% | "
dat += "
"
dat += ""
dat += "| All Ghosts | "
- dat += "[metric.assess_all_dead_mobs()]% | "
+ dat += "[GLOB.metric.assess_all_dead_mobs()]% | "
dat += "
"
dat += ""
dat += "| Departments"
dat += " |
"
- for(var/D in metric.departments)
+ for(var/D in GLOB.metric.departments)
dat += ""
dat += "| [D] | "
- dat += "[metric.assess_department(D)]% | "
+ dat += "[GLOB.metric.assess_department(D)]% | "
dat += "
"
dat += ""
@@ -239,7 +239,7 @@ SUBSYSTEM_DEF(game_master)
for(var/mob/M as anything in player_list)
dat += "
"
dat += "| [M] ([M.ckey]) | "
- dat += "[metric.assess_player_activity(M)]% | "
+ dat += "[GLOB.metric.assess_player_activity(M)]% | "
dat += "
"
dat += ""
diff --git a/code/controllers/subsystems/holomaps.dm b/code/controllers/subsystems/holomaps.dm
index e3faf75f89..06fa3bf827 100644
--- a/code/controllers/subsystems/holomaps.dm
+++ b/code/controllers/subsystems/holomaps.dm
@@ -19,6 +19,6 @@ SUBSYSTEM_DEF(holomaps)
return SS_INIT_SUCCESS
/datum/controller/subsystem/holomaps/stat_entry(msg)
- if (!Debug2)
+ if (!GLOB.Debug2)
return // Only show up in stat panel if debugging is enabled.
return ..() //CHOMPEdit
diff --git a/code/controllers/subsystems/inactivity.dm b/code/controllers/subsystems/inactivity.dm
index bd4f154a1b..4696ee74cc 100644
--- a/code/controllers/subsystems/inactivity.dm
+++ b/code/controllers/subsystems/inactivity.dm
@@ -41,7 +41,7 @@ SUBSYSTEM_DEF(inactivity)
if(isAI(C.mob))
var/mob/living/silicon/ai/A = C.mob
GLOB.empty_playable_ai_cores += new /obj/structure/AIcore/deactivated(A.loc)
- global_announcer.autosay("[A] has been moved to intelligence storage.", "Artificial Intelligence Oversight")
+ GLOB.global_announcer.autosay("[A] has been moved to intelligence storage.", "Artificial Intelligence Oversight")
A.clear_client()
information = " while an AI."
diff --git a/code/controllers/subsystems/mapping.dm b/code/controllers/subsystems/mapping.dm
index 1985efb978..b6f00ac870 100644
--- a/code/controllers/subsystems/mapping.dm
+++ b/code/controllers/subsystems/mapping.dm
@@ -168,7 +168,7 @@ SUBSYSTEM_DEF(mapping)
// VOREStation Edit End: Re-enable this
/datum/controller/subsystem/mapping/stat_entry(msg)
- if (!Debug2)
+ if (!GLOB.Debug2)
return // Only show up in stat panel if debugging is enabled.
return ..() //CHOMPEdit
diff --git a/code/controllers/subsystems/motion_tracker.dm b/code/controllers/subsystems/motion_tracker.dm
index a27a71bf6d..2d3127143b 100644
--- a/code/controllers/subsystems/motion_tracker.dm
+++ b/code/controllers/subsystems/motion_tracker.dm
@@ -65,7 +65,7 @@ SUBSYSTEM_DEF(motiontracker)
if(!prob(hear_chance))
return
if(hear_chance <= 40)
- T = get_step(T,pick(cardinal))
+ T = get_step(T,pick(GLOB.cardinal))
if(!T) // incase...
return
// Echo time, we have a turf
diff --git a/code/controllers/subsystems/overlays_ch.dm b/code/controllers/subsystems/overlays_ch.dm
index e307c088ae..22db80e375 100644
--- a/code/controllers/subsystems/overlays_ch.dm
+++ b/code/controllers/subsystems/overlays_ch.dm
@@ -7,7 +7,7 @@ SUBSYSTEM_DEF(overlays)
stats = list()
/datum/controller/subsystem/overlays/Shutdown()
- WRITE_LOG("[log_path]-overlay.log", render_stats(stats))
+ WRITE_LOG("[GLOB.log_directory]-overlay.log", render_stats(stats))
/datum/controller/subsystem/overlays/Recover()
stats = SSoverlays.stats
diff --git a/code/controllers/subsystems/skybox.dm b/code/controllers/subsystems/skybox.dm
index a1f6dcf11a..9692c55160 100644
--- a/code/controllers/subsystems/skybox.dm
+++ b/code/controllers/subsystems/skybox.dm
@@ -64,7 +64,7 @@ SUBSYSTEM_DEF(skybox)
speedspace_cache["EW_[i]"] = MA
//Over-the-edge images
- for (var/dir in alldirs)
+ for (var/dir in GLOB.alldirs)
var/mutable_appearance/MA = new(normal_space)
var/matrix/M = matrix()
var/horizontal = (dir & (WEST|EAST))
diff --git a/code/controllers/subsystems/ticker.dm b/code/controllers/subsystems/ticker.dm
index 918d42b665..b00fbac78f 100644
--- a/code/controllers/subsystems/ticker.dm
+++ b/code/controllers/subsystems/ticker.dm
@@ -13,7 +13,7 @@ SUBSYSTEM_DEF(ticker)
var/current_state = GAME_STATE_INIT // We aren't even at pregame yet // TODO replace with CURRENT_GAME_STATE
/* Relies upon the following globals (TODO move those in here) */
- // var/master_mode = "extended" //The underlying game mode (so "secret" or the voted mode).
+ // var/GLOB.master_mode = "extended" //The underlying game mode (so "secret" or the voted mode).
// Set by SSvote when VOTE_GAMEMODE finishes.
// var/round_progressing = 1 //Whether the lobby clock is ticking down.
@@ -84,7 +84,7 @@ var/global/datum/controller/subsystem/ticker/ticker
// Called during GAME_STATE_PREGAME (RUNLEVEL_LOBBY)
/datum/controller/subsystem/ticker/proc/pregame_tick()
- if(round_progressing && last_fire)
+ if(GLOB.round_progressing && last_fire)
pregame_timeleft -= (world.time - last_fire) / (1 SECOND)
if(start_immediately)
@@ -122,23 +122,23 @@ var/global/datum/controller/subsystem/ticker/ticker
// Returns 0 if failed to pick a mode, otherwise 1
/datum/controller/subsystem/ticker/proc/setup_choose_gamemode()
//Create and announce mode
- if(master_mode == "secret")
+ if(GLOB.master_mode == "secret")
src.hide_mode = TRUE
var/list/runnable_modes = config.get_runnable_modes()
- if((master_mode == "random") || (master_mode == "secret"))
+ if((GLOB.master_mode == "random") || (GLOB.master_mode == "secret"))
if(!runnable_modes.len)
to_world(span_filter_system(span_bold("Unable to choose playable game mode.") + " Reverting to pregame lobby."))
return 0
- if(secret_force_mode != "secret")
- src.mode = config.pick_mode(secret_force_mode)
+ if(GLOB.secret_force_mode != "secret")
+ src.mode = config.pick_mode(GLOB.secret_force_mode)
if(!src.mode)
var/list/weighted_modes = list()
for(var/datum/game_mode/GM in runnable_modes)
weighted_modes[GM.config_tag] = CONFIG_GET(keyed_list/probabilities)[GM.config_tag]
src.mode = config.gamemode_cache[pickweight(weighted_modes)]
else
- src.mode = config.pick_mode(master_mode)
+ src.mode = config.pick_mode(GLOB.master_mode)
if(!src.mode)
to_world(span_boldannounce("Serious error in mode setup! Reverting to pregame lobby.")) //Uses setup instead of set up due to computational context.
@@ -427,7 +427,7 @@ var/global/datum/controller/subsystem/ticker/ticker
// If they're a carbon, they can get manifested
if(J?.mob_type & JOB_CARBON)
- data_core.manifest_inject(new_char)
+ GLOB.data_core.manifest_inject(new_char)
/datum/controller/subsystem/ticker/proc/collect_minds()
for(var/mob/living/player in player_list)
@@ -555,7 +555,7 @@ var/global/datum/controller/subsystem/ticker/ticker
if(GAME_STATE_INIT)
..()
if(GAME_STATE_PREGAME) // RUNLEVEL_LOBBY
- msg = "START [round_progressing ? "[round(pregame_timeleft)]s" : "(PAUSED)"]"
+ msg = "START [GLOB.round_progressing ? "[round(pregame_timeleft)]s" : "(PAUSED)"]"
if(GAME_STATE_SETTING_UP) // RUNLEVEL_SETUP
msg = "SETUP"
if(GAME_STATE_PLAYING) // RUNLEVEL_GAME
diff --git a/code/controllers/subsystems/title_ch.dm b/code/controllers/subsystems/title_ch.dm
index a526746bd4..e70ae8662b 100644
--- a/code/controllers/subsystems/title_ch.dm
+++ b/code/controllers/subsystems/title_ch.dm
@@ -83,11 +83,6 @@ SUBSYSTEM_DEF(title)
file_path = SStitle.file_path
previous_icon = SStitle.previous_icon
-
-//Following is related to jank required to get stuff to render for new players
-
-GLOBAL_LIST_EMPTY(newplayer_start)
-
// Must be immediate because players will
// join before SSatom initializes everything.
INITIALIZE_IMMEDIATE(/obj/effect/landmark/start/new_player)
diff --git a/code/controllers/subsystems/transcore_vr.dm b/code/controllers/subsystems/transcore_vr.dm
index b5b734b0d0..11629a030a 100644
--- a/code/controllers/subsystems/transcore_vr.dm
+++ b/code/controllers/subsystems/transcore_vr.dm
@@ -260,9 +260,9 @@ SUBSYSTEM_DEF(transcore)
var/datum/transcore_db/db = SStranscore.db_by_mind_name(MR.mindname)
var/datum/transhuman/body_record/BR = db.body_scans[MR.mindname]
if(!BR)
- global_announcer.autosay("[MR.mindname] is past-due for a mind backup, but lacks a corresponding body record.", "TransCore Oversight", "Medical")
+ GLOB.global_announcer.autosay("[MR.mindname] is past-due for a mind backup, but lacks a corresponding body record.", "TransCore Oversight", "Medical")
return
- global_announcer.autosay("[MR.mindname] is past-due for a mind backup.", "TransCore Oversight", BR.synthetic ? "Science" : "Medical")
+ GLOB.global_announcer.autosay("[MR.mindname] is past-due for a mind backup.", "TransCore Oversight", BR.synthetic ? "Science" : "Medical")
// Called from mind_record to add itself to the transcore.
/datum/transcore_db/proc/add_backup(var/datum/transhuman/mind_record/MR)
@@ -297,8 +297,8 @@ SUBSYSTEM_DEF(transcore)
// Moves all mind records from the databaes into the disk and shuts down all backup canary processing.
/datum/transcore_db/proc/core_dump(var/obj/item/disk/transcore/disk)
ASSERT(disk)
- global_announcer.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Command")
- global_announcer.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Medical")
+ GLOB.global_announcer.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Command")
+ GLOB.global_announcer.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Medical")
disk.stored += backed_up
backed_up.Cut()
diff --git a/code/controllers/subsystems/vote.dm b/code/controllers/subsystems/vote.dm
index 0ba1852dd7..1d061bd28c 100644
--- a/code/controllers/subsystems/vote.dm
+++ b/code/controllers/subsystems/vote.dm
@@ -98,10 +98,10 @@ SUBSYSTEM_DEF(vote)
if(choices["Continue Playing"] >= greatest_votes)
greatest_votes = choices["Continue Playing"]
else if(mode == VOTE_GAMEMODE)
- if(master_mode in choices)
- choices[master_mode] += non_voters
- if(choices[master_mode] >= greatest_votes)
- greatest_votes = choices[master_mode]
+ if(GLOB.master_mode in choices)
+ choices[GLOB.master_mode] += non_voters
+ if(choices[GLOB.master_mode] >= greatest_votes)
+ greatest_votes = choices[GLOB.master_mode]
else if(mode == VOTE_CREW_TRANSFER)
var/factor = 0.5
switch(world.time / (10 * 60)) // minutes
@@ -162,12 +162,12 @@ SUBSYSTEM_DEF(vote)
if(. == "Restart Round")
restart = 1
if(VOTE_GAMEMODE)
- if(master_mode != .)
+ if(GLOB.master_mode != .)
world.save_mode(.)
if(ticker && ticker.mode)
restart = 1
else
- master_mode = .
+ GLOB.master_mode = .
if(VOTE_CREW_TRANSFER)
if(. == "Initiate Crew Transfer")
init_shift_change(null, 1)
diff --git a/code/controllers/subsystems/xenoarch.dm b/code/controllers/subsystems/xenoarch.dm
index 59dcda2de5..855032597f 100644
--- a/code/controllers/subsystems/xenoarch.dm
+++ b/code/controllers/subsystems/xenoarch.dm
@@ -30,7 +30,7 @@ SUBSYSTEM_DEF(xenoarch)
digsite_spawning_turfs = SSxenoarch.digsite_spawning_turfs
/datum/controller/subsystem/xenoarch/stat_entry(msg)
- if (!Debug2)
+ if (!GLOB.Debug2)
return // Only show up in stat panel if debugging is enabled.
return ..()
diff --git a/code/datums/components/overlay_lighting.dm b/code/datums/components/overlay_lighting.dm
index 755888cec1..b0e464482f 100644
--- a/code/datums/components/overlay_lighting.dm
+++ b/code/datums/components/overlay_lighting.dm
@@ -440,7 +440,7 @@
/datum/component/overlay_lighting/proc/cast_directional_light()
var/final_distance = cast_range
- //Lower the distance by 1 if we're not looking at a cardinal direction, and we're not a short cast
+ //Lower the distance by 1 if we're not looking at a GLOB.cardinal direction, and we're not a short cast
if(final_distance > SHORT_CAST && !(ALL_CARDINALS & current_direction))
final_distance -= 1
var/turf/scanning = get_turf(current_holder)
@@ -448,7 +448,7 @@
. = 0
for(var/i in 1 to final_distance)
var/turf/next_turf = get_step(scanning, current_direction)
- if(isnull(next_turf) || IS_OPAQUE_TURF_DIR(next_turf, reverse_dir[current_direction]))
+ if(isnull(next_turf) || IS_OPAQUE_TURF_DIR(next_turf, GLOB.reverse_dir[current_direction]))
break
scanning = next_turf
.++
@@ -460,7 +460,7 @@
/datum/component/overlay_lighting/proc/place_directional_light(turf/target)
var/final_distance = round(cast_range*2)
- //Lower the distance by 1 if we're not looking at a cardinal direction, and we're not a short cast
+ //Lower the distance by 1 if we're not looking at a GLOB.cardinal direction, and we're not a short cast
if(final_distance > SHORT_CAST && !(ALL_CARDINALS & get_dir(GET_PARENT, target)))
final_distance -= 1
var/turf/scanning = get_turf(GET_PARENT)
diff --git a/code/datums/datacore.dm b/code/datums/datacore.dm
index 2b2c63c7c8..b29ef2096d 100644
--- a/code/datums/datacore.dm
+++ b/code/datums/datacore.dm
@@ -1,6 +1,6 @@
/hook/startup/proc/createDatacore()
- data_core = new /datum/datacore()
+ GLOB.data_core = new /datum/datacore()
return 1
/datum/datacore
@@ -40,12 +40,12 @@
.manifest tr.alt td {[monochrome?"border-top-width: 2px":"background-color: [OOC?"#373737; color:white":"#DEF"]"]}
- [snowflake?"| Online players: [TGS_CLIENT_COUNT] |
|---|
| Crew members: [data_core.general.len] |
|---|
":""]
+ [snowflake?"
| Online players: [TGS_CLIENT_COUNT] |
|---|
| Crew members: [GLOB.data_core.general.len] |
|---|
":""]
| Name | Rank | Activity |
"} //Also a chompstation edit with the snowflake stuff on line 43
var/even = 0
// sort mobs
- for(var/datum/data/record/t in data_core.general)
+ for(var/datum/data/record/t in GLOB.data_core.general)
var/name = t.fields["name"]
var/rank = t.fields["rank"]
var/real_rank = make_list_rank(t.fields["real_rank"])
@@ -207,7 +207,7 @@ GLOBAL_LIST_EMPTY(PDA_Manifest)
var/list/civ = list()
var/list/bot = list()
var/list/misc = list()
- for(var/datum/data/record/t in data_core.general)
+ for(var/datum/data/record/t in GLOB.data_core.general)
var/name = sanitize(t.fields["name"])
var/rank = sanitize(t.fields["rank"])
var/real_rank = make_list_rank(t.fields["real_rank"])
@@ -307,7 +307,7 @@ GLOBAL_LIST_EMPTY(PDA_Manifest)
var/datum/data/record/foundrecord
var/real_title = assignment
- for(var/datum/data/record/t in data_core.general)
+ for(var/datum/data/record/t in GLOB.data_core.general)
if (t)
if(t.fields["name"] == name)
foundrecord = t
@@ -540,13 +540,13 @@ GLOBAL_LIST_EMPTY(PDA_Manifest)
GLOB.PDA_Manifest.Cut()
/proc/find_general_record(field, value)
- return find_record(field, value, data_core.general)
+ return find_record(field, value, GLOB.data_core.general)
/proc/find_medical_record(field, value)
- return find_record(field, value, data_core.medical)
+ return find_record(field, value, GLOB.data_core.medical)
/proc/find_security_record(field, value)
- return find_record(field, value, data_core.security)
+ return find_record(field, value, GLOB.data_core.security)
/proc/find_record(field, value, list/L)
for(var/datum/data/record/R in L)
diff --git a/code/datums/diseases/_MobProcs.dm b/code/datums/diseases/_MobProcs.dm
index 4827f2a5be..e40326a870 100644
--- a/code/datums/diseases/_MobProcs.dm
+++ b/code/datums/diseases/_MobProcs.dm
@@ -39,7 +39,7 @@
DD.start_cure_timer()
viruses += DD
DD.affected_mob = src
- active_diseases += DD
+ GLOB.active_diseases += DD
var/list/skipped = list("affected_mob", "holder", "carrier", "stage", "type", "parent_type", "vars", "transformed")
if(respect_carrier)
diff --git a/code/datums/diseases/_disease.dm b/code/datums/diseases/_disease.dm
index 8e99e5c21d..43993056b5 100644
--- a/code/datums/diseases/_disease.dm
+++ b/code/datums/diseases/_disease.dm
@@ -46,7 +46,7 @@ GLOBAL_LIST_INIT(diseases, subtypesof(/datum/disease))
/datum/disease/Destroy()
affected_mob = null
- active_diseases.Remove(src)
+ GLOB.active_diseases.Remove(src)
if(processing)
End()
return ..()
diff --git a/code/datums/diseases/advance/advance.dm b/code/datums/diseases/advance/advance.dm
index de54d6fcdb..56c2135a6e 100644
--- a/code/datums/diseases/advance/advance.dm
+++ b/code/datums/diseases/advance/advance.dm
@@ -376,7 +376,7 @@ GLOBAL_LIST_INIT(advance_cures, list(
D.AssignName(new_name)
D.Refresh()
- for(var/datum/disease/advance/AD in active_diseases)
+ for(var/datum/disease/advance/AD in GLOB.active_diseases)
AD.Refresh()
H = tgui_input_list(usr, "Choose infectee", "Infectees", human_mob_list)
diff --git a/code/datums/game_masters/default.dm b/code/datums/game_masters/default.dm
index 46d39ab44e..d33c40f204 100644
--- a/code/datums/game_masters/default.dm
+++ b/code/datums/game_masters/default.dm
@@ -10,7 +10,7 @@
/datum/game_master/default/choose_event()
log_game_master("Now starting event decision.")
- var/list/most_active_departments = metric.assess_all_departments(3, list(last_department_used))
+ var/list/most_active_departments = GLOB.metric.assess_all_departments(3, list(last_department_used))
var/list/best_events = decide_best_events(most_active_departments)
if(LAZYLEN(best_events))
diff --git a/code/datums/mixed.dm b/code/datums/mixed.dm
index 0b429156da..f6ca9aa671 100644
--- a/code/datums/mixed.dm
+++ b/code/datums/mixed.dm
@@ -26,21 +26,16 @@
// Mostly used for data_core records, but unfortuantely used some other places too. But mostly here, so lets make a good effort.
// TODO - Some machines/computers might be holding references to us. Lets look into that, but at least for now lets make sure that the manifest is cleaned up.
/datum/data/record/Destroy(var/force)
- if(data_core.locked.Find(src))
+ if(GLOB.data_core.locked.Find(src))
if(!force)
- stack_trace("Someone tried to qdel a record that was in data_core.locked [log_info_line(src)]")
+ stack_trace("Someone tried to qdel a record that was in GLOB.data_core.locked [log_info_line(src)]")
return QDEL_HINT_LETMELIVE
- data_core.locked -= src
- data_core.medical -= src
- data_core.general -= src
- data_core.security -= src
+ GLOB.data_core.locked -= src
+ GLOB.data_core.medical -= src
+ GLOB.data_core.general -= src
+ GLOB.data_core.security -= src
. = ..()
/datum/data/text
name = "text"
var/data = null
-
-
-
-/datum/debug
- var/list/debuglist
diff --git a/code/datums/modules.dm b/code/datums/modules.dm
index 3397e416ae..a8458c5c5a 100644
--- a/code/datums/modules.dm
+++ b/code/datums/modules.dm
@@ -21,13 +21,13 @@ var/list/modules = list( // global associative list
var/type = O.type // the type of the creating object
- var/mneed = mods.inmodlist(type) // find if this type has modules defined
+ var/mneed = GLOB.mods.inmodlist(type) // find if this type has modules defined
if(!mneed) // not found in module list?
qdel(src)
return
- var/needed = mods.getbitmask(type) // get a bitmask for the number of modules in this object
+ var/needed = GLOB.mods.getbitmask(type) // get a bitmask for the number of modules in this object
status = needed
installed = needed
diff --git a/code/datums/uplink/announcements.dm b/code/datums/uplink/announcements.dm
index e225247862..c17fb99ab2 100644
--- a/code/datums/uplink/announcements.dm
+++ b/code/datums/uplink/announcements.dm
@@ -41,11 +41,11 @@
var/obj/item/card/id/I = user.GetIdCard()
var/datum/data/record/random_general_record
var/datum/data/record/random_medical_record
- if(data_core.general.len)
- random_general_record = pick(data_core.general)
+ if(GLOB.data_core.general.len)
+ random_general_record = pick(GLOB.data_core.general)
random_medical_record = find_medical_record("id", random_general_record.fields["id"])
- var/datum/data/record/general = data_core.CreateGeneralRecord(user)
+ var/datum/data/record/general = GLOB.data_core.CreateGeneralRecord(user)
if(I)
general.fields["age"] = I.age
general.fields["rank"] = I.assignment
@@ -66,8 +66,8 @@
general.fields["sex"] = capitalize(user.gender)
general.fields["species"] = user.get_species()
- var/datum/data/record/medical = data_core.CreateMedicalRecord(general.fields["name"], general.fields["id"])
- data_core.CreateSecurityRecord(general.fields["name"], general.fields["id"])
+ var/datum/data/record/medical = GLOB.data_core.CreateMedicalRecord(general.fields["name"], general.fields["id"])
+ GLOB.data_core.CreateSecurityRecord(general.fields["name"], general.fields["id"])
if(!random_general_record)
general.fields["citizenship"] = random_general_record.fields["citizenship"]
diff --git a/code/defines/obj.dm b/code/defines/obj.dm
index 4202ccce83..019e8b32af 100644
--- a/code/defines/obj.dm
+++ b/code/defines/obj.dm
@@ -10,7 +10,7 @@
/obj/structure/signpost/attack_hand(mob/user as mob)
if(tgui_alert(user, "Travel back to ss13?","Return?",list("Yes","No")) == "Yes")
if(user.z != src.z) return
- user.forceMove(get_turf(pick(latejoin)))
+ user.forceMove(get_turf(pick(GLOB.latejoin)))
/obj/structure/signpost_fake
icon = 'icons/obj/stationobjs.dmi'
diff --git a/code/defines/procs/announce.dm b/code/defines/procs/announce.dm
index f60cde7584..fb5651b0bb 100644
--- a/code/defines/procs/announce.dm
+++ b/code/defines/procs/announce.dm
@@ -86,13 +86,13 @@
to_chat(M, command)
/datum/announcement/priority/Message(var/message as text, var/message_title as text, var/list/zlevels)
- global_announcer.autosay(span_alert("[message_title]:") + " [message]", announcer ? announcer : ANNOUNCER_NAME, channel = "Common", zlevels = zlevels)
+ GLOB.global_announcer.autosay(span_alert("[message_title]:") + " [message]", announcer ? announcer : ANNOUNCER_NAME, channel = "Common", zlevels = zlevels)
/datum/announcement/priority/command/Message(var/message as text, var/message_title as text, var/list/zlevels)
- global_announcer.autosay(span_alert("[command_name()] - [message_title]:") + " [message]", ANNOUNCER_NAME, channel = "Common", zlevels = zlevels)
+ GLOB.global_announcer.autosay(span_alert("[command_name()] - [message_title]:") + " [message]", ANNOUNCER_NAME, channel = "Common", zlevels = zlevels)
/datum/announcement/priority/security/Message(var/message as text, var/message_title as text, var/list/zlevels)
- global_announcer.autosay(span_alert("[message_title]:") + " [message]", ANNOUNCER_NAME, channel = "Common", zlevels = zlevels)
+ GLOB.global_announcer.autosay(span_alert("[message_title]:") + " [message]", ANNOUNCER_NAME, channel = "Common", zlevels = zlevels)
/datum/announcement/proc/NewsCast(var/message as text, var/message_title as text)
if(!newscast)
@@ -142,4 +142,4 @@
AnnounceArrivalSimple(character.real_name, rank, join_message, channel, zlevels)
/proc/AnnounceArrivalSimple(var/name, var/rank = "visitor", var/join_message = "will arrive at the station shortly", var/channel = "Common", var/list/zlevels)
- global_announcer.autosay("[name], [rank], [join_message].", "Arrivals Announcement Computer", channel, zlevels)
+ GLOB.global_announcer.autosay("[name], [rank], [join_message].", "Arrivals Announcement Computer", channel, zlevels)
diff --git a/code/game/antagonist/alien/borer.dm b/code/game/antagonist/alien/borer.dm
index 159ee014de..cb689847e6 100644
--- a/code/game/antagonist/alien/borer.dm
+++ b/code/game/antagonist/alien/borer.dm
@@ -67,7 +67,7 @@ var/datum/antagonist/borer/borers
/datum/antagonist/borer/proc/get_vents()
var/list/vents = list()
- for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines)
+ for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in GLOB.machines)
if(!temp_vent.welded && temp_vent.network && (temp_vent.loc.z in using_map.station_levels))
if(temp_vent.network.normal_members.len > 50)
vents += temp_vent
diff --git a/code/game/antagonist/alien/xenomorph.dm b/code/game/antagonist/alien/xenomorph.dm
index cac15e03c5..c0ea499aad 100644
--- a/code/game/antagonist/alien/xenomorph.dm
+++ b/code/game/antagonist/alien/xenomorph.dm
@@ -31,7 +31,7 @@ var/datum/antagonist/xenos/xenomorphs
/datum/antagonist/xenos/proc/get_vents()
var/list/vents = list()
- for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines)
+ for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in GLOB.machines)
if(!temp_vent.welded && temp_vent.network && (temp_vent.loc.z in using_map.station_levels))
if(temp_vent.network.normal_members.len > 50)
vents += temp_vent
diff --git a/code/game/antagonist/antagonist.dm b/code/game/antagonist/antagonist.dm
index 38ea7f9629..febff8fce8 100644
--- a/code/game/antagonist/antagonist.dm
+++ b/code/game/antagonist/antagonist.dm
@@ -94,10 +94,10 @@
if(CONFIG_GET(flag/protect_roles_from_antagonist))
restricted_jobs |= protected_jobs
if(antaghud_indicator)
- if(!hud_icon_reference)
- hud_icon_reference = list()
- if(role_text) hud_icon_reference[role_text] = antaghud_indicator
- if(faction_role_text) hud_icon_reference[faction_role_text] = antaghud_indicator
+ if(!GLOB.hud_icon_reference)
+ GLOB.hud_icon_reference = list()
+ if(role_text) GLOB.hud_icon_reference[role_text] = antaghud_indicator
+ if(faction_role_text) GLOB.hud_icon_reference[faction_role_text] = antaghud_indicator
/datum/antagonist/proc/tick()
return 1
diff --git a/code/game/atoms.dm b/code/game/atoms.dm
index 710ea14253..c707543477 100644
--- a/code/game/atoms.dm
+++ b/code/game/atoms.dm
@@ -509,12 +509,12 @@
R.reagents.splash(src, 1)
/atom/proc/get_global_map_pos()
- if(!islist(global_map) || isemptylist(global_map)) return
+ if(!islist(GLOB.global_map) || isemptylist(GLOB.global_map)) return
var/cur_x = null
var/cur_y = null
var/list/y_arr = null
- for(cur_x=1,cur_x<=global_map.len,cur_x++)
- y_arr = global_map[cur_x]
+ for(cur_x = 1, cur_x <= GLOB.global_map.len, cur_x++)
+ y_arr = GLOB.global_map[cur_x]
cur_y = y_arr.Find(src.z)
if(cur_y)
break
diff --git a/code/game/atoms_movable.dm b/code/game/atoms_movable.dm
index 536b0834c6..bbc8f32253 100644
--- a/code/game/atoms_movable.dm
+++ b/code/game/atoms_movable.dm
@@ -107,7 +107,7 @@
if(loc != newloc)
if(!direct)
direct = get_dir(oldloc, newloc)
- if (IS_CARDINAL(direct)) //Cardinal move
+ if (IS_CARDINAL(direct)) //GLOB.cardinal move
// Track our failure if any in this value
. = TRUE
@@ -167,7 +167,7 @@
else if(. && newloc)
. = doMove(newloc)
- //Diagonal move, split it into cardinal moves
+ //Diagonal move, split it into GLOB.cardinal moves
else
moving_diagonally = FIRST_DIAG_STEP
var/first_step_dir
diff --git a/code/game/dna/dna2.dm b/code/game/dna/dna2.dm
index ede664982a..3c4e5ef856 100644
--- a/code/game/dna/dna2.dm
+++ b/code/game/dna/dna2.dm
@@ -521,7 +521,6 @@ GLOBAL_LIST_EMPTY_TYPED(dna_genes_bad, /datum/gene/trait)
ResetSE()
unique_enzymes = md5(character.real_name)
- reg_dna[unique_enzymes] = character.real_name
#undef DNA_OFF_LOWERBOUND
#undef DNA_OFF_UPPERBOUND
diff --git a/code/game/dna/dna_modifier.dm b/code/game/dna/dna_modifier.dm
index 6b16c06f7f..ae42ab6e4f 100644
--- a/code/game/dna/dna_modifier.dm
+++ b/code/game/dna/dna_modifier.dm
@@ -227,7 +227,7 @@
WC.forceMove(get_turf(src))
occupant = null
// Disconnect from our terminal
- for(var/dirfind in cardinal)
+ for(var/dirfind in GLOB.cardinal)
var/obj/machinery/computer/scan_consolenew/console = locate(/obj/machinery/computer/scan_consolenew, get_step(src, dirfind))
if(console && console.connected == src)
console.connected = null
@@ -368,7 +368,7 @@
R.mydna.dna.ResetSE()
buffers[i+1]=R
// Traitgenes don't alter direction of computer as this scans for neighbour
- for(var/dirfind in cardinal)
+ for(var/dirfind in GLOB.cardinal)
connected = locate(/obj/machinery/dna_scannernew, get_step(src, dirfind))
if(connected)
break
diff --git a/code/game/gamemodes/cult/cult_items.dm b/code/game/gamemodes/cult/cult_items.dm
index 26d95a341e..edc1de4149 100644
--- a/code/game/gamemodes/cult/cult_items.dm
+++ b/code/game/gamemodes/cult/cult_items.dm
@@ -34,7 +34,7 @@
to_chat(user, span_critical("The blade hisses, forcing itself from your manipulators. \The [src] will only allow mortals to wield it against foes, not kin."))
user.drop_from_inventory(src, src.loc)
- throw_at(get_edge_target_turf(src, pick(alldirs)), rand(1,3), throw_speed)
+ throw_at(get_edge_target_turf(src, pick(GLOB.alldirs)), rand(1,3), throw_speed)
var/spooky = pick('sound/hallucinations/growl1.ogg', 'sound/hallucinations/growl2.ogg', 'sound/hallucinations/growl3.ogg', 'sound/hallucinations/wail.ogg')
playsound(src, spooky, 50, 1)
diff --git a/code/game/gamemodes/cult/hell_universe.dm b/code/game/gamemodes/cult/hell_universe.dm
index 36f9c2f4bb..d8b2f4ce7a 100644
--- a/code/game/gamemodes/cult/hell_universe.dm
+++ b/code/game/gamemodes/cult/hell_universe.dm
@@ -73,7 +73,7 @@ In short:
if(!T.holy && prob(1))
new /obj/effect/gateway/active/cult(T)
- for (var/obj/machinery/firealarm/alm in machines)
+ for (var/obj/machinery/firealarm/alm in GLOB.machines)
if (!(alm.stat & BROKEN))
alm.ex_act(2)
diff --git a/code/game/gamemodes/cult/narsie.dm b/code/game/gamemodes/cult/narsie.dm
index 648ee8b528..c9fcecb753 100644
--- a/code/game/gamemodes/cult/narsie.dm
+++ b/code/game/gamemodes/cult/narsie.dm
@@ -101,7 +101,7 @@ var/global/list/narsie_list = list()
if(!move_self)
return 0
- var/movement_dir = pick(alldirs - last_failed_movement)
+ var/movement_dir = pick(GLOB.alldirs - last_failed_movement)
if(force_move)
movement_dir = force_move
@@ -119,7 +119,7 @@ var/global/list/narsie_list = list()
if(!move_self)
return 0
- var/movement_dir = pick(alldirs - last_failed_movement)
+ var/movement_dir = pick(GLOB.alldirs - last_failed_movement)
if(force_move)
movement_dir = force_move
diff --git a/code/game/gamemodes/endgame/endgame.dm b/code/game/gamemodes/endgame/endgame.dm
index 59ea24ad93..bc7e61d5c3 100644
--- a/code/game/gamemodes/endgame/endgame.dm
+++ b/code/game/gamemodes/endgame/endgame.dm
@@ -65,7 +65,7 @@
/proc/SetUniversalState(var/newstate,var/on_exit=1, var/on_enter=1)
if(on_exit)
- universe.OnExit()
- universe = new newstate
+ GLOB.universe.OnExit()
+ GLOB.universe = new newstate
if(on_enter)
- universe.OnEnter()
+ GLOB.universe.OnEnter()
diff --git a/code/game/gamemodes/endgame/supermatter_cascade/universe.dm b/code/game/gamemodes/endgame/supermatter_cascade/universe.dm
index 0fa5600776..ea2def67f1 100644
--- a/code/game/gamemodes/endgame/supermatter_cascade/universe.dm
+++ b/code/game/gamemodes/endgame/supermatter_cascade/universe.dm
@@ -72,7 +72,7 @@ GLOBAL_VAR_INIT(universe_has_ended, 0)
"}
priority_announcement.Announce(txt,"SUPERMATTER CASCADE DETECTED")
- for(var/obj/machinery/computer/shuttle_control/C in machines)
+ for(var/obj/machinery/computer/shuttle_control/C in GLOB.machines)
if(istype(C, /obj/machinery/computer/shuttle_control/research) || istype(C, /obj/machinery/computer/shuttle_control/mining))
C.req_access = list()
C.req_one_access = list()
@@ -103,7 +103,7 @@ GLOBAL_VAR_INIT(universe_has_ended, 0)
OnTurfChange(T)
*/
/datum/universal_state/supermatter_cascade/proc/MiscSet()
- for (var/obj/machinery/firealarm/alm in machines)
+ for (var/obj/machinery/firealarm/alm in GLOB.machines)
if (!(alm.stat & BROKEN))
alm.ex_act(2)
diff --git a/code/game/gamemodes/events.dm b/code/game/gamemodes/events.dm
index 3dacb20b6a..094edcf914 100644
--- a/code/game/gamemodes/events.dm
+++ b/code/game/gamemodes/events.dm
@@ -110,7 +110,7 @@ GLOBAL_VAR_INIT(hadevent, 0)
//command_alert("Unidentified lifesigns detected coming aboard [station_name()]. Secure any exterior access, including ducting and ventilation.", "Lifesign Alert")
//world << sound('sound/AI/aliens.ogg')
var/list/vents = list()
- for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines)
+ for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in GLOB.machines)
if(!temp_vent.welded && temp_vent.network && (temp_vent.loc.z in using_map.station_levels))
if(temp_vent.network.normal_members.len > 50) // Stops Aliens getting stuck in small networks. See: Security, Virology
vents += temp_vent
@@ -136,7 +136,7 @@ GLOBAL_VAR_INIT(hadevent, 0)
/proc/high_radiation_event()
/* // Haha, this is way too laggy. I'll keep the prison break though.
- for(var/obj/machinery/light/L in machines)
+ for(var/obj/machinery/light/L in GLOB.machines)
if(isNotStationLevel(L.z)) continue
L.flicker(50)
@@ -348,7 +348,7 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is
M.add_ion_law("THE STATION IS [who2pref] [who2]")
/* //VOREStation Edit
if(botEmagChance)
- for(var/mob/living/bot/bot in machines)
+ for(var/mob/living/bot/bot in GLOB.machines)
if(prob(botEmagChance))
bot.emag_act(1)
*/ //VOREStation Edit
@@ -377,7 +377,7 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is
to_world("Finished processing SMES. Processed: [smesnum]")
spawn(0)
to_world("Started processing AIRLOCKS")
- for (var/obj/machinery/door/airlock/D in machines)
+ for (var/obj/machinery/door/airlock/D in GLOB.machines)
if(D.z in station_levels)
//if(length(D.req_access) > 0 && !(12 in D.req_access)) //not counting general access and maintenance airlocks
airlocknum++
@@ -386,7 +386,7 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is
to_world("Finished processing AIRLOCKS. Processed: [airlocknum]")
spawn(0)
to_world("Started processing FIREDOORS")
- for (var/obj/machinery/door/firedoor/D in machines)
+ for (var/obj/machinery/door/firedoor/D in GLOB.machines)
if(D.z in station_levels)
firedoornum++;
spawn(0)
diff --git a/code/game/gamemodes/events/black_hole.dm b/code/game/gamemodes/events/black_hole.dm
index 3d1d077651..2ec56169aa 100644
--- a/code/game/gamemodes/events/black_hole.dm
+++ b/code/game/gamemodes/events/black_hole.dm
@@ -74,7 +74,7 @@
//MOVEMENT
if(prob(50))
anchored = FALSE
- step(src, pick(alldirs))
+ step(src, pick(GLOB.alldirs))
anchored = TRUE
controller()
diff --git a/code/game/gamemodes/events/clang.dm b/code/game/gamemodes/events/clang.dm
index 5aa3372e32..b55250f523 100644
--- a/code/game/gamemodes/events/clang.dm
+++ b/code/game/gamemodes/events/clang.dm
@@ -50,7 +50,7 @@ In my current plan for it, 'solid' will be defined as anything with density == 1
var/starty = 0
var/endy = 0
var/endx = 0
- var/startside = pick(cardinal)
+ var/startside = pick(GLOB.cardinal)
switch(startside)
if(NORTH)
diff --git a/code/game/gamemodes/events/dust.dm b/code/game/gamemodes/events/dust.dm
index 22a7043e18..11613c33f7 100644
--- a/code/game/gamemodes/events/dust.dm
+++ b/code/game/gamemodes/events/dust.dm
@@ -24,7 +24,7 @@ The "dust" will damage the hull of the station causin minor hull breaches.
numbers = rand(15,25)
dust_type = /obj/effect/space_dust/super
- var/startside = pick(cardinal)
+ var/startside = pick(GLOB.cardinal)
for(var/i = 0 to numbers)
var/startx = 0
var/starty = 0
diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm
index 183f3511a9..c026b9a805 100644
--- a/code/game/gamemodes/game_mode.dm
+++ b/code/game/gamemodes/game_mode.dm
@@ -134,7 +134,7 @@ GLOBAL_LIST_EMPTY(additional_antag_types)
antag_summary += "[antag.role_text_plural]"
i++
antag_summary += "."
- if(antag_templates.len > 1 && master_mode != "secret")
+ if(antag_templates.len > 1 && GLOB.master_mode != "secret")
to_world(span_filter_system("[antag_summary]"))
else
message_admins("[antag_summary]")
@@ -147,7 +147,7 @@ GLOBAL_LIST_EMPTY(additional_antag_types)
if((player.client)&&(player.ready))
playerC++
- if(master_mode=="secret")
+ if(GLOB.master_mode=="secret")
if(playerC < CONFIG_GET(keyed_list/player_requirements_secret)[config_tag])
return 0
else
@@ -583,7 +583,7 @@ GLOBAL_LIST_EMPTY(additional_antag_types)
to_chat(usr, span_warning("Something is terribly wrong; there is no gametype."))
return
- if(master_mode != "secret")
+ if(GLOB.master_mode != "secret")
to_chat(usr, span_boldnotice("The roundtype is [capitalize(ticker.mode.name)]"))
if(ticker.mode.round_description)
to_chat(usr, span_notice(span_italics("[ticker.mode.round_description]")))
diff --git a/code/game/gamemodes/malfunction/malf_hardware.dm b/code/game/gamemodes/malfunction/malf_hardware.dm
index a0aa1ec7b6..d9a659d96b 100644
--- a/code/game/gamemodes/malfunction/malf_hardware.dm
+++ b/code/game/gamemodes/malfunction/malf_hardware.dm
@@ -60,7 +60,7 @@
/datum/malf_hardware/strong_turrets/install()
..()
- for(var/obj/machinery/porta_turret/T in machines)
+ for(var/obj/machinery/porta_turret/T in GLOB.machines)
T.maxhealth = round(initial(T.maxhealth) * 1.4)
T.shot_delay = round(initial(T.shot_delay) / 2)
T.auto_repair = 1
diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm
index fcf0716078..dacc74b08e 100644
--- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm
+++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm
@@ -129,7 +129,7 @@
user.hacking = 0
-/datum/game_mode/malfunction/verb/machine_overload(obj/machinery/M in machines)
+/datum/game_mode/malfunction/verb/machine_overload(obj/machinery/M in GLOB.machines)
set name = "Machine Overload"
set desc = "400 CPU - Causes cyclic short-circuit in machine, resulting in weak explosion after some time."
set category = "Software"
diff --git a/code/game/gamemodes/meteor/meteors.dm b/code/game/gamemodes/meteor/meteors.dm
index 99df9683a4..ee8c07ef9e 100644
--- a/code/game/gamemodes/meteor/meteors.dm
+++ b/code/game/gamemodes/meteor/meteors.dm
@@ -44,7 +44,7 @@ GLOBAL_VAR_INIT(meteor_wave_delay, 625) //minimum wait between waves in tenths o
/proc/spawn_meteor(var/list/meteortypes, var/startSide, var/startLevel)
if(isnull(startSide))
- startSide = pick(cardinal)
+ startSide = pick(GLOB.cardinal)
if(isnull(startLevel))
startLevel = pick(using_map.station_levels - using_map.sealed_levels)
diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm
index 47324dbaa8..23e5534124 100644
--- a/code/game/gamemodes/nuclear/pinpointer.dm
+++ b/code/game/gamemodes/nuclear/pinpointer.dm
@@ -55,7 +55,7 @@
/obj/item/pinpointer/examine(mob/user)
. = ..()
- for(var/obj/machinery/nuclearbomb/bomb in machines)
+ for(var/obj/machinery/nuclearbomb/bomb in GLOB.machines)
if(bomb.timing)
. += "Extreme danger. Arming signal detected. Time remaining: [bomb.timeleft]"
@@ -287,7 +287,7 @@
return PROCESS_KILL
if(!our_shuttle)
- for(var/obj/machinery/computer/shuttle_control/S in machines)
+ for(var/obj/machinery/computer/shuttle_control/S in GLOB.machines)
if(S.shuttle_tag == shuttle_comp_id) // Shuttle tags are used so that it will work if the computer path changes, as it does on the southern cross map.
our_shuttle = S
break
diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm
index 967bcf908e..5dc5aa5c04 100644
--- a/code/game/gamemodes/objective.dm
+++ b/code/game/gamemodes/objective.dm
@@ -852,7 +852,7 @@ GLOBAL_LIST_EMPTY(all_objectives)
explanation_text = "Summon Nar-Sie via the use of the appropriate rune (Hell join self). It will only work if nine cultists stand on and around it. The convert rune is join blood self."
/datum/objective/cult/eldergod/check_completion()
- return (locate(/obj/singularity/narsie/large) in machines)
+ return (locate(/obj/singularity/narsie/large) in GLOB.machines)
/datum/objective/cult/sacrifice
explanation_text = "Conduct a ritual sacrifice for the glory of Nar-Sie."
diff --git a/code/game/gamemodes/sandbox/h_sandbox.dm b/code/game/gamemodes/sandbox/h_sandbox.dm
index 6368db9a96..7cb9336bff 100644
--- a/code/game/gamemodes/sandbox/h_sandbox.dm
+++ b/code/game/gamemodes/sandbox/h_sandbox.dm
@@ -19,7 +19,7 @@ mob
var/datum/hSB/sandbox = null
proc
CanBuild()
- if(master_mode == "sandbox")
+ if(GLOB.master_mode == "sandbox")
sandbox = new/datum/hSB
sandbox.owner = src.ckey
if(src.client.holder)
diff --git a/code/game/gamemodes/technomancer/spells/condensation.dm b/code/game/gamemodes/technomancer/spells/condensation.dm
index 39b52923ec..bf4ea54da9 100644
--- a/code/game/gamemodes/technomancer/spells/condensation.dm
+++ b/code/game/gamemodes/technomancer/spells/condensation.dm
@@ -21,7 +21,7 @@
if(istype(hit_atom, /turf/simulated) && within_range(hit_atom))
var/turf/simulated/T = hit_atom
- for(var/direction in alldirs + null) // null is for the center tile.
+ for(var/direction in GLOB.alldirs + null) // null is for the center tile.
spawn(1)
var/turf/desired_turf = get_step(T,direction)
if(desired_turf) // This shouldn't fail but...
diff --git a/code/game/jobs/job/civilian_chaplain.dm b/code/game/jobs/job/civilian_chaplain.dm
index d3d0112474..3a186b666b 100644
--- a/code/game/jobs/job/civilian_chaplain.dm
+++ b/code/game/jobs/job/civilian_chaplain.dm
@@ -125,7 +125,7 @@
B.deity_name = H.mind.my_religion.deity
I.assignment = H.mind.my_religion.title
I.name = text("[I.registered_name]'s ID Card ([I.assignment])")
- data_core.manifest_modify(I.registered_name, I.assignment, I.rank)
+ GLOB.data_core.manifest_modify(I.registered_name, I.assignment, I.rank)
/datum/religion
var/religion = "Unitarianism"
diff --git a/code/game/jobs/job_controller.dm b/code/game/jobs/job_controller.dm
index 4ed1a9cde2..c7acc46456 100644
--- a/code/game/jobs/job_controller.dm
+++ b/code/game/jobs/job_controller.dm
@@ -29,7 +29,7 @@ var/global/datum/controller/occupations/job_master
/datum/controller/occupations/proc/Debug(var/text)
- if(!Debug2) return 0
+ if(!GLOB.Debug2) return 0
job_debug.Add(text)
return 1
@@ -976,11 +976,11 @@ var/global/datum/controller/occupations/job_master
to_chat(C, span_warning("Your chosen spawnpoint ([spawnpos.display_name]) is unavailable for your chosen job. Please correct your spawn point choice."))
return
to_chat(C, span_filter_warning("Your chosen spawnpoint ([spawnpos.display_name]) is unavailable for your chosen job. Spawning you at the Arrivals shuttle instead."))
- var/spawning = pick(latejoin)
+ var/spawning = pick(GLOB.latejoin)
.["turf"] = get_turf(spawning)
.["msg"] = "will arrive at the station shortly"
else if(!fail_deadly)
- var/spawning = pick(latejoin)
+ var/spawning = pick(GLOB.latejoin)
.["turf"] = get_turf(spawning)
.["msg"] = "has arrived on the station"
diff --git a/code/game/jobs/whitelist.dm b/code/game/jobs/whitelist.dm
index 6a7388d65b..ec2b6221ab 100644
--- a/code/game/jobs/whitelist.dm
+++ b/code/game/jobs/whitelist.dm
@@ -103,7 +103,7 @@ GLOBAL_LIST_EMPTY(alien_whitelist)
return 0
//Module is not even whitelisted
- if(!(module in whitelisted_module_types))
+ if(!(module in GLOB.whitelisted_module_types))
return 1
//If we have a loaded file, search it
diff --git a/code/game/json.dm b/code/game/json.dm
index 1510a00cd5..6c57e8dd5d 100644
--- a/code/game/json.dm
+++ b/code/game/json.dm
@@ -24,7 +24,7 @@ var/makejson = 1 //temp
else if(ticker.hide_mode)
mode = "SECRET"
else
- mode = master_mode
+ mode = GLOB.master_mode
var/playerscount = 0
var/players = ""
var/admins = "no"
diff --git a/code/game/machinery/adv_med.dm b/code/game/machinery/adv_med.dm
index f4de63e556..9b86917661 100644
--- a/code/game/machinery/adv_med.dm
+++ b/code/game/machinery/adv_med.dm
@@ -75,7 +75,7 @@
if(O.anchored)
return 0 //mob is anchored???
if(get_dist(user, src) > 1 || get_dist(user, O) > 1)
- return 0 //doesn't use adjacent() to allow for non-cardinal (fuck my life)
+ return 0 //doesn't use adjacent() to allow for non-GLOB.cardinal (fuck my life)
if(!ishuman(user) && !isrobot(user))
return 0 //not a borg or human
if(panel_open)
diff --git a/code/game/machinery/atm_ret_field.dm b/code/game/machinery/atm_ret_field.dm
index 08c0deca62..59eab0278e 100644
--- a/code/game/machinery/atm_ret_field.dm
+++ b/code/game/machinery/atm_ret_field.dm
@@ -173,7 +173,7 @@
LAZYADD(A.all_arfgs, src)
areas_added = list(A)
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
A = get_area(get_step(src,direction))
if(istype(A) && !(A in areas_added))
LAZYADD(A.all_arfgs, src)
diff --git a/code/game/machinery/computer/card.dm b/code/game/machinery/computer/card.dm
index 0bb006e23e..dd126c96b1 100644
--- a/code/game/machinery/computer/card.dm
+++ b/code/game/machinery/computer/card.dm
@@ -87,8 +87,8 @@
/obj/machinery/computer/card/tgui_static_data(mob/user)
var/list/data = ..()
- if(data_core)
- data_core.get_manifest_list()
+ if(GLOB.data_core)
+ GLOB.data_core.get_manifest_list()
data["manifest"] = GLOB.PDA_Manifest
return data
@@ -156,7 +156,7 @@
switch(action)
if("modify")
if(modify)
- data_core.manifest_modify(modify.registered_name, modify.assignment, modify.rank)
+ GLOB.data_core.manifest_modify(modify.registered_name, modify.assignment, modify.rank)
modify.name = "[modify.registered_name]'s ID Card ([modify.assignment])"
if(ishuman(ui.user))
modify.forceMove(get_turf(src))
@@ -258,7 +258,7 @@
P.name = text("crew manifest ([])", stationtime2text())
P.info = {"Crew Manifest
- [data_core ? data_core.get_manifest(0) : ""]
+ [GLOB.data_core ? GLOB.data_core.get_manifest(0) : ""]
"}
else if(modify)
P.name = "access report"
diff --git a/code/game/machinery/computer/medical.dm b/code/game/machinery/computer/medical.dm
index 1302289566..0b24e9276e 100644
--- a/code/game/machinery/computer/medical.dm
+++ b/code/game/machinery/computer/medical.dm
@@ -125,15 +125,15 @@
if(authenticated)
switch(screen)
if(MED_DATA_R_LIST)
- if(!isnull(data_core.general))
+ if(!isnull(GLOB.data_core.general))
var/list/records = list()
data["records"] = records
- for(var/datum/data/record/R in sortRecord(data_core.general))
+ for(var/datum/data/record/R in sortRecord(GLOB.data_core.general))
records[++records.len] = list("ref" = "\ref[R]", "id" = R.fields["id"], "name" = R.fields["name"])
if(MED_DATA_RECORD)
var/list/general = list()
data["general"] = general
- if(istype(active1, /datum/data/record) && data_core.general.Find(active1))
+ if(istype(active1, /datum/data/record) && GLOB.data_core.general.Find(active1))
var/list/fields = list()
general["fields"] = fields
fields[++fields.len] = FIELD("Name", active1.fields["name"], null)
@@ -155,7 +155,7 @@
var/list/medical = list()
data["medical"] = medical
- if(istype(active2, /datum/data/record) && data_core.medical.Find(active2))
+ if(istype(active2, /datum/data/record) && GLOB.data_core.medical.Find(active2))
var/list/fields = list()
medical["fields"] = fields
fields[++fields.len] = MED_FIELD("Gender identity", active2.fields["id_gender"], "id_gender", TRUE)
@@ -172,10 +172,10 @@
medical["empty"] = 1
if(MED_DATA_V_DATA)
data["virus"] = list()
- for(var/datum/disease/D in active_diseases)
+ for(var/datum/disease/D in GLOB.active_diseases)
if(!D.discovered)
continue
- var/datum/data/record/v = active_diseases[D]
+ var/datum/data/record/v = GLOB.active_diseases[D]
data["virus"] += list(list("name" = v.fields["name"], "D" = "\ref[v]"))
if(MED_DATA_MEDBOT)
data["medbots"] = list()
@@ -206,9 +206,9 @@
if(..())
return TRUE
- if(!data_core.general.Find(active1))
+ if(!GLOB.data_core.general.Find(active1))
active1 = null
- if(!data_core.medical.Find(active2))
+ if(!GLOB.data_core.medical.Find(active2))
active2 = null
. = TRUE
@@ -276,7 +276,7 @@
return FALSE
tgui_modal_message(src, "virus", "", null, v.fields["tgui_description"])
if("del_all")
- for(var/datum/data/record/R in data_core.medical)
+ for(var/datum/data/record/R in GLOB.data_core.medical)
qdel(R)
set_temp("All medical records deleted.")
if("del_r")
@@ -285,12 +285,12 @@
qdel(active2)
if("d_rec")
var/datum/data/record/general_record = locate(params["d_rec"] || "")
- if(!data_core.general.Find(general_record))
+ if(!GLOB.data_core.general.Find(general_record))
set_temp("Record not found.", "danger")
return
var/datum/data/record/medical_record
- for(var/datum/data/record/M in data_core.medical)
+ for(var/datum/data/record/M in GLOB.data_core.medical)
if(M.fields["name"] == general_record.fields["name"] && M.fields["id"] == general_record.fields["id"])
medical_record = M
break
@@ -326,7 +326,7 @@
R.fields["cdi"] = "None"
R.fields["cdi_d"] = "No diseases have been diagnosed at the moment."
R.fields["notes"] = "No notes."
- data_core.medical += R
+ GLOB.data_core.medical += R
active2 = R
screen = MED_DATA_RECORD
set_temp("Medical record created.", "success")
@@ -346,14 +346,14 @@
if(!length(t1))
return
- for(var/datum/data/record/R in data_core.medical)
+ for(var/datum/data/record/R in GLOB.data_core.medical)
if(t1 == lowertext(R.fields["name"]) || t1 == lowertext(R.fields["id"]) || t1 == lowertext(R.fields["b_dna"]))
active2 = R
break
if(!active2)
set_temp("Medical record not found. You must enter the person's exact name, ID or DNA.", "danger")
return
- for(var/datum/data/record/E in data_core.general)
+ for(var/datum/data/record/E in GLOB.data_core.general)
if(E.fields["name"] == active2.fields["name"] && E.fields["id"] == active2.fields["id"])
active1 = E
break
@@ -432,7 +432,7 @@
/obj/machinery/computer/med_data/proc/print_finish()
var/obj/item/paper/P = new(loc)
P.info = "" + span_bold("Medical Record") + "
"
- if(istype(active1, /datum/data/record) && data_core.general.Find(active1))
+ if(istype(active1, /datum/data/record) && GLOB.data_core.general.Find(active1))
P.info += {"Name: [active1.fields["name"]] ID: [active1.fields["id"]]
\nSex: [active1.fields["sex"]]
\nSpecies: [active1.fields["species"]]
@@ -442,7 +442,7 @@
\nMental Status: [active1.fields["m_stat"]]
"}
else
P.info += span_bold("General Record Lost!") + "
"
- if(istype(active2, /datum/data/record) && data_core.medical.Find(active2))
+ if(istype(active2, /datum/data/record) && GLOB.data_core.medical.Find(active2))
P.info += {"
\nMedical Data
\nGender Identity: [active2.fields["id_gender"]]
\nBlood Type: [active2.fields["b_type"]]
@@ -486,7 +486,7 @@
..(severity)
return
- for(var/datum/data/record/R in data_core.medical)
+ for(var/datum/data/record/R in GLOB.data_core.medical)
if(prob(10/severity))
switch(rand(1,6))
if(1)
diff --git a/code/game/machinery/computer/pod.dm b/code/game/machinery/computer/pod.dm
index 06a82d6cc7..994c6bd0ea 100644
--- a/code/game/machinery/computer/pod.dm
+++ b/code/game/machinery/computer/pod.dm
@@ -17,7 +17,7 @@
return INITIALIZE_HINT_LATELOAD
/obj/machinery/computer/pod/LateInitialize()
- for(var/obj/machinery/mass_driver/M in machines)
+ for(var/obj/machinery/mass_driver/M in GLOB.machines)
if(M.id == id)
connected = M
break
@@ -30,19 +30,19 @@
to_chat(viewers(null, null),"Cannot locate mass driver connector. Cancelling firing sequence!")
return
- for(var/obj/machinery/door/blast/M in machines)
+ for(var/obj/machinery/door/blast/M in GLOB.machines)
if(M.id == id)
M.open()
sleep(20)
- for(var/obj/machinery/mass_driver/M in machines)
+ for(var/obj/machinery/mass_driver/M in GLOB.machines)
if(M.id == id)
M.power = connected.power
M.drive()
sleep(50)
- for(var/obj/machinery/door/blast/M in machines)
+ for(var/obj/machinery/door/blast/M in GLOB.machines)
if(M.id == id)
M.close()
return
@@ -168,7 +168,7 @@
if(href_list["alarm"])
alarm()
if(href_list["drive"])
- for(var/obj/machinery/mass_driver/M in machines)
+ for(var/obj/machinery/mass_driver/M in GLOB.machines)
if(M.id == id)
M.power = connected.power
M.drive()
@@ -180,7 +180,7 @@
time += tp
time = min(max(round(time), 0), 120)
if(href_list["door"])
- for(var/obj/machinery/door/blast/M in machines)
+ for(var/obj/machinery/door/blast/M in GLOB.machines)
if(M.id == id)
if(M.density)
M.open()
diff --git a/code/game/machinery/computer/security.dm b/code/game/machinery/computer/security.dm
index 4399559d74..3331820076 100644
--- a/code/game/machinery/computer/security.dm
+++ b/code/game/machinery/computer/security.dm
@@ -113,13 +113,13 @@
if(authenticated)
switch(screen)
if(SEC_DATA_R_LIST)
- if(!isnull(data_core.general))
+ if(!isnull(GLOB.data_core.general))
var/list/records = list()
data["records"] = records
- for(var/datum/data/record/R in sortRecord(data_core.general))
+ for(var/datum/data/record/R in sortRecord(GLOB.data_core.general))
var/color = null
var/criminal = "None"
- for(var/datum/data/record/M in data_core.security)
+ for(var/datum/data/record/M in GLOB.data_core.security)
if(M.fields["name"] == R.fields["name"] && M.fields["id"] == R.fields["id"])
switch(M.fields["criminal"])
if("*Arrest*")
@@ -142,7 +142,7 @@
if(SEC_DATA_RECORD)
var/list/general = list()
data["general"] = general
- if(istype(active1, /datum/data/record) && data_core.general.Find(active1))
+ if(istype(active1, /datum/data/record) && GLOB.data_core.general.Find(active1))
var/list/fields = list()
general["fields"] = fields
fields[++fields.len] = FIELD("Name", active1.fields["name"], "name")
@@ -166,7 +166,7 @@
var/list/security = list()
data["security"] = security
- if(istype(active2, /datum/data/record) && data_core.security.Find(active2))
+ if(istype(active2, /datum/data/record) && GLOB.data_core.security.Find(active2))
var/list/fields = list()
security["fields"] = fields
fields[++fields.len] = FIELD("Criminal Status", active2.fields["criminal"], "criminal")
@@ -189,9 +189,9 @@
if(..())
return TRUE
- if(!data_core.general.Find(active1))
+ if(!GLOB.data_core.general.Find(active1))
active1 = null
- if(!data_core.security.Find(active2))
+ if(!GLOB.data_core.security.Find(active2))
active2 = null
. = TRUE
@@ -254,7 +254,7 @@
active1 = null
active2 = null
if("del_all")
- for(var/datum/data/record/R in data_core.security)
+ for(var/datum/data/record/R in GLOB.data_core.security)
qdel(R)
set_temp("All security records deleted.")
if("del_r")
@@ -264,7 +264,7 @@
if("del_r_2")
set_temp("All records for [active1.fields["name"]] deleted.")
if(active1)
- for(var/datum/data/record/R in data_core.medical)
+ for(var/datum/data/record/R in GLOB.data_core.medical)
if((R.fields["name"] == active1.fields["name"] || R.fields["id"] == active1.fields["id"]))
qdel(R)
qdel(active1)
@@ -282,12 +282,12 @@
active2.fields["notes"] = new_notes
if("d_rec")
var/datum/data/record/general_record = locate(params["d_rec"] || "")
- if(!data_core.general.Find(general_record))
+ if(!GLOB.data_core.general.Find(general_record))
set_temp("Record not found.", "danger")
return
var/datum/data/record/security_record
- for(var/datum/data/record/M in data_core.security)
+ for(var/datum/data/record/M in GLOB.data_core.security)
if(M.fields["name"] == general_record.fields["name"] && M.fields["id"] == general_record.fields["id"])
security_record = M
break
@@ -309,7 +309,7 @@
R.fields["ma_crim_d"] = "No major crime convictions."
R.fields["notes"] = "No notes."
R.fields["notes"] = "No notes."
- data_core.security += R
+ GLOB.data_core.security += R
active2 = R
screen = SEC_DATA_RECORD
set_temp("Security record created.", "success")
@@ -329,14 +329,14 @@
if(!length(t1))
return
- for(var/datum/data/record/R in data_core.general)
+ for(var/datum/data/record/R in GLOB.data_core.general)
if(t1 == lowertext(R.fields["name"]) || t1 == lowertext(R.fields["id"]) || t1 == lowertext(R.fields["fingerprint"]))
active1 = R
break
if(!active1)
set_temp("Security record not found. You must enter the person's exact name, ID, or fingerprint.", "danger")
return
- for(var/datum/data/record/E in data_core.security)
+ for(var/datum/data/record/E in GLOB.data_core.security)
if(E.fields["name"] == active1.fields["name"] && E.fields["id"] == active1.fields["id"])
active2 = E
break
@@ -433,7 +433,7 @@
/obj/machinery/computer/secure_data/proc/print_finish()
var/obj/item/paper/P = new(loc)
P.info = "" + span_bold("Security Record") + "
"
- if(istype(active1, /datum/data/record) && data_core.general.Find(active1))
+ if(istype(active1, /datum/data/record) && GLOB.data_core.general.Find(active1))
P.info += {"Name: [active1.fields["name"]] ID: [active1.fields["id"]]
\nSex: [active1.fields["sex"]]
\nSpecies: [active1.fields["species"]]
@@ -443,7 +443,7 @@
\nMental Status: [active1.fields["m_stat"]]
"}
else
P.info += span_bold("General Record Lost!") + "
"
- if(istype(active2, /datum/data/record) && data_core.security.Find(active2))
+ if(istype(active2, /datum/data/record) && GLOB.data_core.security.Find(active2))
P.info += {"
\nSecurity Data
\nCriminal Status: [active2.fields["criminal"]]
\n
\nMinor Crimes: [active2.fields["mi_crim"]]
@@ -494,7 +494,7 @@
..(severity)
return
- for(var/datum/data/record/R in data_core.security)
+ for(var/datum/data/record/R in GLOB.data_core.security)
if(prob(10/severity))
switch(rand(1,6))
if(1)
diff --git a/code/game/machinery/computer/skills.dm b/code/game/machinery/computer/skills.dm
index bfab1cb8b8..2cade92a9a 100644
--- a/code/game/machinery/computer/skills.dm
+++ b/code/game/machinery/computer/skills.dm
@@ -98,10 +98,10 @@
if(authenticated)
switch(screen)
if(GENERAL_RECORD_LIST)
- if(!isnull(data_core.general))
+ if(!isnull(GLOB.data_core.general))
var/list/records = list()
data["records"] = records
- for(var/datum/data/record/R in sortRecord(data_core.general))
+ for(var/datum/data/record/R in sortRecord(GLOB.data_core.general))
records[++records.len] = list(
"ref" = "\ref[R]",
"id" = R.fields["id"],
@@ -110,7 +110,7 @@
if(GENERAL_RECORD_DATA)
var/list/general = list()
data["general"] = general
- if(istype(active1, /datum/data/record) && data_core.general.Find(active1))
+ if(istype(active1, /datum/data/record) && GLOB.data_core.general.Find(active1))
var/list/fields = list()
general["fields"] = fields
fields[++fields.len] = FIELD("Name", active1.fields["name"], "name")
@@ -149,7 +149,7 @@
add_fingerprint(ui.user)
- if(!data_core.general.Find(active1))
+ if(!GLOB.data_core.general.Find(active1))
active1 = null
. = TRUE
@@ -211,7 +211,7 @@
if("del_all")
if(GLOB.PDA_Manifest)
GLOB.PDA_Manifest.Cut()
- for(var/datum/data/record/R in data_core.general)
+ for(var/datum/data/record/R in GLOB.data_core.general)
qdel(R)
set_temp("All employment records deleted.")
if("sync_r")
@@ -228,14 +228,14 @@
if(GLOB.PDA_Manifest)
GLOB.PDA_Manifest.Cut()
if(active1)
- for(var/datum/data/record/R in data_core.medical)
+ for(var/datum/data/record/R in GLOB.data_core.medical)
if ((R.fields["name"] == active1.fields["name"] || R.fields["id"] == active1.fields["id"]))
qdel(R)
set_temp("Employment record deleted.")
QDEL_NULL(active1)
if("d_rec")
var/datum/data/record/general_record = locate(params["d_rec"] || "")
- if(!data_core.general.Find(general_record))
+ if(!GLOB.data_core.general.Find(general_record))
set_temp("Record not found.", "danger")
return
@@ -244,7 +244,7 @@
if("new")
if(GLOB.PDA_Manifest)
GLOB.PDA_Manifest.Cut()
- active1 = data_core.CreateGeneralRecord()
+ active1 = GLOB.data_core.CreateGeneralRecord()
screen = GENERAL_RECORD_DATA
set_temp("Employment record created.", "success")
if("del_c")
@@ -328,7 +328,7 @@
/obj/machinery/computer/skills/proc/print_finish()
var/obj/item/paper/P = new(loc)
P.info = "" + span_bold("Medical Record") + "
"
- if(istype(active1, /datum/data/record) && data_core.general.Find(active1))
+ if(istype(active1, /datum/data/record) && GLOB.data_core.general.Find(active1))
P.info += {"Name: [active1.fields["name"]] ID: [active1.fields["id"]]
\nSex: [active1.fields["sex"]]
\nSpecies: [active1.fields["species"]]
@@ -371,7 +371,7 @@
..(severity)
return
- for(var/datum/data/record/R in data_core.security)
+ for(var/datum/data/record/R in GLOB.data_core.security)
if(prob(10/severity))
switch(rand(1,6))
if(1)
diff --git a/code/game/machinery/computer/specops_shuttle.dm b/code/game/machinery/computer/specops_shuttle.dm
index a2132b7d9b..8840b5db1a 100644
--- a/code/game/machinery/computer/specops_shuttle.dm
+++ b/code/game/machinery/computer/specops_shuttle.dm
@@ -92,7 +92,7 @@ var/specops_shuttle_timeleft = 0
specops_shuttle_at_station = 0
- for(var/obj/machinery/computer/specops_shuttle/S in machines)
+ for(var/obj/machinery/computer/specops_shuttle/S in GLOB.machines)
S.specops_shuttle_timereset = world.time + SPECOPS_RETURN_DELAY
qdel(announcer)
@@ -233,7 +233,7 @@ var/specops_shuttle_timeleft = 0
var/mob/M = locate(/mob) in T
to_chat(M, span_notice("You have arrived to [station_name()]. Commence operation!"))
- for(var/obj/machinery/computer/specops_shuttle/S in machines)
+ for(var/obj/machinery/computer/specops_shuttle/S in GLOB.machines)
S.specops_shuttle_timereset = world.time + SPECOPS_RETURN_DELAY
qdel(announcer)
@@ -241,7 +241,7 @@ var/specops_shuttle_timeleft = 0
/proc/specops_can_move()
if(specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom)
return 0
- for(var/obj/machinery/computer/specops_shuttle/S in machines)
+ for(var/obj/machinery/computer/specops_shuttle/S in GLOB.machines)
if(world.timeofday <= S.specops_shuttle_timereset)
return 0
return 1
diff --git a/code/game/machinery/computer/timeclock_vr.dm b/code/game/machinery/computer/timeclock_vr.dm
index e76ffae802..8c9a4aaea3 100644
--- a/code/game/machinery/computer/timeclock_vr.dm
+++ b/code/game/machinery/computer/timeclock_vr.dm
@@ -162,14 +162,14 @@
/obj/machinery/computer/timeclock/proc/isOpenOnDutyJob(var/mob/user, var/department, var/datum/job/job)
return job \
- && job.is_position_available() \
- && !job.whitelist_only \
- && !jobban_isbanned(user,job.title) \
- && job.player_old_enough(user.client) \
- && job.player_has_enough_playtime(user.client) \
- && job.pto_type == department \
- && !job.disallow_jobhop \
- && job.timeoff_factor > 0
+ && job.is_position_available() \
+ && !job.whitelist_only \
+ && !jobban_isbanned(user,job.title) \
+ && job.player_old_enough(user.client) \
+ && job.player_has_enough_playtime(user.client) \
+ && job.pto_type == department \
+ && !job.disallow_jobhop \
+ && job.timeoff_factor > 0
/obj/machinery/computer/timeclock/proc/makeOnDuty(var/newrank, var/newassignment, var/mob/user)
var/datum/job/oldjob = job_master.GetJob(card.rank)
@@ -193,7 +193,7 @@
card.rank = newjob.title
card.assignment = newassignment
card.name = text("[card.registered_name]'s ID Card ([card.assignment])")
- data_core.manifest_modify(card.registered_name, card.assignment, card.rank)
+ GLOB.data_core.manifest_modify(card.registered_name, card.assignment, card.rank)
card.last_job_switch = world.time
callHook("reassign_employee", list(card))
newjob.current_positions++
@@ -219,7 +219,7 @@
card.rank = ptojob.title
card.assignment = ptojob.title
card.name = text("[card.registered_name]'s ID Card ([card.assignment])")
- data_core.manifest_modify(card.registered_name, card.assignment, card.rank)
+ GLOB.data_core.manifest_modify(card.registered_name, card.assignment, card.rank)
card.last_job_switch = world.time
callHook("reassign_employee", list(card))
var/mob/living/carbon/human/H = user
diff --git a/code/game/machinery/computer3/computers/card.dm b/code/game/machinery/computer3/computers/card.dm
index a3c6d9c827..37a8e637ce 100644
--- a/code/game/machinery/computer3/computers/card.dm
+++ b/code/game/machinery/computer3/computers/card.dm
@@ -180,7 +180,7 @@
// assume linked_db since called by interact()
var/crew = ""
var/list/L = list()
- for (var/datum/data/record/t in data_core.general)
+ for (var/datum/data/record/t in GLOB.data_core.general)
var/R = t.fields["name"] + " - " + t.fields["rank"]
L += R
for(var/R in sortList(L))
@@ -278,7 +278,7 @@
var/obj/item/paper/P = new /obj/item/paper( computer.loc )
P.info = span_bold("Crew Manifest:") + "
"
var/list/L = list()
- for (var/datum/data/record/t in data_core.general)
+ for (var/datum/data/record/t in GLOB.data_core.general)
var/R = t.fields["name"] + " - " + t.fields["rank"]
L += R
for(var/R in sortList(L))
diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm
index bb1e0d74da..1664e6ab0c 100644
--- a/code/game/machinery/cryopod.dm
+++ b/code/game/machinery/cryopod.dm
@@ -448,7 +448,7 @@
preserve = 1
if(istype(W,/obj/item/implant/health))
- for(var/obj/machinery/computer/cloning/com in machines)
+ for(var/obj/machinery/computer/cloning/com in GLOB.machines)
for(var/datum/dna2/record/R in com.records)
if(locate(R.implant) == W)
qdel(R)
@@ -504,26 +504,26 @@
if(GLOB.PDA_Manifest.len)
GLOB.PDA_Manifest.Cut()
- for(var/datum/data/record/R in data_core.medical)
+ for(var/datum/data/record/R in GLOB.data_core.medical)
if((R.fields["name"] == to_despawn.real_name))
qdel(R)
- for(var/datum/data/record/T in data_core.security)
+ for(var/datum/data/record/T in GLOB.data_core.security)
if((T.fields["name"] == to_despawn.real_name))
qdel(T)
- for(var/datum/data/record/G in data_core.general)
+ for(var/datum/data/record/G in GLOB.data_core.general)
if((G.fields["name"] == to_despawn.real_name))
qdel(G)
// Also check the hidden version of each datacore, if they're an offmap role.
var/datum/job/J = SSjob.get_job(job)
if(J?.offmap_spawn)
- for(var/datum/data/record/R in data_core.hidden_general)
+ for(var/datum/data/record/R in GLOB.data_core.hidden_general)
if((R.fields["name"] == to_despawn.real_name))
qdel(R)
- for(var/datum/data/record/T in data_core.hidden_security)
+ for(var/datum/data/record/T in GLOB.data_core.hidden_security)
if((T.fields["name"] == to_despawn.real_name))
qdel(T)
- for(var/datum/data/record/G in data_core.hidden_medical)
+ for(var/datum/data/record/G in GLOB.data_core.hidden_medical)
if((G.fields["name"] == to_despawn.real_name))
qdel(G)
diff --git a/code/game/machinery/door_control.dm b/code/game/machinery/door_control.dm
index 3a49b074bf..0a21f0cec5 100644
--- a/code/game/machinery/door_control.dm
+++ b/code/game/machinery/door_control.dm
@@ -93,7 +93,7 @@
*/
/obj/machinery/button/remote/airlock/trigger()
- for(var/obj/machinery/door/airlock/D in machines)
+ for(var/obj/machinery/door/airlock/D in GLOB.machines)
if(D.id_tag == id)
if(specialfunctions & OPEN)
if(D.density)
@@ -138,7 +138,7 @@
desc = "It controls blast doors, remotely."
/obj/machinery/button/remote/blast_door/trigger()
- for(var/obj/machinery/door/blast/M in machines)
+ for(var/obj/machinery/door/blast/M in GLOB.machines)
if(M.id == id)
if(M.density)
spawn(0)
@@ -192,7 +192,7 @@
desc = "It controls emitters, remotely."
/obj/machinery/button/remote/emitter/trigger(mob/user as mob)
- for(var/obj/machinery/power/emitter/E in machines)
+ for(var/obj/machinery/power/emitter/E in GLOB.machines)
if(E.id == id)
spawn(0)
E.activate(user)
@@ -211,7 +211,7 @@
active = 1
update_icon()
- for(var/obj/machinery/door/blast/M in machines)
+ for(var/obj/machinery/door/blast/M in GLOB.machines)
if(M.id == id)
spawn(0)
M.open()
@@ -219,13 +219,13 @@
sleep(20)
- for(var/obj/machinery/mass_driver/M in machines)
+ for(var/obj/machinery/mass_driver/M in GLOB.machines)
if(M.id == id)
M.drive()
sleep(50)
- for(var/obj/machinery/door/blast/M in machines)
+ for(var/obj/machinery/door/blast/M in GLOB.machines)
if(M.id == id)
spawn(0)
M.close()
@@ -251,7 +251,7 @@
icon = 'icons/obj/stationobjs_vr.dmi' // VOREStation Edit
/obj/machinery/button/remote/shields/trigger(var/mob/user)
- for(var/obj/machinery/shield_gen/SG in machines)
+ for(var/obj/machinery/shield_gen/SG in GLOB.machines)
if(SG.id == id)
spawn(0)
if(SG?.anchored)
@@ -267,7 +267,7 @@
active_power_usage = 0
/obj/machinery/button/remote/airlock/release/trigger()
- for(var/obj/machinery/door/airlock/D in machines)
+ for(var/obj/machinery/door/airlock/D in GLOB.machines)
if(D.id_tag == id)
if(D.locked)
D.unlock(1)
diff --git a/code/game/machinery/doorbell_vr.dm b/code/game/machinery/doorbell_vr.dm
index 25fdb71de4..95cd1c3a3f 100644
--- a/code/game/machinery/doorbell_vr.dm
+++ b/code/game/machinery/doorbell_vr.dm
@@ -120,7 +120,7 @@
use_power(5)
flick("doorbell-active", src)
- for(var/obj/machinery/doorbell_chime/M in machines)
+ for(var/obj/machinery/doorbell_chime/M in GLOB.machines)
if(M.id_tag == id)
M.chime()
diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm
index 9b1d163f70..1f2262f896 100644
--- a/code/game/machinery/doors/airlock.dm
+++ b/code/game/machinery/doors/airlock.dm
@@ -1554,7 +1554,7 @@ About the new airlock wires panel:
. = ..()
if(src.closeOtherId != null)
- for (var/obj/machinery/door/airlock/A in machines)
+ for (var/obj/machinery/door/airlock/A in GLOB.machines)
if(A.closeOtherId == src.closeOtherId && A != src)
src.closeOther = A
break
diff --git a/code/game/machinery/doors/brigdoors.dm b/code/game/machinery/doors/brigdoors.dm
index cc48bbe4b5..7bfbd9c1c5 100644
--- a/code/game/machinery/doors/brigdoors.dm
+++ b/code/game/machinery/doors/brigdoors.dm
@@ -43,11 +43,11 @@
/obj/machinery/door_timer/LateInitialize()
. = ..()
- for(var/obj/machinery/door/window/brigdoor/M in machines)
+ for(var/obj/machinery/door/window/brigdoor/M in GLOB.machines)
if(M.id == id)
LAZYADD(targets,M)
- for(var/obj/machinery/flasher/F in machines)
+ for(var/obj/machinery/flasher/F in GLOB.machines)
if(F.id == id)
LAZYADD(targets,F)
diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm
index 135ccde485..597e138491 100644
--- a/code/game/machinery/doors/door.dm
+++ b/code/game/machinery/doors/door.dm
@@ -421,7 +421,7 @@
/obj/machinery/door/proc/next_close_wait()
var/lowest_temp = T20C
var/highest_temp = T0C
- for(var/D in cardinal)
+ for(var/D in GLOB.cardinal)
var/turf/target = get_step(loc, D)
if(!target.density)
var/datum/gas_mixture/airmix = target.return_air()
diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm
index 2adb895d97..75b5feacb9 100644
--- a/code/game/machinery/doors/firedoor.dm
+++ b/code/game/machinery/doors/firedoor.dm
@@ -65,7 +65,7 @@
LAZYADD(A.all_doors, src)
areas_added = list(A)
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
A = get_area(get_step(src,direction))
if(istype(A) && !(A in areas_added))
LAZYADD(A.all_doors, src)
@@ -466,7 +466,7 @@
add_overlay("palert")
if(dir_alerts)
for(var/d=1;d<=4;d++)
- var/cdir = cardinal[d]
+ var/cdir = GLOB.cardinal[d]
for(var/i=1;i<=ALERT_STATES.len;i++)
if(dir_alerts[d] & (1<<(i-1)))
add_overlay(new/icon(icon,"alert_[ALERT_STATES[i]]", dir=cdir))
diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm
index ae6fce9af3..496720b9ef 100644
--- a/code/game/machinery/doors/windowdoor.dm
+++ b/code/game/machinery/doors/windowdoor.dm
@@ -85,7 +85,7 @@
/obj/machinery/door/window/CanPass(atom/movable/mover, turf/target)
if(istype(mover) && mover.checkpass(PASSGLASS))
return TRUE
- if(get_dir(mover, target) == reverse_dir[dir]) // From elsewhere to here, can't move against our dir
+ if(get_dir(mover, target) == GLOB.reverse_dir[dir]) // From elsewhere to here, can't move against our dir
return !density
return TRUE
//CHOMPEdit Begin
diff --git a/code/game/machinery/exonet_node.dm b/code/game/machinery/exonet_node.dm
index cfbd486b57..0e18f2f3b3 100644
--- a/code/game/machinery/exonet_node.dm
+++ b/code/game/machinery/exonet_node.dm
@@ -194,7 +194,7 @@
// Parameters: None
// Description: Helper proc to get a reference to an Exonet node.
/proc/get_exonet_node()
- for(var/obj/machinery/exonet_node/E in machines)
+ for(var/obj/machinery/exonet_node/E in GLOB.machines)
if(E.on)
return E
diff --git a/code/game/machinery/fire_alarm.dm b/code/game/machinery/fire_alarm.dm
index 16b41e7533..17085f0031 100644
--- a/code/game/machinery/fire_alarm.dm
+++ b/code/game/machinery/fire_alarm.dm
@@ -229,7 +229,7 @@ FIRE ALARM
return
var/area/area = get_area(src)
if(!firewarn && !alarms_hidden) // CHOMPAdd
- global_announcer.autosay("Tripped [area]", "Fire Alarm Monitor", DEPARTMENT_ENGINEERING)
+ GLOB.global_announcer.autosay("Tripped [area]", "Fire Alarm Monitor", DEPARTMENT_ENGINEERING)
for(var/obj/machinery/firealarm/FA in area)
fire_alarm.triggerAlarm(loc, FA, duration, hidden = alarms_hidden)
FA.soundloop.start() // CHOMPEdit: Soundloop
diff --git a/code/game/machinery/flasher.dm b/code/game/machinery/flasher.dm
index f385c8e3d0..dd88ad93dc 100644
--- a/code/game/machinery/flasher.dm
+++ b/code/game/machinery/flasher.dm
@@ -143,7 +143,7 @@
active = 1
icon_state = "launcheract"
- for(var/obj/machinery/flasher/M in machines)
+ for(var/obj/machinery/flasher/M in GLOB.machines)
if(M.id == id)
spawn()
M.flash()
diff --git a/code/game/machinery/holosign.dm b/code/game/machinery/holosign.dm
index 1e497a7d0e..5513e29b02 100644
--- a/code/game/machinery/holosign.dm
+++ b/code/game/machinery/holosign.dm
@@ -74,7 +74,7 @@
active = !active
icon_state = "light[active]"
- for(var/obj/machinery/holosign/M in machines)
+ for(var/obj/machinery/holosign/M in GLOB.machines)
if(M.id == id)
spawn(0)
M.toggle()
diff --git a/code/game/machinery/igniter.dm b/code/game/machinery/igniter.dm
index 2e7a4e7aa4..e0fa2fb3e5 100755
--- a/code/game/machinery/igniter.dm
+++ b/code/game/machinery/igniter.dm
@@ -128,12 +128,12 @@
active = 1
icon_state = "launcheract"
- for(var/obj/machinery/sparker/M in machines)
+ for(var/obj/machinery/sparker/M in GLOB.machines)
if(M.id == id)
spawn(0)
M.ignite()
- for(var/obj/machinery/igniter/M in machines)
+ for(var/obj/machinery/igniter/M in GLOB.machines)
if(M.id == id)
use_power(50)
M.on = !(M.on)
diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm
index 27871c6800..3bd453d882 100644
--- a/code/game/machinery/machinery.dm
+++ b/code/game/machinery/machinery.dm
@@ -172,7 +172,7 @@ Class Procs:
pulse2.icon_state = "empdisable"
pulse2.name = "emp sparks"
pulse2.anchored = TRUE
- pulse2.set_dir(pick(cardinal))
+ pulse2.set_dir(pick(GLOB.cardinal))
spawn(10)
qdel(pulse2)
@@ -550,7 +550,7 @@ Class Procs:
A.forceMove(droploc)
if(scatter && isturf(droploc))
var/turf/T = droploc
- A.Move(get_step(T, pick(alldirs)))
+ A.Move(get_step(T, pick(GLOB.alldirs)))
playsound(src, 'sound/machines/machine_die_short.ogg')
spark_system.start()
diff --git a/code/game/machinery/magnet.dm b/code/game/machinery/magnet.dm
index 8b5bb2d497..75e7f88a2b 100644
--- a/code/game/machinery/magnet.dm
+++ b/code/game/machinery/magnet.dm
@@ -215,7 +215,7 @@
. = ..()
if(autolink)
- for(var/obj/machinery/magnetic_module/M in machines)
+ for(var/obj/machinery/magnetic_module/M in GLOB.machines)
if(M.freq == frequency && M.code == code)
magnets.Add(M)
@@ -230,7 +230,7 @@
/obj/machinery/magnetic_controller/process()
if(magnets.len == 0 && autolink)
- for(var/obj/machinery/magnetic_module/M in machines)
+ for(var/obj/machinery/magnetic_module/M in GLOB.machines)
if(M.freq == frequency && M.code == code)
magnets.Add(M)
diff --git a/code/game/machinery/neonsign.dm b/code/game/machinery/neonsign.dm
index bf823bed18..c4fa1b39b4 100644
--- a/code/game/machinery/neonsign.dm
+++ b/code/game/machinery/neonsign.dm
@@ -65,7 +65,7 @@
active = !active
icon_state = "light[active]"
- for(var/obj/machinery/neonsign/M in machines)
+ for(var/obj/machinery/neonsign/M in GLOB.machines)
if(M.id == id)
spawn(0)
M.toggle()
diff --git a/code/game/machinery/nuclear_bomb.dm b/code/game/machinery/nuclear_bomb.dm
index 0f24739e4a..259399beec 100644
--- a/code/game/machinery/nuclear_bomb.dm
+++ b/code/game/machinery/nuclear_bomb.dm
@@ -423,8 +423,8 @@ GLOBAL_VAR(bomb_set)
GLOB.nuke_disks += src
/obj/item/disk/nuclear/Destroy()
- if(!GLOB.nuke_disks.len && blobstart.len > 0)
- var/obj/D = new /obj/item/disk/nuclear(pick(blobstart))
+ if(!GLOB.nuke_disks.len && GLOB.blobstart.len > 0)
+ var/obj/D = new /obj/item/disk/nuclear(pick(GLOB.blobstart))
message_admins("[src], the last authentication disk, has been destroyed. Spawning [D] at ([D.x], [D.y], [D.z]).")
log_game("[src], the last authentication disk, has been destroyed. Spawning [D] at ([D.x], [D.y], [D.z]).")
. = ..()
diff --git a/code/game/machinery/pandemic.dm b/code/game/machinery/pandemic.dm
index 55db46704a..dd245e0796 100644
--- a/code/game/machinery/pandemic.dm
+++ b/code/game/machinery/pandemic.dm
@@ -207,7 +207,7 @@
if(!new_name)
return
A.AssignName(new_name)
- for(var/datum/disease/advance/AD in active_diseases)
+ for(var/datum/disease/advance/AD in GLOB.active_diseases)
AD.Refresh()
update_tgui_static_data(ui.user)
if("switch_strain")
diff --git a/code/game/machinery/pipe/construction.dm b/code/game/machinery/pipe/construction.dm
index 8631ac873b..39a9574ab6 100644
--- a/code/game/machinery/pipe/construction.dm
+++ b/code/game/machinery/pipe/construction.dm
@@ -163,7 +163,7 @@ Buildable meters
set_dir(EAST)
/obj/item/pipe/trinary/flippable/fixdir()
- if(dir in cornerdirs)
+ if(dir in GLOB.cornerdirs)
set_dir(turn(dir, 45))
/obj/item/pipe/attack_self(mob/user)
diff --git a/code/game/machinery/records_scanner.dm b/code/game/machinery/records_scanner.dm
index 314714e67f..bf63e8819a 100644
--- a/code/game/machinery/records_scanner.dm
+++ b/code/game/machinery/records_scanner.dm
@@ -78,7 +78,7 @@
print.info = text
print.stamped = 1
- for(var/datum/data/record/test in data_core.general)
+ for(var/datum/data/record/test in GLOB.data_core.general)
if(test.fields["name"] == mname)
return
@@ -134,7 +134,7 @@
L.fields["image"] = getFlatIcon(user,0)//What the person looks like. Naked, in this case.
//End locked reporting
- data_core.general += G
+ GLOB.data_core.general += G
data_core.medical += M
data_core.security += S
data_core.locked += L
diff --git a/code/game/machinery/requests_console.dm b/code/game/machinery/requests_console.dm
index 3b98470a56..fadd7a0540 100644
--- a/code/game/machinery/requests_console.dm
+++ b/code/game/machinery/requests_console.dm
@@ -184,7 +184,7 @@ GLOBAL_LIST_EMPTY_TYPED(allConsoles, /obj/machinery/requests_console)
var/log_msg = message
var/pass = 0
screen = RCS_SENTFAIL
- for(var/obj/machinery/message_server/MS in machines)
+ for(var/obj/machinery/message_server/MS in GLOB.machines)
if(!MS.active)
continue
MS.send_rc_message(ckey(params["department"]), department, log_msg, msgStamped, msgVerified, priority)
diff --git a/code/game/machinery/status_display_ai.dm b/code/game/machinery/status_display_ai.dm
index 988e3458a0..2b5383740f 100644
--- a/code/game/machinery/status_display_ai.dm
+++ b/code/game/machinery/status_display_ai.dm
@@ -44,7 +44,7 @@ var/list/ai_status_emotions = list(
var/emote = tgui_input_list(user, "Please, select a status:", "AI Status", ai_emotions)
if(!emote)
return
- for (var/obj/machinery/M in machines) //change status
+ for (var/obj/machinery/M in GLOB.machines) //change status
if(istype(M, /obj/machinery/ai_status_display))
var/obj/machinery/ai_status_display/AISD = M
AISD.emotion = emote
diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm
index 1a85bffaff..b766be31f6 100644
--- a/code/game/machinery/teleporter.dm
+++ b/code/game/machinery/teleporter.dm
@@ -23,10 +23,10 @@
var/obj/machinery/teleport/hub/hub = null
// Search surrounding turfs for the station, and then search the station's surrounding turfs for the hub.
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
station = locate(/obj/machinery/teleport/station, get_step(src, direction))
if(station)
- for(direction in cardinal)
+ for(direction in GLOB.cardinal)
hub = locate(/obj/machinery/teleport/hub, get_step(station, direction))
if(hub)
break
diff --git a/code/game/machinery/wall_frames.dm b/code/game/machinery/wall_frames.dm
index 6c48fa0245..8a88ee9293 100644
--- a/code/game/machinery/wall_frames.dm
+++ b/code/game/machinery/wall_frames.dm
@@ -41,7 +41,7 @@
var/ndir
ndir = user.dir
- if(!(ndir in cardinal))
+ if(!(ndir in GLOB.cardinal))
return
var/obj/machinery/M = new build_machine_type(get_turf(src.loc), ndir, 1, frame_type)
@@ -64,7 +64,7 @@
else
ndir = get_dir(on_wall, user)
- if(!(ndir in cardinal))
+ if(!(ndir in GLOB.cardinal))
return
var/turf/loc = get_turf(user)
diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm
index 39c5cd39ac..8f3aecbb31 100644
--- a/code/game/mecha/mecha.dm
+++ b/code/game/mecha/mecha.dm
@@ -2351,7 +2351,7 @@
/obj/mecha/proc/get_log_html()
var/output = "[src.name] Log"
for(var/list/entry in log)
- output += {"[time2text(entry["time"],"DDD MMM DD hh:mm:ss")] [game_year]
+ output += {"[time2text(entry["time"],"DDD MMM DD hh:mm:ss")] [GLOB.game_year]
[entry["message"]]
"}
output += ""
@@ -2362,7 +2362,7 @@
for(var/list/entry in log)
data.Add(list(list(
"time" = time2text(entry["time"], "DDD MMM DD hh:mm:ss"),
- "year" = game_year,
+ "year" = GLOB.game_year,
"message" = entry["message"],
)))
return data
diff --git a/code/game/objects/effects/alien/aliens.dm b/code/game/objects/effects/alien/aliens.dm
index 2bfce0ae4d..c6b37b4795 100644
--- a/code/game/objects/effects/alien/aliens.dm
+++ b/code/game/objects/effects/alien/aliens.dm
@@ -145,7 +145,7 @@
if(get_dist(linked_node, src) > linked_node.node_range)
return
- for(var/dirn in cardinal)
+ for(var/dirn in GLOB.cardinal)
var/turf/T1 = get_turf(src)
var/turf/T2 = get_step(src, dirn)
diff --git a/code/game/objects/effects/chem/chemsmoke.dm b/code/game/objects/effects/chem/chemsmoke.dm
index ff8c096172..37df00c062 100644
--- a/code/game/objects/effects/chem/chemsmoke.dm
+++ b/code/game/objects/effects/chem/chemsmoke.dm
@@ -175,7 +175,7 @@
chemholder.reagents.trans_to_obj(smoke, chemholder.reagents.total_volume / dist, copy = 1) //copy reagents to the smoke so mob/breathe() can handle inhaling the reagents
smoke.icon = I
smoke.plane = ABOVE_PLANE
- smoke.set_dir(pick(cardinal))
+ smoke.set_dir(pick(GLOB.cardinal))
smoke.pixel_x = -32 + rand(-8, 8)
smoke.pixel_y = -32 + rand(-8, 8)
walk_to(smoke, T)
@@ -208,7 +208,7 @@
while(pending.len)
for(var/turf/current in pending)
- for(var/D in cardinal)
+ for(var/D in GLOB.cardinal)
var/turf/target = get_step(current, D)
if(wallList)
if(istype(target, /turf/simulated/wall))
diff --git a/code/game/objects/effects/chem/foam.dm b/code/game/objects/effects/chem/foam.dm
index 489f40ad6d..ab80979552 100644
--- a/code/game/objects/effects/chem/foam.dm
+++ b/code/game/objects/effects/chem/foam.dm
@@ -53,7 +53,7 @@
if(--amount < 0)
return
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
var/turf/T = get_step(src, direction)
if(!T)
continue
diff --git a/code/game/objects/effects/confetti_vr.dm b/code/game/objects/effects/confetti_vr.dm
index 854d3c7c28..ae6d54014b 100644
--- a/code/game/objects/effects/confetti_vr.dm
+++ b/code/game/objects/effects/confetti_vr.dm
@@ -32,9 +32,9 @@
src.total_sparks++
var/direction
if(src.cardinals)
- direction = pick(cardinal)
+ direction = pick(GLOB.cardinal)
else
- direction = pick(alldirs)
+ direction = pick(GLOB.alldirs)
for(i=0, i1)
return
var/ndir = get_dir(user, on_wall)
- if (!(ndir in cardinal))
+ if (!(ndir in GLOB.cardinal))
return
var/turf/loc = get_turf(user)
var/area/A = loc.loc
diff --git a/code/game/objects/items/blueprints.dm b/code/game/objects/items/blueprints.dm
index ac9f4a3c6f..e0fb131ea4 100644
--- a/code/game/objects/items/blueprints.dm
+++ b/code/game/objects/items/blueprints.dm
@@ -253,7 +253,7 @@
return ROOM_ERR_TOOLARGE
var/turf/T = pending[1] //why byond havent list::pop()?
pending -= T
- for (var/dir in cardinal)
+ for (var/dir in GLOB.cardinal)
var/turf/NT = get_step(T,dir)
if (!isturf(NT) || (NT in found) || (NT in pending))
continue
diff --git a/code/game/objects/items/blueprints_vr.dm b/code/game/objects/items/blueprints_vr.dm
index 92660c2135..c276a0d10f 100644
--- a/code/game/objects/items/blueprints_vr.dm
+++ b/code/game/objects/items/blueprints_vr.dm
@@ -535,7 +535,7 @@
var/list/zLevels = using_map.station_levels.Copy()
for(var/datum/planet/P in SSplanets.planets)
zLevels -= P.expected_z_levels
- for(var/obj/machinery/gravity_generator/main/GG in machines)
+ for(var/obj/machinery/gravity_generator/main/GG in GLOB.machines)
if(GG.z in zLevels)
GG.update_areas()
return TRUE
@@ -678,7 +678,7 @@
return ROOM_ERR_TOOLARGE
var/turf/T = pending[1] //why byond havent list::pop()?
pending -= T
- for (var/dir in cardinal)
+ for (var/dir in GLOB.cardinal)
var/turf/NT = get_step(T,dir)
if (!isturf(NT) || (NT in found) || (NT in pending))
continue
@@ -835,7 +835,7 @@
return 1 //TOOLARGE
var/turf/T = pending[1]
pending -= T
- for (var/dir in cardinal)
+ for (var/dir in GLOB.cardinal)
var/turf/NT = get_step(T,dir)
if (!isturf(NT) || (NT in found) || (NT in pending))
continue
@@ -936,7 +936,7 @@
var/list/zLevels = using_map.station_levels.Copy()
for(var/datum/planet/P in SSplanets.planets)
zLevels -= P.expected_z_levels
- for(var/obj/machinery/gravity_generator/main/GG in machines)
+ for(var/obj/machinery/gravity_generator/main/GG in GLOB.machines)
if(GG.z in zLevels)
GG.update_areas()
return
diff --git a/code/game/objects/items/devices/communicator/UI_tgui.dm b/code/game/objects/items/devices/communicator/UI_tgui.dm
index 986b549f7b..e6230bfd96 100644
--- a/code/game/objects/items/devices/communicator/UI_tgui.dm
+++ b/code/game/objects/items/devices/communicator/UI_tgui.dm
@@ -305,8 +305,8 @@
/obj/item/communicator/tgui_static_data(mob/user, datum/tgui/ui, datum/tgui_state/state)
var/list/data = ..()
// Update manifest'
- if(data_core)
- data_core.get_manifest_list()
+ if(GLOB.data_core)
+ GLOB.data_core.get_manifest_list()
data["manifest"] = GLOB.PDA_Manifest
data["mapRef"] = map_name
return data
diff --git a/code/game/objects/items/devices/communicator/helper.dm b/code/game/objects/items/devices/communicator/helper.dm
index 7831100805..c29399cb85 100644
--- a/code/game/objects/items/devices/communicator/helper.dm
+++ b/code/game/objects/items/devices/communicator/helper.dm
@@ -108,7 +108,7 @@
// Medical records
/obj/item/commcard/proc/get_med_records()
var/med_records[0]
- for(var/datum/data/record/M in sortRecord(data_core.medical))
+ for(var/datum/data/record/M in sortRecord(GLOB.data_core.medical))
var/record[0]
record[++record.len] = list("tab" = "Name", "val" = M.fields["name"])
record[++record.len] = list("tab" = "ID", "val" = M.fields["id"])
@@ -129,7 +129,7 @@
// Employment records
/obj/item/commcard/proc/get_emp_records()
var/emp_records[0]
- for(var/datum/data/record/G in sortRecord(data_core.general))
+ for(var/datum/data/record/G in sortRecord(GLOB.data_core.general))
var/record[0]
record[++record.len] = list("tab" = "Name", "val" = G.fields["name"])
record[++record.len] = list("tab" = "ID", "val" = G.fields["id"])
@@ -148,7 +148,7 @@
// Security records
/obj/item/commcard/proc/get_sec_records()
var/sec_records[0]
- for(var/datum/data/record/G in sortRecord(data_core.general))
+ for(var/datum/data/record/G in sortRecord(GLOB.data_core.general))
var/record[0]
record[++record.len] = list("tab" = "Name", "val" = G.fields[""])
record[++record.len] = list("tab" = "Sex", "val" = G.fields[""])
@@ -226,7 +226,7 @@
var/turf/T = get_turf(src)
if(T)
var/list/levels = using_map.get_map_levels(T.z, FALSE)
- for(var/obj/machinery/power/sensor/S in machines)
+ for(var/obj/machinery/power/sensor/S in GLOB.machines)
if((S.long_range) || (S.loc.z in levels) || (S.loc.z == T.z)) // Consoles have range on their Z-Level. Sensors with long_range var will work between Z levels.
if(S.name_tag == "#UNKN#") // Default name. Shouldn't happen!
warning("Powernet sensor with unset ID Tag! [S.x]X [S.y]Y [S.z]Z")
@@ -537,7 +537,7 @@
/obj/item/commcard/proc/find_blast_doors()
var/target_doors[0]
- for(var/obj/machinery/door/blast/B in machines)
+ for(var/obj/machinery/door/blast/B in GLOB.machines)
if(B.id == internal_data["shuttle_door_code"])
target_doors += B
diff --git a/code/game/objects/items/devices/holowarrant.dm b/code/game/objects/items/devices/holowarrant.dm
index bb437153c4..d10632eaeb 100644
--- a/code/game/objects/items/devices/holowarrant.dm
+++ b/code/game/objects/items/devices/holowarrant.dm
@@ -26,15 +26,15 @@
/obj/item/holowarrant/attack_self(mob/living/user as mob)
active = null
var/list/warrants = list()
- if(!isnull(data_core.general))
- for(var/datum/data/record/warrant/W in data_core.warrants)
+ if(!isnull(GLOB.data_core.general))
+ for(var/datum/data/record/warrant/W in GLOB.data_core.warrants)
warrants += W.fields["namewarrant"]
if(warrants.len == 0)
to_chat(user,span_notice("There are no warrants available"))
return
var/temp
temp = tgui_input_list(user, "Which warrant would you like to load?", "Warrant Selection", warrants)
- for(var/datum/data/record/warrant/W in data_core.warrants)
+ for(var/datum/data/record/warrant/W in GLOB.data_core.warrants)
if(W.fields["namewarrant"] == temp)
active = W
update_icon()
diff --git a/code/game/objects/items/devices/transfer_valve.dm b/code/game/objects/items/devices/transfer_valve.dm
index c4c267faa3..8c6035fbc7 100644
--- a/code/game/objects/items/devices/transfer_valve.dm
+++ b/code/game/objects/items/devices/transfer_valve.dm
@@ -48,7 +48,7 @@
A.holder = src
A.toggle_secure() //this calls update_icon(), which calls update_icon() on the holder (i.e. the bomb).
- bombers += "[key_name(user)] attached a [item] to a transfer valve."
+ GLOB.bombers += "[key_name(user)] attached a [item] to a transfer valve."
message_admins("[key_name_admin(user)] attached a [item] to a transfer valve. [ADMIN_JMP(location)]")
log_game("[key_name_admin(user)] attached a [item] to a transfer valve.")
attacher = user
@@ -207,7 +207,7 @@
last_touch_info = ADMIN_QUE(mob)
log_str += " Last touched by: [src.fingerprintslast][last_touch_info]"
- bombers += log_str
+ GLOB.bombers += log_str
message_admins(log_str, 0, 1)
log_game(log_str)
merge_gases()
diff --git a/code/game/objects/items/devices/uplink.dm b/code/game/objects/items/devices/uplink.dm
index eb998f72f2..48228b7abc 100644
--- a/code/game/objects/items/devices/uplink.dm
+++ b/code/game/objects/items/devices/uplink.dm
@@ -130,7 +130,7 @@
data["locked_records"] = null
if(exploit_id)
- for(var/datum/data/record/L in data_core.locked)
+ for(var/datum/data/record/L in GLOB.data_core.locked)
if(L.fields["id"] == exploit_id)
data["exploit"] = list() // Setting this to equal L.fields passes it's variables that are lists as reference instead of value.
// We trade off being able to automatically add shit for more control over what gets passed to json
@@ -155,7 +155,7 @@
break
else
var/list/permanentData = list()
- for(var/datum/data/record/L in sortRecord(data_core.locked))
+ for(var/datum/data/record/L in sortRecord(GLOB.data_core.locked))
permanentData.Add(list(list(
"name" = L.fields["name"],
"id" = L.fields["id"]
diff --git a/code/game/objects/items/toys/toys_vr.dm b/code/game/objects/items/toys/toys_vr.dm
index e372a2630c..d5c36ba7de 100644
--- a/code/game/objects/items/toys/toys_vr.dm
+++ b/code/game/objects/items/toys/toys_vr.dm
@@ -858,15 +858,15 @@
to_chat(user, span_warning("A snake popped out of [src]!"))
if(real == 0)
var/obj/item/toy/C = new /obj/item/toy/plushie/snakeplushie(get_turf(loc))
- C.throw_at(get_step(src, pick(alldirs)), 9, 1, src)
+ C.throw_at(get_step(src, pick(GLOB.alldirs)), 9, 1, src)
if(real == 1)
var/mob/living/simple_mob/C = new /mob/living/simple_mob/animal/passive/snake(get_turf(loc))
- C.throw_at(get_step(src, pick(alldirs)), 9, 1, src)
+ C.throw_at(get_step(src, pick(GLOB.alldirs)), 9, 1, src)
if(real == 2)
var/mob/living/simple_mob/C = new /mob/living/simple_mob/vore/aggressive/giant_snake(get_turf(loc))
- C.throw_at(get_step(src, pick(alldirs)), 9, 1, src)
+ C.throw_at(get_step(src, pick(GLOB.alldirs)), 9, 1, src)
playsound(src, 'sound/items/confetti.ogg', 50, 0)
icon_state = "tastybread_popped"
@@ -891,15 +891,15 @@
to_chat(user, span_warning("A snake popped out of [src]!"))
if(real == 0)
var/obj/item/toy/C = new /obj/item/toy/plushie/snakeplushie(get_turf(loc))
- C.throw_at(get_step(src, pick(alldirs)), 9, 1, src)
+ C.throw_at(get_step(src, pick(GLOB.alldirs)), 9, 1, src)
if(real == 1)
var/mob/living/simple_mob/C = new /mob/living/simple_mob/animal/passive/snake(get_turf(loc))
- C.throw_at(get_step(src, pick(alldirs)), 9, 1, src)
+ C.throw_at(get_step(src, pick(GLOB.alldirs)), 9, 1, src)
if(real == 2)
var/mob/living/simple_mob/C = new /mob/living/simple_mob/vore/aggressive/giant_snake(get_turf(loc))
- C.throw_at(get_step(src, pick(alldirs)), 9, 1, src)
+ C.throw_at(get_step(src, pick(GLOB.alldirs)), 9, 1, src)
playsound(src, 'sound/items/confetti.ogg', 50, 0)
icon_state = "tastybread_popped"
diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm
index c3afa07f13..558e84579b 100644
--- a/code/game/objects/items/weapons/AI_modules.dm
+++ b/code/game/objects/items/weapons/AI_modules.dm
@@ -128,7 +128,7 @@ AI MODULES
/obj/item/aiModule/proc/log_law_changes(var/mob/living/silicon/ai/target, var/mob/sender)
var/time = time2text(world.realtime,"hh:mm:ss")
- lawchanges.Add("[time] : [sender.name]([sender.key]) used [src.name] on [target.name]([target.key])")
+ GLOB.lawchanges.Add("[time] : [sender.name]([sender.key]) used [src.name] on [target.name]([target.key])")
log_and_message_admins("used [src.name] on [target.name]([target.key])")
/obj/item/aiModule/proc/addAdditionalLaws(var/mob/living/silicon/ai/target, var/mob/sender)
@@ -159,7 +159,7 @@ AI MODULES
/obj/item/aiModule/safeguard/addAdditionalLaws(var/mob/living/silicon/ai/target, var/mob/sender)
var/law = text("Safeguard []. Anyone threatening or attempting to harm [] is no longer to be considered a crew member, and is a threat which must be neutralized.", targetName, targetName)
target.add_supplied_law(9, law)
- lawchanges.Add("The law specified [targetName]")
+ GLOB.lawchanges.Add("The law specified [targetName]")
/******************** OneMember ********************/
@@ -266,7 +266,7 @@ AI MODULES
if(!lawpos || lawpos < MIN_SUPPLIED_LAW_NUMBER)
lawpos = MIN_SUPPLIED_LAW_NUMBER
target.add_supplied_law(lawpos, law)
- lawchanges.Add("The law was '[newFreeFormLaw]'")
+ GLOB.lawchanges.Add("The law was '[newFreeFormLaw]'")
/obj/item/aiModule/freeform/install(var/obj/machinery/computer/C, var/mob/living/user)
if(!newFreeFormLaw)
@@ -382,7 +382,7 @@ AI MODULES
/obj/item/aiModule/freeformcore/addAdditionalLaws(var/mob/living/silicon/ai/target, var/mob/sender)
var/law = "[newFreeFormLaw]"
target.add_inherent_law(law)
- lawchanges.Add("The law is '[newFreeFormLaw]'")
+ GLOB.lawchanges.Add("The law is '[newFreeFormLaw]'")
/obj/item/aiModule/freeformcore/install(var/obj/machinery/computer/C, var/mob/living/user)
if(!newFreeFormLaw)
@@ -407,7 +407,7 @@ AI MODULES
// ..() //We don't want this module reporting to the AI who dun it. --NEO
log_law_changes(target, sender)
- lawchanges.Add("The law is '[newFreeFormLaw]'")
+ GLOB.lawchanges.Add("The law is '[newFreeFormLaw]'")
to_chat(target, span_danger("BZZZZT"))
var/law = "[newFreeFormLaw]"
target.add_ion_law(law)
diff --git a/code/game/objects/items/weapons/picnic_blankets.dm b/code/game/objects/items/weapons/picnic_blankets.dm
index c6e63fdc72..e9133c299e 100644
--- a/code/game/objects/items/weapons/picnic_blankets.dm
+++ b/code/game/objects/items/weapons/picnic_blankets.dm
@@ -49,7 +49,7 @@
qdel(src)
/obj/structure/picnic_blanket_deployed/proc/unfold()
- var/dirs = alldirs
+ var/dirs = GLOB.alldirs
var/isTableTop //Controls whether to spawn things across tables, or on ground
var/doWeHaveTable //Helper var set to true if ANY obj is a table
var/anti_spam = FALSE //Helper var to avoid spamming people if they are mired in trash.
diff --git a/code/game/objects/items/weapons/policetape.dm b/code/game/objects/items/weapons/policetape.dm
index a45d44b1cc..d4766052fc 100644
--- a/code/game/objects/items/weapons/policetape.dm
+++ b/code/game/objects/items/weapons/policetape.dm
@@ -155,13 +155,13 @@ var/list/tape_roll_applications = list()
// spread tape in all directions, provided there is a wall/window
var/turf/T
var/possible_dirs = 0
- for(var/dir in cardinal)
+ for(var/dir in GLOB.cardinal)
T = get_step(start, dir)
if(T && T.density)
possible_dirs |= dir
else
for(var/obj/structure/window/W in T)
- if(W.is_fulltile() || W.dir == reverse_dir[dir])
+ if(W.is_fulltile() || W.dir == GLOB.reverse_dir[dir])
possible_dirs |= dir
for(var/obj/structure/window/window in start)
if(istype(window) && !window.is_fulltile())
@@ -215,12 +215,12 @@ var/list/tape_roll_applications = list()
else
continue
else if(cur == end)
- if(window.dir == reverse_dir[orientation])
+ if(window.dir == GLOB.reverse_dir[orientation])
can_place = 0
break
else
continue
- else if (window.dir == reverse_dir[orientation] || window.dir == orientation)
+ else if (window.dir == GLOB.reverse_dir[orientation] || window.dir == orientation)
can_place = 0
break
else
@@ -244,21 +244,21 @@ var/list/tape_roll_applications = list()
tapetest = 0
tape_dir = dir
if(cur == start)
- var/turf/T = get_step(start, reverse_dir[orientation])
+ var/turf/T = get_step(start, GLOB.reverse_dir[orientation])
if(T && !T.density)
tape_dir = orientation
for(var/obj/structure/window/W in T)
if(W.is_fulltile() || W.dir == orientation)
tape_dir = dir
for(var/obj/structure/window/window in cur)
- if(istype(window) && !window.is_fulltile() && window.dir == reverse_dir[orientation])
+ if(istype(window) && !window.is_fulltile() && window.dir == GLOB.reverse_dir[orientation])
tape_dir = dir
else if(cur == end)
var/turf/T = get_step(end, orientation)
if(T && !T.density)
- tape_dir = reverse_dir[orientation]
+ tape_dir = GLOB.reverse_dir[orientation]
for(var/obj/structure/window/W in T)
- if(W.is_fulltile() || W.dir == reverse_dir[orientation])
+ if(W.is_fulltile() || W.dir == GLOB.reverse_dir[orientation])
tape_dir = dir
for(var/obj/structure/window/window in cur)
if(istype(window) && !window.is_fulltile() && window.dir == orientation)
diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm
index 178c4c82f1..f28a5c09bf 100644
--- a/code/game/objects/items/weapons/stunbaton.dm
+++ b/code/game/objects/items/weapons/stunbaton.dm
@@ -210,7 +210,7 @@
if(ishuman(target))
var/mob/living/carbon/human/H = target
- H.forcesay(hit_appends)
+ H.forcesay(GLOB.hit_appends)
powercheck()
/obj/item/melee/baton/emp_act(severity)
diff --git a/code/game/objects/items/weapons/syndie.dm b/code/game/objects/items/weapons/syndie.dm
index f8023ae8e3..0221ac5e18 100644
--- a/code/game/objects/items/weapons/syndie.dm
+++ b/code/game/objects/items/weapons/syndie.dm
@@ -57,7 +57,7 @@
/obj/item/syndie/c4explosive/proc/do_detonate()
SHOULD_NOT_OVERRIDE(TRUE)
PRIVATE_PROC(TRUE)
- for(var/dirn in cardinal) //This is to guarantee that C4 at least breaks down all immediately adjacent walls and doors.
+ for(var/dirn in GLOB.cardinal) //This is to guarantee that C4 at least breaks down all immediately adjacent walls and doors.
var/turf/simulated/wall/T = get_step(src,dirn)
if(locate(/obj/machinery/door/airlock) in T)
var/obj/machinery/door/airlock/D = locate() in T
diff --git a/code/game/objects/items/weapons/tanks/tanks.dm b/code/game/objects/items/weapons/tanks/tanks.dm
index 3df6f5f4b2..edb893116f 100644
--- a/code/game/objects/items/weapons/tanks/tanks.dm
+++ b/code/game/objects/items/weapons/tanks/tanks.dm
@@ -176,7 +176,7 @@ var/list/global/tank_gauge_cache = list()
to_chat(user, span_notice("You begin attaching the assembly to \the [src]."))
if(do_after(user, 50, src))
to_chat(user, span_notice("You finish attaching the assembly to \the [src]."))
- bombers += "[key_name(user)] attached an assembly to a wired [src]. Temp: [src.air_contents.temperature-T0C]"
+ GLOB.bombers += "[key_name(user)] attached an assembly to a wired [src]. Temp: [src.air_contents.temperature-T0C]"
message_admins("[key_name_admin(user)] attached an assembly to a wired [src]. Temp: [src.air_contents.temperature-T0C]")
assemble_bomb(W,user)
else
@@ -195,7 +195,7 @@ var/list/global/tank_gauge_cache = list()
src.valve_welded = 1
src.leaking = 0
else
- bombers += "[key_name(user)] attempted to weld a [src]. [src.air_contents.temperature-T0C]"
+ GLOB.bombers += "[key_name(user)] attempted to weld a [src]. [src.air_contents.temperature-T0C]"
message_admins("[key_name_admin(user)] attempted to weld a [src]. [src.air_contents.temperature-T0C]")
if(WT.welding)
to_chat(user, span_danger("You accidentally rake \the [W] across \the [src]!"))
diff --git a/code/game/objects/items/weapons/tape.dm b/code/game/objects/items/weapons/tape.dm
index 9b32e590fc..1799332a2c 100644
--- a/code/game/objects/items/weapons/tape.dm
+++ b/code/game/objects/items/weapons/tape.dm
@@ -171,8 +171,8 @@
var/dir_offset = 0
if(target_turf != source_turf)
dir_offset = get_dir(source_turf, target_turf)
- if(!(dir_offset in cardinal))
- to_chat(user, "You cannot reach that from here.") // can only place stuck papers in cardinal directions, to
+ if(!(dir_offset in GLOB.cardinal))
+ to_chat(user, "You cannot reach that from here.") // can only place stuck papers in GLOB.cardinal directions, to
return // reduce papers around corners issue.
user.drop_from_inventory(src)
diff --git a/code/game/objects/items/weapons/teleportation.dm b/code/game/objects/items/weapons/teleportation.dm
index c44a4c008f..4159de2814 100644
--- a/code/game/objects/items/weapons/teleportation.dm
+++ b/code/game/objects/items/weapons/teleportation.dm
@@ -138,13 +138,13 @@ Frequency:
to_chat(user, span_notice("\The [src] is malfunctioning."))
return
var/list/L = list( )
- for(var/obj/machinery/teleport/hub/R in machines)
+ for(var/obj/machinery/teleport/hub/R in GLOB.machines)
var/obj/machinery/computer/teleporter/com
var/obj/machinery/teleport/station/station
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
station = locate(/obj/machinery/teleport/station, get_step(R, direction))
if(station)
- for(direction in cardinal)
+ for(direction in GLOB.cardinal)
com = locate(/obj/machinery/computer/teleporter, get_step(station, direction))
if(com)
break
diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm
index d2a05be991..026eb43770 100644
--- a/code/game/objects/structures.dm
+++ b/code/game/objects/structures.dm
@@ -218,7 +218,7 @@
other_connections = list("0", "0", "0", "0")
return FALSE
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
var/turf/T = get_step(src, direction)
var/success = 0
for(var/b_type in blend_objects)
diff --git a/code/game/objects/structures/catwalk.dm b/code/game/objects/structures/catwalk.dm
index 6fdf137653..64216fd0a0 100644
--- a/code/game/objects/structures/catwalk.dm
+++ b/code/game/objects/structures/catwalk.dm
@@ -46,7 +46,7 @@
O.update() //Will cause anything on the open turf to fall if it should
/obj/structure/catwalk/proc/redraw_nearby_catwalks()
- for(var/direction in alldirs)
+ for(var/direction in GLOB.alldirs)
var/obj/structure/catwalk/L = locate() in get_step(src, direction)
if(L)
L.update_connections()
diff --git a/code/game/objects/structures/cliff.dm b/code/game/objects/structures/cliff.dm
index 807ec81eb0..6e13b840bc 100644
--- a/code/game/objects/structures/cliff.dm
+++ b/code/game/objects/structures/cliff.dm
@@ -178,14 +178,14 @@ two tiles on initialization, and which way a cliff is facing may change during m
return FALSE
var/turf/T = get_turf(L)
- if(T && get_dir(T, loc) & reverse_dir[dir]) // dir points 'up' the cliff, e.g. cliff pointing NORTH will cause someone to fall if moving SOUTH into it.
+ if(T && get_dir(T, loc) & GLOB.reverse_dir[dir]) // dir points 'up' the cliff, e.g. cliff pointing NORTH will cause someone to fall if moving SOUTH into it.
return TRUE
return FALSE
/obj/structure/cliff/proc/fall_off_cliff(mob/living/L)
if(!istype(L))
return FALSE
- var/turf/T = get_step(src, reverse_dir[dir])
+ var/turf/T = get_step(src, GLOB.reverse_dir[dir])
var/displaced = FALSE
if(dir in list(EAST, WEST)) // Apply an offset if flying sideways, to help maintain the illusion of depth.
diff --git a/code/game/objects/structures/fitness_vr.dm b/code/game/objects/structures/fitness_vr.dm
index f3d6aa082b..48635f47fc 100644
--- a/code/game/objects/structures/fitness_vr.dm
+++ b/code/game/objects/structures/fitness_vr.dm
@@ -13,7 +13,7 @@
/obj/structure/fitness/boxing_ropes/CanPass(atom/movable/mover, turf/target)
if(istype(mover) && mover.checkpass(PASSTABLE))
return TRUE
- if(get_dir(mover, target) == reverse_dir[dir]) // From elsewhere to here, can't move against our dir
+ if(get_dir(mover, target) == GLOB.reverse_dir[dir]) // From elsewhere to here, can't move against our dir
return !density
return TRUE
diff --git a/code/game/objects/structures/gravemarker.dm b/code/game/objects/structures/gravemarker.dm
index e376467ae9..33bb065660 100644
--- a/code/game/objects/structures/gravemarker.dm
+++ b/code/game/objects/structures/gravemarker.dm
@@ -38,7 +38,7 @@
/obj/structure/gravemarker/CanPass(atom/movable/mover, turf/target)
if(istype(mover) && mover.checkpass(PASSTABLE))
return TRUE
- if(get_dir(mover, target) == reverse_dir[dir]) // From elsewhere to here, can't move against our dir
+ if(get_dir(mover, target) == GLOB.reverse_dir[dir]) // From elsewhere to here, can't move against our dir
return !density
return TRUE
diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm
index 7a47f3b992..7b70ae9f2c 100644
--- a/code/game/objects/structures/grille.dm
+++ b/code/game/objects/structures/grille.dm
@@ -117,7 +117,7 @@
if(loc == user.loc)
dir_to_set = user.dir
else
- if( ( x == user.x ) || (y == user.y) ) //Only supposed to work for cardinal directions.
+ if( ( x == user.x ) || (y == user.y) ) //Only supposed to work for GLOB.cardinal directions.
if( x == user.x )
if( y > user.y )
dir_to_set = 2
@@ -130,7 +130,7 @@
dir_to_set = 4
else
to_chat(user, span_notice("You can't reach."))
- return //Only works for cardinal direcitons, diagonals aren't supposed to work like this.
+ return //Only works for GLOB.cardinal direcitons, diagonals aren't supposed to work like this.
for(var/obj/structure/window/WINDOW in loc)
if(WINDOW.dir == dir_to_set)
to_chat(user, span_notice("There is already a window facing this way there."))
diff --git a/code/game/objects/structures/lattice.dm b/code/game/objects/structures/lattice.dm
index 5898416d64..5d183f4a90 100644
--- a/code/game/objects/structures/lattice.dm
+++ b/code/game/objects/structures/lattice.dm
@@ -21,14 +21,14 @@
icon = 'icons/obj/smoothlattice.dmi'
icon_state = "latticeblank"
updateOverlays()
- for (var/dir in cardinal)
+ for (var/dir in GLOB.cardinal)
var/obj/structure/lattice/L
if(locate(/obj/structure/lattice, get_step(src, dir)))
L = locate(/obj/structure/lattice, get_step(src, dir))
L.updateOverlays()
/obj/structure/lattice/Destroy()
- for (var/dir in cardinal)
+ for (var/dir in GLOB.cardinal)
var/obj/structure/lattice/L
if(locate(/obj/structure/lattice, get_step(src, dir)))
L = locate(/obj/structure/lattice, get_step(src, dir))
@@ -80,7 +80,7 @@
var/dir_sum = 0
- for (var/direction in cardinal)
+ for (var/direction in GLOB.cardinal)
if(locate(/obj/structure/lattice, get_step(src, direction)))
dir_sum += direction
else
diff --git a/code/game/objects/structures/ledges.dm b/code/game/objects/structures/ledges.dm
index 6da40df1c1..e56ebaee40 100644
--- a/code/game/objects/structures/ledges.dm
+++ b/code/game/objects/structures/ledges.dm
@@ -39,7 +39,7 @@
/obj/structure/ledge/CanPass(atom/movable/mover, turf/target)
if(istype(mover) && mover.checkpass(PASSTABLE))
return TRUE
- if(solidledge && get_dir(mover, target) == reverse_dir[dir]) // From elsewhere to here, can't move against our dir
+ if(solidledge && get_dir(mover, target) == GLOB.reverse_dir[dir]) // From elsewhere to here, can't move against our dir
return !density
return TRUE
diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm
index 995f2c6aaa..25fbdb9fdb 100644
--- a/code/game/objects/structures/morgue.dm
+++ b/code/game/objects/structures/morgue.dm
@@ -49,7 +49,7 @@
else
src.icon_state = "morgue3"
if(broadcast)
- global_announcer.autosay("[src] was able to establish a mental interface with occupant.", "[src]", "Medical")
+ GLOB.global_announcer.autosay("[src] was able to establish a mental interface with occupant.", "[src]", "Medical")
else
src.icon_state = "morgue1"
return
diff --git a/code/game/objects/structures/railing.dm b/code/game/objects/structures/railing.dm
index 2ee3f1fa65..e52d1f3d06 100644
--- a/code/game/objects/structures/railing.dm
+++ b/code/game/objects/structures/railing.dm
@@ -44,7 +44,7 @@
/obj/structure/railing/CanPass(atom/movable/mover, turf/target)
if(istype(mover) && mover.checkpass(PASSTABLE))
return TRUE
- if(get_dir(mover, target) == reverse_dir[dir]) // From elsewhere to here, can't move against our dir
+ if(get_dir(mover, target) == GLOB.reverse_dir[dir]) // From elsewhere to here, can't move against our dir
return !density
return TRUE
diff --git a/code/game/objects/structures/reflectors_ch.dm b/code/game/objects/structures/reflectors_ch.dm
index 9ab7d21936..27b75cdc59 100644
--- a/code/game/objects/structures/reflectors_ch.dm
+++ b/code/game/objects/structures/reflectors_ch.dm
@@ -89,7 +89,7 @@
var/pdir = P.dir
var/pangle = P.Angle
var/ploc = get_turf(P)
- if(!finished || !allowed_projectile_typecache[P.type] || !(P.dir in cardinal))
+ if(!finished || !allowed_projectile_typecache[P.type] || !(P.dir in GLOB.cardinal))
return ..()
if(auto_reflect(P, pdir, ploc, pangle) != 2)
return ..()
diff --git a/code/game/objects/structures/signs.dm b/code/game/objects/structures/signs.dm
index ec397982e3..e2e405ca3f 100644
--- a/code/game/objects/structures/signs.dm
+++ b/code/game/objects/structures/signs.dm
@@ -1565,7 +1565,7 @@
return
var/placement_dir = get_dir(user, A)
- if (!(placement_dir in cardinal))
+ if (!(placement_dir in GLOB.cardinal))
to_chat(user, span_warning("You must stand directly in front of the location you wish to place that on."))
return
diff --git a/code/game/objects/structures/transit_tubes.dm b/code/game/objects/structures/transit_tubes.dm
index f2e4811eb0..4ab8414f64 100644
--- a/code/game/objects/structures/transit_tubes.dm
+++ b/code/game/objects/structures/transit_tubes.dm
@@ -13,9 +13,9 @@
var/exit_delay = 2
var/enter_delay = 1
- // alldirs in global.dm is the same list of directions, but since
+ // GLOB.alldirs in global.dm is the same list of directions, but since
// the specific order matters to get a usable icon_state, it is
- // copied here so that, in the unlikely case that alldirs is changed,
+ // copied here so that, in the unlikely case that GLOB.alldirs is changed,
// this continues to work.
var/global/list/tube_dir_list = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
diff --git a/code/game/objects/structures/trash_pile_vr.dm b/code/game/objects/structures/trash_pile_vr.dm
index df24f99a16..477f75225d 100644
--- a/code/game/objects/structures/trash_pile_vr.dm
+++ b/code/game/objects/structures/trash_pile_vr.dm
@@ -103,10 +103,10 @@
return
var/timedifference = world.time - user.client.time_died_as_mouse
- if(user.client.time_died_as_mouse && timedifference <= mouse_respawn_time * 600)
+ if(user.client.time_died_as_mouse && timedifference <= CONFIG_GET(number/mouse_respawn_time) MINUTES)
var/timedifference_text
- timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss")
- to_chat(user, span_warning("You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left."))
+ timedifference_text = time2text(CONFIG_GET(number/mouse_respawn_time) MINUTES - timedifference,"mm:ss")
+ to_chat(user, span_warning("You may only spawn again as a mouse more than [CONFIG_GET(number/mouse_respawn_time)] minutes after your death. You have [timedifference_text] left."))
return
var/response = tgui_alert(user, "Are you -sure- you want to become a mouse?","Are you sure you want to squeek?",list("Squeek!","Nope!"))
diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm
index ddd2091eff..f50a8bfc57 100644
--- a/code/game/objects/structures/watercloset.dm
+++ b/code/game/objects/structures/watercloset.dm
@@ -410,7 +410,7 @@
/obj/item/bikehorn/rubberducky/grey/attack_self(mob/user as mob)
if(spam_flag == 0)
- for(var/obj/machinery/light/L in machines)
+ for(var/obj/machinery/light/L in GLOB.machines)
if(L.z != user.z || get_dist(user,L) > 10)
continue
else
diff --git a/code/game/objects/structures/windoor_assembly.dm b/code/game/objects/structures/windoor_assembly.dm
index 74e70ff83e..3d89f6836b 100644
--- a/code/game/objects/structures/windoor_assembly.dm
+++ b/code/game/objects/structures/windoor_assembly.dm
@@ -57,7 +57,7 @@
/obj/structure/windoor_assembly/CanPass(atom/movable/mover, turf/target)
if(istype(mover) && mover.checkpass(PASSGLASS))
return TRUE
- if(get_dir(mover, target) == reverse_dir[dir]) // From elsewhere to here, can't move against our dir
+ if(get_dir(mover, target) == GLOB.reverse_dir[dir]) // From elsewhere to here, can't move against our dir
return !density
return TRUE
diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm
index cec7c9a5d4..ef2e63d03d 100644
--- a/code/game/objects/structures/window.dm
+++ b/code/game/objects/structures/window.dm
@@ -144,7 +144,7 @@
return TRUE
if(is_fulltile())
return FALSE //full tile window, you can't move into it!
- if(get_dir(mover, target) == reverse_dir[dir]) // From elsewhere to here, can't move against our dir
+ if(get_dir(mover, target) == GLOB.reverse_dir[dir]) // From elsewhere to here, can't move against our dir
return !density
else
return TRUE
diff --git a/code/game/objects/structures/window_spawner.dm b/code/game/objects/structures/window_spawner.dm
index cf2d32ed9f..ff8a0b1b92 100644
--- a/code/game/objects/structures/window_spawner.dm
+++ b/code/game/objects/structures/window_spawner.dm
@@ -39,7 +39,7 @@
var/obj/structure/grille/G = new /obj/structure/grille(src.loc)
handle_grille_spawn(G)
var/list/neighbours = list()
- for (var/dir in cardinal)
+ for (var/dir in GLOB.cardinal)
var/turf/T = get_step(src, dir)
var/obj/effect/wingrille_spawn/other = locate(/obj/effect/wingrille_spawn) in T
if(!other)
diff --git a/code/game/turfs/simulated/dungeon/wall.dm b/code/game/turfs/simulated/dungeon/wall.dm
index 8de7b86217..fa9d132244 100644
--- a/code/game/turfs/simulated/dungeon/wall.dm
+++ b/code/game/turfs/simulated/dungeon/wall.dm
@@ -72,13 +72,13 @@
for(var/i = 1 to 4)
I = image('icons/turf/wall_masks.dmi', "rock[wall_connections[i]]", dir = 1<<(i-1))
add_overlay(I)
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
var/turf/T = get_step(src,direction)
if(istype(T) && !T.density)
add_overlay(get_cached_border(rock_side,direction,icon,rock_side))
else if(update_neighbors)
- for(var/direction in alldirs)
+ for(var/direction in GLOB.alldirs)
if(istype(get_step(src, direction), /turf/simulated/wall/solidrock))
var/turf/simulated/wall/solidrock/M = get_step(src, direction)
M.update_icon()
@@ -108,13 +108,13 @@
for(var/i = 1 to 4)
I = image('icons/turf/wall_masks.dmi', "mossyrock[wall_connections[i]]", dir = 1<<(i-1))
add_overlay(I)
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
var/turf/T = get_step(src,direction)
if(istype(T) && !T.density)
add_overlay(get_cached_border(mossyrock_side,direction,icon,mossyrock_side))
else if(update_neighbors)
- for(var/direction in alldirs)
+ for(var/direction in GLOB.alldirs)
if(istype(get_step(src, direction), /turf/simulated/wall/solidrock/mossyrockpoi))
var/turf/simulated/wall/solidrock/mossyrockpoi/M = get_step(src, direction)
M.update_icon()
diff --git a/code/game/turfs/simulated/floor_attackby.dm b/code/game/turfs/simulated/floor_attackby.dm
index 59a34dd3cb..8a93b10f3a 100644
--- a/code/game/turfs/simulated/floor_attackby.dm
+++ b/code/game/turfs/simulated/floor_attackby.dm
@@ -23,7 +23,7 @@
if(isopenturf(T))
// Must be build adjacent to an existing floor/wall, no floating floors
var/list/cardinalTurfs = list() // Up a Z level
- for(var/dir in cardinal)
+ for(var/dir in GLOB.cardinal)
var/turf/B = get_step(T, dir)
if(B)
cardinalTurfs += B
@@ -47,7 +47,7 @@
// Create a ceiling to shield from the weather
if(src.is_outdoors())
- for(var/dir in cardinal)
+ for(var/dir in GLOB.cardinal)
var/turf/A = get_step(src, dir)
if(A && !A.is_outdoors())
if(expended_tile || R.use(1))
diff --git a/code/game/turfs/simulated/floor_icon.dm b/code/game/turfs/simulated/floor_icon.dm
index 57576d027e..78e79cde6a 100644
--- a/code/game/turfs/simulated/floor_icon.dm
+++ b/code/game/turfs/simulated/floor_icon.dm
@@ -33,7 +33,7 @@ var/image/no_ceiling_image = null
// Apply edges, corners, and inner corners.
var/has_border = 0
if(flooring.flags & TURF_HAS_EDGES)
- for(var/step_dir in cardinal)
+ for(var/step_dir in GLOB.cardinal)
var/turf/simulated/floor/T = get_step(src, step_dir)
if(!flooring.test_link(src, T))
has_border |= step_dir
@@ -103,7 +103,7 @@ var/image/no_ceiling_image = null
// This updates an edge from an adjacent turf onto us, not our own 'internal' edges.
// For e.g. we might be outdoor metal plating, and we want to find sand next to us to have it 'spill onto' our turf with an overlay.
/turf/simulated/proc/update_icon_edge()
- for(var/checkdir in cardinal) // Check every direction
+ for(var/checkdir in GLOB.cardinal) // Check every direction
var/turf/simulated/T = get_step(src, checkdir) // Get the turf in that direction
// Our conditions:
// Has to be a /turf/simulated
diff --git a/code/game/turfs/simulated/floor_types.dm b/code/game/turfs/simulated/floor_types.dm
index 3803b15bc0..4a8eed9bd6 100644
--- a/code/game/turfs/simulated/floor_types.dm
+++ b/code/game/turfs/simulated/floor_types.dm
@@ -96,7 +96,7 @@
. = ..()
if(!antilight_cache)
antilight_cache = list()
- for(var/diag in cornerdirs)
+ for(var/diag in GLOB.cornerdirs)
var/image/I = image(LIGHTING_ICON, null, icon_state = "diagonals", layer = 10, dir = diag)
I.plane = PLANE_LIGHTING
antilight_cache["[diag]"] = I
@@ -111,7 +111,7 @@
// For joined corners touching static lighting turfs, add an overlay to cancel out that part of our lighting overlay.
/turf/simulated/shuttle/proc/update_breaklights()
cut_overlay(antilight_cache["[join_flags]"], TRUE)
- if(!(join_flags in cornerdirs)) //We're not joined at an angle
+ if(!(join_flags in GLOB.cornerdirs)) //We're not joined at an angle
return
//Dynamic lighting dissolver
var/turf/T = get_step(src, turn(join_flags,180))
diff --git a/code/game/turfs/simulated/wall_icon.dm b/code/game/turfs/simulated/wall_icon.dm
index 65fe15a5e6..2f805fbf72 100644
--- a/code/game/turfs/simulated/wall_icon.dm
+++ b/code/game/turfs/simulated/wall_icon.dm
@@ -126,13 +126,13 @@
/turf/simulated/wall/proc/special_wall_connections(list/dirs, list/inrange)
if(material.icon_base == "hull") // Could be improved...
var/additional_dirs = 0
- for(var/direction in alldirs)
+ for(var/direction in GLOB.alldirs)
var/turf/T = get_step(src,direction)
if(T && (locate(/obj/structure/hull_corner) in T))
dirs += direction
additional_dirs |= direction
if(additional_dirs)
- for(var/diag_dir in cornerdirs)
+ for(var/diag_dir in GLOB.cornerdirs)
if ((additional_dirs & diag_dir) == diag_dir)
dirs += diag_dir
diff --git a/code/game/turfs/simulated/wall_types.dm b/code/game/turfs/simulated/wall_types.dm
index c9a59a540f..631a933296 100644
--- a/code/game/turfs/simulated/wall_types.dm
+++ b/code/game/turfs/simulated/wall_types.dm
@@ -414,7 +414,7 @@
/turf/simulated/wall/eris/special_wall_connections(list/dirs, list/inrange)
..()
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
var/turf/T = get_step(src, direction)
var/decided_to_blend = FALSE
blend_obj_loop:
@@ -462,7 +462,7 @@
/turf/simulated/wall/bay/special_wall_connections(list/dirs, list/inrange)
..()
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
var/turf/T = get_step(src, direction)
var/decided_to_blend = FALSE
blend_obj_loop:
@@ -528,7 +528,7 @@
if(!material)
return
var/dirs = 0
- var/list_to_use = diagonal_blending ? alldirs : cardinal
+ var/list_to_use = diagonal_blending ? GLOB.alldirs : GLOB.cardinal
main_direction_loop:
for(var/direction in list_to_use)
var/turf/simulated/wall/tgmc/W = get_step(src, direction)
diff --git a/code/game/turfs/simulated/wall_types_vr.dm b/code/game/turfs/simulated/wall_types_vr.dm
index 4ec3b78a42..b167125090 100644
--- a/code/game/turfs/simulated/wall_types_vr.dm
+++ b/code/game/turfs/simulated/wall_types_vr.dm
@@ -47,7 +47,7 @@ var/list/flesh_overlay_cache = list()
if(density)
icon = 'icons/turf/stomach_vr.dmi'
icon_state = "flesh"
- for(var/direction in cardinal)
+ for(var/direction in GLOB.cardinal)
var/turf/T = get_step(src,direction)
if(istype(T) && !T.density)
var/place_dir = turn(direction, 180)
@@ -56,7 +56,7 @@ var/list/flesh_overlay_cache = list()
add_overlay(flesh_overlay_cache["flesh_side_[place_dir]"])
if(update_neighbors)
- for(var/direction in alldirs)
+ for(var/direction in GLOB.alldirs)
if(istype(get_step(src, direction), /turf/simulated/flesh))
var/turf/simulated/flesh/F = get_step(src, direction)
F.update_icon()
diff --git a/code/game/turfs/simulated/walls.dm b/code/game/turfs/simulated/walls.dm
index 112752b6a2..ef0bb32d5f 100644
--- a/code/game/turfs/simulated/walls.dm
+++ b/code/game/turfs/simulated/walls.dm
@@ -238,7 +238,7 @@
if(locate(/obj/effect/overlay/wallrot) in src)
return FALSE
- // Wall-rot can't go onto walls that are surrounded in all four cardinal directions.
+ // Wall-rot can't go onto walls that are surrounded in all four GLOB.cardinal directions.
// Because of spores, or something. It's actually to avoid the pain that is removing wallrot surrounded by
// four r-walls.
var/at_least_one_open_turf = FALSE
diff --git a/code/game/turfs/space/space.dm b/code/game/turfs/space/space.dm
index e5d749c3f6..2ee9ced633 100644
--- a/code/game/turfs/space/space.dm
+++ b/code/game/turfs/space/space.dm
@@ -168,8 +168,8 @@
if(!cur_pos) return
cur_x = cur_pos["x"]
cur_y = cur_pos["y"]
- next_x = (--cur_x||global_map.len)
- y_arr = global_map[next_x]
+ next_x = (--cur_x||GLOB.global_map.len)
+ y_arr = GLOB.global_map[next_x]
target_z = y_arr[cur_y]
/*
//debug
@@ -193,8 +193,8 @@
if(!cur_pos) return
cur_x = cur_pos["x"]
cur_y = cur_pos["y"]
- next_x = (++cur_x > global_map.len ? 1 : cur_x)
- y_arr = global_map[next_x]
+ next_x = (++cur_x > GLOB.global_map.len ? 1 : cur_x)
+ y_arr = GLOB.global_map[next_x]
target_z = y_arr[cur_y]
/*
//debug
@@ -217,7 +217,7 @@
if(!cur_pos) return
cur_x = cur_pos["x"]
cur_y = cur_pos["y"]
- y_arr = global_map[cur_x]
+ y_arr = GLOB.global_map[cur_x]
next_y = (--cur_y||y_arr.len)
target_z = y_arr[next_y]
/*
@@ -242,7 +242,7 @@
if(!cur_pos) return
cur_x = cur_pos["x"]
cur_y = cur_pos["y"]
- y_arr = global_map[cur_x]
+ y_arr = GLOB.global_map[cur_x]
next_y = (++cur_y > y_arr.len ? 1 : cur_y)
target_z = y_arr[next_y]
/*
diff --git a/code/game/turfs/space/transit.dm b/code/game/turfs/space/transit.dm
index b60c420097..d2b7ad5112 100644
--- a/code/game/turfs/space/transit.dm
+++ b/code/game/turfs/space/transit.dm
@@ -8,7 +8,7 @@
/turf/space/transit/Initialize(mapload)
. = ..()
- toggle_transit(reverse_dir[pushdirection])
+ toggle_transit(GLOB.reverse_dir[pushdirection])
//------------------------
diff --git a/code/game/turfs/turf_changing.dm b/code/game/turfs/turf_changing.dm
index 262ac48fee..454ac52c69 100644
--- a/code/game/turfs/turf_changing.dm
+++ b/code/game/turfs/turf_changing.dm
@@ -95,7 +95,7 @@
old_fire.RemoveFire()
if(tell_universe)
- universe.OnTurfChange(W)
+ GLOB.universe.OnTurfChange(W)
if(SSair)
SSair.mark_for_update(W)
@@ -184,7 +184,7 @@
//Also need to send signals diagonally too now.
var/radius = ONE_OVER_SQRT_2 * SUNLIGHT_RADIUS + 1
- for(var/dir in cornerdirs)
+ for(var/dir in GLOB.cornerdirs)
var/steps = 1
var/turf/cur_turf = get_step(src,dir)
diff --git a/code/game/world.dm b/code/game/world.dm
index 3987ac8c12..a42a0cbd21 100644
--- a/code/game/world.dm
+++ b/code/game/world.dm
@@ -5,13 +5,13 @@
to_world_log("Map Loading Complete")
//logs
//VOREStation Edit Start
- log_path += time2text(world.realtime, "YYYY/MM-Month/DD-Day/round-hh-mm-ss")
- diary = start_log("[log_path].log")
- href_logfile = start_log("[log_path]-hrefs.htm")
- error_log = start_log("[log_path]-error.log")
- sql_error_log = start_log("[log_path]-sql-error.log")
- query_debug_log = start_log("[log_path]-query-debug.log")
- debug_log = start_log("[log_path]-debug.log")
+ GLOB.log_directory += time2text(world.realtime, "YYYY/MM-Month/DD-Day/round-hh-mm-ss")
+ GLOB.diary = start_log("[GLOB.log_directory].log")
+ GLOB.href_logfile = start_log("[GLOB.log_directory]-hrefs.htm")
+ GLOB.error_log = start_log("[GLOB.log_directory]-error.log")
+ GLOB.sql_error_log = start_log("[GLOB.log_directory]-sql-error.log")
+ GLOB.query_debug_log = start_log("[GLOB.log_directory]-query-debug.log")
+ GLOB.debug_log = start_log("[GLOB.log_directory]-debug.log")
//VOREStation Edit End
var/latest_changelog = file("[global.config.directory]/../html/changelogs_ch/archive/" + time2text(world.timeofday, "YYYY-MM") + ".yml") // CHOMPEdit - changelogs_ch
@@ -26,7 +26,7 @@
F["title"] >> title //This is done twice on purpose. For some reason BYOND misses the first read, if performed before the world starts
var/body
F["body"] >> body
- servernews_hash = md5("[title]" + "[body]")
+ GLOB.servernews_hash = md5("[title]" + "[body]")
//ChompADD End
if(byond_version < RECOMMENDED_VERSION)
@@ -144,7 +144,7 @@ var/world_topic_spam_protect_time = world.timeofday
var/input[] = params2list(T)
var/list/s = list()
s["version"] = GLOB.game_version
- s["mode"] = master_mode
+ s["mode"] = GLOB.master_mode
s["respawn"] = CONFIG_GET(flag/abandon_allowed)
s["persistance"] = CONFIG_GET(flag/persistence_disabled)
s["enter"] = CONFIG_GET(flag/enter_allowed)
@@ -211,7 +211,7 @@ var/world_topic_spam_protect_time = world.timeofday
"bot" = SSjob.get_job_titles_in_department(DEPARTMENT_SYNTHETIC)
)
- for(var/datum/data/record/t in data_core.general)
+ for(var/datum/data/record/t in GLOB.data_core.general)
var/name = t.fields["name"]
var/rank = t.fields["rank"]
var/real_rank = make_list_rank(t.fields["real_rank"])
@@ -234,7 +234,7 @@ var/world_topic_spam_protect_time = world.timeofday
positions["misc"] = list()
positions["misc"][name] = list(rank,isactive)
- for(var/datum/data/record/t in data_core.hidden_general)
+ for(var/datum/data/record/t in GLOB.data_core.hidden_general)
var/name = t.fields["name"]
var/rank = t.fields["rank"]
var/real_rank = make_list_rank(t.fields["real_rank"])
@@ -493,8 +493,8 @@ var/world_topic_spam_protect_time = world.timeofday
var/list/Lines = file2list("data/mode.txt")
if(Lines.len)
if(Lines[1])
- master_mode = Lines[1]
- log_misc("Saved mode is '[master_mode]'")
+ GLOB.master_mode = Lines[1]
+ log_misc("Saved mode is '[GLOB.master_mode]'")
/world/proc/save_mode(var/the_mode)
var/F = file("data/mode.txt")
@@ -507,7 +507,7 @@ var/world_topic_spam_protect_time = world.timeofday
return 1
/world/proc/load_motd()
- join_motd = file2text("config/motd.txt")
+ GLOB.join_motd = file2text("config/motd.txt")
/* Replaced with configuration controller
/proc/load_configuration()
@@ -595,8 +595,8 @@ var/world_topic_spam_protect_time = world.timeofday
var/list/features = list()
if(ticker)
- if(master_mode)
- features += master_mode
+ if(GLOB.master_mode)
+ features += GLOB.master_mode
else
features += span_bold("STARTING")
diff --git a/code/global.dm b/code/global.dm
deleted file mode 100644
index 17a321ab7b..0000000000
--- a/code/global.dm
+++ /dev/null
@@ -1,190 +0,0 @@
-// Items that ask to be called every cycle.
-var/global/datum/datacore/data_core = null
-var/global/list/machines = SSmachines.all_machines //I would upgrade all instances of global.machines to SSmachines.all_machines but it's used in so many places and a search returns so many matches for 'machines' that isn't a use of the global...
-
-var/global/list/active_diseases = list()
-var/global/list/hud_icon_reference = list()
-
-
-var/global/list/global_mutations = list() // List of hidden mutation things.
-
-var/global/datum/universal_state/universe = new
-
-var/global/list/global_map = null
-
-// Noises made when hit while typing.
-var/list/hit_appends = list("-OOF", "-ACK", "-UGH", "-HRNK", "-HURGH", "-GLORF")
-var/log_path = "data/logs/" //See world.dm for the full calculated path
-var/diary = null
-var/error_log = null
-var/sql_error_log = null
-var/query_debug_log = null
-var/debug_log = null
-var/href_logfile = null
-//CHOMPStation Removal Start TFF 24/12/19 - Blep. Remove extra stuff. Where do these even come in?
-/*
-var/station_name = "Yawn Wider Station"
-var/const/station_orig = "Yawn Wider Station" //station_name can't be const due to event prefix/suffix
-var/const/station_short = "V.O.R.E."
-var/const/dock_name = "Yawn Wider Central Command"
-var/const/boss_name = "Central Command"
-var/const/boss_short = "CentCom"
-var/const/company_name = "NanoTrasen"
-var/const/company_short = "NT"
-var/const/star_name = "Virgo-Erigone"
-var/const/starsys_name = "Virgo-Erigone"
-*/
-//CHOMPStation Removal End
-var/servernews_hash = "" //ChompADD - news hash gen
-var/game_year = (text2num(time2text(world.realtime, "YYYY")) + 544) //YW EDIT
-var/round_progressing = 1
-
-var/master_mode = "extended" // "extended"
-var/secret_force_mode = "secret" // if this is anything but "secret", the secret rotation will forceably choose this mode.
-
-var/host = null //only here until check @ code\modules\ghosttrap\trap.dm:112 is fixed
-
-var/list/jobMax = list()
-var/list/bombers = list()
-var/list/admin_log = list()
-var/list/lastsignalers = list() // Keeps last 100 signals here in format: "[src] used \ref[src] @ location [src.loc]: [freq]/[code]"
-var/list/lawchanges = list() // Stores who uploaded laws to which silicon-based lifeform, and what the law was.
-var/list/reg_dna = list()
-
-var/mouse_respawn_time = 2.5 // Amount of time that must pass between a player dying as a mouse and repawning as a mouse. In minutes. Vorestation Edit - Changed to 2.5 minutes, half of 5, in accordance with mouse nerfs and realignment.
-
-var/list/monkeystart = list()
-var/list/wizardstart = list()
-var/list/newplayer_start = list()
-
-//Spawnpoints.
-var/list/latejoin = list()
-var/list/latejoin_gateway = list()
-var/list/latejoin_elevator = list()
-var/list/latejoin_cryo = list()
-var/list/latejoin_cyborg = list()
-
-var/list/prisonwarp = list() // Prisoners go to these
-var/list/holdingfacility = list() // Captured people go here
-var/list/xeno_spawn = list() // Aliens spawn at at these.
-var/list/tdome1 = list()
-var/list/tdome2 = list()
-var/list/tdomeobserve = list()
-var/list/tdomeadmin = list()
-var/list/prisonsecuritywarp = list() // Prison security goes to these.
-var/list/prisonwarped = list() // List of players already warped.
-var/list/blobstart = list()
-var/list/ninjastart = list()
-
-var/list/cardinal = list(NORTH, SOUTH, EAST, WEST)
-var/list/cardinalz = list(NORTH, SOUTH, EAST, WEST, UP, DOWN)
-var/list/cornerdirs = list(NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
-var/list/cornerdirsz = list(NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST, NORTH|UP, EAST|UP, WEST|UP, SOUTH|UP, NORTH|DOWN, EAST|DOWN, WEST|DOWN, SOUTH|DOWN)
-var/list/alldirs = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
-var/list/reverse_dir = list( // reverse_dir[dir] = reverse of dir
- 2, 1, 3, 8, 10, 9, 11, 4, 6, 5, 7, 12, 14, 13, 15, 32, 34, 33, 35, 40, 42,
- 41, 43, 36, 38, 37, 39, 44, 46, 45, 47, 16, 18, 17, 19, 24, 26, 25, 27, 20, 22, 21,
- 23, 28, 30, 29, 31, 48, 50, 49, 51, 56, 58, 57, 59, 52, 54, 53, 55, 60, 62, 61, 63
-)
-var/global/const/SQRT_TWO = 1.41421356237
-
-var/list/combatlog = list()
-var/list/IClog = list()
-var/list/OOClog = list()
-var/list/adminlog = list()
-
-var/Debug2 = 0
-var/datum/debug/debugobj
-
-var/datum/moduletypes/mods = new()
-
-var/gravity_is_on = 1
-
-var/join_motd = null
-
-var/datum/metric/metric = new() // Metric datum, used to keep track of the round.
-
-var/list/awaydestinations = list() // Away missions. A list of landmarks that the warpgate can take you to.
-
-// Forum MySQL configuration. (for use with forum account/key authentication)
-// These are all default values that will load should the forumdbconfig.txt file fail to read for whatever reason.
-var/forumsqladdress = "localhost"
-var/forumsqlport = "3306"
-var/forumsqldb = "tgstation"
-var/forumsqllogin = "root"
-var/forumsqlpass = ""
-var/forum_activated_group = "2"
-var/forum_authenticated_group = "10"
-
-// For FTP requests. (i.e. downloading runtime logs.)
-// However it'd be ok to use for accessing attack logs and such too, which are even laggier.
-var/fileaccess_timer = 0
-var/custom_event_msg = null
-
-// Added for Xenoarchaeology, might be useful for other stuff.
-var/global/list/alphabet_uppercase = list("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z")
-
-
-// Used by robots and robot preferences for regular modules.
-var/list/robot_module_types = list(
- "Standard", "Engineering", /* "Surgeon",*/ "Crisis", "Miner",
- "Janitor", "Service", "Clown", "Clerical", "Security",
- "Research", "Command", "Exploration" //CHOMPedit: Enables Exploration borg.
-)
-// L
-// List of modules added during code red
-var/list/emergency_module_types = list(
- "Combat"
-)
-// List of modules available to AI shells
-var/list/shell_module_types = list(
- "Standard", "Engineering", "Surgeon", "Crisis", "Miner",
- "Janitor", "Service", "Clown", "Clerical", "Security",
- "Research", "Command", "Exploration"
-)
-// List of whitelisted modules
-var/list/whitelisted_module_types = list(
- "Lost"
-)
-
-// Some scary sounds.
-var/static/list/scarySounds = list(
- 'sound/weapons/thudswoosh.ogg',
- 'sound/weapons/Taser.ogg',
- 'sound/weapons/armbomb.ogg',
- 'sound/voice/hiss1.ogg',
- 'sound/voice/hiss2.ogg',
- 'sound/voice/hiss3.ogg',
- 'sound/voice/hiss4.ogg',
- 'sound/voice/hiss5.ogg',
- 'sound/voice/hiss6.ogg',
- 'sound/effects/Glassbr1.ogg',
- 'sound/effects/Glassbr2.ogg',
- 'sound/effects/Glassbr3.ogg',
- 'sound/items/Welder.ogg',
- 'sound/items/Welder2.ogg',
- 'sound/machines/door/old_airlock.ogg',
- 'sound/effects/clownstep1.ogg',
- 'sound/effects/clownstep2.ogg',
- 'sound/voice/teppi/roar.ogg',
- 'sound/voice/moth/scream_moth.ogg',
- 'sound/voice/nya.ogg',
- 'sound/voice/succlet_shriek.ogg'
-)
-
-// Bomb cap!
-var/max_explosion_range = 14
-
-// Announcer intercom, because too much stuff creates an intercom for one message then hard del()s it.
-var/global/obj/item/radio/intercom/omni/global_announcer = new /obj/item/radio/intercom/omni(null)
-
-var/list/station_departments = list("Command", "Medical", "Engineering", "Research", "Security", "Cargo", "Exploration", "Civilian") //VOREStation Edit
-
-//Icons for in-game HUD glasses. Why don't we just share these a little bit?
-var/static/icon/ingame_hud = icon('icons/mob/hud.dmi')
-var/static/icon/ingame_hud_med = icon('icons/mob/hud_med.dmi')
-var/static/icon/buildmode_hud = icon('icons/misc/buildmode.dmi')
-
-//Keyed list for caching icons so you don't need to make them for records, IDs, etc all separately.
-//Could be useful for AI impersonation or something at some point?
-var/static/list/cached_character_icons = list()
diff --git a/code/global_init.dm b/code/global_init.dm
index 3d4f9d3e00..1cb0610f81 100644
--- a/code/global_init.dm
+++ b/code/global_init.dm
@@ -16,12 +16,12 @@ var/global/datum/global_init/init = new ()
/datum/global_init/New()
/* VOREStation Removal - Ours is even earlier, in world/New()
//logs
- log_path += time2text(world.realtime, "YYYY/MM-Month/DD-Day/round-hh-mm-ss")
- diary = file("[log_path].log")
- href_logfile = file("[log_path]-hrefs.htm")
- error_log = file("[log_path]-error.log")
- debug_log = file("[log_path]-debug.log")
- debug_log << "[log_end]\n[log_end]\nStarting up. [time_stamp()][log_end]\n---------------------[log_end]"
+ GLOB.log_directory += time2text(world.realtime, "YYYY/MM-Month/DD-Day/round-hh-mm-ss")
+ diary = file("[GLOB.log_directory].log")
+ GLOB.href_logfile = file("[GLOB.log_directory]-hrefs.htm")
+ GLOB.error_log = file("[GLOB.log_directory]-error.log")
+ GLOB.debug_log = file("[GLOB.log_directory]-debug.log")
+ GLOB.debug_log << "[log_end]\n[log_end]\nStarting up. [time_stamp()][log_end]\n---------------------[log_end]"
*/ //VOREStation Removal End
decls_repository = new()
diff --git a/code/global_vr.dm b/code/global_vr.dm
deleted file mode 100644
index c3c971b2f8..0000000000
--- a/code/global_vr.dm
+++ /dev/null
@@ -1,23 +0,0 @@
-var/list/vinestart = list()
-var/list/verminstart = list()
-
-var/list/awayabductors = list() // List of scatter landmarks for Abductors in Gateways
-var/list/eventdestinations = list() // List of scatter landmarks for VOREStation event portals
-var/list/eventabductors = list() // List of scatter landmarks for VOREStation abductor portals
-
-// Some "scary" sounds.
-/* CHOMPEdit Start
-var/static/list/scawwySownds = list(
- 'sound/voice/ScawwySownds/a scawey sownd.ogg',
- 'sound/voice/ScawwySownds/is that you.ogg',
- 'sound/voice/ScawwySownds/lookit this darkness wow.ogg',
- 'sound/voice/ScawwySownds/maint preds.ogg',
- 'sound/voice/ScawwySownds/spooky sounds.ogg',
- 'sound/voice/ScawwySownds/sus.ogg',
- 'sound/voice/ScawwySownds/this is scaewy.ogg',
- 'sound/voice/ScawwySownds/what is that behind you.ogg',
- 'sound/voice/ScawwySownds/what you doin over dere.ogg',
- 'sound/voice/ScawwySownds/whats up with all the trash.ogg',
- 'sound/voice/ScawwySownds/youre afraid of the dark arent you.ogg'
- )
-*/ // CHOMPedit End
diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index df87b32d40..57e0d4ccfb 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -571,7 +571,7 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
"} + span_bold("Game Panel") + {"
\n
Change Game Mode
"}
- if(master_mode == "secret")
+ if(GLOB.master_mode == "secret")
dat += "(Force Secret Mode)
"
dat += {"
@@ -682,7 +682,7 @@ var/datum/announcement/minor/admin_min_announcer = new
msgverb = sanitize(msgverb, 50, extra = 0)
else
msgverb = "states"
- global_announcer.autosay("[message]", "[sender]", "[channel == "Common" ? null : channel]", states = msgverb) //Common is a weird case, as it's not a "channel", it's just talking into a radio without a channel set.
+ GLOB.global_announcer.autosay("[message]", "[sender]", "[channel == "Common" ? null : channel]", states = msgverb) //Common is a weird case, as it's not a "channel", it's just talking into a radio without a channel set.
//VOREStation Edit End
log_admin("Intercom: [key_name(usr)] : [sender]:[message]")
@@ -772,7 +772,7 @@ var/datum/announcement/minor/admin_min_announcer = new
var/this_sender = decomposed[i]
var/this_message = decomposed[++i]
var/this_wait = decomposed[++i]
- global_announcer.autosay("[this_message]", "[this_sender]", "[channel == "Common" ? null : channel]", states = speech_verb) //Common is a weird case, as it's not a "channel", it's just talking into a radio without a channel set. //VOREStation Edit
+ GLOB.global_announcer.autosay("[this_message]", "[this_sender]", "[channel == "Common" ? null : channel]", states = speech_verb) //Common is a weird case, as it's not a "channel", it's just talking into a radio without a channel set. //VOREStation Edit
sleep(this_wait SECONDS)
/datum/admins/proc/toggleooc()
@@ -977,8 +977,8 @@ var/datum/announcement/minor/admin_min_announcer = new
log_admin("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].")
message_admins(span_blue("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"]."), 1)
return
- round_progressing = !round_progressing
- if (!round_progressing)
+ GLOB.round_progressing = !GLOB.round_progressing
+ if (!GLOB.round_progressing)
to_world(span_world("The game start has been delayed."))
log_admin("[key_name(usr)] delayed the game.")
else
@@ -1033,7 +1033,7 @@ var/datum/announcement/minor/admin_min_announcer = new
set name = "Unprison"
if (M.z == 2)
if (CONFIG_GET(flag/allow_admin_jump))
- M.loc = get_turf(pick(latejoin))
+ M.loc = get_turf(pick(GLOB.latejoin))
message_admins("[key_name_admin(usr)] has unprisoned [key_name_admin(M)]", 1)
log_admin("[key_name(usr)] has unprisoned [key_name(M)]")
else
diff --git a/code/modules/admin/admin_investigate.dm b/code/modules/admin/admin_investigate.dm
index 542fd98c31..a1dd87e65d 100644
--- a/code/modules/admin/admin_investigate.dm
+++ b/code/modules/admin/admin_investigate.dm
@@ -40,8 +40,8 @@
if("hrefs") //persistant logs and stuff
if(config && CONFIG_GET(flag/log_hrefs))
- if(href_logfile)
- src << browse("[href_logfile]","window=investigate[subject];size=800x300")
+ if(GLOB.href_logfile)
+ src << browse("[GLOB.href_logfile]","window=investigate[subject];size=800x300")
else
to_chat(src, span_filter_adminlog(span_warning("Error: admin_investigate: No href logfile found.")))
return
diff --git a/code/modules/admin/admin_verb_lists.dm b/code/modules/admin/admin_verb_lists.dm
index 43957efe31..324b1aa16a 100644
--- a/code/modules/admin/admin_verb_lists.dm
+++ b/code/modules/admin/admin_verb_lists.dm
@@ -32,7 +32,7 @@ var/list/admin_verbs_admin = list(
/client/proc/colorooc, //allows us to set a custom colour for everythign we say in ooc,
/client/proc/admin_ghost, //allows us to ghost/reenter body at will,
/client/proc/toggle_view_range, //changes how far we can see,
- /datum/admins/proc/view_txt_log, //shows the server log (diary) for today,
+ /datum/admins/proc/view_txt_log, //shows the server log (GLOB.diary) for today,
/datum/admins/proc/view_atk_log, //shows the server combat-log, doesn't do anything presently,
/client/proc/cmd_admin_pm_context, //right-click adminPM interface,
/client/proc/cmd_admin_pm_panel, //admin-pm list,
@@ -43,7 +43,7 @@ var/list/admin_verbs_admin = list(
/client/proc/cmd_admin_check_dialogue_logs, //checks a player's dialogue logs,
/datum/admins/proc/access_news_network, //allows access of newscasters,
/client/proc/giveruntimelog, //allows us to give access to runtime logs to somebody,
- /client/proc/getserverlog, //allows us to fetch server logs (diary) for other days,
+ /client/proc/getserverlog, //allows us to fetch server logs (GLOB.diary) for other days,
/client/proc/jumptocoord, //we ghost and jump to a coordinate,
/client/proc/Getmob, //teleports a mob to our location,
/client/proc/Getkey, //teleports a mob with a certain ckey to our location,
@@ -373,7 +373,7 @@ var/list/admin_verbs_mod = list(
/client/proc/cmd_admin_direct_narrate,
/client/proc/allow_character_respawn, // Allows a ghost to respawn ,
/datum/admins/proc/sendFax,
- /client/proc/getserverlog, //allows us to fetch server logs (diary) for other days,
+ /client/proc/getserverlog, //allows us to fetch server logs (GLOB.diary) for other days,
/datum/admins/proc/view_persistent_data,
/datum/admins/proc/view_txt_log, //shows the server log (diary) for today,
/datum/admins/proc/quick_nif, //CHOMPEdit
diff --git a/code/modules/admin/admin_verb_lists_vr.dm b/code/modules/admin/admin_verb_lists_vr.dm
index 5335fa4c54..e0e2921e50 100644
--- a/code/modules/admin/admin_verb_lists_vr.dm
+++ b/code/modules/admin/admin_verb_lists_vr.dm
@@ -422,7 +422,7 @@ var/list/admin_verbs_mod = list(
/client/proc/cmd_admin_z_narrate, //VOREStation Add,
/client/proc/allow_character_respawn, // Allows a ghost to respawn ,
/datum/admins/proc/sendFax,
- /client/proc/getserverlog, //allows us to fetch server logs (diary) for other days,
+ /client/proc/getserverlog, //allows us to fetch server logs (GLOB.diary) for other days,
/datum/admins/proc/view_persistent_data,
/client/proc/start_vote,
/datum/admins/proc/quick_nif, //CHOMPStation Add,
diff --git a/code/modules/admin/news.dm b/code/modules/admin/news.dm
index 4e088e9c11..2700a142d4 100644
--- a/code/modules/admin/news.dm
+++ b/code/modules/admin/news.dm
@@ -5,7 +5,7 @@
// Returns true if news was updated since last seen.
/client/proc/check_for_new_server_news()
- if(servernews_hash != prefs.lastnews) //ChompEDIT
+ if(GLOB.servernews_hash != prefs.lastnews) //ChompEDIT
return TRUE
return FALSE
@@ -39,7 +39,7 @@
if(findtext(new_body,"