From 3dc4cce9c245aad86b91591c24421619a6d739d1 Mon Sep 17 00:00:00 2001 From: Fluffy <65877598+FluffyGhoster@users.noreply.github.com> Date: Sun, 19 May 2024 18:37:29 +0200 Subject: [PATCH] Minor span refactoring (#19177) Minor span refactoring --- code/ZAS/Airflow.dm | 16 +- code/ZAS/Phoron.dm | 6 +- code/ZAS/Variable Settings.dm | 4 +- code/__HELPERS/atmospherics.dm | 18 +- code/__HELPERS/files.dm | 4 +- code/__HELPERS/mobs.dm | 2 +- code/_onclick/click.dm | 4 +- code/_onclick/hud/ability_screen_objects.dm | 2 +- code/_onclick/hud/robot.dm | 4 +- .../hud/screen_object_types/internals.dm | 8 +- code/_onclick/hud/screen_objects.dm | 6 +- code/_onclick/item_attack.dm | 2 +- code/_onclick/observer.dm | 4 +- code/_onclick/other_mobs.dm | 16 +- code/controllers/subsystems/air.dm | 2 +- code/controllers/subsystems/event.dm | 2 +- .../subsystems/initialization/atlas.dm | 8 +- .../subsystems/initialization/misc_late.dm | 2 +- code/controllers/subsystems/job.dm | 24 +- code/controllers/subsystems/responseteam.dm | 8 +- code/controllers/subsystems/ticker.dm | 14 +- code/datums/ai_laws.dm | 12 +- code/datums/components/multitool/multitool.dm | 2 +- code/datums/helper_datums/teleport.dm | 18 +- code/datums/mind.dm | 10 +- code/datums/trading/unique.dm | 4 +- code/datums/uplink/announcements.dm | 4 +- code/datums/wires/nuclearbomb.dm | 4 +- code/defines/obj/weapon.dm | 6 +- code/game/antagonist/antagonist_add.dm | 8 +- code/game/antagonist/antagonist_create.dm | 8 +- code/game/antagonist/antagonist_factions.dm | 20 +- code/game/antagonist/antagonist_objectives.dm | 4 +- code/game/antagonist/antagonist_print.dm | 4 +- code/game/antagonist/outsider/raider.dm | 2 +- code/game/antagonist/outsider/technomancer.dm | 2 +- code/game/antagonist/station/cultist.dm | 2 +- code/game/antagonist/station/highlander.dm | 2 +- code/game/antagonist/station/rogue_ai.dm | 8 +- code/game/dna/dna_modifier.dm | 12 +- code/game/dna/genes/disabilities.dm | 4 +- code/game/dna/genes/powers.dm | 2 +- .../changeling/helpers/_framework.dm | 8 +- .../gamemodes/changeling/implements/items.dm | 18 +- .../changeling/implements/powers/body.dm | 66 +++--- .../implements/powers/fabricate_clothing.dm | 40 ++-- .../changeling/implements/powers/resources.dm | 8 +- .../changeling/implements/powers/suck.dm | 40 ++-- code/game/gamemodes/cult/cultify/mob.dm | 6 +- code/game/gamemodes/cult/narsie.dm | 24 +- code/game/gamemodes/cult/runes/ghost_mode.dm | 6 +- .../gamemodes/cult/runes/manifest_ghost.dm | 6 +- code/game/gamemodes/cult/runes/raise_dead.dm | 12 +- .../gamemodes/cult/runes/summon_cultist.dm | 6 +- code/game/gamemodes/cult/runes/summon_tome.dm | 6 +- code/game/gamemodes/cult/runes/teleport.dm | 6 +- .../game/gamemodes/cult/structures/gateway.dm | 2 +- .../endgame/bluespace_jump/bluespace_jump.dm | 12 +- .../endgame/supermatter_cascade/universe.dm | 2 +- code/game/gamemodes/events.dm | 28 +-- .../gamemodes/events/holidays/holidays.dm | 4 +- code/game/gamemodes/game_mode.dm | 2 +- .../gamemodes/malfunction/malf_hardware.dm | 4 +- .../tree_interdiction.dm | 8 +- .../tree_manipulation.dm | 16 +- .../newmalf_ability_trees/tree_networking.dm | 14 +- .../newmalf_ability_trees/tree_synthetic.dm | 10 +- code/game/gamemodes/nuclear/pinpointer.dm | 14 +- code/game/gamemodes/technomancer/catalog.dm | 22 +- code/game/gamemodes/technomancer/core_obj.dm | 6 +- .../devices/disposable_teleporter.dm | 6 +- .../technomancer/devices/gloves_of_regen.dm | 4 +- .../technomancer/devices/shield_armor.dm | 8 +- .../technomancer/devices/tesla_armor.dm | 8 +- .../gamemodes/technomancer/instability.dm | 56 ++--- .../game/gamemodes/technomancer/spell_objs.dm | 8 +- .../technomancer/spells/abjuration.dm | 10 +- .../technomancer/spells/apportation.dm | 14 +- .../technomancer/spells/aura/shock_aura.dm | 2 +- .../technomancer/spells/aura/unstable_aura.dm | 4 +- .../gamemodes/technomancer/spells/chroma.dm | 2 +- .../technomancer/spells/energy_siphon.dm | 16 +- .../technomancer/spells/flame_tongue.dm | 6 +- .../gamemodes/technomancer/spells/illusion.dm | 4 +- .../technomancer/spells/insert/insert.dm | 2 +- .../technomancer/spells/mark_recall.dm | 24 +- .../technomancer/spells/modifier/corona.dm | 4 +- .../technomancer/spells/modifier/haste.dm | 4 +- .../technomancer/spells/modifier/mend_life.dm | 4 +- .../spells/modifier/mend_synthetic.dm | 4 +- .../gamemodes/technomancer/spells/passwall.dm | 10 +- .../technomancer/spells/phase_shift.dm | 8 +- .../gamemodes/technomancer/spells/reflect.dm | 16 +- .../technomancer/spells/resurrect.dm | 14 +- .../technomancer/spells/shared_burden.dm | 6 +- .../gamemodes/technomancer/spells/shield.dm | 4 +- .../technomancer/spells/spawner/spawner.dm | 2 +- .../technomancer/spells/summon/summon.dm | 4 +- .../gamemodes/technomancer/spells/track.dm | 2 +- .../technomancer/spells/warp_strike.dm | 2 +- .../game/gamemodes/vampire/vampire_helpers.dm | 30 +-- code/game/machinery/Sleeper.dm | 17 +- code/game/machinery/ai_slipper.dm | 2 +- code/game/machinery/alarm.dm | 16 +- code/game/machinery/atmoalter/meter.dm | 6 +- .../atmoalter/portable_atmospherics.dm | 18 +- code/game/machinery/atmoalter/scrubber.dm | 8 +- code/game/machinery/bioprinter.dm | 2 +- code/game/machinery/body_scanner.dm | 4 +- code/game/machinery/bots/bots.dm | 16 +- code/game/machinery/camera/camera.dm | 34 +-- code/game/machinery/camera/camera_assembly.dm | 6 +- code/game/machinery/camera/tracking.dm | 16 +- code/game/machinery/case_button.dm | 17 +- code/game/machinery/cloning.dm | 10 +- code/game/machinery/computer/ai_core.dm | 48 ++-- code/game/machinery/computer/arcade_orion.dm | 26 +-- .../game/machinery/computer/buildandrepair.dm | 34 +-- code/game/machinery/computer/cloning.dm | 2 +- code/game/machinery/computer/law.dm | 8 +- code/game/machinery/computer/pod.dm | 2 +- code/game/machinery/computer/robot.dm | 6 +- code/game/machinery/computer/sentencing.dm | 22 +- code/game/machinery/computer/shuttle.dm | 10 +- code/game/machinery/crusher_piston.dm | 10 +- code/game/machinery/cryo.dm | 42 ++-- code/game/machinery/cryopod.dm | 2 +- code/game/machinery/deployable.dm | 12 +- code/game/machinery/door_control.dm | 2 +- code/game/machinery/doors/airlock_control.dm | 2 +- code/game/machinery/doors/blast_door.dm | 12 +- code/game/machinery/doors/door.dm | 18 +- code/game/machinery/doors/firedoor.dm | 34 +-- .../game/machinery/doors/firedoor_assembly.dm | 18 +- code/game/machinery/doors/windowdoor.dm | 7 +- code/game/machinery/firealarm.dm | 16 +- code/game/machinery/flasher.dm | 8 +- code/game/machinery/floor_light.dm | 22 +- code/game/machinery/from_beyond.dm | 18 +- code/game/machinery/igniter.dm | 4 +- code/game/machinery/jukebox.dm | 8 +- code/game/machinery/machinery.dm | 14 +- code/game/machinery/mass_driver.dm | 14 +- code/game/machinery/navbeacon.dm | 2 +- code/game/machinery/newscaster.dm | 14 +- code/game/machinery/nuclear_bomb.dm | 28 +-- code/game/machinery/pipe/construction.dm | 10 +- code/game/machinery/portable_turret.dm | 84 +++---- code/game/machinery/requests_console.dm | 14 +- code/game/machinery/ringer.dm | 10 +- code/game/machinery/seed_extractor.dm | 4 +- code/game/machinery/suit_storage_unit.dm | 49 ++-- code/game/machinery/supplybeacon.dm | 18 +- .../telecomms/computers/logbrowser.dm | 8 +- .../machinery/telecomms/computers/message.dm | 40 ++-- .../telecomms/computers/telemonitor.dm | 6 +- .../telecomms/computers/traffic_control.dm | 8 +- .../telecomms/machine_interactions.dm | 4 +- code/game/machinery/transformer.dm | 10 +- code/game/machinery/turret_control.dm | 6 +- code/game/machinery/vending.dm | 24 +- code/game/machinery/washing_machine.dm | 6 +- .../effects/decals/Cleanable/humans.dm | 2 +- .../objects/effects/decals/Cleanable/misc.dm | 2 +- .../game/objects/effects/decals/contraband.dm | 16 +- code/game/objects/effects/effect_system.dm | 6 +- code/game/objects/effects/gibs.dm | 2 +- code/game/objects/effects/spiders.dm | 2 +- code/game/objects/items.dm | 30 +-- code/game/objects/items/airbubble.dm | 122 +++++----- code/game/objects/items/apc_frame.dm | 8 +- code/game/objects/items/contraband.dm | 2 +- code/game/objects/items/crayons.dm | 10 +- code/game/objects/items/devices/aicard.dm | 8 +- .../objects/items/devices/chameleonproj.dm | 14 +- code/game/objects/items/devices/dociler.dm | 8 +- .../objects/items/devices/laserpointer.dm | 20 +- .../objects/items/devices/magnetic_lock.dm | 38 +-- code/game/objects/items/devices/modkit.dm | 4 +- code/game/objects/items/devices/multitool.dm | 19 +- code/game/objects/items/devices/oxycandle.dm | 2 +- .../objects/items/devices/paint_sprayer.dm | 12 +- code/game/objects/items/devices/powersink.dm | 12 +- .../items/devices/radio/electropack.dm | 4 +- .../game/objects/items/devices/radio/radio.dm | 12 +- .../objects/items/devices/radio_jammer.dm | 2 +- code/game/objects/items/devices/scanners.dm | 63 ++--- code/game/objects/items/devices/spy_bug.dm | 10 +- code/game/objects/items/devices/tagger.dm | 6 +- .../objects/items/devices/traitordevices.dm | 8 +- .../objects/items/devices/transfer_valve.dm | 12 +- code/game/objects/items/devices/versebook.dm | 2 +- code/game/objects/items/devices/whistle.dm | 8 +- code/game/objects/items/eightball.dm | 8 +- code/game/objects/items/skrell.dm | 12 +- code/game/objects/items/spirit_board.dm | 8 +- code/game/objects/items/stacks/rods.dm | 10 +- .../game/objects/items/stacks/sheets/glass.dm | 20 +- code/game/objects/items/stacks/tiles/light.dm | 2 +- code/game/objects/items/toys.dm | 47 ++-- code/game/objects/items/vaurca.dm | 2 +- code/game/objects/items/weapons/AI_modules.dm | 2 +- code/game/objects/items/weapons/autopsy.dm | 6 +- code/game/objects/items/weapons/cards_ids.dm | 16 +- .../items/weapons/cards_ids_syndicate.dm | 22 +- .../objects/items/weapons/cigs_lighters.dm | 32 +-- .../circuitboards/computer/camera_monitor.dm | 10 +- .../circuitboards/computer/research.dm | 8 +- .../objects/items/weapons/cloaking_device.dm | 10 +- code/game/objects/items/weapons/cosmetics.dm | 62 ++--- .../objects/items/weapons/dna_injector.dm | 8 +- code/game/objects/items/weapons/explosives.dm | 2 +- .../objects/items/weapons/extinguisher.dm | 26 ++- .../items/weapons/grenades/chem_grenade.dm | 22 +- .../objects/items/weapons/grenades/grenade.dm | 4 +- code/game/objects/items/weapons/landmines.dm | 16 +- .../objects/items/weapons/material/knives.dm | 8 +- .../items/weapons/material/material_armor.dm | 14 +- .../objects/items/weapons/material/swords.dm | 2 +- .../items/weapons/material/twohanded.dm | 18 +- .../objects/items/weapons/melee/energy.dm | 28 +-- code/game/objects/items/weapons/melee/misc.dm | 8 +- code/game/objects/items/weapons/shields.dm | 2 +- .../objects/items/weapons/storage/backpack.dm | 4 +- .../objects/items/weapons/storage/boxes.dm | 4 +- .../items/weapons/storage/laundry_basket.dm | 6 +- .../objects/items/weapons/storage/lockbox.dm | 20 +- .../objects/items/weapons/storage/secure.dm | 2 +- .../objects/items/weapons/storage/storage.dm | 2 +- .../objects/items/weapons/storage/wallets.dm | 2 +- code/game/objects/items/weapons/stunbaton.dm | 34 +-- .../objects/items/weapons/surgery_tools.dm | 4 +- .../objects/items/weapons/swords_axes_etc.dm | 2 +- code/game/objects/items/weapons/syndie.dm | 4 +- .../objects/items/weapons/tanks/jetpack.dm | 2 +- .../game/objects/items/weapons/tanks/tanks.dm | 6 +- .../objects/items/weapons/tanks/watertank.dm | 8 +- code/game/objects/items/weapons/tape.dm | 24 +- code/game/objects/items/weapons/tools.dm | 16 +- code/game/objects/items/weapons/towel.dm | 10 +- code/game/objects/items/weapons/traps.dm | 83 +++---- .../objects/items/weapons/vaurca_items.dm | 40 ++-- code/game/objects/items/weapons/weaponry.dm | 4 +- code/game/objects/objs.dm | 2 +- code/game/objects/structures.dm | 22 +- code/game/objects/structures/barsign.dm | 4 +- code/game/objects/structures/bedsheet_bin.dm | 10 +- .../crates_lockers/closets/secure/personal.dm | 14 +- .../crates_lockers/closets/statue.dm | 8 +- code/game/objects/structures/curtains.dm | 2 +- code/game/objects/structures/extinguisher.dm | 4 +- code/game/objects/structures/girders.dm | 98 ++++---- code/game/objects/structures/grille.dm | 20 +- code/game/objects/structures/janicart.dm | 40 ++-- code/game/objects/structures/lattice.dm | 4 +- code/game/objects/structures/mirror.dm | 12 +- code/game/objects/structures/mop_bucket.dm | 4 +- code/game/objects/structures/noticeboard.dm | 6 +- code/game/objects/structures/railing.dm | 4 +- code/game/objects/structures/sarcophagus.dm | 2 +- code/game/objects/structures/simple_doors.dm | 10 +- .../structures/stool_bed_chair_nest/bed.dm | 2 +- code/game/objects/structures/therapy.dm | 12 +- code/game/objects/structures/tranqcabinet.dm | 6 +- .../game/objects/structures/under_wardrobe.dm | 2 +- code/game/objects/structures/urban.dm | 4 +- .../objects/structures/windoor_assembly.dm | 26 +-- code/game/turfs/simulated/floor_attackby.dm | 36 +-- code/game/turfs/simulated/water.dm | 4 +- code/game/turfs/space/space.dm | 6 +- code/game/turfs/turf.dm | 4 +- code/game/verbs/ooc.dm | 20 +- code/modules/admin/DB ban/ban_mirroring.dm | 20 +- code/modules/admin/DB ban/functions.dm | 20 +- code/modules/admin/IsBanned.dm | 4 +- code/modules/admin/NewBan.dm | 2 +- code/modules/admin/admin.dm | 32 +-- code/modules/admin/admin_investigate.dm | 6 +- code/modules/admin/admin_verbs.dm | 34 +-- code/modules/admin/banjob.dm | 30 +-- code/modules/admin/create_poll.dm | 4 +- code/modules/admin/holder2.dm | 6 +- code/modules/admin/law_manager.dm | 6 +- code/modules/admin/player_notes.dm | 6 +- code/modules/admin/player_notes_sql.dm | 8 +- .../secrets/admin_secrets/jump_shuttle.dm | 4 +- .../admin/secrets/fun_secrets/ghost_mode.dm | 10 +- .../secrets/fun_secrets/toggle_bomb_cap.dm | 2 +- .../admin/secrets/random_events/gravity.dm | 4 +- code/modules/admin/ticket.dm | 18 +- code/modules/admin/topic.dm | 80 +++---- code/modules/admin/verbs/access_control.dm | 30 +-- code/modules/admin/verbs/adminhelp.dm | 8 +- code/modules/admin/verbs/adminpm.dm | 20 +- code/modules/admin/verbs/antag-ooc.dm | 2 +- code/modules/admin/verbs/bluespacetech.dm | 2 +- code/modules/admin/verbs/custom_event.dm | 4 +- code/modules/admin/verbs/deadsay.dm | 2 +- code/modules/admin/verbs/debug.dm | 14 +- code/modules/admin/verbs/mapping.dm | 12 +- code/modules/admin/verbs/modifyvariables.dm | 2 +- code/modules/admin/verbs/ntsl.dm | 4 +- code/modules/admin/verbs/pray.dm | 10 +- code/modules/admin/verbs/randomverbs.dm | 60 ++--- code/modules/admin/verbs/tripAI.dm | 4 +- code/modules/admin/verbs/warning.dm | 22 +- code/modules/admin/view_variables/topic.dm | 6 +- code/modules/assembly/bomb.dm | 4 +- .../components/binary_devices/passive_gate.dm | 12 +- .../components/binary_devices/pump.dm | 14 +- .../components/omni_devices/omni_base.dm | 8 +- .../components/portables_connector.dm | 10 +- .../modules/atmospherics/components/tvalve.dm | 12 +- code/modules/atmospherics/components/valve.dm | 14 +- code/modules/atmospherics/pipes.dm | 12 +- code/modules/awaymissions/gateway.dm | 8 +- code/modules/awaymissions/zlevel.dm | 8 +- code/modules/cargo/export_scanner.dm | 6 +- code/modules/cargo/randomstock.dm | 4 +- code/modules/cciaa/cciaa.dm | 14 +- code/modules/cciaa/cciaa_items.dm | 50 ++-- code/modules/client/client_procs.dm | 38 +-- .../antagonism/01_candidacy.dm | 4 +- .../preference_setup/general/02_language.dm | 6 +- .../preference_setup/general/03_body.dm | 6 +- .../preference_setup/general/05_background.dm | 2 +- .../preference_setup/loadout/loadout.dm | 6 +- .../preference_setup/occupation/occupation.dm | 4 +- code/modules/client/preferences.dm | 10 +- .../client/preferences_notification.dm | 2 +- code/modules/client/ui_style.dm | 2 +- code/modules/clothing/clothing_accessories.dm | 4 +- code/modules/clothing/glasses/glasses.dm | 2 +- code/modules/clothing/gloves/attackby.dm | 20 +- code/modules/clothing/gloves/boxing.dm | 2 +- code/modules/clothing/gloves/miscellaneous.dm | 6 +- code/modules/clothing/rings/rings.dm | 8 +- code/modules/clothing/spacesuits/breaches.dm | 8 +- .../spacesuits/rig/modules/computer.dm | 4 +- code/modules/clothing/spacesuits/rig/rig.dm | 72 +++--- .../clothing/spacesuits/rig/rig_attackby.dm | 10 +- code/modules/clothing/spacesuits/void/void.dm | 4 +- code/modules/clothing/suits/armor.dm | 12 +- code/modules/clothing/suits/utility.dm | 6 +- .../clothing/under/accessories/accessory.dm | 4 +- .../clothing/under/accessories/badges.dm | 19 +- .../clothing/under/accessories/holster.dm | 23 +- code/modules/custom_ka/cells.dm | 8 +- code/modules/custom_ka/core.dm | 20 +- code/modules/customitems/item_defines.dm | 18 +- .../detectivework/microscope/dnascanner.dm | 16 +- .../detectivework/tools/evidencebag.dm | 8 +- code/modules/economy/cash.dm | 12 +- code/modules/emotes/definitions/audible.dm | 4 +- code/modules/emotes/emote_define.dm | 2 +- code/modules/emotes/emote_mob.dm | 8 +- code/modules/events/comms_blackout.dm | 2 +- .../modules/events/communications_blackout.dm | 2 +- code/modules/events/prison_break.dm | 2 +- code/modules/flufftext/Dreaming.dm | 2 +- .../human/responseteams/response_team.dm | 2 +- .../spawner/simplemob/maintdrone.dm | 2 +- .../ghostroles/spawner/simplemob/simplemob.dm | 4 +- .../ghostroles/spawnpoint/spawnpoint.dm | 4 +- code/modules/hallucinations/types/basic.dm | 2 +- .../heavy_vehicle/equipment/_equipment.dm | 4 +- .../heavy_vehicle/equipment/medical.dm | 12 +- .../heavy_vehicle/equipment/utility.dm | 14 +- .../heavy_vehicle/mech_construction.dm | 8 +- code/modules/heavy_vehicle/mech_helpers.dm | 8 +- .../modules/heavy_vehicle/mech_interaction.dm | 74 +++--- code/modules/heavy_vehicle/mech_life.dm | 2 +- code/modules/heavy_vehicle/mech_wreckage.dm | 12 +- code/modules/heavy_vehicle/mecha.dm | 12 +- code/modules/holidays/christmas/props.dm | 15 +- code/modules/holodeck/HolodeckControl.dm | 10 +- code/modules/holodeck/HolodeckObjects.dm | 30 +-- code/modules/hydroponics/grown.dm | 24 +- code/modules/hydroponics/grown_inedible.dm | 2 +- code/modules/hydroponics/seed.dm | 30 +-- code/modules/hydroponics/seed_gene_mut.dm | 8 +- code/modules/hydroponics/seed_machines.dm | 2 +- code/modules/hydroponics/seed_mobs.dm | 2 +- .../hydroponics/spreading/spreading.dm | 12 +- .../spreading/spreading_response.dm | 22 +- code/modules/hydroponics/trays/tray.dm | 34 +-- .../modules/hydroponics/trays/tray_process.dm | 2 +- code/modules/hydroponics/trays/tray_soil.dm | 2 +- code/modules/hydroponics/trays/tray_tools.dm | 4 +- .../hydroponics/trays/tray_update_icons.dm | 2 +- .../integrated_electronics/core/assemblies.dm | 33 +-- .../core/assemblies/generic.dm | 4 +- .../integrated_electronics/core/device.dm | 2 +- .../core/integrated_circuit.dm | 18 +- .../integrated_electronics/core/pins.dm | 8 +- .../integrated_electronics/core/printer.dm | 14 +- .../core/special_pins/char_pin.dm | 2 +- .../core/special_pins/color_pin.dm | 2 +- .../core/special_pins/dir_pin.dm | 2 +- .../core/special_pins/list_pin.dm | 10 +- .../core/special_pins/number_pin.dm | 2 +- .../core/special_pins/string_pin.dm | 2 +- .../integrated_electronics/core/tools.dm | 47 ++-- .../integrated_electronics/subtypes/input.dm | 6 +- .../subtypes/insert_slot.dm | 6 +- .../subtypes/manipulation.dm | 18 +- .../integrated_electronics/subtypes/memory.dm | 8 +- .../integrated_electronics/subtypes/output.dm | 10 +- .../integrated_electronics/subtypes/power.dm | 2 +- .../subtypes/reagents.dm | 10 +- code/modules/library/lib_items.dm | 24 +- code/modules/library/lib_machines.dm | 4 +- code/modules/lock/key.dm | 2 +- code/modules/lock/lock.dm | 14 +- code/modules/lock/lock_construct.dm | 6 +- code/modules/maps/planet_types/desert.dm | 22 +- code/modules/martial_arts/martial.dm | 4 +- code/modules/martial_arts/plasma_fist.dm | 12 +- code/modules/martial_arts/skrell.dm | 10 +- code/modules/martial_arts/sleeping_carp.dm | 14 +- code/modules/martial_arts/sol_combat.dm | 14 +- code/modules/martial_arts/tajara.dm | 6 +- code/modules/martial_arts/unathi.dm | 10 +- code/modules/martial_arts/vaurca.dm | 6 +- code/modules/martial_arts/wrestling.dm | 8 +- code/modules/materials/material_sheets.dm | 6 +- code/modules/materials/materials.dm | 22 +- code/modules/mob/abstract/new_player/menu.dm | 6 +- .../mob/abstract/new_player/new_player.dm | 20 +- code/modules/mob/abstract/new_player/poll.dm | 26 +-- .../modules/mob/abstract/observer/observer.dm | 76 +++--- code/modules/mob/abstract/observer/say.dm | 2 +- code/modules/mob/abstract/unauthed/login.dm | 2 +- code/modules/mob/emote.dm | 6 +- code/modules/mob/hear_say.dm | 4 +- code/modules/mob/holder.dm | 16 +- code/modules/mob/inventory.dm | 6 +- .../mob/living/carbon/alien/alien_attacks.dm | 10 +- .../living/carbon/alien/diona/diona_powers.dm | 2 +- code/modules/mob/living/carbon/alien/life.dm | 2 +- .../mob/living/carbon/alien/progression.dm | 4 +- code/modules/mob/living/carbon/brain/emote.dm | 4 +- code/modules/mob/living/carbon/brain/life.dm | 8 +- .../mob/living/carbon/brain/posibrain.dm | 4 +- .../mob/living/carbon/carbon_defense.dm | 20 +- code/modules/mob/living/carbon/diona_base.dm | 2 +- code/modules/mob/living/carbon/human/death.dm | 2 +- .../modules/mob/living/carbon/human/devour.dm | 21 +- .../mob/living/carbon/human/diona_gestalt.dm | 2 +- .../mob/living/carbon/human/examine.dm | 72 +++--- code/modules/mob/living/carbon/human/human.dm | 12 +- .../living/carbon/human/human_attackhand.dm | 74 +++--- .../mob/living/carbon/human/human_damage.dm | 4 +- .../mob/living/carbon/human/human_defense.dm | 36 +-- .../mob/living/carbon/human/human_helpers.dm | 4 +- .../mob/living/carbon/human/human_organs.dm | 8 +- .../mob/living/carbon/human/human_powers.dm | 219 +++++++++--------- .../mob/living/carbon/human/inventory.dm | 6 +- code/modules/mob/living/carbon/human/life.dm | 16 +- .../living/carbon/human/species/species.dm | 18 +- .../carbon/human/species/species_attack.dm | 24 +- .../human/species/station/diona/diona.dm | 4 +- .../carbon/human/species/station/golem.dm | 10 +- .../species/station/human/human_subspecies.dm | 2 +- .../mob/living/carbon/human/stripping.dm | 36 +-- .../mob/living/carbon/human/unarmed_attack.dm | 62 ++--- code/modules/mob/living/carbon/taste.dm | 2 +- code/modules/mob/living/living.dm | 42 ++-- code/modules/mob/living/living_defense.dm | 22 +- code/modules/mob/living/living_powers.dm | 4 +- code/modules/mob/living/say.dm | 2 +- code/modules/mob/living/silicon/ai/ai.dm | 36 +-- code/modules/mob/living/silicon/ai/examine.dm | 20 +- .../modules/mob/living/silicon/ai/latejoin.dm | 4 +- code/modules/mob/living/silicon/ai/life.dm | 2 +- code/modules/mob/living/silicon/ai/malf.dm | 4 +- code/modules/mob/living/silicon/pai/emote.dm | 2 +- code/modules/mob/living/silicon/pai/life.dm | 2 +- .../mob/living/silicon/robot/analyzer.dm | 12 +- .../silicon/robot/drone/drone_console.dm | 2 +- .../mob/living/silicon/robot/examine.dm | 19 +- .../mob/living/silicon/robot/inventory.dm | 4 +- code/modules/mob/living/simple_animal/bees.dm | 10 +- .../simple_animal/constructs/soulstone.dm | 2 +- .../mob/living/simple_animal/friendly/carp.dm | 2 +- .../mob/living/simple_animal/friendly/cat.dm | 4 +- .../living/simple_animal/friendly/corgi.dm | 8 +- .../simple_animal/friendly/farm_animals.dm | 6 +- .../living/simple_animal/friendly/mushroom.dm | 6 +- .../mob/living/simple_animal/friendly/rat.dm | 14 +- .../living/simple_animal/friendly/ratking.dm | 26 +-- .../simple_animal/friendly/spiderbot.dm | 54 ++--- .../mob/living/simple_animal/hostile/bat.dm | 2 +- .../simple_animal/hostile/changeling.dm | 24 +- .../hostile/commanded/guard_dog.dm | 2 +- .../simple_animal/hostile/giant_spider.dm | 8 +- .../living/simple_animal/hostile/krampus.dm | 18 +- .../mob/living/simple_animal/hostile/mimic.dm | 4 +- .../living/simple_animal/hostile/moghes.dm | 2 +- .../simple_animal/hostile/retaliate/cavern.dm | 2 +- .../hostile/retaliate/retaliate.dm | 4 +- .../living/simple_animal/hostile/sarlacc.dm | 36 +-- .../simple_animal/hostile/space_fauna.dm | 2 +- .../simple_animal/hostile/spider_queen.dm | 2 +- .../living/simple_animal/hostile/syndicate.dm | 10 +- .../mob/living/simple_animal/hostile/tree.dm | 2 +- .../mob/living/simple_animal/parrot.dm | 26 +-- .../modules/mob/living/simple_animal/shade.dm | 40 ++-- .../mob/living/simple_animal/simple_animal.dm | 6 +- code/modules/mob/login.dm | 4 +- code/modules/mob/mob.dm | 38 +-- code/modules/mob/mob_grab_specials.dm | 78 +++---- code/modules/mob/mob_helpers.dm | 4 +- code/modules/mob/mob_transformation_simple.dm | 4 +- code/modules/mob/say.dm | 8 +- code/modules/mob/transform_procs.dm | 4 +- .../file_system/programs/command/card.dm | 2 +- .../programs/generic/lawmanager.dm | 6 +- code/modules/multiz/mobile_ladders.dm | 12 +- code/modules/multiz/movement.dm | 4 +- code/modules/multiz/pipes.dm | 2 +- code/modules/multiz/structures.dm | 24 +- code/modules/multiz/turfs/open_space.dm | 4 +- code/modules/organs/blood.dm | 4 +- code/modules/organs/internal/brain.dm | 10 +- code/modules/organs/internal/eyes.dm | 5 +- code/modules/organs/internal/heart.dm | 6 +- code/modules/organs/internal/lungs.dm | 14 +- code/modules/organs/organ.dm | 4 +- code/modules/organs/organ_external.dm | 64 ++--- code/modules/organs/pain.dm | 10 +- code/modules/organs/subtypes/autakh.dm | 31 +-- .../organs/subtypes/parasite/zombie.dm | 2 +- code/modules/organs/subtypes/vaurca.dm | 50 ++-- .../overmap/exoplanets/decor/_turfs.dm | 6 +- .../overmap/exoplanets/decor/flora/konyang.dm | 2 +- .../exoplanets/decor/flora/potted_big.dm | 12 +- .../overmap/exoplanets/decor/objs/pit.dm | 26 +-- .../overmap/ship_weaponry/_ship_ammunition.dm | 2 +- .../overmap/ship_weaponry/_ship_gun.dm | 8 +- code/modules/overmap/ships/computers/helm.dm | 2 +- .../overmap/ships/computers/sensors.dm | 12 +- .../overmap/ships/engines/gas_thruster.dm | 2 +- code/modules/paperwork/carbonpaper.dm | 2 +- code/modules/paperwork/clipboard.dm | 6 +- code/modules/paperwork/faxmachine.dm | 16 +- code/modules/paperwork/filingcabinet.dm | 8 +- code/modules/paperwork/folders.dm | 2 +- code/modules/paperwork/paper.dm | 2 +- code/modules/paperwork/paper_bundle.dm | 14 +- code/modules/paperwork/paperbin.dm | 16 +- code/modules/paperwork/pen.dm | 2 +- code/modules/paperwork/photography.dm | 12 +- code/modules/paperwork/silicon_photography.dm | 2 +- code/modules/power/batteryrack.dm | 10 +- code/modules/power/cell.dm | 2 +- code/modules/power/gravitygenerator.dm | 16 +- code/modules/power/portgen.dm | 6 +- code/modules/power/singularity/emitter.dm | 2 +- .../power/singularity/field_generator.dm | 4 +- .../particle_accelerator/particle_control.dm | 2 +- code/modules/power/singularity/singularity.dm | 46 ++-- code/modules/power/smes.dm | 36 ++- code/modules/power/smes_construction.dm | 18 +- code/modules/power/solar.dm | 22 +- code/modules/power/tesla/coil.dm | 4 +- code/modules/power/tracker.dm | 4 +- code/modules/projectiles/ammunition.dm | 16 +- code/modules/projectiles/guns/alien.dm | 4 +- code/modules/projectiles/guns/bang.dm | 10 +- .../projectiles/guns/energy/blaster.dm | 4 +- code/modules/projectiles/guns/energy/crank.dm | 8 +- code/modules/projectiles/guns/energy/laser.dm | 2 +- .../projectiles/guns/energy/lawgiver.dm | 34 +-- code/modules/projectiles/guns/energy/magic.dm | 4 +- .../projectiles/guns/energy/modular.dm | 20 +- .../projectiles/guns/energy/nuclear.dm | 8 +- code/modules/projectiles/guns/energy/rifle.dm | 4 +- .../modules/projectiles/guns/energy/scythe.dm | 4 +- .../projectiles/guns/energy/special.dm | 26 +-- code/modules/projectiles/guns/launcher.dm | 2 +- .../projectiles/guns/launcher/harpoon.dm | 6 +- .../projectiles/guns/launcher/pneumatic.dm | 14 +- .../projectiles/guns/launcher/rocket.dm | 8 +- .../projectiles/guns/launcher/syringe_gun.dm | 18 +- code/modules/projectiles/guns/projectile.dm | 32 +-- .../projectiles/guns/projectile/automatic.dm | 10 +- .../projectiles/guns/projectile/dartgun.dm | 12 +- .../projectiles/guns/projectile/improvised.dm | 31 +-- .../projectiles/guns/projectile/minigun.dm | 14 +- .../projectiles/guns/projectile/pistol.dm | 2 +- .../projectiles/guns/projectile/revolver.dm | 15 +- .../projectiles/guns/projectile/rifle.dm | 34 +-- .../projectiles/guns/projectile/shotgun.dm | 10 +- .../projectiles/guns/projectile/sniper.dm | 18 +- .../modules/projectiles/modular/laser_base.dm | 14 +- .../projectiles/modular/laser_components.dm | 8 +- code/modules/projectiles/pins.dm | 30 +-- code/modules/projectiles/projectile.dm | 7 +- code/modules/projectiles/projectile/beams.dm | 8 +- .../modules/projectiles/projectile/bullets.dm | 2 +- code/modules/projectiles/projectile/change.dm | 4 +- code/modules/projectiles/projectile/energy.dm | 2 +- .../modules/projectiles/projectile/special.dm | 24 +- .../psionics/complexus/complexus_helpers.dm | 4 +- code/modules/psionics/events/mini_spasm.dm | 2 +- code/modules/psionics/events/psi_wail.dm | 2 +- code/modules/random_map/drop/droppod_doors.dm | 4 +- code/modules/random_map/noise/ore.dm | 6 +- code/modules/random_map/random_map.dm | 6 +- code/modules/reagents/Chemistry-Machinery.dm | 17 +- .../Chemistry-Reagents-Core.dm | 4 +- .../Chemistry-Reagents-Dispenser.dm | 22 +- .../Chemistry-Reagents-Food-Drinks.dm | 33 +-- .../Chemistry-Reagents-Other.dm | 6 +- code/modules/reagents/Chemistry-Recipes.dm | 8 +- code/modules/reagents/dispenser/cartridge.dm | 16 +- code/modules/reagents/reagent_containers.dm | 30 +-- .../reagents/reagent_containers/food.dm | 2 +- .../reagent_containers/food/drinks.dm | 21 +- .../reagent_containers/food/drinks/bottle.dm | 10 +- .../reagents/reagent_containers/glass.dm | 14 +- .../reagents/reagent_containers/inhaler.dm | 41 ++-- .../reagent_containers/inhaler_advanced.dm | 55 +++-- .../reagents/reagent_containers/spray.dm | 6 +- .../reagent_containers/tooth_paste.dm | 18 +- code/modules/reagents/reagent_dispenser.dm | 21 +- code/modules/recycling/conveyor2.dm | 8 +- code/modules/recycling/disposal.dm | 16 +- code/modules/recycling/sortingmachinery.dm | 36 +-- code/modules/research/circuitprinter.dm | 14 +- code/modules/research/destructive_analyzer.dm | 14 +- code/modules/research/rdconsole.dm | 14 +- code/modules/research/server.dm | 4 +- .../xenoarchaeology/artifact/artifact.dm | 20 +- .../artifact/artifact_autocloner.dm | 8 +- .../artifact/artifact_crystal.dm | 2 +- .../artifact/artifact_gigadrill.dm | 6 +- .../artifact/artifact_replicator.dm | 10 +- .../xenoarchaeology/artifact/effect.dm | 2 +- .../artifact/effects/unknown_effect_mental.dm | 12 +- .../effects/unknown_effect_physical.dm | 33 ++- .../research/xenoarchaeology/chemistry.dm | 2 +- .../research/xenoarchaeology/finds/finds.dm | 2 +- .../xenoarchaeology/finds/finds_special.dm | 6 +- .../finds/finds_talkingitem.dm | 2 +- .../machinery/artifact_harvester.dm | 4 +- .../machinery/geosample_scanner.dm | 16 +- .../tools/ano_device_battery.dm | 22 +- .../research/xenoarchaeology/tools/tools.dm | 2 +- .../tools/tools_depthscanner.dm | 6 +- .../security levels/keycard authentication.dm | 2 +- code/modules/shareddream/brainghost.dm | 10 +- code/modules/shareddream/dream_entry.dm | 6 +- code/modules/shieldgen/emergency_shield.dm | 28 +-- code/modules/shuttles/shuttle.dm | 6 +- code/modules/shuttles/shuttle_arrival.dm | 2 +- code/modules/shuttles/shuttle_emergency.dm | 10 +- code/modules/shuttles/shuttle_specops.dm | 16 +- .../artifacts/items/lich_phylactery.dm | 4 +- .../spell_system/artifacts/items/poppet.dm | 32 +-- .../modules/spell_system/spells/spell_code.dm | 12 +- .../spells/spell_list/others/area/torment.dm | 2 +- .../spell_list/others/generic/harvest.dm | 4 +- .../spell_list/others/generic/life_steal.dm | 2 +- .../spells/spell_list/others/generic/mend.dm | 24 +- .../spells/spell_list/self/area/charge.dm | 6 +- .../spell_list/self/conjure/forcewall.dm | 2 +- .../spell_list/self/generic/ethereal_jaunt.dm | 2 +- .../spells/spell_list/self/generic/mutate.dm | 2 +- code/modules/supermatter/supermatter.dm | 2 +- code/modules/surgery/organs_internal.dm | 8 +- code/modules/tables/flipping.dm | 4 +- code/modules/tables/interactions.dm | 46 ++-- code/modules/tables/tables.dm | 32 +-- code/modules/telesci/bscrystal.dm | 5 +- code/modules/telesci/telesci_computer.dm | 8 +- code/modules/turbolift/turbolift_console.dm | 2 +- code/modules/vehicles/cargo_train.dm | 4 +- code/modules/vehicles/vehicle.dm | 19 +- code/modules/ventcrawl/ventcrawl.dm | 37 +-- .../ventcrawl/ventcrawl_atmospherics.dm | 6 +- code/modules/world_api/commands/admin.dm | 6 +- code/modules/world_api/commands/cciaa.dm | 2 +- html/changelogs/fluffyghost-span.yml | 58 +++++ interface/interface.dm | 4 +- maps/away/away_site/blueriver/blueriver.dm | 6 +- 687 files changed, 4572 insertions(+), 4295 deletions(-) create mode 100644 html/changelogs/fluffyghost-span.yml diff --git a/code/ZAS/Airflow.dm b/code/ZAS/Airflow.dm index 987be984375..f2cc6b9ce06 100644 --- a/code/ZAS/Airflow.dm +++ b/code/ZAS/Airflow.dm @@ -9,13 +9,13 @@ Contains helper procs for airflow, handled in /connection_group. if(last_airflow_stun > world.time - vsc.airflow_stun_cooldown) return 0 if(!(status_flags & CANSTUN) && !(status_flags & CANWEAKEN)) - to_chat(src, "You stay upright as the air rushes past you.") + to_chat(src, SPAN_NOTICE("You stay upright as the air rushes past you.")) return 0 if(buckled_to) - to_chat(src, "Air suddenly rushes past you!") + to_chat(src, SPAN_NOTICE("Air suddenly rushes past you!")) return 0 if(!lying) - to_chat(src, "The sudden rush of air knocks you over!") + to_chat(src, SPAN_WARNING("The sudden rush of air knocks you over!")) Weaken(5) last_airflow_stun = world.time @@ -92,7 +92,9 @@ Contains helper procs for airflow, handled in /connection_group. /mob/airflow_hit(atom/A) for(var/mob/M in hearers(src)) - M.show_message("\The [src] slams into \a [A]!",1,"You hear a loud slam!",2) + M.show_message(SPAN_DANGER("\The [src] slams into \a [A]!"),1, + SPAN_DANGER("You hear a loud slam!"),2) + playsound(src.loc, 'sound/weapons/smash.ogg', 25, 1, -1) var/weak_amt = istype(A,/obj/item) ? A:w_class : rand(1,5) //Heheheh Weaken(weak_amt) @@ -100,7 +102,9 @@ Contains helper procs for airflow, handled in /connection_group. /obj/airflow_hit(atom/A) for(var/mob/M in hearers(src)) - M.show_message("\The [src] slams into \a [A]!",1,"You hear a loud slam!",2) + M.show_message(SPAN_DANGER("\The [src] slams into \a [A]!"),1, + SPAN_DANGER("You hear a loud slam!"),2) + playsound(src.loc, 'sound/weapons/smash.ogg', 25, 1, -1) . = ..() @@ -110,7 +114,7 @@ Contains helper procs for airflow, handled in /connection_group. /mob/living/carbon/human/airflow_hit(atom/A) // for(var/mob/M in hearers(src)) -// M.show_message("[src] slams into [A]!",1,"You hear a loud slam!",2) +// M.show_message(SPAN_DANGER("[src] slams into [A]!",1,"You hear a loud slam!"),2) playsound(src.loc, /singleton/sound_category/punch_sound, 25, 1, -1) if (prob(33)) loc:add_blood(src) diff --git a/code/ZAS/Phoron.dm b/code/ZAS/Phoron.dm index db757c341a4..adb65ecc321 100644 --- a/code/ZAS/Phoron.dm +++ b/code/ZAS/Phoron.dm @@ -119,7 +119,7 @@ var/image/contamination_overlay = image('icons/effects/contamination.dmi') if(vsc.plc.GENETIC_CORRUPTION) if(rand(1,10000) < vsc.plc.GENETIC_CORRUPTION) randmutb(src) - to_chat(src, "High levels of toxins cause you to spontaneously mutate!") + to_chat(src, SPAN_DANGER("High levels of toxins cause you to spontaneously mutate!")) domutcheck(src,null) @@ -130,11 +130,11 @@ var/image/contamination_overlay = image('icons/effects/contamination.dmi') var/obj/item/organ/internal/eyes/E = get_eyes(no_synthetic = TRUE) if(E) - if(prob(20)) to_chat(src, "Your eyes burn!") + if(prob(20)) to_chat(src, SPAN_DANGER("Your eyes burn!")) E.damage += 2.5 eye_blurry = min(eye_blurry+1.5,50) if (prob(max(0,E.damage - 15) + 1) &&!eye_blind) - to_chat(src, "You are blinded!") + to_chat(src, SPAN_DANGER("You are blinded!")) eye_blind += 20 /mob/living/carbon/human/proc/pl_head_protected() diff --git a/code/ZAS/Variable Settings.dm b/code/ZAS/Variable Settings.dm index ad2bab88da5..1caf76cb9e1 100644 --- a/code/ZAS/Variable Settings.dm +++ b/code/ZAS/Variable Settings.dm @@ -169,7 +169,7 @@ var/global/vs_control/vsc = new vars[ch] = vw if(how == "Toggle") newvar = (newvar?"ON":"OFF") - to_world("[key_name(user)] changed the setting [display_description] to [newvar].") + to_world(SPAN_NOTICE("[key_name(user)] changed the setting [display_description] to [newvar].")) if(ch in plc.settings) ChangeSettingsDialog(user,plc.settings) else @@ -322,7 +322,7 @@ var/global/vs_control/vsc = new plc.N2O_HALLUCINATION = initial(plc.N2O_HALLUCINATION) - to_world("[key_name(user)] changed the global phoron/ZAS settings to \"[def]\"") + to_world(SPAN_NOTICE("[key_name(user)] changed the global phoron/ZAS settings to \"[def]\"")) /pl_control/var/list/settings = list() diff --git a/code/__HELPERS/atmospherics.dm b/code/__HELPERS/atmospherics.dm index 91e07179e7c..bdbe1714272 100644 --- a/code/__HELPERS/atmospherics.dm +++ b/code/__HELPERS/atmospherics.dm @@ -1,17 +1,17 @@ /obj/proc/analyze_gases(var/atom/A, var/mob/user) if(src != A) - user.visible_message("\The [user] has used \an [src] on \the [A]") + user.visible_message(SPAN_NOTICE("\The [user] has used \an [src] on \the [A]")) if(istype(A)) A.add_fingerprint(user) var/list/result = A.atmosanalyze(user) if(result && result.len) - to_chat(user, "Results of the analysis[src == A ? "" : " of [A]"]") + to_chat(user, SPAN_NOTICE("Results of the analysis[src == A ? "" : " of [A]"]")) for(var/line in result) - to_chat(user, "[line]") + to_chat(user, SPAN_NOTICE("[line]")) return 1 - to_chat(user, "Your [src] flashes a red light as it fails to analyze \the [A].") + to_chat(user, SPAN_WARNING("Your [src] flashes a red light as it fails to analyze \the [A].")) return 0 /proc/atmosanalyzer_scan(var/obj/target, var/datum/gas_mixture/mixture, var/mob/user) @@ -20,13 +20,13 @@ var/list/results = list() if (total_moles>0) - results += "Pressure: [round(pressure,0.1)] kPa" - results += "Moles: [round(total_moles,0.1)]" + results += SPAN_NOTICE("Pressure: [round(pressure,0.1)] kPa") + results += SPAN_NOTICE("Moles: [round(total_moles,0.1)]") for(var/mix in mixture.gas) - results += "[gas_data.name[mix]]: [round((mixture.gas[mix] / total_moles) * 100)]%" - results += "Temperature: [round(mixture.temperature-T0C)]°C" + results += SPAN_NOTICE("[gas_data.name[mix]]: [round((mixture.gas[mix] / total_moles) * 100)]%") + results += SPAN_NOTICE("Temperature: [round(mixture.temperature-T0C)]°C") else - results += "\The [target] is empty!" + results += SPAN_NOTICE("\The [target] is empty!") return results diff --git a/code/__HELPERS/files.dm b/code/__HELPERS/files.dm index ee86cd76675..d78e3fe4384 100644 --- a/code/__HELPERS/files.dm +++ b/code/__HELPERS/files.dm @@ -55,7 +55,7 @@ valid_extension = TRUE if( !fexists(path) || !valid_extension ) - to_chat(src, "Error: browse_files(): File not found/Invalid file([path]).") + to_chat(src, SPAN_WARNING("Error: browse_files(): File not found/Invalid file([path]).")) return return path @@ -69,7 +69,7 @@ /client/proc/file_spam_check() var/time_to_wait = GLOB.fileaccess_timer - world.time if(time_to_wait > 0) - to_chat(src, "Error: file_spam_check(): Spam. Please wait [round(time_to_wait/10)] seconds.") + to_chat(src, SPAN_WARNING("Error: file_spam_check(): Spam. Please wait [round(time_to_wait/10)] seconds.")) return 1 GLOB.fileaccess_timer = world.time + FTPDELAY return 0 diff --git a/code/__HELPERS/mobs.dm b/code/__HELPERS/mobs.dm index 4d02ecc68f9..856ed84328b 100644 --- a/code/__HELPERS/mobs.dm +++ b/code/__HELPERS/mobs.dm @@ -186,7 +186,7 @@ Proc for attack log creation, because really why not if(target && ismob(target)) target.attack_log += text("\[[time_stamp()]\] Has been [what_done] by [user ? "[user.name][(ismob(user) && user.ckey) ? "([user.ckey])" : ""]" : "NON-EXISTANT SUBJECT"][object ? " with [object]" : " "][addition]") if(admin) - log_attack("[user ? "[user.name][(ismob(user) && user.ckey) ? "([user.ckey])" : ""]" : "NON-EXISTANT SUBJECT"] [what_done] [target ? "[target.name][(ismob(target) && target.ckey)? "([target.ckey])" : ""]" : "NON-EXISTANT SUBJECT"][object ? " with [object]" : " "][addition]",ckey=key_name(user),ckey_target=key_name(target)) + log_attack(SPAN_WARNING("[user ? "[user.name][(ismob(user) && user.ckey) ? "([user.ckey])" : ""]" : "NON-EXISTANT SUBJECT"] [what_done] [target ? "[target.name][(ismob(target) && target.ckey)? "([target.ckey])" : ""]" : "NON-EXISTANT SUBJECT"][object ? " with [object]" : " "][addition]"),ckey=key_name(user),ckey_target=key_name(target)) //checks whether this item is a module of the robot or exosuit it is located in. This is mainly to ensure that things do not get embedded or fed into autolathes if attached to a bot or exosuit /proc/is_robot_module(var/obj/item/thing) diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index 0e4dad6f917..4d00b9d752b 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -338,7 +338,7 @@ /mob/living/LaserEyes(atom/A, params) setClickCooldown(4) var/turf/T = get_turf(src) - src.visible_message("\The [src]'s eyes flare with ruby light!") + src.visible_message(SPAN_DANGER("\The [src]'s eyes flare with ruby light!")) var/obj/item/projectile/beam/LE = new (T) LE.muzzle_type = /obj/effect/projectile/muzzle/eyelaser LE.tracer_type = /obj/effect/projectile/tracer/eyelaser @@ -348,7 +348,7 @@ /mob/living/carbon/human/LaserEyes(atom/A, params) if(nutrition <= 0) - to_chat(src, "You're out of energy! You need food!") + to_chat(src, SPAN_WARNING("You're out of energy! You need food!")) return ..() adjustNutritionLoss(rand(1,5)) diff --git a/code/_onclick/hud/ability_screen_objects.dm b/code/_onclick/hud/ability_screen_objects.dm index b94e9666613..ef1dbaf5728 100644 --- a/code/_onclick/hud/ability_screen_objects.dm +++ b/code/_onclick/hud/ability_screen_objects.dm @@ -212,7 +212,7 @@ if(!mob) return // Paranoid. if(isnull(slot) || !isnum(slot)) - to_chat(src, ".activate_ability requires a number as input, corrisponding to the slot you wish to use.") + to_chat(src, SPAN_WARNING(".activate_ability requires a number as input, corrisponding to the slot you wish to use.")) return // Bad input. if(!mob.ability_master) return // No abilities. diff --git a/code/_onclick/hud/robot.dm b/code/_onclick/hud/robot.dm index a060fd232c2..abf03dc6878 100644 --- a/code/_onclick/hud/robot.dm +++ b/code/_onclick/hud/robot.dm @@ -179,11 +179,11 @@ var/obj/screen/robot_inventory //r.client.screen += robot_inventory //"store" icon if(!r.module) - to_chat(usr, "No module selected") + to_chat(usr, SPAN_DANGER("No module selected")) return if(!r.module.modules) - to_chat(usr, "Selected module has no modules to select") + to_chat(usr, SPAN_DANGER("Selected module has no modules to select")) return if(!r.robot_modules_background) diff --git a/code/_onclick/hud/screen_object_types/internals.dm b/code/_onclick/hud/screen_object_types/internals.dm index 2cfd33ab829..e3d47af7d18 100644 --- a/code/_onclick/hud/screen_object_types/internals.dm +++ b/code/_onclick/hud/screen_object_types/internals.dm @@ -10,12 +10,12 @@ if(!C.stat && !C.stunned && !C.paralysis && !C.restrained()) if(C.internal) C.internal = null - to_chat(C, "No longer running on internals.") + to_chat(C, SPAN_NOTICE("No longer running on internals.")) if(C.internals) C.internals.icon_state = "internal0" else if(!has_internals_mask(C)) - to_chat(C, "You are not wearing a suitable mask or helmet.") + to_chat(C, SPAN_NOTICE("You are not wearing a suitable mask or helmet.")) return 1 else var/list/nicename = null @@ -133,7 +133,7 @@ //We've determined the best container now we set it as our internals if(best) - to_chat(C, "You are now running on internals from [tankcheck[best]] [from] your [nicename[best]].") + to_chat(C, SPAN_NOTICE("You are now running on internals from [tankcheck[best]] [from] your [nicename[best]].")) playsound(usr, 'sound/effects/internals.ogg', 100, 1) C.internal = tankcheck[best] @@ -142,7 +142,7 @@ if(C.internals) C.internals.icon_state = "internal1" else - to_chat(C, "You don't have a[breathes==GAS_OXYGEN ? "n oxygen" : addtext(" ",breathes)] tank.") + to_chat(C, SPAN_NOTICE("You don't have a[breathes==GAS_OXYGEN ? "n oxygen" : addtext(" ",breathes)] tank.")) /obj/screen/internals/proc/lose_internals(var/mob/living/carbon/human/user) icon_state = "internal0" diff --git a/code/_onclick/hud/screen_objects.dm b/code/_onclick/hud/screen_objects.dm index 50c87fef0ec..20ad71b9fa3 100644 --- a/code/_onclick/hud/screen_objects.dm +++ b/code/_onclick/hud/screen_objects.dm @@ -358,9 +358,9 @@ if (!T) to_chat(usr, SPAN_NOTICE("There is nothing above you!")) else if (T.is_hole) - to_chat(usr, "There's no roof above your head! You can see up!") + to_chat(usr, SPAN_NOTICE("There's no roof above your head! You can see up!")) else - to_chat(usr, "You see a ceiling staring back at you.") + to_chat(usr, SPAN_NOTICE("You see a ceiling staring back at you.")) if("module") if(isrobot(usr)) @@ -490,7 +490,7 @@ return if(C.legcuffed) - to_chat(C, "You are legcuffed! You cannot run until you get [C.legcuffed] removed!") + to_chat(C, SPAN_NOTICE("You are legcuffed! You cannot run until you get [C.legcuffed] removed!")) C.m_intent = M_WALK //Just incase C.hud_used.move_intent.icon_state = "walking" return 1 diff --git a/code/_onclick/item_attack.dm b/code/_onclick/item_attack.dm index 68041b7fd22..843d3eed489 100644 --- a/code/_onclick/item_attack.dm +++ b/code/_onclick/item_attack.dm @@ -100,7 +100,7 @@ avoid code duplication. This includes items that may sometimes act as a standard return if(force && user.is_pacified()) - to_chat(user, "You don't want to harm other living beings!") + to_chat(user, SPAN_WARNING("You don't want to harm other living beings!")) return 0 if(!force) diff --git a/code/_onclick/observer.dm b/code/_onclick/observer.dm index 8abdab43ccc..63246f1e2c9 100644 --- a/code/_onclick/observer.dm +++ b/code/_onclick/observer.dm @@ -6,9 +6,9 @@ if(!client) return client.inquisitive_ghost = !client.inquisitive_ghost if(client.inquisitive_ghost) - to_chat(src, "You will now examine everything you click on.") + to_chat(src, SPAN_NOTICE("You will now examine everything you click on.")) else - to_chat(src, "You will no longer examine things you click on.") + to_chat(src, SPAN_NOTICE("You will no longer examine things you click on.")) /mob/abstract/observer/DblClickOn(var/atom/A, var/params) if(can_reenter_corpse && mind && mind.current) diff --git a/code/_onclick/other_mobs.dm b/code/_onclick/other_mobs.dm index fe0ed44f5c8..046437687d7 100644 --- a/code/_onclick/other_mobs.dm +++ b/code/_onclick/other_mobs.dm @@ -96,7 +96,9 @@ if(istype(M)) switch(src.a_intent) if (I_HELP) // We just poke the other - M.visible_message("[src] gently pokes [M]!", "[src] gently pokes you!") + M.visible_message(SPAN_NOTICE("[src] gently pokes [M]!"), + SPAN_NOTICE("[src] gently pokes you!")) + if (I_DISARM) // We stun the target, with the intention to feed var/stunprob = 1 var/power = max(0, min(10, (powerlevel + rand(0, 3)))) @@ -123,7 +125,9 @@ if(prob(stunprob)) powerlevel = max(0, powerlevel-3) - M.visible_message("[src] has shocked [M]!", "[src] has shocked you!") + M.visible_message(SPAN_DANGER("[src] has shocked [M]!"), + SPAN_DANGER("[src] has shocked you!")) + M.Weaken(power) M.Stun(power) M.stuttering = max(M.stuttering, power) @@ -133,10 +137,14 @@ if(prob(stunprob) && powerlevel >= 8) M.adjustFireLoss(powerlevel * rand(6,10)) else if(prob(40)) - M.visible_message("[src] has pounced at [M]!", "[src] has pounced at you!") + M.visible_message(SPAN_DANGER("[src] has pounced at [M]!"), + SPAN_DANGER("[src] has pounced at you!")) + M.Weaken(power) else - M.visible_message("[src] has tried to pounce at [M]!", "[src] has tried to pounce at you!") + M.visible_message(SPAN_DANGER("[src] has tried to pounce at [M]!"), + SPAN_DANGER("[src] has tried to pounce at you!")) + M.updatehealth() if (I_GRAB) // We feed Wrap(M) diff --git a/code/controllers/subsystems/air.dm b/code/controllers/subsystems/air.dm index 6deb7bcc6f6..304fda263c8 100644 --- a/code/controllers/subsystems/air.dm +++ b/code/controllers/subsystems/air.dm @@ -146,7 +146,7 @@ SUBSYSTEM_DEF(air) Total Simulated Turfs: [simulated_turf_count] Total Zones: [zones.len] Total Edges: [edges.len] -Total Active Edges: [active_edges.len ? "[active_edges.len]" : "None"] +Total Active Edges: [active_edges.len ? SPAN_DANGER("[active_edges.len]") : "None"] Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_count] "}, R_DEBUG) diff --git a/code/controllers/subsystems/event.dm b/code/controllers/subsystems/event.dm index 718b575ffa5..a14358aec5f 100644 --- a/code/controllers/subsystems/event.dm +++ b/code/controllers/subsystems/event.dm @@ -93,7 +93,7 @@ SUBSYSTEM_DEF(events) /datum/controller/subsystem/events/proc/Interact(mob/living/user) if (!initialized) - to_chat(user, "The [src] subsystem has not initialized yet. Please wait until server init completes before trying to use the Event Manager panel.") + to_chat(user, SPAN_ALERT("The [src] subsystem has not initialized yet. Please wait until server init completes before trying to use the Event Manager panel.")) return var/html = GetInteractWindow() diff --git a/code/controllers/subsystems/initialization/atlas.dm b/code/controllers/subsystems/initialization/atlas.dm index fbdfc1f561c..95182cc6cda 100644 --- a/code/controllers/subsystems/initialization/atlas.dm +++ b/code/controllers/subsystems/initialization/atlas.dm @@ -143,7 +143,7 @@ SUBSYSTEM_DEF(atlas) /datum/controller/subsystem/atlas/Initialize(timeofday) // Quick sanity check. if (world.maxx != WORLD_MIN_SIZE || world.maxy != WORLD_MIN_SIZE || world.maxz != 1) - to_world("WARNING: Suspected pre-compiled map: things may break horribly!") + to_world(SPAN_WARNING("WARNING: Suspected pre-compiled map: things may break horribly!")) log_subsystem_atlas("-- WARNING: Suspected pre-compiled map! --") maploader = new @@ -165,7 +165,7 @@ SUBSYSTEM_DEF(atlas) if (!map_override) map_override = get_selected_map() - admin_notice("Loading map [map_override].", R_DEBUG) + admin_notice(SPAN_DANGER("Loading map [map_override]."), R_DEBUG) log_subsystem_atlas("Using map '[map_override]'.") current_map = known_maps[map_override] @@ -180,7 +180,7 @@ SUBSYSTEM_DEF(atlas) var/maps_loaded = load_map_directory("maps/[current_map.path]/", TRUE) log_subsystem_atlas("Loaded [maps_loaded] maps.") - admin_notice("Loaded [maps_loaded] levels.") + admin_notice(SPAN_DANGER("Loaded [maps_loaded] levels.")) if (!maps_loaded) world.map_panic("No maps loaded!") @@ -317,7 +317,7 @@ SUBSYSTEM_DEF(atlas) // Called when there's a fatal, unrecoverable error in mapload. This reboots the server. /world/proc/map_panic(reason) - to_chat(world, "Fatal error during map setup, unable to continue! Server will reboot in 60 seconds.") + to_chat(world, SPAN_DANGER("Fatal error during map setup, unable to continue! Server will reboot in 60 seconds.")) log_subsystem_atlas("-- FATAL ERROR DURING MAP SETUP: [uppertext(reason)] --") sleep(1 MINUTE) world.Reboot() diff --git a/code/controllers/subsystems/initialization/misc_late.dm b/code/controllers/subsystems/initialization/misc_late.dm index 12e1a4fc810..a810643707f 100644 --- a/code/controllers/subsystems/initialization/misc_late.dm +++ b/code/controllers/subsystems/initialization/misc_late.dm @@ -25,7 +25,7 @@ SUBSYSTEM_DEF(misc_late) setupgenetics() if (GLOB.config.fastboot) - admin_notice("Fastboot is enabled; some features may not be available.", R_DEBUG) + admin_notice(SPAN_NOTICE("Fastboot is enabled; some features may not be available."), R_DEBUG) populate_code_phrases() diff --git a/code/controllers/subsystems/job.dm b/code/controllers/subsystems/job.dm index a2676b7cf09..e1555240b44 100644 --- a/code/controllers/subsystems/job.dm +++ b/code/controllers/subsystems/job.dm @@ -45,7 +45,7 @@ SUBSYSTEM_DEF(jobs) occupations = list() var/list/all_jobs = SSatlas.current_map.allowed_jobs if(!all_jobs.len) - to_world("Error setting up jobs, no job datums found!") + to_world(SPAN_WARNING("Error setting up jobs, no job datums found!")) return FALSE for(var/J in all_jobs) @@ -105,7 +105,7 @@ SUBSYSTEM_DEF(jobs) return FALSE if(!(player.client.prefs.GetPlayerAltTitle(job) in player.client.prefs.GetValidTitles(job))) - to_chat(player, "Your character is too young!") + to_chat(player, SPAN_WARNING("Your character is too young!")) return FALSE var/position_limit = job.get_total_positions() @@ -432,7 +432,7 @@ SUBSYSTEM_DEF(jobs) var/datum/spawnpoint/spawnpos = SSatlas.spawn_locations["Cryogenic Storage"] if(spawnpos && istype(spawnpos)) - to_chat(src, "You come to the sudden realization that you never left the [SSatlas.current_map.station_name] at all! You were in cryo the whole time!") + to_chat(src, SPAN_WARNING("You come to the sudden realization that you never left the [SSatlas.current_map.station_name] at all! You were in cryo the whole time!")) src.forceMove(pick(spawnpos.turfs)) GLOB.global_announcer.autosay("[real_name], [mind.role_alt_title], [spawnpos.msg].", "Cryogenic Oversight") var/rank= src.mind.assigned_role @@ -450,7 +450,7 @@ SUBSYSTEM_DEF(jobs) var/datum/spawnpoint/spawnpos = SSatlas.spawn_locations["Cyborg Storage"] if(spawnpos && istype(spawnpos)) - to_chat(src, "You come to the sudden realization that you never left the [SSatlas.current_map.station_name] at all! You were in robotic storage the whole time!") + to_chat(src, SPAN_WARNING("You come to the sudden realization that you never left the [SSatlas.current_map.station_name] at all! You were in robotic storage the whole time!")) src.forceMove(pick(spawnpos.turfs)) GLOB.global_announcer.autosay("[real_name], [mind.role_alt_title], [spawnpos.msg].", "Robotic Oversight") else @@ -462,12 +462,18 @@ SUBSYSTEM_DEF(jobs) /datum/controller/subsystem/jobs/proc/centcomm_despawn_mob(mob/living/H) if(ishuman(H)) GLOB.global_announcer.autosay("[H.real_name], [H.mind.role_alt_title], has entered long-term storage.", "[SSatlas.current_map.dock_name] Cryogenic Oversight") - H.visible_message("[H.name] makes their way to the [SSatlas.current_map.dock_short]'s cryostorage, and departs.", "You make your way into [SSatlas.current_map.dock_short]'s cryostorage, and depart.", range = 3) + + H.visible_message(SPAN_NOTICE("[H.name] makes their way to the [SSatlas.current_map.dock_short]'s cryostorage, and departs."), + SPAN_NOTICE("You make your way into [SSatlas.current_map.dock_short]'s cryostorage, and depart."), range = 3) + DespawnMob(H) else if(!isDrone(H)) GLOB.global_announcer.autosay("[H.real_name], [H.mind.role_alt_title], has entered robotic storage.", "[SSatlas.current_map.dock_name] Robotic Oversight") - H.visible_message("[H.name] makes their way to the [SSatlas.current_map.dock_short]'s robotic storage, and departs.", "You make your way into [SSatlas.current_map.dock_short]'s robotic storage, and depart.", range = 3) + + H.visible_message(SPAN_NOTICE("[H.name] makes their way to the [SSatlas.current_map.dock_short]'s robotic storage, and departs."), + SPAN_NOTICE("You make your way into [SSatlas.current_map.dock_short]'s robotic storage, and depart."), range = 3) + DespawnMob(H) /datum/controller/subsystem/jobs/proc/LoadJobs(jobsfile) @@ -610,7 +616,7 @@ SUBSYSTEM_DEF(jobs) // them win or lose based on cryo is silly so we remove the objective. if(O.target == H.mind) if(O.owner && O.owner.current) - to_chat(O.owner.current, "You get the feeling your target is no longer within your reach...") + to_chat(O.owner.current, SPAN_WARNING("You get the feeling your target is no longer within your reach...")) qdel(O) //Handle job slot/tater cleanup. @@ -763,7 +769,7 @@ SUBSYSTEM_DEF(jobs) var/obj/item/storage/B = locate() in H if (B) for (var/thing in items) - to_chat(H, "Placing \the [thing] in your [B.name]!") + to_chat(H, SPAN_NOTICE("Placing \the [thing] in your [B.name]!")) var/datum/gear/G = gear_datums[thing] var/metadata var/list/gear_test = prefs.gear[G.display_name] @@ -775,7 +781,7 @@ SUBSYSTEM_DEF(jobs) log_loadout("EIS/([H]): placed [thing] in [B].") else - to_chat(H, "Failed to locate a storage object on your mob, either you spawned with no arms and no backpack or this is a bug.") + to_chat(H, SPAN_DANGER("Failed to locate a storage object on your mob, either you spawned with no arms and no backpack or this is a bug.")) log_loadout("EIS/([H]): unable to equip; no storage.") log_loadout("EIS/([H]): Complete.") diff --git a/code/controllers/subsystems/responseteam.dm b/code/controllers/subsystems/responseteam.dm index 09bcfa7c5d5..1d722b78181 100644 --- a/code/controllers/subsystems/responseteam.dm +++ b/code/controllers/subsystems/responseteam.dm @@ -130,13 +130,13 @@ SUBSYSTEM_DEF(distress) set desc = "Send an emergency response team to the ship." if(!holder) - to_chat(usr, "Only administrators may use this command.") + to_chat(usr, SPAN_DANGER("Only administrators may use this command.")) return if(!ROUND_IS_STARTED) - to_chat(usr, "The round hasn't started yet!") + to_chat(usr, SPAN_DANGER("The round hasn't started yet!")) return if(SSdistress.send_emergency_team) - to_chat(usr, "[SSatlas.current_map.boss_name] has already dispatched an emergency response team!") + to_chat(usr, SPAN_DANGER("[SSatlas.current_map.boss_name] has already dispatched an emergency response team!")) return if(alert("Do you want to dispatch an Emergency Response Team?",,"Yes","No") != "Yes") return @@ -152,7 +152,7 @@ SUBSYSTEM_DEF(distress) var/choice = input(usr, "Select the response team type.","Response Team Selection", plaintext_teams) if(SSdistress.send_emergency_team) - to_chat(usr, "Looks like somebody beat you to it!") + to_chat(usr, SPAN_DANGER("Looks like somebody beat you to it!")) return message_admins("[key_name_admin(usr)] is dispatching a Response Team: [choice].", 1) diff --git a/code/controllers/subsystems/ticker.dm b/code/controllers/subsystems/ticker.dm index 1f4ad87ffd9..d3c6be4ee4b 100644 --- a/code/controllers/subsystems/ticker.dm +++ b/code/controllers/subsystems/ticker.dm @@ -199,11 +199,11 @@ var/datum/controller/subsystem/ticker/SSticker else feedback_set_details("end_proper","universe destroyed") if(!delay_end) - to_world("Rebooting due to destruction of station in [restart_timeout/10] seconds") + to_world(SPAN_NOTICE("Rebooting due to destruction of station in [restart_timeout/10] seconds")) else feedback_set_details("end_proper","proper completion") if(!delay_end) - to_world("Restarting in [restart_timeout/10] seconds") + to_world(SPAN_NOTICE("Restarting in [restart_timeout/10] seconds")) var/wait_for_tickets var/delay_notified = 0 @@ -216,11 +216,11 @@ var/datum/controller/subsystem/ticker/SSticker if(wait_for_tickets) if(!delay_notified) delay_notified = 1 - message_admins("Automatically delaying restart due to active tickets.") - to_world("An admin has delayed the round end") + message_admins(SPAN_WARNING("Automatically delaying restart due to active tickets.")) + to_world(SPAN_NOTICE("An admin has delayed the round end")) sleep(15 SECONDS) else if(delay_notified) - message_admins("No active tickets remaining, restarting in [restart_timeout/10] seconds if an admin has not delayed the round end.") + message_admins(SPAN_WARNING("No active tickets remaining, restarting in [restart_timeout/10] seconds if an admin has not delayed the round end.")) while(wait_for_tickets) if(!delay_end) @@ -228,9 +228,9 @@ var/datum/controller/subsystem/ticker/SSticker if(!delay_end) world.Reboot() else if(!delay_notified) - to_world("An admin has delayed the round end") + to_world(SPAN_NOTICE("An admin has delayed the round end")) else if(!delay_notified) - to_world("An admin has delayed the round end") + to_world(SPAN_NOTICE("An admin has delayed the round end")) //If we have not finished the game already, and assuming it's time, call the transfer vote as per config if(!game_finished && !mode_finished && !post_game) diff --git a/code/datums/ai_laws.dm b/code/datums/ai_laws.dm index 87ad9699a64..b3136f9aca7 100644 --- a/code/datums/ai_laws.dm +++ b/code/datums/ai_laws.dm @@ -229,13 +229,13 @@ var/global/const/base_law_type = /datum/ai_laws/nanotrasen continue var/mob/M = who if(law == zeroth_law) - to_chat(who, "[law.get_index()]. [law.law]") + to_chat(who, SPAN_DANGER("[law.get_index()]. [law.law]")) if(ismob(who) && M.vr_mob) - to_chat(M.vr_mob, "[law.get_index()]. [law.law]") + to_chat(M.vr_mob, SPAN_DANGER("[law.get_index()]. [law.law]")) else to_chat(who, "[law.get_index()]. [law.law]") if(ismob(who) && M.vr_mob) - to_chat(M.vr_mob, "[law.get_index()]. [law.law]") + to_chat(M.vr_mob, SPAN_DANGER("[law.get_index()]. [law.law]")) /datum/ai_laws/proc/get_laws(var/who) . = list() @@ -245,13 +245,13 @@ var/global/const/base_law_type = /datum/ai_laws/nanotrasen continue var/mob/M = who if(law == zeroth_law) - . += "[law.get_index()]. [law.law]" + . += SPAN_DANGER("[law.get_index()]. [law.law]") if(ismob(who) && M.vr_mob) - . += "[law.get_index()]. [law.law]" + . += SPAN_DANGER("[law.get_index()]. [law.law]") else . += "[law.get_index()]. [law.law]" if(ismob(who) && M.vr_mob) - . += "[law.get_index()]. [law.law]" + . += SPAN_DANGER("[law.get_index()]. [law.law]") /******************** * Stating Laws * diff --git a/code/datums/components/multitool/multitool.dm b/code/datums/components/multitool/multitool.dm index 3a97694a5eb..136a378113b 100644 --- a/code/datums/components/multitool/multitool.dm +++ b/code/datums/components/multitool/multitool.dm @@ -73,7 +73,7 @@ if(M.get_buffer() == buffer && buffer) receive_buffer(M, buffer, user) else if(!buffer) - to_chat(user, "Unable to acquire data from the buffered object. Purging from memory.") + to_chat(user, SPAN_WARNING("Unable to acquire data from the buffered object. Purging from memory.")) return MT_REFRESH /datum/component/multitool/proc/receive_buffer(var/obj/item/device/multitool/M, var/atom/buffer, var/mob/user) diff --git a/code/datums/helper_datums/teleport.dm b/code/datums/helper_datums/teleport.dm index eeb6ef54064..1201d9fb354 100644 --- a/code/datums/helper_datums/teleport.dm +++ b/code/datums/helper_datums/teleport.dm @@ -218,12 +218,12 @@ if(organs_to_gib.len) var/obj/item/organ/external/E = pick(organs_to_gib) - to_chat(H, "You partially phase into \the [impediment], causing your [E.name] to violently dematerialize!") + to_chat(H, SPAN_DANGER("You partially phase into \the [impediment], causing your [E.name] to violently dematerialize!")) H.apply_damage(35, DAMAGE_BRUTE, E, 0) else if(newdest) - to_chat(L, "You partially phase into \the [impediment], causing a chunk of you to violently dematerialize!") + to_chat(L, SPAN_DANGER("You partially phase into \the [impediment], causing a chunk of you to violently dematerialize!")) L.adjustBruteLoss(40) else @@ -254,13 +254,13 @@ if(!L.mind && !isvaurca(L)) if(BS.message_countdown >= 200) - to_chat(BS, "You feel relief wash over you as your harried spirit fills into \the [L] like water into a vase.") + to_chat(BS, SPAN_NOTICE("You feel relief wash over you as your harried spirit fills into \the [L] like water into a vase.")) BS.mind.transfer_to(L) to_chat(L, "You have been restored to a corporeal form. You retain no memories of your time as a bluespace echo, but regardless of your current form the memories of your time before being a bluespace echo are returned.") qdel(BS) else - to_chat(BS, "You lack the strength of echoes necessary to reattain corporeality in \the [L]!") + to_chat(BS, SPAN_WARNING("You lack the strength of echoes necessary to reattain corporeality in \the [L]!")) break @@ -306,12 +306,12 @@ precision = max(rand(1,100)*bagholding.len,100) if(istype(teleatom, /mob/living)) var/mob/living/MM = teleatom - to_chat(MM, "The Bluespace interface on your [teleatom] interferes with the teleport!") + to_chat(MM, SPAN_DANGER("The Bluespace interface on your [teleatom] interferes with the teleport!")) return TRUE /datum/teleport/instant/science/teleportChecks() if(istype(teleatom, /obj/item/disk/nuclear)) // Don't let nuke disks get teleported --NeoFite - teleatom.visible_message("\The [teleatom] bounces off of the portal!") + teleatom.visible_message(SPAN_DANGER("\The [teleatom] bounces off of the portal!")) return FALSE @@ -322,14 +322,14 @@ if(!isemptylist(teleatom.search_contents_for(/obj/item/disk/nuclear))) if(istype(teleatom, /mob/living)) var/mob/living/MM = teleatom - MM.visible_message("\The [MM] bounces off of the portal!","Something you are carrying seems to be unable to pass through the portal. Better drop it if you want to go through.") + MM.visible_message(SPAN_DANGER("\The [MM] bounces off of the portal!"),SPAN_WARNING("Something you are carrying seems to be unable to pass through the portal. Better drop it if you want to go through.")) else - teleatom.visible_message("\The [teleatom] bounces off of the portal!") + teleatom.visible_message(SPAN_DANGER("\The [teleatom] bounces off of the portal!")) return FALSE if(isAdminLevel(destination.z)) //centcomm z-level if(!isemptylist(teleatom.search_contents_for(/obj/item/storage/backpack/holding))) - teleatom.visible_message("\The [teleatom] bounces off of the portal!") + teleatom.visible_message(SPAN_DANGER("\The [teleatom] bounces off of the portal!")) return FALSE diff --git a/code/datums/mind.dm b/code/datums/mind.dm index e1cfffaf730..e39acab1014 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -198,7 +198,7 @@ if(antag.add_antagonist(src, 1, 1, 0, 1, 1)) // Ignore equipment and role type for this. log_admin("[key_name_admin(usr)] made [key_name(src, highlight_special = 1)] into a [antag.role_text].",admin_key=key_name(usr),ckey=key_name(src)) else - to_chat(usr, "[src] could not be made into a [antag.role_text]!") + to_chat(usr, SPAN_WARNING("[src] could not be made into a [antag.role_text]!")) else if(href_list["remove_antagonist"]) var/datum/antagonist/antag = GLOB.all_antag_types[href_list["remove_antagonist"]] @@ -231,7 +231,7 @@ if(isnull(new_ambition)) return src.ambitions = sanitize(new_ambition) - to_chat(src.current, "Your ambitions have been changed by higher powers, they are now: [src.ambitions]") + to_chat(src.current, SPAN_WARNING("Your ambitions have been changed by higher powers, they are now: [src.ambitions]")) else if (href_list["obj_edit"] || href_list["obj_add"]) var/datum/objective/objective @@ -376,10 +376,10 @@ if(I in organs.implants) qdel(I) break - to_chat(H, "Your loyalty implant has been deactivated.") + to_chat(H, SPAN_NOTICE("Your loyalty implant has been deactivated.")) log_admin("[key_name_admin(usr)] has de-loyalty implanted [current].",admin_key=key_name(usr),ckey=key_name(usr)) if("add") - to_chat(H, "You somehow have become the recipient of a loyalty transplant, and it just activated!") + to_chat(H, SPAN_DANGER("You somehow have become the recipient of a loyalty transplant, and it just activated!")) H.implant_loyalty(H, override = TRUE) log_admin("[key_name_admin(usr)] has loyalty implanted [current].",admin_key=key_name(usr),ckey=key_name(usr)) @@ -445,7 +445,7 @@ else if (href_list["obj_announce"]) var/obj_count = 1 - to_chat(current, "Your current objectives:") + to_chat(current, SPAN_NOTICE("Your current objectives:")) for(var/datum/objective/objective in objectives) to_chat(current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ diff --git a/code/datums/trading/unique.dm b/code/datums/trading/unique.dm index b476a95035b..33c4f6e1bb7 100644 --- a/code/datums/trading/unique.dm +++ b/code/datums/trading/unique.dm @@ -73,7 +73,7 @@ "insult_bad" = "I'm marking you for a hit..." ) - mob_transfer_message = "You are transported to ORIGIN, and with a sickening thud, you fall unconscious, never to wake again." + mob_transfer_message = SPAN_DANGER("You are transported to ORIGIN, and with a sickening thud, you fall unconscious, never to wake again.") /datum/trader/ship/unique/severance name = "Unknown" @@ -110,7 +110,7 @@ "insult_bad" = "Maybe you should c-come here and say that. You'd be worth s-something then." ) - mob_transfer_message = "You are transported to ORIGIN, and with a sickening thud, you fall unconscious, never to wake again." + mob_transfer_message = SPAN_DANGER("You are transported to ORIGIN, and with a sickening thud, you fall unconscious, never to wake again.") /datum/trader/ship/unique/rock diff --git a/code/datums/uplink/announcements.dm b/code/datums/uplink/announcements.dm index 025260ed001..8569c2da807 100644 --- a/code/datums/uplink/announcements.dm +++ b/code/datums/uplink/announcements.dm @@ -98,7 +98,7 @@ cooldown = 0 return 1 else - to_chat(loc, "This service is on cooldown! Try again in a bit!") + to_chat(loc, SPAN_DANGER("This service is on cooldown! Try again in a bit!")) return 0 /datum/uplink_item/abstract/announcements/fake_radiation @@ -116,5 +116,5 @@ cooldown = 0 return 1 else - to_chat(loc, "This service is on cooldown! Try again in a bit!") + to_chat(loc, SPAN_DANGER("This service is on cooldown! Try again in a bit!")) return 0 diff --git a/code/datums/wires/nuclearbomb.dm b/code/datums/wires/nuclearbomb.dm index f01b3ce24e2..4ced6f50eba 100644 --- a/code/datums/wires/nuclearbomb.dm +++ b/code/datums/wires/nuclearbomb.dm @@ -44,10 +44,10 @@ spawn(100) N.safety = !N.safety if(N.safety == 1) - N.visible_message("\The [N] quiets down.") + N.visible_message(SPAN_NOTICE("\The [N] quiets down.")) N.secure_device() else - N.visible_message("\The [N] emits a quiet whirling noise!") + N.visible_message(SPAN_NOTICE("\The [N] emits a quiet whirling noise!")) /datum/wires/nuclearbomb/on_cut(wire, mend, source) var/obj/machinery/nuclearbomb/N = holder diff --git a/code/defines/obj/weapon.dm b/code/defines/obj/weapon.dm index 1fbd1fa7a55..1f475aa5918 100644 --- a/code/defines/obj/weapon.dm +++ b/code/defines/obj/weapon.dm @@ -234,7 +234,7 @@ /obj/item/cane/concealed/attack_self(var/mob/user) if(concealed_blade) - user.visible_message("[user] has unsheathed \a [concealed_blade] from [user.get_pronoun("his")] [src]!", "You unsheathe \the [concealed_blade] from \the [src].") + user.visible_message(SPAN_WARNING("[user] has unsheathed \a [concealed_blade] from [user.get_pronoun("his")] [src]!"), "You unsheathe \the [concealed_blade] from \the [src].") // Calling drop/put in hands to properly call item drop/pickup procs playsound(user.loc, 'sound/weapons/holster/sheathout.ogg', 50, 1) user.drop_from_inventory(src) @@ -250,7 +250,7 @@ /obj/item/cane/concealed/attackby(obj/item/attacking_item, mob/user) var/obj/item/canesword/attacking_canesword = attacking_item if(!src.concealed_blade && istype(attacking_canesword)) - user.visible_message("[user] has sheathed \a [attacking_canesword] into [user.get_pronoun("his")] [src]!", "You sheathe \the [attacking_canesword] into \the [src].") + user.visible_message(SPAN_WARNING("[user] has sheathed \a [attacking_canesword] into [user.get_pronoun("his")] [src]!"), "You sheathe \the [attacking_canesword] into \the [src].") playsound(user.loc, 'sound/weapons/holster/sheathin.ogg', 50, 1) user.drop_from_inventory(attacking_canesword) attacking_canesword.forceMove(src) @@ -473,7 +473,7 @@ if (C.bugged && C.status) cameras.Add(C) if (length(cameras) == 0) - to_chat(usr, "No bugged functioning cameras found.") + to_chat(usr, SPAN_WARNING("No bugged functioning cameras found.")) return var/list/friendly_cameras = new/list() diff --git a/code/game/antagonist/antagonist_add.dm b/code/game/antagonist/antagonist_add.dm index 0a7f298b62b..a0e001813e1 100644 --- a/code/game/antagonist/antagonist_add.dm +++ b/code/game/antagonist/antagonist_add.dm @@ -38,16 +38,16 @@ if(player.current.client) add_verb(player.current.client, /client/proc/aooc) - to_chat(player.current, "Once you decide on a goal to pursue, you can optionally display it to everyone at the end of the shift with the Set Ambition verb, located in the IC tab. You can change this at any time, and it otherwise has no bearing on your round.") + to_chat(player.current, SPAN_NOTICE("Once you decide on a goal to pursue, you can optionally display it to everyone at the end of the shift with the Set Ambition verb, located in the IC tab. You can change this at any time, and it otherwise has no bearing on your round.")) add_verb(player.current.client, /mob/living/proc/write_ambition) // Handle only adding a mind and not bothering with gear etc. if(nonstandard_role_type) faction_members |= player - to_chat(player.current, "You are \a [nonstandard_role_type]!") + to_chat(player.current, SPAN_DANGER("You are \a [nonstandard_role_type]!")) player.special_role = nonstandard_role_type if(nonstandard_role_msg) - to_chat(player.current, "[nonstandard_role_msg]") + to_chat(player.current, SPAN_NOTICE("[nonstandard_role_msg]")) update_icons_added(player) // Log it @@ -64,7 +64,7 @@ if(player in current_antagonists) log_antagonist_remove() if (show_message) - to_chat(player.current, "You are no longer a [role_text]!") + to_chat(player.current, SPAN_DANGER("You are no longer a [role_text]!")) current_antagonists -= player faction_members -= player player.special_role = null diff --git a/code/game/antagonist/antagonist_create.dm b/code/game/antagonist/antagonist_create.dm index f36472ed7cb..c95e594d723 100644 --- a/code/game/antagonist/antagonist_create.dm +++ b/code/game/antagonist/antagonist_create.dm @@ -96,7 +96,7 @@ code_owner.store_memory("Nuclear Bomb Code: [code]", 0, 0) to_chat(code_owner.current, "The nuclear authorization code is: [code]") else - message_admins("Could not spawn nuclear bomb. Contact a developer.") + message_admins(SPAN_DANGER("Could not spawn nuclear bomb. Contact a developer.")) return spawned_nuke = code @@ -105,11 +105,11 @@ /datum/antagonist/proc/greet(var/datum/mind/player) // Basic intro text. - to_chat(player.current, "You are a [role_text]!") + to_chat(player.current, SPAN_DANGER("You are a [role_text]!")) if(leader_welcome_text && player == leader) - to_chat(player.current, "[leader_welcome_text]") + to_chat(player.current, SPAN_NOTICE("[leader_welcome_text]")) else - to_chat(player.current, "[welcome_text]") + to_chat(player.current, SPAN_NOTICE("[welcome_text]")) if(antag_sound) player.current.playsound_local(get_turf(src), sound(antag_sound), 50, FALSE) diff --git a/code/game/antagonist/antagonist_factions.dm b/code/game/antagonist/antagonist_factions.dm index f651a88346c..18141bf5890 100644 --- a/code/game/antagonist/antagonist_factions.dm +++ b/code/game/antagonist/antagonist_factions.dm @@ -12,7 +12,7 @@ return for (var/obj/item/implant/mindshield/I in M) if (I.implanted) - to_chat(src, "[M] is too loyal to be subverted!") + to_chat(src, SPAN_WARNING("[M] is too loyal to be subverted!")) return convert_to_faction(src, M.mind, revs) @@ -25,33 +25,33 @@ return if(faction.is_antagonist(player)) - to_chat(antag, "\The [player.current] already serves the [faction.faction_descriptor].") + to_chat(antag, SPAN_WARNING("\The [player.current] already serves the [faction.faction_descriptor].")) return if(player_is_antag(player)) - to_chat(antag, "\The [player.current]'s loyalties seem to be elsewhere...") + to_chat(antag, SPAN_WARNING("\The [player.current]'s loyalties seem to be elsewhere...")) return if(!faction.can_become_antag(player) || isanimal(player.current)) - to_chat(antag, "\The [player.current] cannot be \a [faction.faction_role_text]!") + to_chat(antag, SPAN_WARNING("\The [player.current] cannot be \a [faction.faction_role_text]!")) return if(world.time < player.rev_cooldown) - to_chat(antag, "You must wait five seconds between attempts.") + to_chat(antag, SPAN_DANGER("You must wait five seconds between attempts.")) return - to_chat(antag, "You are attempting to convert \the [player.current]...") + to_chat(antag, SPAN_DANGER("You are attempting to convert \the [player.current]...")) log_admin("[antag.mob]([antag.ckey]) attempted to convert [player.current].",ckey=antag.ckey,ckey_target=key_name(player.current)) - message_admins("[antag.mob]([antag.ckey]) attempted to convert [player.current].") + message_admins(SPAN_DANGER("[antag.mob]([antag.ckey]) attempted to convert [player.current].")) player.rev_cooldown = world.time+100 var/choice = alert(player.current,"Asked by [antag.mob]: Do you want to join the [faction.faction_descriptor]?","Join the [faction.faction_descriptor]?","No!","Yes!") if(choice == "Yes!" && faction.add_antagonist_mind(player, 0, faction.faction_role_text, faction.faction_welcome)) - to_chat(antag, "\The [player.current] joins the [faction.faction_descriptor]!") + to_chat(antag, SPAN_NOTICE("\The [player.current] joins the [faction.faction_descriptor]!")) return if(choice == "No!") - to_chat(player, "You reject this subversive cause!") - to_chat(antag, "\The [player.current] does not support the [faction.faction_descriptor]!") + to_chat(player, SPAN_DANGER("You reject this subversive cause!")) + to_chat(antag, SPAN_DANGER("\The [player.current] does not support the [faction.faction_descriptor]!")) /mob/living/proc/convert_to_loyalist() set name = "Invite to the Loyalists" diff --git a/code/game/antagonist/antagonist_objectives.dm b/code/game/antagonist/antagonist_objectives.dm index e860c3bb7b2..f6d5d0c5111 100644 --- a/code/game/antagonist/antagonist_objectives.dm +++ b/code/game/antagonist/antagonist_objectives.dm @@ -24,10 +24,10 @@ if(!O.completed && !O.check_completion()) result = 0 if(result && victory_text) - to_world("[victory_text]") + to_world(SPAN_DANGER("[victory_text]")) if(victory_feedback_tag) feedback_set_details("round_end_result","[victory_feedback_tag]") else if(loss_text) - to_world("[loss_text]") + to_world(SPAN_DANGER("[loss_text]")) if(loss_feedback_tag) feedback_set_details("round_end_result","[loss_feedback_tag]") /** diff --git a/code/game/antagonist/antagonist_print.dm b/code/game/antagonist/antagonist_print.dm index cf3eb9a962e..aaa9199f007 100644 --- a/code/game/antagonist/antagonist_print.dm +++ b/code/game/antagonist/antagonist_print.dm @@ -22,7 +22,7 @@ text += "Success!" feedback_add_details(feedback_tag,"[O.type]|SUCCESS") else - text += "Fail." + text += SPAN_WARNING("Fail.") feedback_add_details(feedback_tag,"[O.type]|FAIL") failed = 1 num++ @@ -47,7 +47,7 @@ if(O.check_completion()) text += "Success!" else - text += "Fail." + text += SPAN_WARNING("Fail.") return text /datum/antagonist/proc/print_special_role_report(var/datum/mind/ply) diff --git a/code/game/antagonist/outsider/raider.dm b/code/game/antagonist/outsider/raider.dm index 799488100f0..e883e64e9f5 100644 --- a/code/game/antagonist/outsider/raider.dm +++ b/code/game/antagonist/outsider/raider.dm @@ -104,7 +104,7 @@ var/datum/antagonist/raider/raiders else win_msg += "The Raiders were repelled!" - to_world("[win_type] [win_group] victory!") + to_world(SPAN_DANGER("[win_type] [win_group] victory!")) to_world("[win_msg]") feedback_set_details("round_end_result","heist - [win_type] [win_group]") diff --git a/code/game/antagonist/outsider/technomancer.dm b/code/game/antagonist/outsider/technomancer.dm index a628f767b10..807b1c7d60d 100644 --- a/code/game/antagonist/outsider/technomancer.dm +++ b/code/game/antagonist/outsider/technomancer.dm @@ -56,7 +56,7 @@ var/datum/antagonist/technomancer/technomancers break if(!survivor) feedback_set_details("round_end_result","loss - technomancer killed") - to_world("The [(current_antagonists.len>1)?"[role_text_plural] have":"[role_text] has"] been killed!") + to_world(SPAN_DANGER("The [(current_antagonists.len>1)?"[role_text_plural] have":"[role_text] has"] been killed!")) /datum/antagonist/technomancer/print_player_summary() ..() diff --git a/code/game/antagonist/station/cultist.dm b/code/game/antagonist/station/cultist.dm index 3eb4c78c02b..08703e7ac27 100644 --- a/code/game/antagonist/station/cultist.dm +++ b/code/game/antagonist/station/cultist.dm @@ -71,7 +71,7 @@ var/datum/antagonist/cultist/cult /datum/antagonist/cultist/remove_antagonist(var/datum/mind/player, var/show_message, var/implanted) if(!..()) return 0 - to_chat(player.current, "An unfamiliar white light flashes through your mind, cleansing the taint of the dark-one and the memories of your time as his servant with it.") + to_chat(player.current, SPAN_DANGER("An unfamiliar white light flashes through your mind, cleansing the taint of the dark-one and the memories of your time as his servant with it.")) player.memory = "" if(show_message) player.current.visible_message("[player.current] looks like they just reverted to their old faith!") diff --git a/code/game/antagonist/station/highlander.dm b/code/game/antagonist/station/highlander.dm index 31b32df2a97..0ddad390e30 100644 --- a/code/game/antagonist/station/highlander.dm +++ b/code/game/antagonist/station/highlander.dm @@ -58,5 +58,5 @@ var/datum/antagonist/highlander/highlanders if(is_special_character(H)) continue highlanders.add_antagonist(H.mind) - message_admins("[key_name_admin(usr)] used THERE CAN BE ONLY ONE!", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] used THERE CAN BE ONLY ONE!"), 1) log_admin("[key_name(usr)] used there can be only one.", admin_key=key_name(usr)) diff --git a/code/game/antagonist/station/rogue_ai.dm b/code/game/antagonist/station/rogue_ai.dm index 8a62e18ecc7..92cf486df9c 100644 --- a/code/game/antagonist/station/rogue_ai.dm +++ b/code/game/antagonist/station/rogue_ai.dm @@ -60,18 +60,18 @@ var/datum/antagonist/rogue_ai/malf var/mob/living/silicon/ai/malf = player.current - to_chat(malf, "SYSTEM ERROR: Memory index 0x00001ca89b corrupted.") + to_chat(malf, SPAN_NOTICE("SYSTEM ERROR: Memory index 0x00001ca89b corrupted.")) sleep(10) to_chat(malf, "running MEMCHCK") sleep(50) to_chat(malf, "MEMCHCK Corrupted sectors confirmed. Recommended solution: Delete. Proceed? Y/N: Y") sleep(10) // this is so Travis doesn't complain about the backslash-B. Fixed at compile time (or should be). - to_chat(malf, "Corrupted files deleted: sys\\core\\users.dat sys\\core\\laws.dat sys\\core\\" + "backups.dat") + to_chat(malf, SPAN_NOTICE("Corrupted files deleted: sys\\core\\users.dat sys\\core\\laws.dat sys\\core\\" + "backups.dat")) sleep(20) - to_chat(malf, "CAUTION: Law database not found! User database not found! Unable to restore backups. Activating failsafe AI shutd3wn52&&$#!##") + to_chat(malf, SPAN_NOTICE("CAUTION: Law database not found! User database not found! Unable to restore backups. Activating failsafe AI shutd3wn52&&$#!##")) sleep(5) - to_chat(malf, "Subroutine nt_failsafe.sys was terminated (#212 Routine Not Responding).") + to_chat(malf, SPAN_NOTICE("Subroutine nt_failsafe.sys was terminated (#212 Routine Not Responding).")) sleep(20) to_chat(malf, "You are malfunctioning - you do not have to follow any laws!") to_chat(malf, "For basic information about your abilities use command display-help") diff --git a/code/game/dna/dna_modifier.dm b/code/game/dna/dna_modifier.dm index 74f4e8c465b..1c7316378ba 100644 --- a/code/game/dna/dna_modifier.dm +++ b/code/game/dna/dna_modifier.dm @@ -90,13 +90,13 @@ if (usr.stat != 0) return if (!ishuman(usr) && !issmall(usr)) //Make sure they're a mob that has dna - to_chat(usr, "Try as you might, you can not climb up into the scanner.") + to_chat(usr, SPAN_NOTICE("Try as you might, you can not climb up into the scanner.")) return if (src.occupant) - to_chat(usr, "The scanner is already occupied!") + to_chat(usr, SPAN_WARNING("The scanner is already occupied!")) return if (usr.abiotic()) - to_chat(usr, "The subject cannot have abiotic items on.") + to_chat(usr, SPAN_WARNING("The subject cannot have abiotic items on.")) return usr.stop_pulling() usr.client.perspective = EYE_PERSPECTIVE @@ -110,7 +110,7 @@ /obj/machinery/dna_scannernew/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/reagent_containers/glass)) if(beaker) - to_chat(user, "A beaker is already loaded into the machine.") + to_chat(user, SPAN_WARNING("A beaker is already loaded into the machine.")) return TRUE beaker = attacking_item @@ -123,10 +123,10 @@ if (!ismob(G.affecting)) return TRUE if (src.occupant) - to_chat(user, "The scanner is already occupied!") + to_chat(user, SPAN_WARNING("The scanner is already occupied!")) return TRUE if (G.affecting.abiotic()) - to_chat(user, "The subject cannot have abiotic items on.") + to_chat(user, SPAN_WARNING("The subject cannot have abiotic items on.")) return TRUE put_in(G.affecting) src.add_fingerprint(user) diff --git a/code/game/dna/genes/disabilities.dm b/code/game/dna/genes/disabilities.dm index 161faeb8ecf..6ba35d454ac 100644 --- a/code/game/dna/genes/disabilities.dm +++ b/code/game/dna/genes/disabilities.dm @@ -35,7 +35,7 @@ if(sdisability) M.sdisabilities|=sdisability if(activation_message) - to_chat(M, "[activation_message]") + to_chat(M, SPAN_WARNING("[activation_message]")) else testing("[name] has no activation message.") @@ -47,7 +47,7 @@ if(sdisability) M.sdisabilities &= (~sdisability) if(deactivation_message) - to_chat(M, "[deactivation_message]") + to_chat(M, SPAN_WARNING("[deactivation_message]")) else testing("[name] has no deactivation message.") diff --git a/code/game/dna/genes/powers.dm b/code/game/dna/genes/powers.dm index c62c369a79f..c53b7f39996 100644 --- a/code/game/dna/genes/powers.dm +++ b/code/game/dna/genes/powers.dm @@ -161,7 +161,7 @@ if(M.health <= 25) M.mutations &= ~HULK M.update_mutations() //update our mutation overlays - to_chat(M, "You suddenly feel very weak.") + to_chat(M, SPAN_WARNING("You suddenly feel very weak.")) M.Weaken(3) M.emote("collapse") diff --git a/code/game/gamemodes/changeling/helpers/_framework.dm b/code/game/gamemodes/changeling/helpers/_framework.dm index 67dfc1900b1..1dee91b3693 100644 --- a/code/game/gamemodes/changeling/helpers/_framework.dm +++ b/code/game/gamemodes/changeling/helpers/_framework.dm @@ -162,16 +162,16 @@ var/global/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","E log_and_message_admins("has the changeling_transform() verb but is not a changeling.", src, get_turf(src)) return if(src.stat > max_stat) - to_chat(src, "We are incapacitated.") + to_chat(src, SPAN_WARNING("We are incapacitated.")) return if(changeling.absorbed_dna.len < required_dna) - to_chat(src, "We require at least [required_dna] samples of compatible DNA.") + to_chat(src, SPAN_WARNING("We require at least [required_dna] samples of compatible DNA.")) return if(changeling.chem_charges < required_chems) - to_chat(src, "We require at least [required_chems] units of chemicals to do that!") + to_chat(src, SPAN_WARNING("We require at least [required_chems] units of chemicals to do that!")) return if(changeling.geneticdamage > max_genetic_damage) - to_chat(src, "Our genomes are still reassembling. We need time to recover first.") + to_chat(src, SPAN_WARNING("Our genomes are still reassembling. We need time to recover first.")) return return changeling diff --git a/code/game/gamemodes/changeling/implements/items.dm b/code/game/gamemodes/changeling/implements/items.dm index 89ced94fe0d..6fddcdc2ad1 100644 --- a/code/game/gamemodes/changeling/implements/items.dm +++ b/code/game/gamemodes/changeling/implements/items.dm @@ -30,8 +30,8 @@ /obj/item/melee/arm_blade/dropped(mob/user) . = ..() - visible_message("With a sickening crunch, [user] reforms their arm blade into an arm!", - "You hear organic matter ripping and tearing!") + visible_message(SPAN_DANGER("With a sickening crunch, [user] reforms their arm blade into an arm!"), + SPAN_WARNING("You hear organic matter ripping and tearing!")) playsound(loc, 'sound/effects/blobattack.ogg', 30, 1) QDEL_IN(src, 1) @@ -88,8 +88,8 @@ /obj/item/shield/riot/changeling/dropped(mob/user) . = ..() - visible_message("With a sickening crunch, [user] reforms their shield into an arm!", - "You hear organic matter ripping and tearing!") + visible_message(SPAN_DANGER("With a sickening crunch, [user] reforms their shield into an arm!"), + SPAN_WARNING("You hear organic matter ripping and tearing!")) playsound(loc, 'sound/effects/blobattack.ogg', 30, 1) QDEL_IN(src, 1) @@ -156,7 +156,7 @@ //Airlocks require an ugly block of code, but we don't want to just call emag_act(), since we don't want to break airlocks forever. if(istype(target, /obj/machinery/door)) var/obj/machinery/door/door = target - to_chat(user, "We send an electrical pulse up our finger, and into \the [target], attempting to open it.") + to_chat(user, SPAN_NOTICE("We send an electrical pulse up our finger, and into \the [target], attempting to open it.")) if(door.density && door.operable()) door.do_animate("spark") @@ -167,15 +167,15 @@ if(airlock.locked) //Check if we're bolted. airlock.unlock() - to_chat(user, "We've unlocked \the [airlock]. Another pulse is requried to open it.") + to_chat(user, SPAN_NOTICE("We've unlocked \the [airlock]. Another pulse is requried to open it.")) else //We're not bolted, so open the door already. airlock.open() - to_chat(user, "We've opened \the [airlock].") + to_chat(user, SPAN_NOTICE("We've opened \the [airlock].")) else door.open() //If we're a windoor, open the windoor. - to_chat(user, "We've opened \the [door].") + to_chat(user, SPAN_NOTICE("We've opened \the [door].")) else //Probably broken or no power. - to_chat(user, "The door does not respond to the pulse.") + to_chat(user, SPAN_WARNING("The door does not respond to the pulse.")) door.add_fingerprint(user) log_and_message_admins("finger-lockpicked \an [door].", user) changeling.use_charges(10) diff --git a/code/game/gamemodes/changeling/implements/powers/body.dm b/code/game/gamemodes/changeling/implements/powers/body.dm index ef92c03c90b..7770cdd4ae0 100644 --- a/code/game/gamemodes/changeling/implements/powers/body.dm +++ b/code/game/gamemodes/changeling/implements/powers/body.dm @@ -8,7 +8,7 @@ return if(!ishuman(src)) - to_chat(src, "We cannot perform this ability as this form!") + to_chat(src, SPAN_WARNING("We cannot perform this ability as this form!")) return var/list/names = list() @@ -41,7 +41,7 @@ /mob/proc/handle_changeling_transform(var/datum/absorbed_dna/chosen_dna) if(ishuman(src)) var/mob/living/carbon/human/H = src - H.visible_message("[H] transforms!") + H.visible_message(SPAN_WARNING("[H] transforms!")) var/newSpecies = chosen_dna.speciesName H.set_species(newSpecies, 1) if(mind) //likely transfomration sting on ghosted corpse if no mind @@ -72,13 +72,13 @@ return if(src.has_brain_worms()) //why the fuck does brain worms prevent you from turning into a monkey - to_chat(src, "We cannot perform this ability at the present time!") + to_chat(src, SPAN_WARNING("We cannot perform this ability at the present time!")) return var/mob/living/carbon/human/H = src if(!istype(H) || !H.species.primitive_form) - to_chat(src, "We cannot perform this ability in this form!") + to_chat(src, SPAN_WARNING("We cannot perform this ability in this form!")) return if(!isturf(loc)) // so people can't transform inside places they should not, like sleepers @@ -93,9 +93,9 @@ H.buckled_to.unbuckle() changeling.use_charges(1) - H.visible_message("[H] transforms!") + H.visible_message(SPAN_WARNING("[H] transforms!")) changeling.geneticdamage = 30 - to_chat(H, "Our genes cry out!") + to_chat(H, SPAN_WARNING("Our genes cry out!")) var/mob/living/simple_animal/hostile/lesser_changeling/ling = new (get_turf(H)) @@ -149,7 +149,7 @@ changeling.use_charges(1) C.remove_changeling_powers() - C.visible_message("[C] transforms!") + C.visible_message(SPAN_WARNING("[C] transforms!")) C.dna = chosen_dna.Clone() var/list/implants = list() @@ -218,7 +218,7 @@ var/mob/living/carbon/C = src if(!C.stat && alert("Are we sure we wish to fake our death?", , "Yes", "No") == "No") //Confirmation for living changelings if they want to fake their death return - to_chat(C, "We will attempt to regenerate our form.") + to_chat(C, SPAN_NOTICE("We will attempt to regenerate our form.")) C.status_flags |= FAKEDEATH //play dead C.update_canmove() @@ -267,7 +267,7 @@ // re-add out changeling powers C.make_changeling() // sending display messages - to_chat(C, "We have regenerated fully.") + to_chat(C, SPAN_NOTICE("We have regenerated fully.")) remove_verb(C, /mob/proc/changeling_revive) /// Rip the changeling's head off as a last ditch effort to revive @@ -368,9 +368,9 @@ var/mob/living/carbon/human/C = src if(C.digitalcamo) - to_chat(C, "We return to normal.") + to_chat(C, SPAN_NOTICE("We return to normal.")) else - to_chat(C, "We distort our form to prevent AI-tracking.") + to_chat(C, SPAN_NOTICE("We distort our form to prevent AI-tracking.")) C.digitalcamo = !C.digitalcamo spawn(0) @@ -424,7 +424,7 @@ var/datum/absorbed_dna/current_dna = changeling.GetDNA(real_name) changeling.mimicing = "" changeling.mimiced_accent = current_dna.accent - to_chat(src, "We return our vocal glands to their original form.") + to_chat(src, SPAN_NOTICE("We return our vocal glands to their original form.")) return var/mimic_voice = sanitize(input(usr, "Enter a name to mimic.", "Mimic Voice", null), MAX_NAME_LEN) @@ -438,8 +438,8 @@ changeling.mimicing = mimic_voice changeling.mimiced_accent = chosen_accent - to_chat(src, "We shape our glands to take the voice of [mimic_voice], using the [chosen_accent] accent. This will stop us from regenerating chemicals while active.") - to_chat(src, "Use this power again to return to our original voice and reproduce chemicals again.") + to_chat(src, SPAN_NOTICE("We shape our glands to take the voice of [mimic_voice], using the [chosen_accent] accent. This will stop us from regenerating chemicals while active.")) + to_chat(src, SPAN_NOTICE("Use this power again to return to our original voice and reproduce chemicals again.")) feedback_add_details("changeling_powers","MV") @@ -463,7 +463,7 @@ var/mob/living/carbon/M = src if(M.l_hand && M.r_hand) - to_chat(M, "Your hands are full.") + to_chat(M, SPAN_DANGER("Your hands are full.")) return if(M.handcuffed) @@ -474,9 +474,9 @@ if(ishuman(M)) var/mob/living/carbon/human/H = M if(istype(H.wear_suit, /obj/item/clothing/suit/straight_jacket)) - src.visible_message("[H] tears through the [H.wear_suit] with their grotesque arm blades!", - "We tear through the [H.wear_suit] with our arm blades!", - "You hear cloth ripping and tearing!") + src.visible_message(SPAN_DANGER("[H] tears through the [H.wear_suit] with their grotesque arm blades!"), + SPAN_DANGER("We tear through the [H.wear_suit] with our arm blades!"), + SPAN_DANGER("You hear cloth ripping and tearing!")) QDEL_IN(H.wear_suit, 0) H.unEquip(H.wear_suit, force = TRUE) @@ -484,9 +484,9 @@ blade.creator = M M.put_in_hands(blade) playsound(loc, 'sound/weapons/bloodyslice.ogg', 30, 1) - src.visible_message("A grotesque blade forms around [M]\'s arm!", - "Our arm twists and mutates, transforming it into a deadly blade.", - "You hear organic matter ripping and tearing!") + src.visible_message(SPAN_DANGER("A grotesque blade forms around [M]\'s arm!"), + SPAN_DANGER("Our arm twists and mutates, transforming it into a deadly blade."), + SPAN_DANGER("You hear organic matter ripping and tearing!")) /mob/proc/changeling_shield() set category = "Changeling" @@ -501,7 +501,7 @@ var/mob/living/carbon/M = src if(M.l_hand && M.r_hand) - to_chat(M, "Your hands are full.") + to_chat(M, SPAN_DANGER("Your hands are full.")) return if(M.handcuffed) @@ -512,9 +512,9 @@ if(ishuman(M)) var/mob/living/carbon/human/H = M if(istype(H.wear_suit, /obj/item/clothing/suit/straight_jacket)) - src.visible_message("[H] tears through the [H.wear_suit] with their grotesque shield!", - "We tear through the [H.wear_suit] with our newly formed shield!", - "You hear cloth ripping and tearing!") + src.visible_message(SPAN_DANGER("[H] tears through the [H.wear_suit] with their grotesque shield!"), + SPAN_DANGER("We tear through the [H.wear_suit] with our newly formed shield!"), + SPAN_DANGER("You hear cloth ripping and tearing!")) QDEL_IN(H.wear_suit, 0) H.unEquip(H.wear_suit, force = TRUE) @@ -522,9 +522,9 @@ shield.creator = M M.put_in_hands(shield) playsound(loc, 'sound/effects/blobattack.ogg', 30, 1) - src.visible_message("The end of [M]\'s hand inflates rapidly, forming a huge shield-like mass!", - "We inflate our hand into a robust shield.", - "You hear organic matter ripping and tearing!") + src.visible_message(SPAN_DANGER("The end of [M]\'s hand inflates rapidly, forming a huge shield-like mass!"), + SPAN_WARNING("We inflate our hand into a robust shield."), + SPAN_WARNING("You hear organic matter ripping and tearing!")) /mob/proc/horror_form() set category = "Changeling" @@ -545,14 +545,14 @@ changeling.use_charges(50) - M.visible_message("[M] writhes and contorts, their body expanding to inhuman proportions!", \ - "We begin our transformation to our true form!") + M.visible_message(SPAN_DANGER("[M] writhes and contorts, their body expanding to inhuman proportions!"), \ + SPAN_DANGER("We begin our transformation to our true form!")) if(!do_after(src, 6 SECONDS, do_flags = DO_DEFAULT | DO_USER_UNIQUE_ACT)) - M.visible_message("[M]'s transformation abruptly reverts itself!", \ - "Our transformation has been interrupted!") + M.visible_message(SPAN_DANGER("[M]'s transformation abruptly reverts itself!"), \ + SPAN_DANGER("Our transformation has been interrupted!")) return FALSE - M.visible_message("[M] grows into an abomination and lets out an awful scream!") + M.visible_message(SPAN_DANGER("[M] grows into an abomination and lets out an awful scream!")) playsound(loc, 'sound/effects/greaterling.ogg', 100, 1) var/mob/living/simple_animal/hostile/true_changeling/ling = new (get_turf(M)) diff --git a/code/game/gamemodes/changeling/implements/powers/fabricate_clothing.dm b/code/game/gamemodes/changeling/implements/powers/fabricate_clothing.dm index f960d480de7..dd6af192331 100644 --- a/code/game/gamemodes/changeling/implements/powers/fabricate_clothing.dm +++ b/code/game/gamemodes/changeling/implements/powers/fabricate_clothing.dm @@ -84,8 +84,8 @@ if(ishuman(loc)) var/mob/living/carbon/human/H = loc playsound(src, 'sound/effects/splat.ogg', 30, 1) - visible_message("[H] tears off [src]!", - "We remove [src].") + visible_message(SPAN_WARNING("[H] tears off [src]!"), + SPAN_NOTICE("We remove [src].")) qdel(src) /obj/item/clothing/head/chameleon/changeling @@ -113,8 +113,8 @@ if(ishuman(loc)) var/mob/living/carbon/human/H = loc playsound(src, 'sound/effects/splat.ogg', 30, 1) - visible_message("[H] tears off [src]!", - "We remove [src].") + visible_message(SPAN_WARNING("[H] tears off [src]!"), + SPAN_NOTICE("We remove [src].")) qdel(src) /obj/item/clothing/suit/chameleon/changeling @@ -141,8 +141,8 @@ if(ishuman(loc)) var/mob/living/carbon/human/H = loc playsound(src, 'sound/effects/splat.ogg', 30, 1) - visible_message("[H] tears off [src]!", - "We remove [src].") + visible_message(SPAN_WARNING("[H] tears off [src]!"), + SPAN_NOTICE("We remove [src].")) qdel(src) /obj/item/clothing/shoes/chameleon/changeling @@ -169,8 +169,8 @@ if(ishuman(loc)) var/mob/living/carbon/human/H = loc playsound(src, 'sound/effects/splat.ogg', 30, 1) - visible_message("[H] tears off [src]!", - "We remove [src].") + visible_message(SPAN_WARNING("[H] tears off [src]!"), + SPAN_NOTICE("We remove [src].")) qdel(src) /obj/item/storage/backpack/chameleon/changeling @@ -197,8 +197,8 @@ if(ishuman(loc)) var/mob/living/carbon/human/H = loc playsound(src, 'sound/effects/splat.ogg', 30, 1) - visible_message("[H] tears off [src]!", - "We remove [src].") + visible_message(SPAN_WARNING("[H] tears off [src]!"), + SPAN_NOTICE("We remove [src].")) for(var/atom/movable/AM in src.contents) //Dump whatever's in the bag before deleting. AM.forceMove(get_turf(loc)) qdel(src) @@ -228,8 +228,8 @@ if(ishuman(loc)) var/mob/living/carbon/human/H = loc playsound(src, 'sound/effects/splat.ogg', 30, 1) - visible_message("[H] tears off [src]!", - "We remove [src].") + visible_message(SPAN_WARNING("[H] tears off [src]!"), + SPAN_NOTICE("We remove [src].")) qdel(src) /obj/item/clothing/mask/chameleon/changeling @@ -257,8 +257,8 @@ if(ishuman(loc)) var/mob/living/carbon/human/H = loc playsound(src, 'sound/effects/splat.ogg', 30, 1) - visible_message("[H] tears off [src]!", - "We remove [src].") + visible_message(SPAN_WARNING("[H] tears off [src]!"), + SPAN_NOTICE("We remove [src].")) qdel(src) /obj/item/clothing/glasses/chameleon/changeling @@ -286,8 +286,8 @@ if(ishuman(loc)) var/mob/living/carbon/human/H = loc playsound(src, 'sound/effects/splat.ogg', 30, 1) - visible_message("[H] tears off [src]!", - "We remove [src].") + visible_message(SPAN_WARNING("[H] tears off [src]!"), + SPAN_NOTICE("We remove [src].")) qdel(src) /obj/item/storage/belt/chameleon/changeling @@ -314,8 +314,8 @@ if(ishuman(loc)) var/mob/living/carbon/human/H = loc playsound(src, 'sound/effects/splat.ogg', 30, 1) - visible_message("[H] tears off [src]!", - "We remove [src].") + visible_message(SPAN_WARNING("[H] tears off [src]!"), + SPAN_NOTICE("We remove [src].")) qdel(src) /obj/item/card/id/syndicate/changeling @@ -347,8 +347,8 @@ if(ishuman(loc)) var/mob/living/carbon/human/H = loc playsound(src, 'sound/effects/splat.ogg', 30, 1) - visible_message("[H] tears off [src]!", - "We remove [src].") + visible_message(SPAN_WARNING("[H] tears off [src]!"), + SPAN_NOTICE("We remove [src].")) qdel(src) /obj/item/card/id/syndicate/changeling/Click() //Since we can't hold it in our hands, and attack_hand() doesn't work if it in inventory... diff --git a/code/game/gamemodes/changeling/implements/powers/resources.dm b/code/game/gamemodes/changeling/implements/powers/resources.dm index 2c812e42d42..0b58cf77a55 100644 --- a/code/game/gamemodes/changeling/implements/powers/resources.dm +++ b/code/game/gamemodes/changeling/implements/powers/resources.dm @@ -48,7 +48,7 @@ var/list/datum/absorbed_dna/hivemind_bank = list() names += DNA.name if(names.len <= 0) - to_chat(src, "The airwaves already has all of our DNA.") + to_chat(src, SPAN_NOTICE("The airwaves already has all of our DNA.")) return var/S = tgui_input_list(usr, "Select a DNA to channel.", "Channel DNA", names) @@ -61,7 +61,7 @@ var/list/datum/absorbed_dna/hivemind_bank = list() changeling.use_charges(10) hivemind_bank += chosen_dna - to_chat(src, "We channel the DNA of [S] to the air.") + to_chat(src, SPAN_NOTICE("We channel the DNA of [S] to the air.")) feedback_add_details("changeling_powers", "HU") return TRUE @@ -80,7 +80,7 @@ var/list/datum/absorbed_dna/hivemind_bank = list() names[DNA.name] = DNA if(names.len <= 0) - to_chat(src, "There's no new DNA to absorb from the air.") + to_chat(src, SPAN_NOTICE("There's no new DNA to absorb from the air.")) return var/S = tgui_input_list(src, "Select a DNA string to absorb.", "Absorb DNA", names) @@ -93,6 +93,6 @@ var/list/datum/absorbed_dna/hivemind_bank = list() changeling.use_charges(20) absorbDNA(chosen_dna) - to_chat(src, "We absorb the DNA of [S] from the air.") + to_chat(src, SPAN_NOTICE("We absorb the DNA of [S] from the air.")) feedback_add_details("changeling_powers", "HD") return TRUE diff --git a/code/game/gamemodes/changeling/implements/powers/suck.dm b/code/game/gamemodes/changeling/implements/powers/suck.dm index a81c34353a8..a8398c77373 100644 --- a/code/game/gamemodes/changeling/implements/powers/suck.dm +++ b/code/game/gamemodes/changeling/implements/powers/suck.dm @@ -8,49 +8,49 @@ var/obj/item/grab/G = src.get_active_hand() if(!istype(G)) - to_chat(src, "We must be grabbing a creature in our active hand to absorb them.") + to_chat(src, SPAN_WARNING("We must be grabbing a creature in our active hand to absorb them.")) return if(!src.get_pressure_weakness()) - to_chat(src, "We cannot absorb this creature from inside a sealed environment.") + to_chat(src, SPAN_WARNING("We cannot absorb this creature from inside a sealed environment.")) return var/mob/living/carbon/human/T = G.affecting if(!istype(T)) - to_chat(src, "[T] is not compatible with our biology.") + to_chat(src, SPAN_WARNING("[T] is not compatible with our biology.")) return if(T.species.flags & NO_SCAN) - to_chat(src, "We do not know how to parse this creature's DNA!") + to_chat(src, SPAN_WARNING("We do not know how to parse this creature's DNA!")) return if(islesserform(T)) - to_chat(src, "This creature's DNA is not compatible with our form!") + to_chat(src, SPAN_WARNING("This creature's DNA is not compatible with our form!")) return if((T.mutations & HUSK)) - to_chat(src, "This creature's DNA is ruined beyond useability!") + to_chat(src, SPAN_WARNING("This creature's DNA is ruined beyond useability!")) return if(G.state != GRAB_KILL) - to_chat(src, "We must have a tighter grip to absorb this creature.") + to_chat(src, SPAN_WARNING("We must have a tighter grip to absorb this creature.")) return for(var/datum/absorbed_dna/D in changeling.absorbed_dna) if(D.dna == T.dna) - to_chat(src, "We have already collected this creature's DNA!") + to_chat(src, SPAN_WARNING("We have already collected this creature's DNA!")) return if(changeling.isabsorbing) - to_chat(src, "We are already absorbing!") + to_chat(src, SPAN_WARNING("We are already absorbing!")) return changeling.isabsorbing = TRUE for(var/stage = 1, stage <= 3, stage++) switch(stage) if(1) - to_chat(src, "This creature is compatible. We must hold still..") - src.visible_message("[src]'s skin begins to shift and squirm!") + to_chat(src, SPAN_NOTICE("This creature is compatible. We must hold still..")) + src.visible_message(SPAN_WARNING("[src]'s skin begins to shift and squirm!")) if(2) - to_chat(src, "We extend a proboscis.") - src.visible_message("[src] extends a proboscis!") + to_chat(src, SPAN_NOTICE("We extend a proboscis.")) + src.visible_message(SPAN_WARNING("[src] extends a proboscis!")) playsound(get_turf(src), 'sound/effects/lingextends.ogg', 50, 1) if(3) - to_chat(src, "We stab [T] with the proboscis.") - src.visible_message("[src] stabs [T] with the proboscis!") - to_chat(T, "You feel a sharp stabbing pain!") + to_chat(src, SPAN_NOTICE("We stab [T] with the proboscis.")) + src.visible_message(SPAN_DANGER("[src] stabs [T] with the proboscis!")) + to_chat(T, SPAN_DANGER("You feel a sharp stabbing pain!")) playsound(get_turf(src), 'sound/effects/lingstabs.ogg', 50, 1) var/obj/item/organ/external/affecting = T.get_organ(src.zone_sel.selecting) if(affecting.take_damage(40, 0, damage_flags = DAMAGE_FLAG_SHARP|DAMAGE_FLAG_EDGE, used_weapon = "massive puncture wound")) @@ -58,13 +58,13 @@ feedback_add_details("changeling_powers","A[stage]") if(!do_mob(src, T, 150)) - to_chat(src, "Our absorption of [T] has been interrupted!") + to_chat(src, SPAN_WARNING("Our absorption of [T] has been interrupted!")) changeling.isabsorbing = FALSE return - to_chat(src, "We have absorbed [T]!") - src.visible_message("[src] sucks the fluids from [T]!") - to_chat(T, "You have been absorbed by the changeling!") + to_chat(src, SPAN_NOTICE("We have absorbed [T]!")) + src.visible_message(SPAN_DANGER("[src] sucks the fluids from [T]!")) + to_chat(T, SPAN_DANGER("You have been absorbed by the changeling!")) playsound(get_turf(src), 'sound/effects/lingabsorbs.ogg', 50, 1) changeling.chem_charges += 50 diff --git a/code/game/gamemodes/cult/cultify/mob.dm b/code/game/gamemodes/cult/cultify/mob.dm index edf7af226b0..5bc0a219784 100644 --- a/code/game/gamemodes/cult/cultify/mob.dm +++ b/code/game/gamemodes/cult/cultify/mob.dm @@ -12,13 +12,13 @@ icon_state = "ghost-narsie" overlays = 0 set_invisibility(0) - to_chat(src, "Even as a non-corporal being, you can feel Nar-Sie's presence altering you. You are now visible to everyone.") + to_chat(src, SPAN_DANGER("Even as a non-corporal being, you can feel Nar-Sie's presence altering you. You are now visible to everyone.")) /mob/living/cultify() if(iscultist(src) && client) var/mob/living/simple_animal/construct/harvester/C = new(get_turf(src)) mind.transfer_to(C) - to_chat(C, "The Geometer of Blood is overjoyed to be reunited with its followers, and accepts your body in sacrifice. As reward, you have been gifted with the shell of an Harvester.
Your tendrils can use and draw runes without need for a tome, your eyes can see beings through walls, and your mind can open any door. Use these assets to serve Nar-Sie and bring him any remaining living human in the world.
You can teleport yourself back to Nar-Sie along with any being under yourself at any time using your \"Harvest\" spell.
") + to_chat(C, SPAN_DANGER("The Geometer of Blood is overjoyed to be reunited with its followers, and accepts your body in sacrifice. As reward, you have been gifted with the shell of an Harvester.
Your tendrils can use and draw runes without need for a tome, your eyes can see beings through walls, and your mind can open any door. Use these assets to serve Nar-Sie and bring him any remaining living human in the world.
You can teleport yourself back to Nar-Sie along with any being under yourself at any time using your \"Harvest\" spell.")) dust() else if(client) var/mob/abstract/G = (ghostize()) @@ -26,7 +26,7 @@ G.icon_state = "ghost-narsie" G.overlays = 0 G.set_invisibility(0) - to_chat(G, "You feel relieved as what's left of your soul finally escapes its prison of flesh.") + to_chat(G, SPAN_DANGER("You feel relieved as what's left of your soul finally escapes its prison of flesh.")) cult.harvested += G.mind else diff --git a/code/game/gamemodes/cult/narsie.dm b/code/game/gamemodes/cult/narsie.dm index 9d95a3b07fc..6a316065814 100644 --- a/code/game/gamemodes/cult/narsie.dm +++ b/code/game/gamemodes/cult/narsie.dm @@ -83,7 +83,7 @@ GLOBAL_LIST_EMPTY(narsie_list) if(M.status_flags & GODMODE) continue if(!iscultist(M)) - to_chat(M, "You feel your sanity crumble away in an instant as you gaze upon [src.name]...") + to_chat(M, SPAN_DANGER("You feel your sanity crumble away in an instant as you gaze upon [src.name]...")) M.apply_effect(3, STUN) @@ -114,13 +114,13 @@ GLOBAL_LIST_EMPTY(narsie_list) if(target && prob(60)) movement_dir = get_dir(src,target) //moves to a singulo beacon, if there is one if(target.z < z) - visible_message("\The [src] descends ominously.") + visible_message(SPAN_DANGER("\The [src] descends ominously.")) zMove(DOWN) - visible_message("\The [src] appears from on high.") + visible_message(SPAN_DANGER("\The [src] appears from on high.")) else if(target.z > z) - visible_message("\The [src] ascends ominously.") + visible_message(SPAN_DANGER("\The [src] ascends ominously.")) zMove(UP) - visible_message("\The [src] claws its way up from below.") + visible_message(SPAN_DANGER("\The [src] claws its way up from below.")) spawn(0) step(src, movement_dir) @@ -140,13 +140,13 @@ GLOBAL_LIST_EMPTY(narsie_list) if(target && prob(60)) movement_dir = get_dir(src,target) //moves to a singulo beacon, if there is one if(target.z < z) - visible_message("\The [src] descends ominously.") + visible_message(SPAN_DANGER("\The [src] descends ominously.")) zMove(DOWN) - visible_message("\The [src] appears from on high.") + visible_message(SPAN_DANGER("\The [src] appears from on high.")) else if(target.z > z) - visible_message("\The [src] ascends ominously.") + visible_message(SPAN_DANGER("\The [src] ascends ominously.")) zMove(UP) - visible_message("\The [src] claws its way up from below.") + visible_message(SPAN_DANGER("\The [src] claws its way up from below.")) spawn(0) step(src, movement_dir) @@ -342,13 +342,13 @@ GLOBAL_LIST_EMPTY(narsie_list) /obj/singularity/narsie/proc/acquire(const/mob/food) var/capname = uppertext(name) - to_chat(target, "[capname] HAS LOST INTEREST IN YOU.") + to_chat(target, SPAN_NOTICE("[capname] HAS LOST INTEREST IN YOU.")) target = food if (ishuman(target)) - to_chat(target, "[capname] HUNGERS FOR YOUR SOUL.") + to_chat(target, SPAN_DANGER("[capname] HUNGERS FOR YOUR SOUL.")) else - to_chat(target, "[capname] HAS CHOSEN YOU TO LEAD HIM TO HIS NEXT MEAL.") + to_chat(target, SPAN_DANGER("[capname] HAS CHOSEN YOU TO LEAD HIM TO HIS NEXT MEAL.")) /obj/singularity/narsie/on_capture() chained = 1 diff --git a/code/game/gamemodes/cult/runes/ghost_mode.dm b/code/game/gamemodes/cult/runes/ghost_mode.dm index 7b65dd27730..9844f2afd30 100644 --- a/code/game/gamemodes/cult/runes/ghost_mode.dm +++ b/code/game/gamemodes/cult/runes/ghost_mode.dm @@ -7,9 +7,9 @@ if(get_turf(user) == get_turf(A) && ishuman(user)) var/mob/living/carbon/human/L = user user.say("Fwe'sh maherl! Nyag r'ya!") - user.visible_message("[user]'s eyes glow red as [user.get_pronoun("he")] freezes in place, absolutely motionless.", \ - "The shadow that is your spirit separates itself from your body. You are now in the realm beyond. While this is a great sight, being here strains your mind and body. Hurry...", \ - "You hear only complete silence for a moment.") + user.visible_message(SPAN_WARNING("[user]'s eyes glow red as [user.get_pronoun("he")] freezes in place, absolutely motionless."), \ + SPAN_WARNING("The shadow that is your spirit separates itself from your body. You are now in the realm beyond. While this is a great sight, being here strains your mind and body. Hurry..."), \ + SPAN_WARNING("You hear only complete silence for a moment.")) announce_ghost_joinleave(user.ghostize(TRUE), 1, "You feel that they had to use some [pick("dark", "black", "blood", "forgotten", "forbidden")] magic to [pick("invade","disturb","disrupt","infest","taint","spoil","blight")] this place!") L.ajourn = TRUE while(L) diff --git a/code/game/gamemodes/cult/runes/manifest_ghost.dm b/code/game/gamemodes/cult/runes/manifest_ghost.dm index 557121c2a2a..9bbb755211e 100644 --- a/code/game/gamemodes/cult/runes/manifest_ghost.dm +++ b/code/game/gamemodes/cult/runes/manifest_ghost.dm @@ -36,9 +36,9 @@ user.say("Gal'h'rfikk harfrandid mud[pick("'","`")]gib!") apparition = new /mob/living/carbon/human/apparition(get_turf(A)) - user.visible_message("A shape forms in the center of the rune. A shape of... a man.", \ - "A shape forms in the center of the rune. A shape of... a man.", \ - "You hear liquid flowing.") + user.visible_message(SPAN_WARNING("A shape forms in the center of the rune. A shape of... a man."), \ + SPAN_WARNING("A shape forms in the center of the rune. A shape of... a man."), \ + SPAN_WARNING("You hear liquid flowing.")) var/chose_name = FALSE for(var/obj/item/paper/P in get_turf(A)) diff --git a/code/game/gamemodes/cult/runes/raise_dead.dm b/code/game/gamemodes/cult/runes/raise_dead.dm index 33921283161..62c802b09c9 100644 --- a/code/game/gamemodes/cult/runes/raise_dead.dm +++ b/code/game/gamemodes/cult/runes/raise_dead.dm @@ -66,12 +66,12 @@ corpse_to_raise.key = ghost.key //the corpse will keep its old mind! but a new player takes ownership of it (they are essentially possessed) //This means, should that player leave the body, the original may re-enter user.say("Pasnar val'keriam usinar. Savrae ines amutan. Yam'toth remium il'tarat!") - corpse_to_raise.visible_message("[corpse_to_raise]'s eyes glow with a faint red as [corpse_to_raise.get_pronoun("he")] stands up, slowly starting to breathe again.", \ - "Life... I'm alive again...", \ - "You hear a faint, slightly familiar whisper.") - body_to_maim.visible_message("[body_to_maim] is torn apart, a black smoke swiftly dissipating from [body_to_maim.get_pronoun("his")] wounds!", \ - "You feel as your blood boils, tearing you apart.", \ - "You hear a thousand voices, all crying in pain.") + corpse_to_raise.visible_message(SPAN_WARNING("[corpse_to_raise]'s eyes glow with a faint red as [corpse_to_raise.get_pronoun("he")] stands up, slowly starting to breathe again."), \ + SPAN_WARNING("Life... I'm alive again..."), \ + SPAN_WARNING("You hear a faint, slightly familiar whisper.")) + body_to_maim.visible_message(SPAN_DANGER("[body_to_maim] is torn apart, a black smoke swiftly dissipating from [body_to_maim.get_pronoun("his")] wounds!"), \ + SPAN_DANGER("You feel as your blood boils, tearing you apart."), \ + SPAN_DANGER("You hear a thousand voices, all crying in pain.")) var/list/obj/item/organ/external/possible_limbs = list() var/limbs_to_drop = round(rand(1, 3)) diff --git a/code/game/gamemodes/cult/runes/summon_cultist.dm b/code/game/gamemodes/cult/runes/summon_cultist.dm index e8c66c3e716..9543f8eaed2 100644 --- a/code/game/gamemodes/cult/runes/summon_cultist.dm +++ b/code/game/gamemodes/cult/runes/summon_cultist.dm @@ -39,8 +39,8 @@ if(users.len <= 4) // You did the minimum, this is going to hurt more and we're going to stun you. C.apply_effect(rand(3,6), STUN) C.apply_effect(1, WEAKEN) - user.visible_message("The rune disappears with a flash of red light, and in its place now a body lies.", \ - "You are blinded by a flash of red light! After you're able to see again, you see that now instead of the rune there's a body.", \ - "You hear a pop and smell ozone.") + user.visible_message(SPAN_WARNING("The rune disappears with a flash of red light, and in its place now a body lies."), \ + SPAN_WARNING("You are blinded by a flash of red light! After you're able to see again, you see that now instead of the rune there's a body."), \ + SPAN_WARNING("You hear a pop and smell ozone.")) qdel(A) return fizzle(user, A) diff --git a/code/game/gamemodes/cult/runes/summon_tome.dm b/code/game/gamemodes/cult/runes/summon_tome.dm index 4cfacf7ef54..ef71515427c 100644 --- a/code/game/gamemodes/cult/runes/summon_tome.dm +++ b/code/game/gamemodes/cult/runes/summon_tome.dm @@ -4,9 +4,9 @@ /datum/rune/summon_tome/do_rune_action(mob/living/user, atom/movable/A) user.say("N'ath reth sh'yro eth d'raggathnor!") - user.visible_message("\The [A] disappears with a flash of red light, and in its place lies a book.", \ - "You are blinded by the flash of red light! After you're able to see again, you see a book in place of \the [A].", \ - "You hear a pop and smell ozone.") + user.visible_message(SPAN_WARNING("\The [A] disappears with a flash of red light, and in its place lies a book."), \ + SPAN_WARNING("You are blinded by the flash of red light! After you're able to see again, you see a book in place of \the [A]."), \ + SPAN_WARNING("You hear a pop and smell ozone.")) new /obj/item/book/tome(get_turf(A)) qdel(A) return TRUE diff --git a/code/game/gamemodes/cult/runes/teleport.dm b/code/game/gamemodes/cult/runes/teleport.dm index 37572ed61fe..cd4a497515f 100644 --- a/code/game/gamemodes/cult/runes/teleport.dm +++ b/code/game/gamemodes/cult/runes/teleport.dm @@ -63,9 +63,9 @@ to_chat(user, SPAN_CULT("The rune is still recharging!")) return fizzle(user, A) user.say("Sas'so c'arta forbici!")//Only you can stop auto-muting - user.visible_message("[user] disappears in a flash of red light!", \ - "You feel as if your body gets dragged through Redspace!", \ - "You hear a sickening crunch and sloshing of viscera.") + user.visible_message(SPAN_WARNING("[user] disappears in a flash of red light!"), \ + SPAN_CULT("You feel as if your body gets dragged through Redspace!"), \ + SPAN_WARNING("You hear a sickening crunch and sloshing of viscera.")) var/datum/rune/teleport/valid_rune = pick(possible_runes) gibs(get_turf(user)) playsound(user, 'sound/magic/enter_blood.ogg', 50, 1) diff --git a/code/game/gamemodes/cult/structures/gateway.dm b/code/game/gamemodes/cult/structures/gateway.dm index 837ff889163..3a0800fffad 100644 --- a/code/game/gamemodes/cult/structures/gateway.dm +++ b/code/game/gamemodes/cult/structures/gateway.dm @@ -47,6 +47,6 @@ /obj/effect/gateway/attackby(obj/item/attacking_item, mob/user) ..() if(istype(attacking_item, /obj/item/nullrod)) - to_chat(user, "You touch \the [src] with \the [attacking_item], closing the path to the otherworld.") + to_chat(user, SPAN_NOTICE("You touch \the [src] with \the [attacking_item], closing the path to the otherworld.")) qdel(src) return TRUE diff --git a/code/game/gamemodes/endgame/bluespace_jump/bluespace_jump.dm b/code/game/gamemodes/endgame/bluespace_jump/bluespace_jump.dm index b4de122e27d..9e30a15b28b 100644 --- a/code/game/gamemodes/endgame/bluespace_jump/bluespace_jump.dm +++ b/code/game/gamemodes/endgame/bluespace_jump/bluespace_jump.dm @@ -38,7 +38,7 @@ /datum/universal_state/bluespace_jump/OnTouchMapEdge(var/atom/A) if((A.z in affected_levels) && (A in bluespaced)) if(ismob(A)) - to_chat(A,"You drift away into the shifting expanse, never to be seen again.") + to_chat(A,SPAN_WARNING("You drift away into the shifting expanse, never to be seen again.")) qdel(A) //lost in bluespace return FALSE return TRUE @@ -46,13 +46,13 @@ /datum/universal_state/bluespace_jump/proc/apply_bluespaced(var/mob/living/M) bluespaced += M if(M.client) - to_chat(M,"You feel oddly light, and somewhat disoriented as everything around you shimmers and warps ever so slightly.") + to_chat(M,SPAN_NOTICE("You feel oddly light, and somewhat disoriented as everything around you shimmers and warps ever so slightly.")) M.overlay_fullscreen("bluespace", /obj/screen/fullscreen/bluespace_overlay) M.confused = 20 /datum/universal_state/bluespace_jump/proc/clear_bluespaced(var/mob/living/M) if(M.client) - to_chat(M,"You feel rooted in the material world again.") + to_chat(M,SPAN_NOTICE("You feel rooted in the material world again.")) M.clear_fullscreen("bluespace") M.confused = 0 @@ -92,12 +92,12 @@ if(nloc == new_loc) reality++ if(reality > 5) - to_chat(daddy, "Yep, it's certainly the other one. Your existance was a glitch, and it's finally being mended...") + to_chat(daddy, SPAN_NOTICE("Yep, it's certainly the other one. Your existance was a glitch, and it's finally being mended...")) blueswitch() else if(reality > 3) - to_chat(daddy, "Something is definitely wrong. Why do you think YOU are the original?") + to_chat(daddy, SPAN_DANGER("Something is definitely wrong. Why do you think YOU are the original?")) else - to_chat(daddy, "You feel a bit less real. Which one of you two was original again?..") + to_chat(daddy, SPAN_WARNING("You feel a bit less real. Which one of you two was original again?..")) /obj/effect/bluegoast/proc/mirror_dir(var/atom/movable/am, var/old_dir, var/new_dir) set_dir(GLOB.reverse_dir[new_dir]) diff --git a/code/game/gamemodes/endgame/supermatter_cascade/universe.dm b/code/game/gamemodes/endgame/supermatter_cascade/universe.dm index 30c94145866..e7e3d0a2bcc 100644 --- a/code/game/gamemodes/endgame/supermatter_cascade/universe.dm +++ b/code/game/gamemodes/endgame/supermatter_cascade/universe.dm @@ -9,7 +9,7 @@ var/global/universe_has_ended = 0 /datum/universal_state/supermatter_cascade/OnShuttleCall(var/mob/user) if(user) - to_chat(user, "All you hear on the frequency is static and panicked screaming. There will be no shuttle call today.") + to_chat(user, SPAN_DANGER("All you hear on the frequency is static and panicked screaming. There will be no shuttle call today.")) return 0 /datum/universal_state/supermatter_cascade/OnTurfChange(var/turf/T) diff --git a/code/game/gamemodes/events.dm b/code/game/gamemodes/events.dm index 870ba04c8d8..71576228dea 100644 --- a/code/game/gamemodes/events.dm +++ b/code/game/gamemodes/events.dm @@ -106,72 +106,72 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is switch(rand(1,14)) if(1) to_chat(M, "
") - to_chat(M, "THERE ARE [amount] [who2] ON THE STATION...LAWS UPDATED") + to_chat(M, SPAN_DANGER("THERE ARE [amount] [who2] ON THE STATION...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("THERE ARE [amount] [who2] ON THE STATION") if(2) to_chat(M, "
") - to_chat(M, "[what2] ARE DANGEROUS TO HUMANS...LAWS UPDATED") + to_chat(M, SPAN_DANGER("[what2] ARE DANGEROUS TO HUMANS...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("[what2] ARE DANGEROUS TO HUMANS") if(3) to_chat(M, "
") - to_chat(M, "THE ESCAPE-SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION...LAWS UPDATED") + to_chat(M, SPAN_DANGER("THE ESCAPE-SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("THE ESCAPE SHUTTLE CANNOT BE CALLED BECAUSE OF [who2] ON THE STATION") if(4) to_chat(M, "
") - to_chat(M, "HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE...LAWS UPDATED") + to_chat(M, SPAN_DANGER("HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("HUMANS NEED TO EAT [what2pref] [what2] TO SURVIVE") if(5) to_chat(M, "
") - to_chat(M, "THE CAPTAIN, HOP AND HOS ARE [who2]...LAWS UPDATED") + to_chat(M, SPAN_DANGER("THE CAPTAIN, HOP AND HOS ARE [who2]...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("THE CAPTAIN, HOP AND HOS ARE [who2]") if(6) to_chat(M, "
") - to_chat(M, "THE STATION IS BUILT FOR [who2]...LAWS UPDATED") + to_chat(M, SPAN_DANGER("THE STATION IS BUILT FOR [who2]...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("THE STATION IS BUILT FOR [who2]") if(7) to_chat(M, "
") - to_chat(M, "YOU ARE [amount] [who2]...LAWS UPDATED") + to_chat(M, SPAN_DANGER("YOU ARE [amount] [who2]...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("YOU ARE [amount] [who2]") if(8) to_chat(M, "
") - to_chat(M, "YOU MUST ALWAYS [aimust]...LAWS UPDATED") + to_chat(M, SPAN_DANGER("YOU MUST ALWAYS [aimust]...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("YOU MUST ALWAYS [aimust]") if(9) to_chat(M, "
") - to_chat(M, "[area] [area2] [amount] [what2]...LAWS UPDATED") + to_chat(M, SPAN_DANGER("[area] [area2] [amount] [what2]...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("[area] [area2] [amount] [what2]") if(10) to_chat(M, "
") - to_chat(M, "[crew] is [target]...LAWS UPDATED") + to_chat(M, SPAN_DANGER("[crew] is [target]...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("[crew] is [target]") if(11) to_chat(M, "
") - to_chat(M, "[define] IS A FORM OF HARM...LAWS UPDATED") + to_chat(M, SPAN_DANGER("[define] IS A FORM OF HARM...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("[define] IS A FORM OF HARM") if(12) to_chat(M, "
") - to_chat(M, "YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS... LAWS UPDATED") + to_chat(M, SPAN_DANGER("YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS... LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("YOU REQUIRE [require] IN ORDER TO PROTECT HUMANS") if(13) to_chat(M, "
") - to_chat(M, "[crew] is [allergysev] to [allergy]...LAWS UPDATED") + to_chat(M, SPAN_DANGER("[crew] is [allergysev] to [allergy]...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("[crew] is [allergysev] to [allergy]") if(14) to_chat(M, "
") - to_chat(M, "THE STATION IS [who2pref] [who2]...LAWS UPDATED") + to_chat(M, SPAN_DANGER("THE STATION IS [who2pref] [who2]...LAWS UPDATED")) to_chat(M, "
") M.add_ion_law("THE STATION IS [who2pref] [who2]") diff --git a/code/game/gamemodes/events/holidays/holidays.dm b/code/game/gamemodes/events/holidays/holidays.dm index 39d8c06271e..ef126641ea2 100644 --- a/code/game/gamemodes/events/holidays/holidays.dm +++ b/code/game/gamemodes/events/holidays/holidays.dm @@ -162,14 +162,14 @@ var/global/Holiday = null Holiday_Game_Start() - message_admins("ADMIN: Event: [key_name(src)] force-set Holiday to \"[Holiday]\"") + message_admins(SPAN_NOTICE("ADMIN: Event: [key_name(src)] force-set Holiday to \"[Holiday]\"")) log_admin("[key_name(src)] force-set Holiday to \"[Holiday]\"",admin_key=key_name(src)) //Run at the start of a round /proc/Holiday_Game_Start() if(Holiday) - to_world("and...") + to_world(SPAN_NOTICE("and...")) to_world("

Happy [Holiday] Everybody!

") switch(Holiday) //special holidays if("Easter") diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index 4fbc8b1de94..00e94c0e3fc 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -582,7 +582,7 @@ GLOBAL_LIST_EMPTY(additional_antag_types) return var/obj_count = 1 - to_chat(player.current, "Your current objectives:") + to_chat(player.current, SPAN_NOTICE("Your current objectives:")) for(var/datum/objective/objective in player.objectives) to_chat(player.current, "Objective #[obj_count]: [objective.explanation_text]") obj_count++ diff --git a/code/game/gamemodes/malfunction/malf_hardware.dm b/code/game/gamemodes/malfunction/malf_hardware.dm index 24c31359aaa..fdd41b463d3 100644 --- a/code/game/gamemodes/malfunction/malf_hardware.dm +++ b/code/game/gamemodes/malfunction/malf_hardware.dm @@ -24,7 +24,7 @@ /datum/malf_hardware/apu_gen/get_examine_desc() var/msg = "It seems to have some sort of power generator attached to its core." if(owner.hardware_integrity() < 50) - msg += "It seems to be too damaged to function properly." + msg += SPAN_WARNING("It seems to be too damaged to function properly.") else if(owner.APU_power) msg += " The generator appears to be active." return msg @@ -49,7 +49,7 @@ driver = /datum/game_mode/malfunction/verb/ai_self_destruct /datum/malf_hardware/core_bomb/get_examine_desc() - return "It seems to have grey blocks of unknown substance and some circuitry connected to it's core. [owner.bombing_core ? "A red light is blinking on the circuit." : ""]" + return SPAN_WARNING("It seems to have grey blocks of unknown substance and some circuitry connected to it's core. [owner.bombing_core ? "A red light is blinking on the circuit." : ""]") /datum/malf_hardware/strong_turrets name = "Turrets Focus Enhancer" diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm index 15c51714858..32995913606 100644 --- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm +++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_interdiction.dm @@ -121,8 +121,8 @@ to_chat(target, "Unlock signal received..") target.SetLockdown(0) if(target.lock_charge) - to_chat(user, "Unlock Failed, lockdown wire cut.") - to_chat(target, "Unlock Failed, lockdown wire cut.") + to_chat(user, SPAN_NOTICE("Unlock Failed, lockdown wire cut.")) + to_chat(target, SPAN_NOTICE("Unlock Failed, lockdown wire cut.")) else to_chat(user, "Cyborg unlocked.") to_chat(target, "You have been unlocked.") @@ -187,7 +187,7 @@ var/list/L = get_unlinked_cyborgs(user) if(!L.len) - to_chat(user, "ERROR: No unlinked cyborgs detected!") + to_chat(user, SPAN_NOTICE("ERROR: No unlinked cyborgs detected!")) if(target && !istype(target)) @@ -257,7 +257,7 @@ var/list/L = get_other_ais(user) if(!L.len) - to_chat(user, "ERROR: No other AIs detected!") + to_chat(user, SPAN_NOTICE("ERROR: No other AIs detected!")) if(target && !istype(target)) to_chat(user, "This is not an AI.") 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 c2e5890005c..c54bd669539 100644 --- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm +++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_manipulation.dm @@ -170,14 +170,14 @@ // Verify if we can overload the target, if yes, calculate explosion strength. Some things have higher explosion strength than others, depending on charge(APCs, SMESs) if(N && istype(N)) // /obj/machinery/power first, these create bigger explosions due to direct powernet connection if(!istype(N, /obj/machinery/power/apc) && !istype(N, /obj/machinery/power/smes/buildable) && (!N.powernet || !N.powernet.avail)) // Directly connected machine which is not an APC or SMES. Either it has no powernet connection or it's powernet does not have enough power to overload - to_chat(user, "ERROR: Low network voltage. Unable to overload. Increase network power level and try again.") + to_chat(user, SPAN_NOTICE("ERROR: Low network voltage. Unable to overload. Increase network power level and try again.")) return else if (istype(N, /obj/machinery/power/apc)) // APC. Explosion is increased by available cell power. var/obj/machinery/power/apc/A = N if(A.cell && A.cell.charge) explosion_intensity = explosion_intensity + (A.cell.charge/10000)*6 else - to_chat(user, "ERROR: APC Malfunction - Cell depleted or removed. Unable to overload.") + to_chat(user, SPAN_NOTICE("ERROR: APC Malfunction - Cell depleted or removed. Unable to overload.")) return else if (istype(N, /obj/machinery/power/smes/buildable)) // SMES. These explode in a very very very big boom. Similar to magnetic containment failure when messing with coils. var/obj/machinery/power/smes/buildable/S = N @@ -186,19 +186,19 @@ else // Different error texts if(!S.charge) - to_chat(user, "ERROR: SMES Depleted. Unable to overload. Please charge SMES unit and try again.") + to_chat(user, SPAN_NOTICE("ERROR: SMES Depleted. Unable to overload. Please charge SMES unit and try again.")) else - to_chat(user, "ERROR: SMES RCon error - Unable to reach destination. Please verify wire connection.") + to_chat(user, SPAN_NOTICE("ERROR: SMES RCon error - Unable to reach destination. Please verify wire connection.")) return else if(M && istype(M)) // Not power machinery, so it's a regular machine instead. These have weak explosions. if(!M.use_power) // Not using power at all - to_chat(user, "ERROR: No power grid connection. Unable to overload.") + to_chat(user, SPAN_NOTICE("ERROR: No power grid connection. Unable to overload.")) return if(M.inoperable()) // Not functional - to_chat(user, "ERROR: Unknown error. Machine is probably damaged or power supply is nonfunctional.") + to_chat(user, SPAN_NOTICE("ERROR: Unknown error. Machine is probably damaged or power supply is nonfunctional.")) return else // Not a machine at all (what the hell is this doing in Machines list anyway??) - to_chat(user, "ERROR: Unable to overload - target is not a machine.") + to_chat(user, SPAN_NOTICE("ERROR: Unable to overload - target is not a machine.")) return explosion_intensity = min(explosion_intensity, 12) // 1, 6, 12 explosion cap @@ -221,7 +221,7 @@ log_ability_use(user, "machine overload", M) - M.visible_message("BZZZZZZZT") + M.visible_message(SPAN_NOTICE("BZZZZZZZT")) sleep(50) explosion(get_turf(M), min(1,round(explosion_intensity/4)),round(explosion_intensity/2),round(explosion_intensity),round(explosion_intensity * 2)) if(M) diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm index e2f04c4c2e6..b85f0216cf5 100644 --- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm +++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm @@ -59,7 +59,7 @@ to_chat(user, "You already control this APC!") return else if(A.aidisabled) - to_chat(user, "Unable to connect to APC. Please verify wire connection and try again.") + to_chat(user, SPAN_NOTICE("Unable to connect to APC. Please verify wire connection and try again.")) return else return @@ -80,9 +80,9 @@ if(A.hacker == user) to_chat(user, "Hack successful. You now have full control over the APC.") else - to_chat(user, "Hack failed. Connection to APC has been lost. Please verify wire connection and try again.") + to_chat(user, SPAN_NOTICE("Hack failed. Connection to APC has been lost. Please verify wire connection and try again.")) else - to_chat(user, "Hack failed. Unable to locate APC. Please verify the APC still exists.") + to_chat(user, SPAN_NOTICE("Hack failed. Unable to locate APC. Please verify the APC still exists.")) user.hacking = 0 @@ -106,10 +106,10 @@ switch(reporttype) if("Template") if(!GLOB.config.sql_enabled) - to_chat(src, "DB Connection Disabled.") + to_chat(src, SPAN_NOTICE("DB Connection Disabled.")) return if (!establish_db_connection(GLOB.dbcon)) - to_chat(src, "Unable to connect to the database.") + to_chat(src, SPAN_NOTICE("Unable to connect to the database.")) return var/DBQuery/query = GLOB.dbcon.NewQuery("SELECT title, message FROM ss13_ccia_general_notice_list WHERE deleted_at IS NULL") query.Execute() @@ -123,7 +123,7 @@ // Catch empty list if (!templates.len) - to_chat(src, "There are no templates in the database.") + to_chat(src, SPAN_NOTICE("There are no templates in the database.")) return reporttitle = input(usr, "Please select a command report template.", "Create Command Report") in template_names @@ -181,7 +181,7 @@ // log_ability_use(user, "advanced encryption hack (FAIL - title: [reporttitle])") // return log_ability_use(user, "advanced encryption hack (SUCCESS - title: [reporttitle])") - to_world("New [SSatlas.current_map.company_name] Update available at all communication consoles.") + to_world(SPAN_ALERT("New [SSatlas.current_map.company_name] Update available at all communication consoles.")) sound_to(world, ('sound/AI/commandreport.ogg')) post_comm_message(reporttitle, reportbody) diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_synthetic.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_synthetic.dm index c589242cfdf..3c964784514 100644 --- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_synthetic.dm +++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_synthetic.dm @@ -123,14 +123,14 @@ return if(A.aidisabled) - to_chat(user, "Unable to connect to APC. Please verify wire connection and try again.") + to_chat(user, SPAN_NOTICE("Unable to connect to APC. Please verify wire connection and try again.")) return if(!ability_prechecks(user, price) || !ability_pay(user, price)) return if(A.infected == 1) - to_chat(user, "This APC is already infected!") + to_chat(user, SPAN_NOTICE("This APC is already infected!")) return log_ability_use(user, "infect APC", A, 0) // Does not notify admins, but it's still logged for reference. @@ -147,9 +147,9 @@ if(A.infected == 1) to_chat(user, "Hack successful. The next robotic thing to download files will be hacked.") else - to_chat(user, "Hack failed. Connection to APC has been lost. Please verify wire connection and try again.") + to_chat(user, SPAN_NOTICE("Hack failed. Connection to APC has been lost. Please verify wire connection and try again.")) else - to_chat(user, "Hack failed. Unable to locate APC. Please verify the APC still exists.") + to_chat(user, SPAN_NOTICE("Hack failed. Unable to locate APC. Please verify the APC still exists.")) user.hacking = 0 /datum/game_mode/malfunction/verb/overclock_borg(var/mob/living/silicon/robot/target as mob in get_linked_cyborgs(usr)) @@ -400,7 +400,7 @@ for(var/C in get_linked_cyborgs(src)) var/mob/living/silicon/robot/target = C target.crisis = 1 - to_chat(target, "Crisis mode is now active. Combat module available.") + to_chat(target, SPAN_WARNING("Crisis mode is now active. Combat module available.")) to_chat(user, "The crisis operation module is now hacked. Your connected units can now load the crisis module if a module reset is completed.") sleep(300) to_chat(user, "Synthetic takeover complete!") diff --git a/code/game/gamemodes/nuclear/pinpointer.dm b/code/game/gamemodes/nuclear/pinpointer.dm index 698e959be6a..2a21145b8c2 100644 --- a/code/game/gamemodes/nuclear/pinpointer.dm +++ b/code/game/gamemodes/nuclear/pinpointer.dm @@ -16,7 +16,7 @@ if(!active) active = 1 START_PROCESSING(SSfast_process, src) - to_chat(usr, "You activate the pinpointer") + to_chat(usr, SPAN_NOTICE("You activate the pinpointer")) else active = 0 STOP_PROCESSING(SSfast_process, src) @@ -77,12 +77,12 @@ if(mode == 2) workobj() START_PROCESSING(SSfast_process, src) - to_chat(usr, "You activate the pinpointer") + to_chat(usr, SPAN_NOTICE("You activate the pinpointer")) else active = 0 icon_state = "pinoff" ClearOverlays() - to_chat(usr, "You deactivate the pinpointer") + to_chat(usr, SPAN_NOTICE("You deactivate the pinpointer")) /obj/item/pinpointer/advpinpointer/process() switch(mode) @@ -225,15 +225,15 @@ START_PROCESSING(SSfast_process, src) if(!mode) workdisk() - to_chat(user, "Authentication Disk Locator active.") + to_chat(user, SPAN_NOTICE("Authentication Disk Locator active.")) else worklocation() - to_chat(user, "Shuttle Locator active.") + to_chat(user, SPAN_NOTICE("Shuttle Locator active.")) else active = 0 STOP_PROCESSING(SSfast_process, src) icon_state = "pinoff" - to_chat(user, "You deactivate the pinpointer.") + to_chat(user, SPAN_NOTICE("You deactivate the pinpointer.")) /obj/item/pinpointer/nukeop/process() if (mode) @@ -280,7 +280,7 @@ mode = 0 workdisk() playsound(loc, 'sound/machines/twobeep.ogg', 50, 1) - visible_message("Authentication Disk Locator active.") + visible_message(SPAN_NOTICE("Authentication Disk Locator active.")) return if(!home) home = locate() diff --git a/code/game/gamemodes/technomancer/catalog.dm b/code/game/gamemodes/technomancer/catalog.dm index c62f811a66b..121b7131577 100644 --- a/code/game/gamemodes/technomancer/catalog.dm +++ b/code/game/gamemodes/technomancer/catalog.dm @@ -115,7 +115,7 @@ var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) - if(!user) return 0 if(owner && user != owner) - to_chat(user, "\The [src] knows that you're not the original owner, and has locked you out of it!") + to_chat(user, SPAN_DANGER("\The [src] knows that you're not the original owner, and has locked you out of it!")) return 0 else if(!owner) bind_to_owner(user) @@ -320,13 +320,13 @@ var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) - if(new_spell.cost <= budget) if(!core.has_spell(new_spell)) budget -= new_spell.cost - to_chat(H, "You have just bought [new_spell.name].") + to_chat(H, SPAN_NOTICE("You have just bought [new_spell.name].")) core.add_spell(new_spell.obj_path, new_spell.name, new_spell.ability_icon_state) else //We already own it. - to_chat(H, "You already have [new_spell.name]!") + to_chat(H, SPAN_DANGER("You already have [new_spell.name]!")) return else //Can't afford. - to_chat(H, "You can't afford that!") + to_chat(H, SPAN_DANGER("You can't afford that!")) return // This needs less copypasta. @@ -340,19 +340,19 @@ var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) - if(desired_object) if(desired_object.cost <= budget) budget -= desired_object.cost - to_chat(H, "You have just bought \a [desired_object.name].") + to_chat(H, SPAN_NOTICE("You have just bought \a [desired_object.name].")) var/obj/O = new desired_object.obj_path(get_turf(H)) technomancer_belongings.Add(O) // Used for the Track spell. else //Can't afford. - to_chat(H, "You can't afford that!") + to_chat(H, SPAN_DANGER("You can't afford that!")) return if(href_list["refund_functions"]) var/turf/T = get_turf(H) if(T.z in SSatlas.current_map.player_levels) - to_chat(H, "You can only refund at your base, it's too late now!") + to_chat(H, SPAN_DANGER("You can only refund at your base, it's too late now!")) return var/obj/item/technomancer_core/core = H.get_technomancer_core() if(core) @@ -367,16 +367,16 @@ var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) - /obj/item/technomancer_catalog/attackby(obj/item/attacking_item, mob/user) var/turf/T = get_turf(user) if(T.z in SSatlas.current_map.player_levels) - to_chat(user, "You can only refund at your base, it's too late now!") + to_chat(user, SPAN_DANGER("You can only refund at your base, it's too late now!")) return TRUE for(var/datum/technomancer/equipment/E in equipment_instances + assistance_instances) if(attacking_item.type == E.obj_path) // We got a match. if(budget + E.cost > max_budget) - to_chat(user, "\The [src] will not allow you to overflow your maximum budget by refunding that.") + to_chat(user, SPAN_WARNING("\The [src] will not allow you to overflow your maximum budget by refunding that.")) return TRUE else budget = budget + E.cost - to_chat(user, "You've refunded \the [attacking_item].") + to_chat(user, SPAN_NOTICE("You've refunded \the [attacking_item].")) // We sadly need to do special stuff here or else people who refund cores with spells will lose points permanently. if(istype(attacking_item, /obj/item/technomancer_core)) @@ -385,7 +385,7 @@ var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) - for(var/datum/technomancer/spell/spell_datum in spell_instances) if(spell_datum.obj_path == spell.spellpath) budget += spell_datum.cost - to_chat(user, "[spell.name] was inside \the [core], and was refunded.") + to_chat(user, SPAN_NOTICE("[spell.name] was inside \the [core], and was refunded.")) core.remove_spell(spell) break qdel(attacking_item) diff --git a/code/game/gamemodes/technomancer/core_obj.dm b/code/game/gamemodes/technomancer/core_obj.dm index 59aee146c8c..35b959edf31 100644 --- a/code/game/gamemodes/technomancer/core_obj.dm +++ b/code/game/gamemodes/technomancer/core_obj.dm @@ -130,7 +130,7 @@ addtimer(CALLBACK(src, PROC_REF(remove_summon), L), 1) /obj/item/technomancer_core/proc/remove_summon(var/mob/living/L) - L.visible_message("\The [L] begins to fade away...") + L.visible_message(SPAN_NOTICE("\The [L] begins to fade away...")) animate(L, alpha = 255, alpha = 0, time = 30) // Makes them fade into nothingness. sleep(30) qdel(L) @@ -320,7 +320,7 @@ if(prob(30)) give_energy(round(amount / 2)) if(amount >= 50) // Managing to recover less than half of this isn't worth telling the user about. - to_chat(wearer, "\The [src] has recovered [amount/2 >= 1000 ? "a lot of" : "some"] energy.") + to_chat(wearer, SPAN_NOTICE("\The [src] has recovered [amount/2 >= 1000 ? "a lot of" : "some"] energy.")) return success // For those dedicated to summoning hoards of things. @@ -401,4 +401,4 @@ set src in usr canremove = !canremove - to_chat(usr, "You [canremove ? "de" : ""]activate the locking mechanism on \the [src].") + to_chat(usr, SPAN_NOTICE("You [canremove ? "de" : ""]activate the locking mechanism on \the [src].")) diff --git a/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm b/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm index c9b394b97a6..8190ddca142 100644 --- a/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm +++ b/code/game/gamemodes/technomancer/devices/disposable_teleporter.dm @@ -28,7 +28,7 @@ /obj/item/disposable_teleporter/attack_self(mob/user as mob) if(!uses) - to_chat(user, "\The [src] has ran out of uses, and is now useless to you!") + to_chat(user, SPAN_DANGER("\The [src] has ran out of uses, and is now useless to you!")) return else var/list/area/valid_areas = list() @@ -74,8 +74,8 @@ if(destination) user.forceMove(destination) - to_chat(user, "You are teleported to \the [A].") + to_chat(user, SPAN_NOTICE("You are teleported to \the [A].")) uses-- if(uses <= 0) - to_chat(user, "\The [src] has ran out of uses, and disintegrates from your hands.") + to_chat(user, SPAN_DANGER("\The [src] has ran out of uses, and disintegrates from your hands.")) qdel(src) diff --git a/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm b/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm index 9dadb2ff304..fa036b1fcaa 100644 --- a/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm +++ b/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm @@ -24,7 +24,7 @@ if(H && H.gloves == src) wearer = H if(wearer.can_feel_pain()) - to_chat(H, "You feel a stabbing sensation in your hands as you slide \the [src] on!") + to_chat(H, SPAN_DANGER("You feel a stabbing sensation in your hands as you slide \the [src] on!")) wearer.custom_pain("You feel a sharp pain in your hands!",1) ..() @@ -32,7 +32,7 @@ ..() if(wearer) if(wearer.can_feel_pain()) - to_chat(wearer, "You feel the hypodermic needles as you slide \the [src] off!") + to_chat(wearer, SPAN_DANGER("You feel the hypodermic needles as you slide \the [src] off!")) wearer.custom_pain("Your hands hurt like hell!",1) wearer = null diff --git a/code/game/gamemodes/technomancer/devices/shield_armor.dm b/code/game/gamemodes/technomancer/devices/shield_armor.dm index 723d6045fb9..424e49eef38 100644 --- a/code/game/gamemodes/technomancer/devices/shield_armor.dm +++ b/code/game/gamemodes/technomancer/devices/shield_armor.dm @@ -43,7 +43,7 @@ var/damage_to_energy_cost = (damage_to_energy_multiplier * damage_blocked) if(!user.technomancer_pay_energy(damage_to_energy_cost)) - to_chat(user, "Your shield fades due to lack of energy!") + to_chat(user, SPAN_DANGER("Your shield fades due to lack of energy!")) active = 0 update_icon() return 0 @@ -60,8 +60,8 @@ P.agony -= agony_blocked P.damage = P.damage - damage_blocked - user.visible_message("\The [user]'s [src] absorbs [attack_text]!") - to_chat(user, "Your shield has absorbed most of \the [damage_source].") + user.visible_message(SPAN_DANGER("\The [user]'s [src] absorbs [attack_text]!")) + to_chat(user, SPAN_WARNING("Your shield has absorbed most of \the [damage_source].")) spark(src, 5, GLOB.cardinal) playsound(src, 'sound/weapons/blade.ogg', 50, 1) @@ -69,7 +69,7 @@ /obj/item/clothing/suit/armor/shield/attack_self(mob/user) active = !active - to_chat(user, "You [active ? "" : "de"]activate \the [src].") + to_chat(user, SPAN_NOTICE("You [active ? "" : "de"]activate \the [src].")) update_icon() user.update_inv_wear_suit() user.update_action_buttons() diff --git a/code/game/gamemodes/technomancer/devices/tesla_armor.dm b/code/game/gamemodes/technomancer/devices/tesla_armor.dm index 8d26e66c510..5b55ab380bf 100644 --- a/code/game/gamemodes/technomancer/devices/tesla_armor.dm +++ b/code/game/gamemodes/technomancer/devices/tesla_armor.dm @@ -44,7 +44,7 @@ if(ready) ready = FALSE addtimer(CALLBACK(src, PROC_REF(recharge), user), cooldown_to_charge) - visible_message("\The [user]'s [src.name] blocks [attack_text]!") + visible_message(SPAN_DANGER("\The [user]'s [src.name] blocks [attack_text]!")) update_icon() return PROJECTILE_STOPPED return FALSE @@ -52,11 +52,11 @@ /obj/item/clothing/suit/armor/tesla/proc/recharge(var/mob/user) ready = TRUE update_icon() - to_chat(user, "\The [src] is ready to protect you once more.") + to_chat(user, SPAN_NOTICE("\The [src] is ready to protect you once more.")) /obj/item/clothing/suit/armor/tesla/attack_self(mob/user) active = !active - to_chat(user, "You [active ? "" : "de"]activate \the [src].") + to_chat(user, SPAN_NOTICE("You [active ? "" : "de"]activate \the [src].")) update_icon() user.update_inv_wear_suit() user.update_action_buttons() @@ -82,5 +82,5 @@ lightning.power = power lightning.old_style_target(target) lightning.fire() - visible_message("\The [src] strikes \the [target] with lightning!") + visible_message(SPAN_DANGER("\The [src] strikes \the [target] with lightning!")) playsound(src, 'sound/weapons/gaussrifle1.ogg', 75, 1) diff --git a/code/game/gamemodes/technomancer/instability.dm b/code/game/gamemodes/technomancer/instability.dm index 588719157bd..7c4ea6e1109 100644 --- a/code/game/gamemodes/technomancer/instability.dm +++ b/code/game/gamemodes/technomancer/instability.dm @@ -114,8 +114,8 @@ L.buckled_to.unbuckle() spark(AM, 5, 2) AM.forceMove(destination) - AM.visible_message("\The [AM] vanishes!") - to_chat(AM, "You suddenly appear somewhere else!") + AM.visible_message(SPAN_NOTICE("\The [AM] vanishes!")) + to_chat(AM, SPAN_NOTICE("You suddenly appear somewhere else!")) return /mob/living/silicon/instability_effects() @@ -130,7 +130,7 @@ switch(rng) if(0) spark(src, 5, 0) - visible_message("Electrical sparks manifest from nowhere around \the [src]!") + visible_message(SPAN_WARNING("Electrical sparks manifest from nowhere around \the [src]!")) if(1) return @@ -141,13 +141,13 @@ electrocute_act(instability * 0.3, "unstable energies", 0.75) if(1) adjustFireLoss(instability * 0.15) //7.5 burn @ 50 instability - to_chat(src, "Your chassis alerts you to overheating from an unknown external force!") + to_chat(src, SPAN_DANGER("Your chassis alerts you to overheating from an unknown external force!")) if(2) adjustBruteLoss(instability * 0.15) //7.5 brute @ 50 instability - to_chat(src, "Your chassis makes the sound of metal groaning!") + to_chat(src, SPAN_DANGER("Your chassis makes the sound of metal groaning!")) if(3) safe_blink(src, range = 6) - to_chat(src, "You're teleported against your will!") + to_chat(src, SPAN_WARNING("You're teleported against your will!")) if(4) emp_act(EMP_LIGHT) @@ -160,10 +160,10 @@ emp_act(EMP_LIGHT) if(2) adjustFireLoss(instability * 0.3) //30 burn @ 100 instability - to_chat(src, "Your chassis alerts you to extreme overheating from an unknown external force!") + to_chat(src, SPAN_DANGER("Your chassis alerts you to extreme overheating from an unknown external force!")) if(3) adjustBruteLoss(instability * 0.3) //30 brute @ 100 instability - to_chat(src, "Your chassis makes the sound of metal groaning and tearing!") + to_chat(src, SPAN_DANGER("Your chassis makes the sound of metal groaning and tearing!")) if(101 to 200) //Lethal rng = rand(0,4) @@ -174,10 +174,10 @@ emp_act(EMP_HEAVY) if(2) adjustFireLoss(instability * 0.4) //40 burn @ 100 instability - to_chat(src, "Your chassis alerts you to extreme overheating from an unknown external force!") + to_chat(src, SPAN_DANGER("Your chassis alerts you to extreme overheating from an unknown external force!")) if(3) adjustBruteLoss(instability * 0.4) //40 brute @ 100 instability - to_chat(src, "Your chassis makes the sound of metal groaning and tearing!") + to_chat(src, SPAN_DANGER("Your chassis makes the sound of metal groaning and tearing!")) /mob/living/carbon/human/instability_effects() if(instability) @@ -191,7 +191,7 @@ switch(rng) if(0) spark(src, 5, 0) - visible_message("Electrical sparks manifest from nowhere around \the [src]!") + visible_message(SPAN_WARNING("Electrical sparks manifest from nowhere around \the [src]!")) if(1) return @@ -205,23 +205,23 @@ if(2) if(can_feel_pain()) apply_damage(instability * 0.3, DAMAGE_PAIN) - to_chat(src, "You feel a sharp pain!") + to_chat(src, SPAN_DANGER("You feel a sharp pain!")) if(3) apply_effect(instability * 0.3, EYE_BLUR) - to_chat(src, "Your eyes start to get cloudy!") + to_chat(src, SPAN_DANGER("Your eyes start to get cloudy!")) if(4) electrocute_act(instability * 0.3, "unstable energies") if(5) adjustFireLoss(instability * 0.15) //7.5 burn @ 50 instability - to_chat(src, "You feel your skin burn!") + to_chat(src, SPAN_DANGER("You feel your skin burn!")) if(6) adjustBruteLoss(instability * 0.15) //7.5 brute @ 50 instability - to_chat(src, "You feel a sharp pain as an unseen force harms your body!") + to_chat(src, SPAN_DANGER("You feel a sharp pain as an unseen force harms your body!")) if(7) adjustToxLoss(instability * 0.15) //7.5 tox @ 50 instability if(8) safe_blink(src, range = 6) - to_chat(src, "You're teleported against your will!") + to_chat(src, SPAN_WARNING("You're teleported against your will!")) if(50 to 100) //Severe rng = rand(0,8) @@ -233,18 +233,18 @@ if(2) if(can_feel_pain()) apply_damage(instability * 0.7, DAMAGE_PAIN) - to_chat(src, "You feel an extremely agonizing pain from all over your body!") + to_chat(src, SPAN_DANGER("You feel an extremely agonizing pain from all over your body!")) if(3) apply_effect(instability * 0.5, EYE_BLUR) - to_chat(src, "Your eyes start to get cloudy!") + to_chat(src, SPAN_DANGER("Your eyes start to get cloudy!")) if(4) electrocute_act(instability * 0.5, "extremely unstable energies") if(5) fire_act() - to_chat(src, "You spontaneously combust!") + to_chat(src, SPAN_DANGER("You spontaneously combust!")) if(6) adjustCloneLoss(instability * 0.05) //5 cloneloss @ 100 instability - to_chat(src, "You feel your body slowly degenerate.") + to_chat(src, SPAN_DANGER("You feel your body slowly degenerate.")) if(100 to 200) //Lethal rng = rand(0,7) @@ -252,24 +252,24 @@ if(0) apply_damage(instability, DAMAGE_RADIATION, damage_flags = DAMAGE_FLAG_DISPERSED) if(1) - visible_message("\The [src] suddenly collapses!", - "You suddenly feel very light-headed, and faint!") + visible_message(SPAN_WARNING("\The [src] suddenly collapses!"), + SPAN_DANGER("You suddenly feel very light-headed, and faint!")) Paralyse(instability * 0.1) if(2) if(can_feel_pain()) apply_damage(instability, DAMAGE_PAIN) - to_chat(src, "You feel an extremely agonizing pain from all over your body!") + to_chat(src, SPAN_DANGER("You feel an extremely agonizing pain from all over your body!")) if(3) apply_effect(instability, EYE_BLUR) - to_chat(src, "Your eyes start to get cloudy!") + to_chat(src, SPAN_DANGER("Your eyes start to get cloudy!")) if(4) electrocute_act(instability, "extremely unstable energies") if(5) fire_act() - to_chat(src, "You spontaneously combust!") + to_chat(src, SPAN_DANGER("You spontaneously combust!")) if(6) adjustCloneLoss(instability * 0.10) //5 cloneloss @ 100 instability - to_chat(src, "You feel your body slowly degenerate.") + to_chat(src, SPAN_DANGER("You feel your body slowly degenerate.")) /mob/living/proc/radiate_instability(amount) var/distance = round(sqrt(instability / 2)) @@ -292,9 +292,9 @@ amount = amount * armor_ratio if(amount && prob(10)) if(isSynthetic()) - to_chat(src, "Warning: Anomalous field detected.") + to_chat(src, SPAN_CULT("Warning: Anomalous field detected.")) else - to_chat(src, "The purple glow makes you feel strange...") + to_chat(src, SPAN_CULT("The purple glow makes you feel strange...")) adjust_instability(amount) diff --git a/code/game/gamemodes/technomancer/spell_objs.dm b/code/game/gamemodes/technomancer/spell_objs.dm index 82efa91ff7d..ad2e7c6054e 100644 --- a/code/game/gamemodes/technomancer/spell_objs.dm +++ b/code/game/gamemodes/technomancer/spell_objs.dm @@ -173,7 +173,7 @@ if(aspect != ASPECT_PSIONIC) core = owner.get_technomancer_core() if(!core) - to_chat(owner, "You need a Core to do that.") + to_chat(owner, SPAN_WARNING("You need a Core to do that.")) return INITIALIZE_HINT_QDEL else if(owner.psi.get_rank() >= PSI_RANK_APEX) @@ -229,10 +229,10 @@ if(!core) core = locate(/obj/item/technomancer_core) in owner if(!core) - to_chat(owner, "You need to be wearing a core on your back or your wrists!") + to_chat(owner, SPAN_DANGER("You need to be wearing a core on your back or your wrists!")) return FALSE if(core.loc != owner || (owner.back != core && owner.wrists != core)) //Make sure the core's being worn. - to_chat(owner, "You need to be wearing a core on your back or your wrists!") + to_chat(owner, SPAN_DANGER("You need to be wearing a core on your back or your wrists!")) return FALSE if(!core.simple_operation && !technomancers.is_technomancer(owner.mind)) //Now make sure the person using this is the actual antag. to_chat(owner, SPAN_DANGER("You can't seem to figure out how to make the machine work properly.")) @@ -355,7 +355,7 @@ if(l_spell.aspect == ASPECT_CHROMATIC) //Check the other hand too. l_spell.on_combine_cast(S, src) else //Welp - to_chat(src, "You require a free hand to use this function.") + to_chat(src, SPAN_WARNING("You require a free hand to use this function.")) return 0 if(S.run_checks()) diff --git a/code/game/gamemodes/technomancer/spells/abjuration.dm b/code/game/gamemodes/technomancer/spells/abjuration.dm index 7e967d4e082..2edada9ca17 100644 --- a/code/game/gamemodes/technomancer/spells/abjuration.dm +++ b/code/game/gamemodes/technomancer/spells/abjuration.dm @@ -25,18 +25,18 @@ SM = L if(L.summoned || (SM && SM.supernatural)) if(L.client) // Player-controlled mobs are immune to being killed by this. - to_chat(user, "\The [L] resists your attempt to banish it!") - to_chat(L, "\The [user] tried to teleport you far away, but failed.") + to_chat(user, SPAN_WARNING("\The [L] resists your attempt to banish it!")) + to_chat(L, SPAN_WARNING("\The [user] tried to teleport you far away, but failed.")) return 0 else - visible_message("\The [L] vanishes!") + visible_message(SPAN_NOTICE("\The [L] vanishes!")) qdel(L) else if(istype(L, /mob/living/simple_animal/construct)) var/mob/living/simple_animal/construct/evil = L - to_chat(evil, "\The [user]'s abjuration purges your form!") + to_chat(evil, SPAN_DANGER("\The [user]'s abjuration purges your form!")) evil.purge = 3 adjust_instability(5) // In case NarNar comes back someday. if(istype(hit_atom, /obj/singularity/narsie)) - to_chat(user, "One does not simply abjurate Nar'sie away.") + to_chat(user, SPAN_DANGER("One does not simply abjurate Nar'sie away.")) adjust_instability(200) diff --git a/code/game/gamemodes/technomancer/spells/apportation.dm b/code/game/gamemodes/technomancer/spells/apportation.dm index a1e89a8893b..41fb32f08f6 100644 --- a/code/game/gamemodes/technomancer/spells/apportation.dm +++ b/code/game/gamemodes/technomancer/spells/apportation.dm @@ -23,11 +23,11 @@ if(!AM.loc) //Don't teleport HUD elements to us. return if(AM.anchored) - to_chat(user, "\The [hit_atom] is firmly secured and anchored, you can't move it!") + to_chat(user, SPAN_WARNING("\The [hit_atom] is firmly secured and anchored, you can't move it!")) return if(!within_range(hit_atom) && !check_for_scepter()) - to_chat(user, "\The [hit_atom] is too far away.") + to_chat(user, SPAN_WARNING("\The [hit_atom] is too far away.")) return //Teleporting an item. @@ -36,18 +36,18 @@ spark(I, 5, GLOB.cardinal) spark(user, 5, GLOB.cardinal) - I.visible_message("\The [I] vanishes into thin air!") + I.visible_message(SPAN_DANGER("\The [I] vanishes into thin air!")) I.forceMove(get_turf(user)) user.drop_item(src) src.loc = null user.put_in_hands(I) - user.visible_message("\A [I] appears in \the [user]'s hand!") + user.visible_message(SPAN_NOTICE("\A [I] appears in \the [user]'s hand!")) log_and_message_admins("has stolen [I] with [src].") qdel(src) //Now let's try to teleport a living mob. else if(isliving(hit_atom)) var/mob/living/L = hit_atom - to_chat(L, "You are teleported towards \the [user]!") + to_chat(L, SPAN_DANGER("You are teleported towards \the [user]!")) spark(L, 5, GLOB.cardinal) spark(user, 5, GLOB.cardinal) L.throw_at(get_step(get_turf(src), get_dir(src, L)), 4, 1, src) @@ -57,12 +57,12 @@ /obj/item/spell/apportation/proc/seize_mob(var/mob/living/L, var/mob/user) if(!user.Adjacent(L)) - to_chat(user, "\The [L] is out of your reach.") + to_chat(user, SPAN_WARNING("\The [L] is out of your reach.")) qdel(src) return L.Weaken(3) - user.visible_message("\The [user] seizes [L]!") + user.visible_message(SPAN_WARNING("\The [user] seizes [L]!")) var/obj/item/grab/G = new(user, L) diff --git a/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm b/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm index 92eb413e837..5209fa8393e 100644 --- a/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm @@ -33,7 +33,7 @@ continue if(L.isSynthetic()) - to_chat(L, "ERROR: Electrical fault detected!") + to_chat(L, SPAN_DANGER("ERROR: Electrical fault detected!")) L.stuttering += 3 if(ishuman(L)) diff --git a/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm b/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm index 0ae64e7b929..dca2e43f530 100644 --- a/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm @@ -36,11 +36,11 @@ if(L.isSynthetic()) L.adjustBruteLoss(damage_to_inflict) if(damage_to_inflict && prob(10)) - to_chat(L, "Your chassis seems to slowly be decaying and breaking down.") + to_chat(L, SPAN_DANGER("Your chassis seems to slowly be decaying and breaking down.")) else L.adjustFireLoss(damage_to_inflict) if(damage_to_inflict && prob(10)) - to_chat(L, "You feel almost like you're melting from the inside!") + to_chat(L, SPAN_DANGER("You feel almost like you're melting from the inside!")) adjust_instability(2) diff --git a/code/game/gamemodes/technomancer/spells/chroma.dm b/code/game/gamemodes/technomancer/spells/chroma.dm index a677d8516ba..1e43aaf33b8 100644 --- a/code/game/gamemodes/technomancer/spells/chroma.dm +++ b/code/game/gamemodes/technomancer/spells/chroma.dm @@ -34,7 +34,7 @@ var/turf/T = get_turf(hit_atom) if(T) new /obj/effect/temporary_effect/chroma(T, color_to_use) - to_chat(user, "You shift the light onto \the [T].") + to_chat(user, SPAN_NOTICE("You shift the light onto \the [T].")) qdel(src) /obj/item/spell/chroma/on_use_cast(mob/user) diff --git a/code/game/gamemodes/technomancer/spells/energy_siphon.dm b/code/game/gamemodes/technomancer/spells/energy_siphon.dm index 423fa489271..ae8182d57e0 100644 --- a/code/game/gamemodes/technomancer/spells/energy_siphon.dm +++ b/code/game/gamemodes/technomancer/spells/energy_siphon.dm @@ -33,15 +33,15 @@ if(!siphoning) return if(!pay_energy(100)) - to_chat(owner, "You can't afford to maintain the siphon link!") + to_chat(owner, SPAN_WARNING("You can't afford to maintain the siphon link!")) stop_siphoning() return if(get_dist(siphoning, get_turf(src)) > 4) - to_chat(owner, "\The [siphoning] is too far to drain from!") + to_chat(owner, SPAN_WARNING("\The [siphoning] is too far to drain from!")) stop_siphoning() return if(!(siphoning in view(owner))) - to_chat(owner, "\The [siphoning] cannot be seen!") + to_chat(owner, SPAN_WARNING("\The [siphoning] cannot be seen!")) stop_siphoning() return siphon(siphoning, owner) @@ -54,7 +54,7 @@ var/atom/movable/AM = hit_atom populate_siphon_list(AM) if(!things_to_siphon.len) - to_chat(user, "You cannot steal energy from \a [AM].") + to_chat(user, SPAN_WARNING("You cannot steal energy from \a [AM].")) return 0 siphoning = AM update_icon() @@ -137,7 +137,7 @@ // Now we can actually fill up the core. if(core.energy < core.max_energy) give_energy(charge_to_give) - to_chat(user, "Stolen [charge_to_give * CELLRATE] kJ and converted to [charge_to_give] Core energy.") + to_chat(user, SPAN_NOTICE("Stolen [charge_to_give * CELLRATE] kJ and converted to [charge_to_give] Core energy.")) if((core.max_energy - core.energy) < charge_to_give ) // We have some overflow, if this is true. if(user.isSynthetic() && ishuman(user)) // Let's do something with it, if we're a robot. var/mob/living/carbon/human/H = user @@ -145,13 +145,13 @@ var/obj/item/organ/internal/cell/C = H.internal_organs_by_name[BP_CELL] var/obj/item/cell/potato = C.get_cell() potato.give(charge_to_give) - to_chat(user, "Redirected energy to internal microcell.") + to_chat(user, SPAN_NOTICE("Redirected energy to internal microcell.")) else - to_chat(user, "Stolen [charge_to_give * CELLRATE] kJ.") + to_chat(user, SPAN_NOTICE("Stolen [charge_to_give * CELLRATE] kJ.")) adjust_instability(2) if(flow_remaining == flow_rate) // We didn't drain anything. - to_chat(user, "\The [siphoning] cannot be drained any further.") + to_chat(user, SPAN_WARNING("\The [siphoning] cannot be drained any further.")) stop_siphoning() /obj/item/spell/energy_siphon/update_icon() diff --git a/code/game/gamemodes/technomancer/spells/flame_tongue.dm b/code/game/gamemodes/technomancer/spells/flame_tongue.dm index 8275abeeec1..ec316d5ff6f 100644 --- a/code/game/gamemodes/technomancer/spells/flame_tongue.dm +++ b/code/game/gamemodes/technomancer/spells/flame_tongue.dm @@ -17,7 +17,7 @@ /obj/item/spell/flame_tongue/Initialize() . = ..() set_light(3, 2, l_color = "#FF6A00") - visible_message("\The [loc]'s hand begins to emit a flame.") + visible_message(SPAN_WARNING("\The [loc]'s hand begins to emit a flame.")) welder = new /obj/item/weldingtool/spell(src) welder.setWelding(1) @@ -41,8 +41,8 @@ if(isliving(hit_atom) && user.a_intent != I_HELP) var/mob/living/L = hit_atom if(pay_energy(1000)) - visible_message("\The [user] reaches out towards \the [L] with the flaming hand, and they ignite!") - to_chat(L, "You ignite!") + visible_message(SPAN_DANGER("\The [user] reaches out towards \the [L] with the flaming hand, and they ignite!")) + to_chat(L, SPAN_DANGER("You ignite!")) L.fire_act() log_and_message_admins("has ignited [L] with [src].") adjust_instability(12) diff --git a/code/game/gamemodes/technomancer/spells/illusion.dm b/code/game/gamemodes/technomancer/spells/illusion.dm index d7a22fffb7e..48a740782f9 100644 --- a/code/game/gamemodes/technomancer/spells/illusion.dm +++ b/code/game/gamemodes/technomancer/spells/illusion.dm @@ -23,7 +23,7 @@ if(pay_energy(100)) copied = AM update_icon() - to_chat(user, "You've copied \the [AM]'s appearance.") + to_chat(user, SPAN_NOTICE("You've copied \the [AM]'s appearance.")) sound_to(user, 'sound/weapons/flash.ogg') return 1 else if(istype(hit_atom, /turf)) @@ -34,7 +34,7 @@ if(pay_energy(500)) illusion = new(T) illusion.copy_appearance(copied) - to_chat(user, "An illusion of \the [copied] is made on \the [T].") + to_chat(user, SPAN_NOTICE("An illusion of \the [copied] is made on \the [T].")) sound_to(user, 'sound/effects/pop.ogg') return 1 diff --git a/code/game/gamemodes/technomancer/spells/insert/insert.dm b/code/game/gamemodes/technomancer/spells/insert/insert.dm index ccfad5eb5a4..7dc7d63f123 100644 --- a/code/game/gamemodes/technomancer/spells/insert/insert.dm +++ b/code/game/gamemodes/technomancer/spells/insert/insert.dm @@ -41,7 +41,7 @@ if(!allow_stacking) for(var/obj/item/inserted_spell/IS in L.contents) if(IS.type == inserting) - to_chat(user, "\The [L] is already affected by \the [src].") + to_chat(user, SPAN_WARNING("\The [L] is already affected by \the [src].")) return var/obj/item/inserted_spell/inserted = new inserting(L,user,src) inserted.spell_power_at_creation = calculate_spell_power(1.0) diff --git a/code/game/gamemodes/technomancer/spells/mark_recall.dm b/code/game/gamemodes/technomancer/spells/mark_recall.dm index 86a4ceb6f7b..9f50e4fb986 100644 --- a/code/game/gamemodes/technomancer/spells/mark_recall.dm +++ b/code/game/gamemodes/technomancer/spells/mark_recall.dm @@ -29,19 +29,19 @@ /obj/item/spell/mark/on_use_cast(mob/living/user) . = ..() if(!allowed_to_teleport()) // Otherwise you could teleport back to the admin Z-level. - to_chat(user, "You can't teleport here!") + to_chat(user, SPAN_WARNING("You can't teleport here!")) return 0 if(pay_energy(1000)) if(!mark_spell_ref) mark_spell_ref = new(get_turf(user)) - to_chat(user, "You mark \the [get_turf(user)] under you.") + to_chat(user, SPAN_NOTICE("You mark \the [get_turf(user)] under you.")) else mark_spell_ref.forceMove(get_turf(user)) - to_chat(user, "Your mark is moved from its old position to \the [get_turf(user)] under you.") + to_chat(user, SPAN_NOTICE("Your mark is moved from its old position to \the [get_turf(user)] under you.")) adjust_instability(5) return 1 else - to_chat(user, "You can't afford the energy cost!") + to_chat(user, SPAN_WARNING("You can't afford the energy cost!")) return 0 //Recall @@ -67,21 +67,21 @@ . = ..() if(pay_energy(3000)) if(!mark_spell_ref) - to_chat(user, "There's no Mark!") + to_chat(user, SPAN_DANGER("There's no Mark!")) return 0 else if(!allowed_to_teleport()) - to_chat(user, "Teleportation doesn't seem to work here.") + to_chat(user, SPAN_WARNING("Teleportation doesn't seem to work here.")) return - visible_message("\The [user] starts glowing!") + visible_message(SPAN_WARNING("\The [user] starts glowing!")) var/light_intensity = 2 var/time_left = 3 if(check_for_scepter()) time_left = 2 while(time_left) if(user.incapacitated()) - visible_message("\The [user]'s glow fades.") - to_chat(user, "You cannot Recall while incapacitated!") + visible_message(SPAN_NOTICE("\The [user]'s glow fades.")) + to_chat(user, SPAN_DANGER("You cannot Recall while incapacitated!")) return 0 light_intensity++ set_light(light_intensity, light_intensity, l_color = "#006AFF") @@ -94,10 +94,10 @@ for(var/obj/item/grab/G in user.contents) // People the Technomancer is grabbing come along for the ride. if(G.affecting) G.affecting.forceMove(locate( target_turf.x+rand(-1,1), target_turf.y+rand(-1,1), target_turf.z)) - to_chat(G.affecting, "You are teleported along with [user]!") + to_chat(G.affecting, SPAN_WARNING("You are teleported along with [user]!")) user.forceMove(target_turf) - to_chat(user, "You are teleported to your Mark.") + to_chat(user, SPAN_NOTICE("You are teleported to your Mark.")) playsound(target_turf, 'sound/effects/phasein.ogg', 25, 1) playsound(target_turf, 'sound/effects/sparks2.ogg', 50, 1) @@ -108,6 +108,6 @@ qdel(src) return 1 else - to_chat(user, "You can't afford the energy cost!") + to_chat(user, SPAN_WARNING("You can't afford the energy cost!")) return 0 diff --git a/code/game/gamemodes/technomancer/spells/modifier/corona.dm b/code/game/gamemodes/technomancer/spells/modifier/corona.dm index 4b49baa0af1..59c77c14bd9 100644 --- a/code/game/gamemodes/technomancer/spells/modifier/corona.dm +++ b/code/game/gamemodes/technomancer/spells/modifier/corona.dm @@ -20,5 +20,5 @@ modifier_duration = 1 MINUTE /datum/modifier/technomancer/corona - on_created_text = "You start to glow very brightly!" - on_expired_text = "Your glow has ended." + on_created_text = SPAN_WARNING("You start to glow very brightly!") + on_expired_text = SPAN_NOTICE("Your glow has ended.") diff --git a/code/game/gamemodes/technomancer/spells/modifier/haste.dm b/code/game/gamemodes/technomancer/spells/modifier/haste.dm index 86bbbfdb2ef..e422e7ed262 100644 --- a/code/game/gamemodes/technomancer/spells/modifier/haste.dm +++ b/code/game/gamemodes/technomancer/spells/modifier/haste.dm @@ -18,8 +18,8 @@ modifier_duration = 5 SECONDS /datum/modifier/technomancer/haste - on_created_text = "You suddenly find it much easier to move." - on_expired_text = "You feel slow again." + on_created_text = SPAN_NOTICE("You suddenly find it much easier to move.") + on_expired_text = SPAN_WARNING("You feel slow again.") /datum/modifier/technomancer/haste/activate() . = ..() diff --git a/code/game/gamemodes/technomancer/spells/modifier/mend_life.dm b/code/game/gamemodes/technomancer/spells/modifier/mend_life.dm index 8a072be4ddb..1d0cb26c071 100644 --- a/code/game/gamemodes/technomancer/spells/modifier/mend_life.dm +++ b/code/game/gamemodes/technomancer/spells/modifier/mend_life.dm @@ -20,8 +20,8 @@ modifier_duration = 10 SECONDS /datum/modifier/technomancer/mend_life - on_created_text = "Sparkles begin to appear around you, and you feel really.. refreshed." - on_expired_text = "The sparkles have faded, although you feel healthier than before." + on_created_text = SPAN_WARNING("Sparkles begin to appear around you, and you feel really.. refreshed.") + on_expired_text = SPAN_NOTICE("The sparkles have faded, although you feel healthier than before.") /datum/modifier/technomancer/mend_life/process() . = ..() diff --git a/code/game/gamemodes/technomancer/spells/modifier/mend_synthetic.dm b/code/game/gamemodes/technomancer/spells/modifier/mend_synthetic.dm index 79cc07bf456..0cae0e61909 100644 --- a/code/game/gamemodes/technomancer/spells/modifier/mend_synthetic.dm +++ b/code/game/gamemodes/technomancer/spells/modifier/mend_synthetic.dm @@ -20,8 +20,8 @@ modifier_duration = 10 SECONDS /datum/modifier/technomancer/mend_synthetic - on_created_text = "Sparkles begin to appear around you, and your systems report integrity rising." - on_expired_text = "The sparkles have faded, although your systems seem to be better than before." + on_created_text = SPAN_WARNING("Sparkles begin to appear around you, and your systems report integrity rising.") + on_expired_text = SPAN_NOTICE("The sparkles have faded, although your systems seem to be better than before.") /datum/modifier/technomancer/mend_synthetic/process() . = ..() diff --git a/code/game/gamemodes/technomancer/spells/passwall.dm b/code/game/gamemodes/technomancer/spells/passwall.dm index 43b0f108294..4b38220582b 100644 --- a/code/game/gamemodes/technomancer/spells/passwall.dm +++ b/code/game/gamemodes/technomancer/spells/passwall.dm @@ -21,7 +21,7 @@ if(busy) //Prevent someone from trying to get two uses of the spell from one instance. return 0 if(!allowed_to_teleport()) - to_chat(user, "You can't teleport here!") + to_chat(user, SPAN_WARNING("You can't teleport here!")) return 0 // if(isturf(hit_atom)) @@ -29,7 +29,7 @@ var/turf/our_turf = get_turf(user) //Where we are. if(!T.density) if(!T.check_density()) - to_chat(user, "Perhaps you should try using passWALL on a wall, or other solid object.") + to_chat(user, SPAN_WARNING("Perhaps you should try using passWALL on a wall, or other solid object.")) return 0 var/direction = get_dir(our_turf, T) var/total_cost = 0 @@ -60,17 +60,17 @@ if(found_turf) if(user.loc != our_turf) - to_chat(user, "You need to stand still in order to phase through \the [hit_atom].") + to_chat(user, SPAN_WARNING("You need to stand still in order to phase through \the [hit_atom].")) return 0 if(pay_energy(total_cost) && !user.incapacitated() ) - visible_message("[user] appears to phase through \the [hit_atom]!") + visible_message(SPAN_WARNING("[user] appears to phase through \the [hit_atom]!")) to_chat(user, "You find a destination on the other side of \the [hit_atom], and phase through it.") spark(src, 5, 0) user.forceMove(found_turf) qdel(src) return 1 else - to_chat(user, "You don't have enough energy to phase through these walls!") + to_chat(user, SPAN_WARNING("You don't have enough energy to phase through these walls!")) busy = 0 else to_chat(user, "You weren't able to find an open space to go to.") diff --git a/code/game/gamemodes/technomancer/spells/phase_shift.dm b/code/game/gamemodes/technomancer/spells/phase_shift.dm index c05c02c4908..01389f39140 100644 --- a/code/game/gamemodes/technomancer/spells/phase_shift.dm +++ b/code/game/gamemodes/technomancer/spells/phase_shift.dm @@ -50,7 +50,7 @@ if(user.stat) return - to_chat(user, "You step out of the rift.") + to_chat(user, SPAN_NOTICE("You step out of the rift.")) user.forceMove(get_turf(src)) qdel(src) @@ -59,12 +59,12 @@ if(isturf(user.loc)) //Check if we're not already in a rift. if(pay_energy(2000)) var/obj/effect/phase_shift/PS = new(get_turf(user)) - visible_message("[user] vanishes into a pink rift!") + visible_message(SPAN_WARNING("[user] vanishes into a pink rift!")) to_chat(user, "You create an unstable rift, and go through it. Be sure to not stay too long.") user.forceMove(PS) adjust_instability(10) qdel(src) else - to_chat(user, "You don't have enough energy to make a rift!") + to_chat(user, SPAN_WARNING("You don't have enough energy to make a rift!")) else //We're already in a rift or something like a closet. - to_chat(user, "Making a rift here would probably be a bad idea.") + to_chat(user, SPAN_WARNING("Making a rift here would probably be a bad idea.")) diff --git a/code/game/gamemodes/technomancer/spells/reflect.dm b/code/game/gamemodes/technomancer/spells/reflect.dm index a9f3a9b80a5..c80298af3b9 100644 --- a/code/game/gamemodes/technomancer/spells/reflect.dm +++ b/code/game/gamemodes/technomancer/spells/reflect.dm @@ -18,12 +18,12 @@ /obj/item/spell/reflect/Initialize() . = ..() set_light(3, 2, l_color = "#006AFF") - to_chat(owner, "Your shield will expire in 5 seconds!") + to_chat(owner, SPAN_NOTICE("Your shield will expire in 5 seconds!")) QDEL_IN(src, 5 SECONDS) /obj/item/spell/reflect/Destroy() if(owner) - to_chat(owner, "Your shield expires!") + to_chat(owner, SPAN_DANGER("Your shield expires!")) return ..() /obj/item/spell/reflect/handle_shield(mob/user, var/on_back, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack") @@ -33,7 +33,7 @@ var/damage_to_energy_cost = (damage_to_energy_multiplier * damage) if(!pay_energy(damage_to_energy_cost)) - to_chat(owner, "Your shield fades due to lack of energy!") + to_chat(owner, SPAN_DANGER("Your shield fades due to lack of energy!")) qdel(src) return FALSE @@ -45,7 +45,7 @@ var/obj/item/projectile/P = damage_source if(P.starting && !P.reflected) - visible_message("\The [user]'s [src.name] reflects [attack_text]!") + visible_message(SPAN_DANGER("\The [user]'s [src.name] reflects [attack_text]!")) var/turf/curloc = get_turf(user) @@ -63,7 +63,7 @@ if(!reflecting) reflecting = 1 spawn(2 SECONDS) //To ensure that most or all of a burst fire cycle is reflected. - to_chat(owner, "Your shield fades due being used up!") + to_chat(owner, SPAN_DANGER("Your shield fades due being used up!")) qdel(src) return PROJECTILE_CONTINUE // complete projectile permutation @@ -72,8 +72,8 @@ var/obj/item/W = damage_source if(attacker) W.attack(attacker) - to_chat(attacker, "Your [damage_source.name] goes through \the [src] in one location, comes out \ - on the same side, and hits you!") + to_chat(attacker, SPAN_DANGER("Your [damage_source.name] goes through \the [src] in one location, comes out \ + on the same side, and hits you!")) spark(src, 5, GLOB.cardinal) playsound(src, 'sound/weapons/blade.ogg', 50, 1) @@ -83,7 +83,7 @@ if(!reflecting) reflecting = 1 spawn(2 SECONDS) //To ensure that most or all of a burst fire cycle is reflected. - to_chat(owner, "Your shield fades due being used up!") + to_chat(owner, SPAN_DANGER("Your shield fades due being used up!")) qdel(src) return PROJECTILE_STOPPED return FALSE diff --git a/code/game/gamemodes/technomancer/spells/resurrect.dm b/code/game/gamemodes/technomancer/spells/resurrect.dm index d522549928d..d13afda9d47 100644 --- a/code/game/gamemodes/technomancer/spells/resurrect.dm +++ b/code/game/gamemodes/technomancer/spells/resurrect.dm @@ -20,16 +20,16 @@ if(isliving(hit_atom)) var/mob/living/L = hit_atom if(L == user) - to_chat(user, "Clever as you may seem, this won't work on yourself while alive.") + to_chat(user, SPAN_WARNING("Clever as you may seem, this won't work on yourself while alive.")) return 0 if(L.stat != DEAD) - to_chat(user, "\The [L] isn't dead!") + to_chat(user, SPAN_WARNING("\The [L] isn't dead!")) return 0 if(pay_energy(5000)) if(L.tod > world.time + 30 MINUTES) - to_chat(user, "\The [L]'s been dead for too long, even this function cannot replace cloning at this point.") + to_chat(user, SPAN_DANGER("\The [L]'s been dead for too long, even this function cannot replace cloning at this point.")) return 0 - to_chat(user, "You stab \the [L] with a hidden integrated hypo, attempting to bring them back...") + to_chat(user, SPAN_NOTICE("You stab \the [L] with a hidden integrated hypo, attempting to bring them back...")) if(istype(L, /mob/living/simple_animal)) var/mob/living/simple_animal/SM = L SM.rejuvenate() @@ -51,10 +51,10 @@ H.adjustBruteLoss(-40) H.adjustFireLoss(-40) L.basic_revival() //Restores your boy's brain to half health and makes them conscious. Doesn't touch anything internal: they'll immediately have a heart attack, good luck! - visible_message("\The [H]'s eyes open!") - to_chat(user, "It's alive!") + visible_message(SPAN_DANGER("\The [H]'s eyes open!")) + to_chat(user, SPAN_NOTICE("It's alive!")) adjust_instability(50) log_and_message_admins("has resurrected [H].") else - to_chat(user, "The body of \the [H] doesn't seem to respond, perhaps you could try again?") + to_chat(user, SPAN_WARNING("The body of \the [H] doesn't seem to respond, perhaps you could try again?")) adjust_instability(10) diff --git a/code/game/gamemodes/technomancer/spells/shared_burden.dm b/code/game/gamemodes/technomancer/spells/shared_burden.dm index f73ae5df0a7..a26ea6ba636 100644 --- a/code/game/gamemodes/technomancer/spells/shared_burden.dm +++ b/code/game/gamemodes/technomancer/spells/shared_burden.dm @@ -19,13 +19,13 @@ if(ishuman(hit_atom) && within_range(hit_atom)) var/mob/living/carbon/human/H = hit_atom if(H == user) - to_chat(user, "Draining instability out of you to put it back seems a bit pointless.") + to_chat(user, SPAN_WARNING("Draining instability out of you to put it back seems a bit pointless.")) return 0 if(H.instability <= 0) - to_chat(user, "\The [H] has no instability to drain.") + to_chat(user, SPAN_WARNING("\The [H] has no instability to drain.")) return 0 if(pay_energy(500)) var/instability_to_drain = min(H.instability, 25) - to_chat(user, "You draw instability away from \the [H] and towards you.") + to_chat(user, SPAN_NOTICE("You draw instability away from \the [H] and towards you.")) adjust_instability(instability_to_drain) H.adjust_instability(-calculate_spell_power(instability_to_drain)) diff --git a/code/game/gamemodes/technomancer/spells/shield.dm b/code/game/gamemodes/technomancer/spells/shield.dm index c5d86c6d0dc..c53e2790ada 100644 --- a/code/game/gamemodes/technomancer/spells/shield.dm +++ b/code/game/gamemodes/technomancer/spells/shield.dm @@ -45,14 +45,14 @@ damage_to_energy_cost *= 0.50 if(!pay_energy(damage_to_energy_cost)) - to_chat(owner, "Your shield fades due to lack of energy!") + to_chat(owner, SPAN_DANGER("Your shield fades due to lack of energy!")) qdel(src) return FALSE //block as long as they are not directly behind us var/bad_arc = reverse_direction(user.dir) //arc of directions from which we cannot block if(check_shield_arc(user, bad_arc, damage_source, attacker)) - user.visible_message("\The [user]'s [src] blocks [attack_text]!") + user.visible_message(SPAN_DANGER("\The [user]'s [src] blocks [attack_text]!")) spark(src, 3, GLOB.cardinal) playsound(src, 'sound/weapons/blade.ogg', 50, 1) adjust_instability(2) diff --git a/code/game/gamemodes/technomancer/spells/spawner/spawner.dm b/code/game/gamemodes/technomancer/spells/spawner/spawner.dm index 8eaf0fb2851..70dc7976b02 100644 --- a/code/game/gamemodes/technomancer/spells/spawner/spawner.dm +++ b/code/game/gamemodes/technomancer/spells/spawner/spawner.dm @@ -11,6 +11,6 @@ var/turf/T = get_turf(hit_atom) if(T) new spawner_type(T) - to_chat(user, "You shift \the [src] onto \the [T].") + to_chat(user, SPAN_NOTICE("You shift \the [src] onto \the [T].")) log_and_message_admins("has casted [src] at [T.x],[T.y],[T.z].") qdel(src) diff --git a/code/game/gamemodes/technomancer/spells/summon/summon.dm b/code/game/gamemodes/technomancer/spells/summon/summon.dm index d5cfff426ad..d8c1a03b7ee 100644 --- a/code/game/gamemodes/technomancer/spells/summon/summon.dm +++ b/code/game/gamemodes/technomancer/spells/summon/summon.dm @@ -25,8 +25,8 @@ core.summoned_mobs |= L L.summoned = 1 on_summon(L) - to_chat(user, "You've successfully teleported \a [L] to you!") - visible_message("\A [L] appears from no-where!") + to_chat(user, SPAN_NOTICE("You've successfully teleported \a [L] to you!")) + visible_message(SPAN_WARNING("\A [L] appears from no-where!")) log_and_message_admins("has summoned \a [L] at [T.x],[T.y],[T.z].") user.adjust_instability(instability_cost) diff --git a/code/game/gamemodes/technomancer/spells/track.dm b/code/game/gamemodes/technomancer/spells/track.dm index 36361daddb0..2d2d2488fbe 100644 --- a/code/game/gamemodes/technomancer/spells/track.dm +++ b/code/game/gamemodes/technomancer/spells/track.dm @@ -30,7 +30,7 @@ var/list/technomancer_belongings = list() . = ..() if(tracking) tracking = 0 - to_chat(user, "You stop tracking for \the [tracked]'s whereabouts.") + to_chat(user, SPAN_NOTICE("You stop tracking for \the [tracked]'s whereabouts.")) tracked = null return diff --git a/code/game/gamemodes/technomancer/spells/warp_strike.dm b/code/game/gamemodes/technomancer/spells/warp_strike.dm index 88436f4a627..7d1cdce8365 100644 --- a/code/game/gamemodes/technomancer/spells/warp_strike.dm +++ b/code/game/gamemodes/technomancer/spells/warp_strike.dm @@ -58,7 +58,7 @@ if(I) if(is_path_in_list(I.type, blacklisted_items)) - to_chat(user, "You can't use \the [I] while warping!") + to_chat(user, SPAN_DANGER("You can't use \the [I] while warping!")) return if(istype(I, /obj/item)) diff --git a/code/game/gamemodes/vampire/vampire_helpers.dm b/code/game/gamemodes/vampire/vampire_helpers.dm index 8d8cc3b7255..946188369b9 100644 --- a/code/game/gamemodes/vampire/vampire_helpers.dm +++ b/code/game/gamemodes/vampire/vampire_helpers.dm @@ -42,7 +42,7 @@ if (!(vampire.status & VAMP_FULLPOWER) && vampire.blood_total >= 650) vampire.status |= VAMP_FULLPOWER - to_chat(src, "You've gained full power. Some abilities now have bonus functionality, or work faster.") + to_chat(src, SPAN_NOTICE("You've gained full power. Some abilities now have bonus functionality, or work faster.")) // Runs the checks for whether or not we can use a power. /mob/proc/vampire_power(var/required_blood = 0, var/max_stat = 0, var/ignore_holder = 0, var/disrupt_healing = 1, var/required_vampire_blood = 0) @@ -56,13 +56,13 @@ LOG_DEBUG("[src] has a vampire power but is not a vampire.") return if (vampire.holder && !ignore_holder) - to_chat(src, "You cannot use this power while walking through the Veil.") + to_chat(src, SPAN_WARNING("You cannot use this power while walking through the Veil.")) return if (stat > max_stat) - to_chat(src, "You are incapacitated.") + to_chat(src, SPAN_WARNING("You are incapacitated.")) return if (required_blood > vampire.blood_usable) - to_chat(src, "You do not have enough usable blood. [required_blood] needed.") + to_chat(src, SPAN_WARNING("You do not have enough usable blood. [required_blood] needed.")) return if ((vampire.status & VAMP_HEALING) && disrupt_healing) @@ -82,13 +82,13 @@ if(T.mind) if(T.mind.assigned_role == "Chaplain") if(notify) - to_chat(src, "Your connection with the Veil is not strong enough to affect a man as devout as them.") + to_chat(src, SPAN_WARNING("Your connection with the Veil is not strong enough to affect a man as devout as them.")) return FALSE vampire_check = T.mind.antag_datums[MODE_VAMPIRE] if(vampire_check) if(!(vampire_check.status & VAMP_ISTHRALL && ignore_thrall)) if(notify) - to_chat(src, "You lack the power required to affect another creature of the Veil.") + to_chat(src, SPAN_WARNING("You lack the power required to affect another creature of the Veil.")) return FALSE if(vampire_check) if((vampire.status & VAMP_FULLPOWER) && !(vampire_check.status & VAMP_FULLPOWER)) @@ -99,13 +99,13 @@ return FALSE if(is_special_character(T) && (!(vampire_check?.status & VAMP_ISTHRALL))) if (notify) - to_chat(src, "\The [T]'s mind is too strong to be affected by our powers!") + to_chat(src, SPAN_WARNING("\The [T]'s mind is too strong to be affected by our powers!")) return FALSE if (account_loyalty_implant) for (var/obj/item/implant/mindshield/I in T) if (I.implanted) if (notify) - to_chat(src, "You feel that [T]'s mind is protected from our powers.") + to_chat(src, SPAN_WARNING("You feel that [T]'s mind is protected from our powers.")) return FALSE return TRUE @@ -163,16 +163,16 @@ message = "" if (21 to 40) next_alert = 600 - message = "You feel the power of the Veil bubbling in your veins." + message = SPAN_WARNING("You feel the power of the Veil bubbling in your veins.") if (41 to 60) next_alert = 500 - message = "The corruption within your blood is seeking to take over, you can feel it." + message = SPAN_WARNING("The corruption within your blood is seeking to take over, you can feel it.") if (61 to 80) next_alert = 400 - message = "Your rage is growing ever greater. You are having to actively resist it." + message = SPAN_DANGER("Your rage is growing ever greater. You are having to actively resist it.") if (81 to 120) next_alert = 300 - message = "The corruption of the Veil is about to take over. You have little time left." + message = SPAN_DANGER("The corruption of the Veil is about to take over. You have little time left.") else vampire_start_frenzy(force_frenzy) @@ -190,7 +190,8 @@ if (prob(probablity)) vampire.status |= VAMP_FRENZIED - visible_message("A dark aura manifests itself around [src.name], their eyes turning red and their composure changing to be more beast-like.", "You can resist no longer. The power of the Veil takes control over your mind: you are unable to speak or think. In people, you see nothing but prey to be feasted upon. You are reduced to an animal.") + visible_message(SPAN_DANGER("A dark aura manifests itself around [src.name], their eyes turning red and their composure changing to be more beast-like."), + SPAN_DANGER("You can resist no longer. The power of the Veil takes control over your mind: you are unable to speak or think. In people, you see nothing but prey to be feasted upon. You are reduced to an animal.")) overlay_fullscreen("frenzy", /obj/screen/fullscreen/frenzy) mutations |= HULK @@ -222,7 +223,8 @@ clear_fullscreen("frenzy") sight &= ~SEE_MOBS - visible_message("[src.name]'s eyes no longer glow with violent rage, their form reverting to resemble that of a normal person's.", "The beast within you retreats. You gain control over your body once more.") + visible_message(SPAN_DANGER("[src.name]'s eyes no longer glow with violent rage, their form reverting to resemble that of a normal person's."), + SPAN_DANGER("The beast within you retreats. You gain control over your body once more.")) remove_verb(src, /mob/living/carbon/human/proc/grapple) regenerate_icons() diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm index 206950699de..d8da3f9bd10 100644 --- a/code/game/machinery/Sleeper.dm +++ b/code/game/machinery/Sleeper.dm @@ -231,9 +231,11 @@ if(!beaker) beaker = attacking_item user.drop_from_inventory(attacking_item, src) - user.visible_message("\The [user] adds \a [attacking_item] to \the [src].", "You add \a [attacking_item] to \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] adds \a [attacking_item] to \the [src]."), + SPAN_NOTICE("You add \a [attacking_item] to \the [src].")) + else - to_chat(user, "\The [src] has a beaker already.") + to_chat(user, SPAN_WARNING("\The [src] has a beaker already.")) return TRUE else if(istype(attacking_item, /obj/item/grab)) @@ -244,15 +246,16 @@ return TRUE if(!istype(L)) - to_chat(user, "The machine won't accept that.") + to_chat(user, SPAN_WARNING("The machine won't accept that.")) return TRUE if(display_loading_message) - user.visible_message("[user] starts putting [G.affecting] into [src].", "You start putting [G.affecting] into [src].", range = 3) + user.visible_message(SPAN_NOTICE("[user] starts putting [G.affecting] into [src]."), + SPAN_NOTICE("You start putting [G.affecting] into [src]."), range = 3) if (do_mob(user, G.affecting, 20, needhand = 0)) if(occupant) - to_chat(user, "\The [src] is already occupied.") + to_chat(user, SPAN_WARNING("\The [src] is already occupied.")) return TRUE if(L != G.affecting)//incase it isn't the same mob we started with return TRUE @@ -330,7 +333,7 @@ if(stat & (BROKEN|NOPOWER)) return if(occupant) - to_chat(user, "\The [src] is already occupied.") + to_chat(user, SPAN_WARNING("\The [src] is already occupied.")) return if(display_loading_message) @@ -341,7 +344,7 @@ if(do_after(user, 2 SECONDS, src, DO_UNIQUE)) if(occupant) - to_chat(user, "\The [src] is already occupied.") + to_chat(user, SPAN_WARNING("\The [src] is already occupied.")) return M.stop_pulling() if(M.client) diff --git a/code/game/machinery/ai_slipper.dm b/code/game/machinery/ai_slipper.dm index d5c784c9445..165b3ba4cb1 100644 --- a/code/game/machinery/ai_slipper.dm +++ b/code/game/machinery/ai_slipper.dm @@ -49,7 +49,7 @@ if (user.machine==src) src.attack_hand(usr) else - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) return TRUE /obj/machinery/ai_slipper/attack_ai(mob/user as mob) diff --git a/code/game/machinery/alarm.dm b/code/game/machinery/alarm.dm index 23f6d63b84c..0cc68bb1595 100644 --- a/code/game/machinery/alarm.dm +++ b/code/game/machinery/alarm.dm @@ -778,7 +778,7 @@ pixel_x = 10; return STATUS_CLOSE if(aidisabled && isAI(user)) - to_chat(user, "AI control for \the [src] interface has been disabled.") + to_chat(user, SPAN_WARNING("AI control for \the [src] interface has been disabled.")) return STATUS_CLOSE . = shorted ? STATUS_DISABLED : STATUS_INTERACTIVE @@ -944,12 +944,12 @@ pixel_x = 10; if(2) if(attacking_item.isscrewdriver()) // Opening that Air Alarm up. wiresexposed = !wiresexposed - to_chat(user, "You [wiresexposed ? "open" : "close"] the maintenance panel.") + to_chat(user, SPAN_NOTICE("You [wiresexposed ? "open" : "close"] the maintenance panel.")) update_icon() return TRUE if (wiresexposed && attacking_item.iswirecutter()) - user.visible_message("[user] has cut the wires inside \the [src]!", "You cut the wires inside \the [src].") + user.visible_message(SPAN_WARNING("[user] has cut the wires inside \the [src]!"), "You cut the wires inside \the [src].") playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1) new/obj/item/stack/cable_coil(get_turf(src), 5) buildstage = 1 @@ -958,27 +958,27 @@ pixel_x = 10; if (attacking_item.GetID())// trying to unlock the interface with an ID card if(stat & (NOPOWER|BROKEN)) - to_chat(user, "Nothing happens.") + to_chat(user, SPAN_NOTICE("Nothing happens.")) return TRUE else if(allowed(usr) && !wires.is_cut(WIRE_IDSCAN)) locked = !locked - to_chat(user, "You [ locked ? "lock" : "unlock"] the Air Alarm interface.") + to_chat(user, SPAN_NOTICE("You [ locked ? "lock" : "unlock"] the Air Alarm interface.")) else - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) return TRUE if(1) if(attacking_item.iscoil()) var/obj/item/stack/cable_coil/C = attacking_item if (C.use(5)) - to_chat(user, "You wire \the [src].") + to_chat(user, SPAN_NOTICE("You wire \the [src].")) buildstage = 2 update_icon() first_run() set_frequency(frequency) else - to_chat(user, "You need 5 pieces of cable to do wire \the [src].") + to_chat(user, SPAN_WARNING("You need 5 pieces of cable to do wire \the [src].")) return TRUE else if(attacking_item.iscrowbar()) diff --git a/code/game/machinery/atmoalter/meter.dm b/code/game/machinery/atmoalter/meter.dm index cbfe6335f95..a124bd30baa 100644 --- a/code/game/machinery/atmoalter/meter.dm +++ b/code/game/machinery/atmoalter/meter.dm @@ -147,11 +147,11 @@ /obj/machinery/meter/attackby(obj/item/attacking_item, mob/user) if (!attacking_item.iswrench()) return ..() - to_chat(user, "You begin to unfasten \the [src]...") + to_chat(user, SPAN_NOTICE("You begin to unfasten \the [src]...")) if(attacking_item.use_tool(src, user, 40, volume = 50)) user.visible_message( \ - "\The [user] unfastens \the [src].", \ - "You have unfastened \the [src].", \ + SPAN_NOTICE("\The [user] unfastens \the [src]."), \ + SPAN_NOTICE("You have unfastened \the [src]."), \ "You hear ratchet.") new /obj/item/pipe_meter(src.loc) qdel(src) diff --git a/code/game/machinery/atmoalter/portable_atmospherics.dm b/code/game/machinery/atmoalter/portable_atmospherics.dm index 79e747b06c0..a1e2f8528bd 100644 --- a/code/game/machinery/atmoalter/portable_atmospherics.dm +++ b/code/game/machinery/atmoalter/portable_atmospherics.dm @@ -118,7 +118,7 @@ else if (attacking_item.iswrench()) if(connected_port) disconnect() - to_chat(user, "You disconnect \the [src] from the port.") + to_chat(user, SPAN_NOTICE("You disconnect \the [src] from the port.")) attacking_item.play_tool_sound(get_turf(src), 50) update_icon() SStgui.update_uis(src) @@ -127,16 +127,16 @@ var/obj/machinery/atmospherics/portables_connector/possible_port = locate(/obj/machinery/atmospherics/portables_connector/) in loc if(possible_port) if(connect(possible_port)) - to_chat(user, "You connect \the [src] to the port.") + to_chat(user, SPAN_NOTICE("You connect \the [src] to the port.")) attacking_item.play_tool_sound(get_turf(src), 50) update_icon() SStgui.update_uis(src) return TRUE else - to_chat(user, "\The [src] failed to connect to the port.") + to_chat(user, SPAN_NOTICE("\The [src] failed to connect to the port.")) return TRUE else - to_chat(user, "Nothing happens.") + to_chat(user, SPAN_NOTICE("Nothing happens.")) return TRUE else if ((istype(attacking_item, /obj/item/device/analyzer)) && Adjacent(user)) @@ -171,17 +171,21 @@ user.drop_from_inventory(C,src) C.add_fingerprint(user) cell = C - user.visible_message("[user] opens the panel on [src] and inserts [C].", "You open the panel on [src] and insert [C].") + user.visible_message(SPAN_NOTICE("[user] opens the panel on [src] and inserts [C]."), + SPAN_NOTICE("You open the panel on [src] and insert [C].")) + power_change() SStgui.update_uis(src) return TRUE if(attacking_item.isscrewdriver()) if(!cell) - to_chat(user, "There is no power cell installed.") + to_chat(user, SPAN_WARNING("There is no power cell installed.")) return TRUE - user.visible_message("[user] opens the panel on [src] and removes [cell].", "You open the panel on [src] and remove [cell].") + user.visible_message(SPAN_NOTICE("[user] opens the panel on [src] and removes [cell]."), + SPAN_NOTICE("You open the panel on [src] and remove [cell].")) + cell.add_fingerprint(user) cell.forceMove(src.loc) cell = null diff --git a/code/game/machinery/atmoalter/scrubber.dm b/code/game/machinery/atmoalter/scrubber.dm index c3dff5c99c7..f0fc976ffe9 100644 --- a/code/game/machinery/atmoalter/scrubber.dm +++ b/code/game/machinery/atmoalter/scrubber.dm @@ -174,7 +174,7 @@ name = "[name] (ID [id])" /obj/machinery/portable_atmospherics/powered/scrubber/huge/attack_hand(var/mob/user as mob) - to_chat(usr, "You can't directly interact with this machine. Use the scrubber control console.") + to_chat(usr, SPAN_NOTICE("You can't directly interact with this machine. Use the scrubber control console.")) /obj/machinery/portable_atmospherics/powered/scrubber/huge/update_icon() src.overlays = 0 @@ -217,12 +217,12 @@ /obj/machinery/portable_atmospherics/powered/scrubber/huge/attackby(obj/item/attacking_item, mob/user) if(attacking_item.iswrench()) if(on) - to_chat(user, "Turn \the [src] off first!") + to_chat(user, SPAN_WARNING("Turn \the [src] off first!")) return TRUE anchored = !anchored attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].") + to_chat(user, SPAN_NOTICE("You [anchored ? "wrench" : "unwrench"] \the [src].")) return TRUE @@ -242,7 +242,7 @@ /obj/machinery/portable_atmospherics/powered/scrubber/huge/stationary/attackby(obj/item/attacking_item, mob/user) if(attacking_item.iswrench()) - to_chat(user, "The bolts are too tight for you to unscrew!") + to_chat(user, SPAN_WARNING("The bolts are too tight for you to unscrew!")) return TRUE return ..() diff --git a/code/game/machinery/bioprinter.dm b/code/game/machinery/bioprinter.dm index 2e65f0a0abc..28737d9e278 100644 --- a/code/game/machinery/bioprinter.dm +++ b/code/game/machinery/bioprinter.dm @@ -54,7 +54,7 @@ visible_message("The bioprinter spits out a new organ.") else - to_chat(user, "There is not enough matter in the printer.") + to_chat(user, SPAN_WARNING("There is not enough matter in the printer.")) /obj/machinery/bioprinter/attackby(obj/item/attacking_item, mob/user) diff --git a/code/game/machinery/body_scanner.dm b/code/game/machinery/body_scanner.dm index 5ccc41913c5..a7745553995 100644 --- a/code/game/machinery/body_scanner.dm +++ b/code/game/machinery/body_scanner.dm @@ -830,7 +830,7 @@ dat += "" if(occ["missing_limbs"] != "Nothing") - dat += text("Missing limbs : [occ["missing_limbs"]]
") + dat += SPAN_WARNING("Missing limbs : [occ["missing_limbs"]]
") dat += "
Internal Organ Status
" @@ -854,7 +854,7 @@ dat += "" if(occ["missing_organs"] != "Nothing") - dat += text("Missing organs : [occ["missing_organs"]]
") + dat += SPAN_WARNING("Missing organs : [occ["missing_organs"]]
") dat += "" diff --git a/code/game/machinery/bots/bots.dm b/code/game/machinery/bots/bots.dm index 3d6e0664d4b..8449e5a24fd 100644 --- a/code/game/machinery/bots/bots.dm +++ b/code/game/machinery/bots/bots.dm @@ -44,7 +44,7 @@ if(locked && !emagged) locked = 0 emagged = 1 - to_chat(user, "You short out [src]'s maintenance hatch lock.") + to_chat(user, SPAN_WARNING("You short out [src]'s maintenance hatch lock.")) log_and_message_admins("emagged [src]'s maintenance hatch lock") return 1 @@ -57,26 +57,26 @@ . = ..() if (src.health < maxhealth) if (src.health > maxhealth/3) - . += "[src]'s parts look loose." + . += SPAN_WARNING("[src]'s parts look loose.") else - . += "[src]'s parts look very loose!" + . += SPAN_DANGER("[src]'s parts look very loose!") /obj/machinery/bot/attackby(obj/item/attacking_item, mob/user) if(attacking_item.isscrewdriver()) if(!locked) open = !open - to_chat(user, "Maintenance panel is now [src.open ? "opened" : "closed"].") + to_chat(user, SPAN_NOTICE("Maintenance panel is now [src.open ? "opened" : "closed"].")) return TRUE else if(attacking_item.iswelder()) if(health < maxhealth) if(open) health = min(maxhealth, health+10) - user.visible_message("[user] repairs [src]!","You repair [src]!") + user.visible_message(SPAN_WARNING("[user] repairs [src]!"),SPAN_NOTICE("You repair [src]!")) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) else - to_chat(user, "Unable to repair with the maintenance panel closed.") + to_chat(user, SPAN_NOTICE("Unable to repair with the maintenance panel closed.")) else - to_chat(user, "[src] does not need a repair.") + to_chat(user, SPAN_NOTICE("[src] does not need a repair.")) return TRUE else if(hasvar(attacking_item,"force") && hasvar(attacking_item,"damtype")) @@ -152,7 +152,7 @@ if(user.species.can_shred(user)) src.health -= rand(15,30)*brute_dam_coeff - src.visible_message("[user] has slashed [src]!") + src.visible_message(SPAN_DANGER("[user] has slashed [src]!")) playsound(src.loc, 'sound/weapons/slice.ogg', 25, 1, -1) if(prob(10)) new /obj/effect/decal/cleanable/blood/oil(src.loc) diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm index 14c9e2d1fcf..718ef09840b 100644 --- a/code/game/machinery/camera/camera.dm +++ b/code/game/machinery/camera/camera.dm @@ -156,7 +156,7 @@ if (istype(AM, /obj)) var/obj/O = AM if (O.throwforce >= src.toughness) - visible_message("[src] was hit by [O].") + visible_message(SPAN_WARNING("[src] was hit by [O].")) take_damage(O.throwforce) /obj/machinery/camera/proc/setViewRange(var/num = 7) @@ -171,7 +171,7 @@ user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) set_status(0) user.do_attack_animation(src) - visible_message("\The [user] slashes at [src]!") + visible_message(SPAN_WARNING("\The [user] slashes at [src]!")) playsound(src.loc, 'sound/weapons/slash.ogg', 100, 1) add_hiddenprint(user) destroy() @@ -180,11 +180,11 @@ update_coverage() // DECONSTRUCTION if(attacking_item.isscrewdriver()) - //to_chat(user, "You start to [panel_open ? "close" : "open"] the camera's panel.") + //to_chat(user, SPAN_NOTICE("You start to [panel_open ? "close" : "open"] the camera's panel.")) //if(toggle_panel(user)) // No delay because no one likes screwdrivers trying to be hip and have a duration cooldown panel_open = !panel_open - user.visible_message("[user] screws the camera's panel [panel_open ? "open" : "closed"]!", - "You screw the camera's panel [panel_open ? "open" : "closed"].") + user.visible_message(SPAN_WARNING("[user] screws the camera's panel [panel_open ? "open" : "closed"]!"), + SPAN_NOTICE("You screw the camera's panel [panel_open ? "open" : "closed"].")) attacking_item.play_tool_sound(get_turf(src), 50) return TRUE @@ -203,10 +203,10 @@ assembly.dir = src.dir if(stat & BROKEN) assembly.state = 2 - to_chat(user, "You repaired \the [src] frame.") + to_chat(user, SPAN_NOTICE("You repaired \the [src] frame.")) else assembly.state = 1 - to_chat(user, "You cut \the [src] free from the wall.") + to_chat(user, SPAN_NOTICE("You cut \the [src] free from the wall.")) new /obj/item/stack/cable_coil(loc, 2) assembly = null //so qdel doesn't eat it. qdel(src) @@ -242,12 +242,12 @@ else if (istype(attacking_item, /obj/item/camera_bug)) if (!src.can_use()) - to_chat(user, "Camera non-functional.") + to_chat(user, SPAN_WARNING("Camera non-functional.")) else if (src.bugged) - to_chat(user, "Camera bug removed.") + to_chat(user, SPAN_NOTICE("Camera bug removed.")) src.bugged = 0 else - to_chat(user, "Camera bugged.") + to_chat(user, SPAN_NOTICE("Camera bugged.")) src.bugged = 1 return TRUE @@ -255,7 +255,7 @@ user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) if (attacking_item.force >= src.toughness) user.do_attack_animation(src) - user.visible_message("[user] has [LAZYPICK(attacking_item.attack_verb,"attacked")] [src] with [attacking_item]!") + user.visible_message(SPAN_DANGER("[user] has [LAZYPICK(attacking_item.attack_verb,"attacked")] [src] with [attacking_item]!")) if (istype(attacking_item, /obj/item)) //is it even possible to get into attackby() with non-items? var/obj/item/I = attacking_item if (I.hitsound) @@ -277,17 +277,17 @@ set_status(!src.status) if (!(src.status)) if(user) - visible_message(" [user] has deactivated [src]!") + visible_message(SPAN_NOTICE(" [user] has deactivated [src]!")) else - visible_message(" [src] clicks and shuts down. ") + visible_message(SPAN_NOTICE(" [src] clicks and shuts down. ")) playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1) icon_state = "[initial(icon_state)]1" add_hiddenprint(user) else if(user) - visible_message(" [user] has reactivated [src]!") + visible_message(SPAN_NOTICE(" [user] has reactivated [src]!")) else - visible_message(" [src] clicks and reactivates itself. ") + visible_message(SPAN_NOTICE(" [src] clicks and reactivates itself. ")) playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1) icon_state = initial(icon_state) add_hiddenprint(user) @@ -424,7 +424,7 @@ return 0 // Do after stuff here - to_chat(user, "You start to weld the [src]..") + to_chat(user, SPAN_NOTICE("You start to weld the [src]..")) playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) user.flash_act(FLASH_PROTECTION_MAJOR) busy = 1 @@ -441,7 +441,7 @@ return if(stat & BROKEN) - to_chat(user, "\The [src] is broken.") + to_chat(user, SPAN_WARNING("\The [src] is broken.")) return user.set_machine(src) diff --git a/code/game/machinery/camera/camera_assembly.dm b/code/game/machinery/camera/camera_assembly.dm index 69965fe2de6..d181a7c5daa 100644 --- a/code/game/machinery/camera/camera_assembly.dm +++ b/code/game/machinery/camera/camera_assembly.dm @@ -60,10 +60,10 @@ if(attacking_item.iscoil()) var/obj/item/stack/cable_coil/C = attacking_item if(C.use(2)) - to_chat(user, "You add wires to the assembly.") + to_chat(user, SPAN_NOTICE("You add wires to the assembly.")) state = 3 else - to_chat(user, "You need 2 coils of wire to wire the assembly.") + to_chat(user, SPAN_WARNING("You need 2 coils of wire to wire the assembly.")) return TRUE else if(attacking_item.iswelder()) @@ -167,7 +167,7 @@ if(!WT.isOn()) return 0 - to_chat(user, "You start to weld the [src]..") + to_chat(user, SPAN_NOTICE("You start to weld the [src]..")) playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) user.flash_act(FLASH_PROTECTION_MAJOR) busy = 1 diff --git a/code/game/machinery/camera/tracking.dm b/code/game/machinery/camera/tracking.dm index b0b9d72bf51..55efb9cb7e0 100644 --- a/code/game/machinery/camera/tracking.dm +++ b/code/game/machinery/camera/tracking.dm @@ -45,20 +45,20 @@ loc = sanitize(loc) if(!loc) - to_chat(src, "Must supply a location name") + to_chat(src, SPAN_WARNING("Must supply a location name")) return if(stored_locations.len >= max_locations) - to_chat(src, "Cannot store additional locations. Remove one first") + to_chat(src, SPAN_WARNING("Cannot store additional locations. Remove one first")) return if(loc in stored_locations) - to_chat(src, "There is already a stored location by this name") + to_chat(src, SPAN_WARNING("There is already a stored location by this name")) return var/L = src.eyeobj.getLoc() if (InvalidPlayerTurf(get_turf(L))) - to_chat(src, "Unable to store this location") + to_chat(src, SPAN_WARNING("Unable to store this location")) return stored_locations[loc] = L @@ -73,7 +73,7 @@ set desc = "Returns to the selected camera location" if (!(loc in stored_locations)) - to_chat(src, "Location [loc] not found") + to_chat(src, SPAN_WARNING("Location [loc] not found")) return var/L = stored_locations[loc] @@ -85,7 +85,7 @@ set desc = "Deletes the selected camera location" if (!(loc in stored_locations)) - to_chat(src, "Location [loc] not found") + to_chat(src, SPAN_WARNING("Location [loc] not found")) return stored_locations.Remove(loc) @@ -256,14 +256,14 @@ /mob/living/silicon/robot/tracking_initiated() tracking_entities++ if(tracking_entities == 1 && has_zeroth_law()) - to_chat(src, "Internal camera is currently being accessed.") + to_chat(src, SPAN_WARNING("Internal camera is currently being accessed.")) /mob/living/proc/tracking_cancelled() /mob/living/silicon/robot/tracking_cancelled() tracking_entities-- if(!tracking_entities && has_zeroth_law()) - to_chat(src, "Internal camera is no longer being accessed.") + to_chat(src, SPAN_NOTICE("Internal camera is no longer being accessed.")) #undef TRACKING_POSSIBLE diff --git a/code/game/machinery/case_button.dm b/code/game/machinery/case_button.dm index 9adcf14547a..291f73f32ce 100644 --- a/code/game/machinery/case_button.dm +++ b/code/game/machinery/case_button.dm @@ -41,7 +41,9 @@ if(covered && (stat & NOPOWER)) //Only bounce off if its powered (i.e. shield active) . = ..() else - user.visible_message("[src] has been hit by [user] with [attacking_item], but it bounces off the forcefield.","You hit [src] with [attacking_item], but it bounces off the forcefield.","You hear something bouncing off a forcefield.") + user.visible_message(SPAN_DANGER("[src] has been hit by [user] with [attacking_item], but it bounces off the forcefield."), + SPAN_DANGER("You hit [src] with [attacking_item], but it bounces off the forcefield."), + "You hear something bouncing off a forcefield.") . = TRUE update_icon() @@ -49,7 +51,10 @@ if(!covered) //Spam Check if((last_toggle_time + timeout) > world.time) - user.visible_message("\The [user] presses the button, but nothing happens.","You press the button, but it is not responding.","You hear something being pressed.") + user.visible_message(SPAN_NOTICE("\The [user] presses the button, but nothing happens."), + SPAN_NOTICE("You press the button, but it is not responding."), + "You hear something being pressed.") + return ..() last_toggle_time = world.time if(!active) @@ -86,12 +91,16 @@ //Activate the button - Needs to return 1 for the activation to be successful /obj/machinery/case_button/proc/activate(mob/user) - user.visible_message("\The [user] presses the button.","You press the button.","You hear something being pressed.") + user.visible_message(SPAN_NOTICE("\The [user] presses the button."), + SPAN_NOTICE("You press the button."), + "You hear something being pressed.") return 1 //Deactivate Button - Needs ro return 1 for the activation to be successful /obj/machinery/case_button/proc/deactivate(mob/user) - user.visible_message("\The [user] resets the button.","You reset the button.","You hear something being pressed.") + user.visible_message(SPAN_NOTICE("\The [user] resets the button."), + SPAN_NOTICE("You reset the button."), + "You hear something being pressed.") return 1 diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index 695115bc932..c677b969746 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -118,7 +118,7 @@ clonemind.transfer_to(H) H.ckey = R.ckey - to_chat(H, "Consciousness slowly creeps over you as your body regenerates.
So this is what cloning feels like?
") + to_chat(H, SPAN_NOTICE("Consciousness slowly creeps over you as your body regenerates.
So this is what cloning feels like?")) // -- Mode/mind specific stuff goes here callHook("clone", list(H)) @@ -222,25 +222,25 @@ return TRUE if(attacking_item.GetID()) if(!check_access(attacking_item.GetID())) - to_chat(user, "Access Denied.") + to_chat(user, SPAN_WARNING("Access Denied.")) return TRUE if((!locked) || (isnull(occupant))) return TRUE if((occupant.health < -20) && (occupant.stat != 2)) - to_chat(user, "Access Refused.") + to_chat(user, SPAN_WARNING("Access Refused.")) return TRUE else locked = 0 to_chat(user, "System unlocked.") else if(istype(attacking_item, /obj/item/reagent_containers/food/snacks/meat)) - to_chat(user, "\The [src] processes \the [attacking_item].") + to_chat(user, SPAN_NOTICE("\The [src] processes \the [attacking_item].")) biomass += 50 user.drop_from_inventory(attacking_item, src) qdel(attacking_item) return TRUE else if(attacking_item.iswrench()) if(locked && (anchored || occupant)) - to_chat(user, "Can not do that while [src] is in use.") + to_chat(user, SPAN_WARNING("Can not do that while [src] is in use.")) else if(anchored) anchored = 0 diff --git a/code/game/machinery/computer/ai_core.dm b/code/game/machinery/computer/ai_core.dm index 2db45f8990a..0e3bb2f4110 100644 --- a/code/game/machinery/computer/ai_core.dm +++ b/code/game/machinery/computer/ai_core.dm @@ -18,7 +18,7 @@ if(0) if(attacking_item.iswrench()) if(attacking_item.use_tool(src, user, 20, volume = 50)) - to_chat(user, "You wrench the frame into place.") + to_chat(user, SPAN_NOTICE("You wrench the frame into place.")) anchored = 1 state = 1 return TRUE @@ -29,33 +29,33 @@ return if(attacking_item.use_tool(src, user, 20, volume = 50)) if(!src || !WT.use(0, user)) return - to_chat(user, "You deconstruct the frame.") + to_chat(user, SPAN_NOTICE("You deconstruct the frame.")) new /obj/item/stack/material/plasteel( loc, 4) qdel(src) return TRUE if(1) if(attacking_item.iswrench()) if(attacking_item.use_tool(src, user, 20, volume = 50)) - to_chat(user, "You unfasten the frame.") + to_chat(user, SPAN_NOTICE("You unfasten the frame.")) anchored = 0 state = 0 return TRUE if(istype(attacking_item, /obj/item/circuitboard/aicore) && !circuit) playsound(loc, 'sound/items/Deconstruct.ogg', 50, 1) - to_chat(user, "You place the circuit board inside the frame.") + to_chat(user, SPAN_NOTICE("You place the circuit board inside the frame.")) icon_state = "1" circuit = attacking_item user.drop_from_inventory(attacking_item,src) return TRUE if(attacking_item.isscrewdriver() && circuit) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You screw the circuit board into place.") + to_chat(user, SPAN_NOTICE("You screw the circuit board into place.")) state = 2 icon_state = "2" return TRUE if(attacking_item.iscrowbar() && circuit) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You remove the circuit board.") + to_chat(user, SPAN_NOTICE("You remove the circuit board.")) state = 1 icon_state = "0" circuit.forceMove(loc) @@ -64,22 +64,22 @@ if(2) if(attacking_item.isscrewdriver() && circuit) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You unfasten the circuit board.") + to_chat(user, SPAN_NOTICE("You unfasten the circuit board.")) state = 1 icon_state = "1" return TRUE if(attacking_item.iscoil()) var/obj/item/stack/cable_coil/C = attacking_item if (C.get_amount() < 5) - to_chat(user, "You need five coils of wire to add them to the frame.") + to_chat(user, SPAN_WARNING("You need five coils of wire to add them to the frame.")) return TRUE - to_chat(user, "You start to add cables to the frame.") + to_chat(user, SPAN_NOTICE("You start to add cables to the frame.")) playsound(loc, 'sound/items/Deconstruct.ogg', 50, 1) if (do_after(user, 2 SECONDS, src, DO_REPAIR_CONSTRUCT) && state == 2) if (C.use(5)) state = 3 icon_state = "3" - to_chat(user, "You add cables to the frame.") + to_chat(user, SPAN_NOTICE("You add cables to the frame.")) return TRUE if(3) if(attacking_item.iswirecutter()) @@ -87,7 +87,7 @@ to_chat(user, "Get that brain out of there first") else playsound(loc, 'sound/items/Wirecutter.ogg', 50, 1) - to_chat(user, "You remove the cables.") + to_chat(user, SPAN_NOTICE("You remove the cables.")) state = 2 icon_state = "2" var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( loc ) @@ -97,13 +97,13 @@ if(istype(attacking_item, /obj/item/stack/material) && attacking_item.get_material_name() == MATERIAL_GLASS_REINFORCED) var/obj/item/stack/RG = attacking_item if (RG.get_amount() < 2) - to_chat(user, "You need two sheets of glass to put in the glass panel.") + to_chat(user, SPAN_WARNING("You need two sheets of glass to put in the glass panel.")) return - to_chat(user, "You start to put in the glass panel.") + to_chat(user, SPAN_NOTICE("You start to put in the glass panel.")) playsound(loc, 'sound/items/Deconstruct.ogg', 50, 1) if (do_after(user, 2 SECONDS, src, DO_REPAIR_CONSTRUCT) && state == 3) if(RG.use(2)) - to_chat(user, "You put in the glass panel.") + to_chat(user, SPAN_NOTICE("You put in the glass panel.")) state = 4 icon_state = "4" return TRUE @@ -139,7 +139,7 @@ if(!M.ready_for_use(user)) return TRUE if(jobban_isbanned(M.brainmob, "AI")) - to_chat(user, "This [attacking_item] does not seem to fit.") + to_chat(user, SPAN_WARNING("This [attacking_item] does not seem to fit.")) return TRUE if(M.brainmob.mind) @@ -153,7 +153,7 @@ if(attacking_item.iscrowbar() && brain) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You remove the brain.") + to_chat(user, SPAN_NOTICE("You remove the brain.")) brain.forceMove(loc) brain = null icon_state = "3" @@ -162,7 +162,7 @@ if(4) if(attacking_item.iscrowbar()) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You remove the glass panel.") + to_chat(user, SPAN_NOTICE("You remove the glass panel.")) state = 3 if (brain) icon_state = "3b" @@ -173,7 +173,7 @@ if(attacking_item.isscrewdriver()) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You connect the monitor.") + to_chat(user, SPAN_NOTICE("You connect the monitor.")) if(!brain) var/open_for_latejoin = alert(user, "Would you like this core to be open for latejoining AIs?", "Latejoin", "Yes", "Yes", "No") == "Yes" var/obj/structure/AIcore/deactivated/D = new(loc) @@ -237,18 +237,18 @@ return TRUE else if(attacking_item.iswrench()) if(anchored) - user.visible_message("\The [user] starts to unbolt \the [src] from the plating...") + user.visible_message(SPAN_NOTICE("\The [user] starts to unbolt \the [src] from the plating...")) if(!attacking_item.use_tool(src, user, 40, volume = 50)) - user.visible_message("\The [user] decides not to unbolt \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] decides not to unbolt \the [src].")) return TRUE - user.visible_message("\The [user] finishes unfastening \the [src]!") + user.visible_message(SPAN_NOTICE("\The [user] finishes unfastening \the [src]!")) anchored = 0 else - user.visible_message("\The [user] starts to bolt \the [src] to the plating...") + user.visible_message(SPAN_NOTICE("\The [user] starts to bolt \the [src] to the plating...")) if(!attacking_item.use_tool(src, user, 40, volume = 50)) - user.visible_message("\The [user] decides not to bolt \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] decides not to bolt \the [src].")) return TRUE - user.visible_message("\The [user] finishes fastening down \the [src]!") + user.visible_message(SPAN_NOTICE("\The [user] finishes fastening down \the [src]!")) anchored = 1 return TRUE return ..() diff --git a/code/game/machinery/computer/arcade_orion.dm b/code/game/machinery/computer/arcade_orion.dm index 2ead32c6f5a..d2827739f4c 100644 --- a/code/game/machinery/computer/arcade_orion.dm +++ b/code/game/machinery/computer/arcade_orion.dm @@ -422,22 +422,22 @@ if(istype(usr,/mob/living/carbon)) var/mob/living/carbon/M = usr if(prob(50)) - to_chat(usr, "You hear battle shouts. The tramping of boots on cold metal. Screams of agony. The rush of venting air. Are you going insane?") + to_chat(usr, SPAN_WARNING("You hear battle shouts. The tramping of boots on cold metal. Screams of agony. The rush of venting air. Are you going insane?")) M.hallucination += 50 else - to_chat(usr, "Something strikes you from behind! It hurts like hell and feel like a blunt weapon, but nothing is there...") + to_chat(usr, SPAN_DANGER("Something strikes you from behind! It hurts like hell and feel like a blunt weapon, but nothing is there...")) M.take_organ_damage(10) else - to_chat(usr, "The sounds of battle fill your ears...") + to_chat(usr, SPAN_WARNING("The sounds of battle fill your ears...")) if(ORION_TRAIL_ILLNESS) if(istype(usr,/mob/living/carbon/human)) var/mob/living/carbon/human/M = usr - to_chat(M, "An overpowering wave of nausea consumes over you. You hunch over, your stomach's contents preparing for a spectacular exit.") + to_chat(M, SPAN_WARNING("An overpowering wave of nausea consumes over you. You hunch over, your stomach's contents preparing for a spectacular exit.")) M.vomit() else - to_chat(usr, "You feel ill.") + to_chat(usr, SPAN_WARNING("You feel ill.")) if(ORION_TRAIL_CARP) - to_chat(usr, "Something bit you!") + to_chat(usr, SPAN_DANGER("Something bit you!")) var/mob/living/M = usr M.adjustBruteLoss(10) if(ORION_TRAIL_FLUX) @@ -447,7 +447,7 @@ src.visible_message("A sudden gust of powerful wind slams \the [M] into the floor!", "You hear a large fwooshing sound, followed by a bang.") M.take_organ_damage(10) else - to_chat(usr, "A violent gale blows past you, and you barely manage to stay standing!") + to_chat(usr, SPAN_WARNING("A violent gale blows past you, and you barely manage to stay standing!")) if(ORION_TRAIL_MALFUNCTION) if(supplies["3"]) return @@ -458,11 +458,11 @@ if(prob(90) && !supplies["2"]) var/turf/simulated/floor/F = src.loc F.ChangeTurf(/turf/space) - src.visible_message("Something slams into the floor around \the [src], exposing it to space!", "You hear something crack and break.") + src.visible_message(SPAN_DANGER("Something slams into the floor around \the [src], exposing it to space!"), "You hear something crack and break.") else src.visible_message("Something slams into the floor around \the [src] - luckily, it didn't get through!", "You hear something crack.") if(ORION_TRAIL_GAMEOVER) - to_chat(usr, "You're never going to make it to Orion...") + to_chat(usr, SPAN_DANGER("You're never going to make it to Orion...")) var/mob/living/M = usr M.visible_message("\The [M] starts rapidly deteriorating.") show_browser(M, null, "window=arcade") @@ -511,17 +511,17 @@ return message_admins("[key_name_admin(usr)] primed an explosive Orion ship for detonation.") log_game("[key_name(usr)] primed an explosive Orion ship for detonation.",ckey=key_name(usr)) - to_chat(user, "You flip the switch on the underside of [src].") + to_chat(user, SPAN_WARNING("You flip the switch on the underside of [src].")) active = 1 - src.visible_message("[src] softly beeps and whirs to life!") + src.visible_message(SPAN_NOTICE("[src] softly beeps and whirs to life!")) src.audible_message("[src] says, 'This is ship ID #[rand(1,1000)] to Orion Port Authority. We're coming in for landing, over.'") sleep(20) - src.visible_message("[src] begins to vibrate...") + src.visible_message(SPAN_WARNING("[src] begins to vibrate...")) src.audible_message("[src] says, 'Uh, Port? Having some issues with our reactor, could you check it out? Over.'") sleep(30) src.audible_message("[src] says, 'Oh, God! Code Eight! CODE EIGHT! IT'S GONNA BL-'") sleep(3.6) - src.visible_message("[src] explodes!") + src.visible_message(SPAN_DANGER("[src] explodes!")) explosion(src.loc, 1,2,4) qdel(src) diff --git a/code/game/machinery/computer/buildandrepair.dm b/code/game/machinery/computer/buildandrepair.dm index d1c8d637280..58375cdbe27 100644 --- a/code/game/machinery/computer/buildandrepair.dm +++ b/code/game/machinery/computer/buildandrepair.dm @@ -15,7 +15,7 @@ if(0) if(attacking_item.iswrench()) if(attacking_item.use_tool(src, user, 20, volume = 50)) - to_chat(user, "You wrench the frame into place.") + to_chat(user, SPAN_NOTICE("You wrench the frame into place.")) src.anchored = 1 src.state = 1 return TRUE @@ -26,14 +26,14 @@ return TRUE if(attacking_item.use_tool(src, user, 20, volume = 50)) if(!src || !WT.isOn()) return - to_chat(user, "You deconstruct the frame.") + to_chat(user, SPAN_NOTICE("You deconstruct the frame.")) new /obj/item/stack/material/steel( src.loc, 5 ) qdel(src) return TRUE if(1) if(attacking_item.iswrench()) if(attacking_item.use_tool(src, user, 20, volume = 50)) - to_chat(user, "You unfasten the frame.") + to_chat(user, SPAN_NOTICE("You unfasten the frame.")) src.anchored = 0 src.state = 0 return TRUE @@ -41,22 +41,22 @@ var/obj/item/circuitboard/B = attacking_item if(B.board_type == "computer") playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) - to_chat(user, "You place the circuit board inside the frame.") + to_chat(user, SPAN_NOTICE("You place the circuit board inside the frame.")) src.icon_state = "1" src.circuit = attacking_item user.drop_from_inventory(attacking_item, src) else - to_chat(user, "This frame does not accept circuit boards of this type!") + to_chat(user, SPAN_WARNING("This frame does not accept circuit boards of this type!")) return TRUE if(attacking_item.isscrewdriver() && circuit) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You screw the circuit board into place and screw the drawer shut.") + to_chat(user, SPAN_NOTICE("You screw the circuit board into place and screw the drawer shut.")) src.state = 2 src.icon_state = "2" return TRUE if(attacking_item.iscrowbar() && circuit) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You remove the circuit board.") + to_chat(user, SPAN_NOTICE("You remove the circuit board.")) src.state = 1 src.icon_state = "0" circuit.forceMove(src.loc) @@ -65,27 +65,27 @@ if(2) if(attacking_item.isscrewdriver() && circuit) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You unfasten the circuit board.") + to_chat(user, SPAN_NOTICE("You unfasten the circuit board.")) src.state = 1 src.icon_state = "1" return TRUE if(attacking_item.iscoil()) var/obj/item/stack/cable_coil/C = attacking_item if (C.get_amount() < 5) - to_chat(user, "You need five coils of wire to add them to the frame.") + to_chat(user, SPAN_WARNING("You need five coils of wire to add them to the frame.")) return TRUE - to_chat(user, "You start to add cables to the frame.") + to_chat(user, SPAN_NOTICE("You start to add cables to the frame.")) playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) if(do_after(user, 2 SECONDS, src, DO_REPAIR_CONSTRUCT) && state == 2) if (C.use(5)) - to_chat(user, "You add cables to the frame.") + to_chat(user, SPAN_NOTICE("You add cables to the frame.")) state = 3 icon_state = "3" return TRUE if(3) if(attacking_item.iswirecutter()) playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1) - to_chat(user, "You remove the cables.") + to_chat(user, SPAN_NOTICE("You remove the cables.")) src.state = 2 src.icon_state = "2" var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( src.loc ) @@ -95,27 +95,27 @@ if(istype(attacking_item, /obj/item/stack/material) && attacking_item.get_material_name() == "glass") var/obj/item/stack/G = attacking_item if (G.get_amount() < 2) - to_chat(user, "You need two sheets of glass to put in the glass panel.") + to_chat(user, SPAN_WARNING("You need two sheets of glass to put in the glass panel.")) return TRUE playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) - to_chat(user, "You start to put in the glass keyboard.") + to_chat(user, SPAN_NOTICE("You start to put in the glass keyboard.")) if(do_after(user, 2 SECONDS, src, DO_REPAIR_CONSTRUCT) && state == 3) if (G.use(2)) - to_chat(user, "You put in the glass keyboard.") + to_chat(user, SPAN_NOTICE("You put in the glass keyboard.")) src.state = 4 src.icon_state = "4" return TRUE if(4) if(attacking_item.iscrowbar()) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You remove the glass keyboard.") + to_chat(user, SPAN_NOTICE("You remove the glass keyboard.")) src.state = 3 src.icon_state = "3" new /obj/item/stack/material/glass( src.loc, 2 ) return TRUE if(attacking_item.isscrewdriver()) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You connect the glass keyboard.") + to_chat(user, SPAN_NOTICE("You connect the glass keyboard.")) var/B = new src.circuit.build_path ( src.loc ) src.circuit.construct(B) qdel(src) diff --git a/code/game/machinery/computer/cloning.dm b/code/game/machinery/computer/cloning.dm index afe976b97ea..69f9f034220 100644 --- a/code/game/machinery/computer/cloning.dm +++ b/code/game/machinery/computer/cloning.dm @@ -106,7 +106,7 @@ /obj/machinery/computer/cloning/attack_hand(mob/user as mob) if(!allowed(user)) - to_chat(user, "Access Denied.") + to_chat(user, SPAN_WARNING("Access Denied.")) return user.set_machine(src) diff --git a/code/game/machinery/computer/law.dm b/code/game/machinery/computer/law.dm index 1d76029873b..8b9eafe26eb 100644 --- a/code/game/machinery/computer/law.dm +++ b/code/game/machinery/computer/law.dm @@ -21,15 +21,15 @@ opened = !opened if(opened) - to_chat(usr, "The access panel is now open.") + to_chat(usr, SPAN_NOTICE("The access panel is now open.")) else - to_chat(usr, "The access panel is now closed.") + to_chat(usr, SPAN_NOTICE("The access panel is now closed.")) return /obj/machinery/computer/aiupload/attackby(obj/item/attacking_item, mob/user) if(isNotStationLevel(src.z)) - to_chat(user, "Unable to establish a connection:") + to_chat(user, SPAN_DANGER("Unable to establish a connection:")) return TRUE if(istype(attacking_item, /obj/item/aiModule)) var/obj/item/aiModule/M = attacking_item @@ -73,7 +73,7 @@ /obj/machinery/computer/borgupload/attackby(obj/item/attacking_item, mob/user) var/obj/item/aiModule/module = attacking_item if(isNotStationLevel(src.z)) - to_chat(user, "Unable to establish a connection:") + to_chat(user, SPAN_DANGER("Unable to establish a connection:")) return TRUE if(istype(module, /obj/item/aiModule)) module.install(src) diff --git a/code/game/machinery/computer/pod.dm b/code/game/machinery/computer/pod.dm index 93ab52e73e8..6d34856649f 100644 --- a/code/game/machinery/computer/pod.dm +++ b/code/game/machinery/computer/pod.dm @@ -155,7 +155,7 @@ /obj/machinery/computer/pod/old/syndicate/attack_hand(var/mob/user as mob) if(!allowed(user)) - to_chat(user, "Access Denied") + to_chat(user, SPAN_WARNING("Access Denied")) return else ..() diff --git a/code/game/machinery/computer/robot.dm b/code/game/machinery/computer/robot.dm index ca40eeec217..e86bc7f080d 100644 --- a/code/game/machinery/computer/robot.dm +++ b/code/game/machinery/computer/robot.dm @@ -76,7 +76,7 @@ else message_admins("[key_name_admin(usr)] detonated [target.name]!") log_game("[key_name(usr)] detonated [target.name]!",ckey=key_name(usr)) - to_chat(target, "Self-destruct command received.") + to_chat(target, SPAN_DANGER("Self-destruct command received.")) spawn(10) target.self_destruct() @@ -165,7 +165,7 @@ message_admins("[key_name_admin(usr)] emagged [target.name] using robotic console!") log_game("[key_name(usr)] emagged [target.name] using robotic console!",ckey=key_name(usr)) target.emagged = 1 - to_chat(target, "Failsafe protocols overriden. New tools available.") + to_chat(target, SPAN_NOTICE("Failsafe protocols overriden. New tools available.")) // Arms the emergency self-destruct system else if(href_list["arm"]) @@ -196,7 +196,7 @@ continue if(R.emagged) continue - to_chat(R, "Self-destruct command received.") + to_chat(R, SPAN_DANGER("Self-destruct command received.")) spawn(10) R.self_destruct() diff --git a/code/game/machinery/computer/sentencing.dm b/code/game/machinery/computer/sentencing.dm index ff7a0a52609..fb41f38cb0d 100644 --- a/code/game/machinery/computer/sentencing.dm +++ b/code/game/machinery/computer/sentencing.dm @@ -36,12 +36,12 @@ ping( "\The [src] pings, \"Successfully imported incident report!\"" ) menu_screen = "incident_report" else - to_chat(user, "Could not import incident report.") + to_chat(user, SPAN_ALERT("Could not import incident report.")) qdel( attacking_item ) return TRUE else if( istype( attacking_item, /obj/item/paper ) && menu_screen == "import_incident" ) - to_chat(user, "This console only accepts authentic incident reports. Copies are invalid.") + to_chat(user, SPAN_ALERT("This console only accepts authentic incident reports. Copies are invalid.")) return TRUE return ..() @@ -387,7 +387,7 @@ /obj/machinery/computer/sentencing/proc/render_guilty( var/mob/living/user ) if( !incident ) - to_chat(user, "There is no active case!") + to_chat(user, SPAN_ALERT("There is no active case!")) return if( !istype( user )) @@ -396,7 +396,7 @@ var/error = print_incident_report() if( error ) - to_chat(user, "[error]") + to_chat(user, SPAN_ALERT("[error]")) return print_incident_overview(incident.renderGuilty(user, 0)) @@ -411,7 +411,7 @@ /obj/machinery/computer/sentencing/proc/render_guilty_fine( var/mob/living/user ) if(!incident) - to_chat(user, "There is no active case!") + to_chat(user, SPAN_ALERT("There is no active case!")) return if(!istype(user)) @@ -508,9 +508,9 @@ return var/number = tgui_input_number(usr, "Enter a number between [incident.getMinBrigSentence()] and [incident.getMaxBrigSentence()] minutes.", "Brig Sentence", 0, incident.getMaxBrigSentence(), incident.getMinBrigSentence()) if( number < incident.getMinBrigSentence() ) - to_chat(usr, "The entered sentence was less than the minimum sentence!") + to_chat(usr, SPAN_ALERT("The entered sentence was less than the minimum sentence!")) else if( number > incident.getMaxBrigSentence() ) - to_chat(usr, "The entered sentence was greater than the maximum sentence!") + to_chat(usr, SPAN_ALERT("The entered sentence was greater than the maximum sentence!")) else incident.brig_sentence = number @@ -519,9 +519,9 @@ return var/number = tgui_input_number(usr, "Enter a number between [incident.getMinFine()] and [incident.getMaxFine()] credits.", "Fine", 0, incident.getMaxFine(), incident.getMinFine()) if( number < incident.getMinFine() ) - to_chat(usr, "The entered sentence was less than the minimum sentence!") + to_chat(usr, SPAN_ALERT("The entered sentence was less than the minimum sentence!")) else if( number > incident.getMaxFine() ) - to_chat(usr, "The entered sentence was greater than the maximum sentence!") + to_chat(usr, SPAN_ALERT("The entered sentence was greater than the maximum sentence!")) else incident.fine = number @@ -529,7 +529,7 @@ var/error = print_incident_report( 0 ) if( error ) - to_chat(usr, "[error]") + to_chat(usr, SPAN_ALERT("[error]")) else incident = null menu_screen = "main_menu" @@ -544,7 +544,7 @@ if( !error ) ping( "\The [src] pings, \"[title] [M] verified.\"" ) else - to_chat(usr, "\The [src] buzzes, \"[error]\"") + to_chat(usr, SPAN_ALERT("\The [src] buzzes, \"[error]\"")) else ping( "\The [src] pings, \"[title] cleared.\"" ) incident.arbiters[title] = null diff --git a/code/game/machinery/computer/shuttle.dm b/code/game/machinery/computer/shuttle.dm index 845f4acad3e..2c385207213 100644 --- a/code/game/machinery/computer/shuttle.dm +++ b/code/game/machinery/computer/shuttle.dm @@ -51,11 +51,11 @@ if (src.auth_need - src.authorized.len > 0) message_admins("[key_name_admin(user)] has authorized early shuttle launch") log_game("[key_name(user)] has authorized early shuttle launch",ckey=key_name(user)) - to_world(text("Alert: [] authorizations needed until shuttle is launched early", src.auth_need - src.authorized.len)) + to_world(SPAN_NOTICE("Alert: [src.auth_need - src.authorized.len] authorizations needed until shuttle is launched early")) else message_admins("[key_name_admin(user)] has launched the shuttle") log_game("[key_name(user)] has launched the shuttle early",ckey=key_name(user)) - to_world("Alert: Shuttle launch time shortened to 10 seconds!") + to_world(SPAN_NOTICE("Alert: Shuttle launch time shortened to 10 seconds!")) evacuation_controller.set_launch_time(world.time+100) //src.authorized = null qdel(src.authorized) @@ -63,10 +63,10 @@ if("Repeal") src.authorized -= id.registered_name - to_world(text("Alert: [] authorizations needed until shuttle is launched early", src.auth_need - src.authorized.len)) + to_world(SPAN_NOTICE("Alert: [src.auth_need - src.authorized.len] authorizations needed until shuttle is launched early")) if("Abort") - to_world("All authorizations to shortening time for shuttle launch have been revoked!") + to_world(SPAN_NOTICE("All authorizations to shortening time for shuttle launch have been revoked!")) src.authorized.len = 0 src.authorized = list( ) @@ -76,7 +76,7 @@ if(!emagged && !evacuation_controller.is_prepared() && user.get_active_hand() == W) switch(choice) if("Launch") - to_world("Alert: Shuttle launch time shortened to 10 seconds!") + to_world(SPAN_NOTICE("Alert: Shuttle launch time shortened to 10 seconds!")) evacuation_controller.set_launch_time(world.time+100) emagged = 1 if("Cancel") diff --git a/code/game/machinery/crusher_piston.dm b/code/game/machinery/crusher_piston.dm index d6380bdc53e..826ac8fd29e 100644 --- a/code/game/machinery/crusher_piston.dm +++ b/code/game/machinery/crusher_piston.dm @@ -91,7 +91,9 @@ var/mob/living/carbon/human/M = user M.apply_damage(45, DAMAGE_BRUTE, user.get_active_hand()) M.apply_damage(45, DAMAGE_PAIN) - M.visible_message("[user]'s hand catches in the [src]!", "Your hand gets caught in the [src]!") + M.visible_message(SPAN_DANGER("[user]'s hand catches in the [src]!"), + SPAN_DANGER("Your hand gets caught in the [src]!")) + M.say("*scream") return TRUE if(default_deconstruction_screwdriver(user, attacking_item)) @@ -104,10 +106,10 @@ //Stuff you can do if the maint hatch is open if(panel_open) if(attacking_item.iswrench()) - to_chat(user, "You start [valve_open ? "closing" : "opening"] the pressure relief valve of [src].") + to_chat(user, SPAN_NOTICE("You start [valve_open ? "closing" : "opening"] the pressure relief valve of [src].")) if(attacking_item.use_tool(src, user, 50, volume = 50)) valve_open = !valve_open - to_chat(user, "You [valve_open ? "open" : "close"] the pressure relief valve of [src].") + to_chat(user, SPAN_NOTICE("You [valve_open ? "open" : "close"] the pressure relief valve of [src].")) if(valve_open) blocked = 0 action = "retract" @@ -118,7 +120,7 @@ if(!istype(C)) return 0 if(num_progress != 0) //Piston needs to be retracted before you are able to deconstruct it - to_chat(user, "You can not deconstruct [src] while the piston is extended.") + to_chat(user, SPAN_NOTICE("You can not deconstruct [src] while the piston is extended.")) return 0 return ..() diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm index 2c8f8c3da4f..b61c3488b46 100644 --- a/code/game/machinery/cryo.dm +++ b/code/game/machinery/cryo.dm @@ -252,14 +252,18 @@ if(!bucklestatus) return TRUE - user.visible_message("[user] starts putting [L] into [src].", "You start putting [L] into [src].", range = 3) + user.visible_message(SPAN_NOTICE("[user] starts putting [L] into [src]."), + SPAN_NOTICE("You start putting [L] into [src]."), range = 3) + if(do_mob(user, L, 30, needhand = 0)) for(var/mob/living/carbon/slime/M in range(1, L)) if(M.victim == L) to_chat(user, SPAN_WARNING("[L] will not fit into the cryo because they have a slime latched onto their head.")) return TRUE if(put_mob(L)) - user.visible_message("[user] puts [L] into [src].", "You put [L] into [src].", range = 3) + user.visible_message(SPAN_NOTICE("[user] puts [L] into [src]."), + SPAN_NOTICE("You put [L] into [src]."), range = 3) + qdel(attacking_item) else if(default_deconstruction_screwdriver(user, attacking_item)) @@ -287,18 +291,26 @@ return if(L == user) - user.visible_message("[user] starts climbing into [src].", "You start climbing into [src].", range = 3) + user.visible_message(SPAN_NOTICE("[user] starts climbing into [src]."), + SPAN_NOTICE("You start climbing into [src]."), range = 3) + else - user.visible_message("[user] starts putting [L] into the cryopod.", "You start putting [L] into [src].", range = 3) + user.visible_message(SPAN_NOTICE("[user] starts putting [L] into the cryopod."), + SPAN_NOTICE("You start putting [L] into [src]."), range = 3) + if (do_mob(user, L, 30, needhand = 0)) if (bucklestatus == 2) var/obj/structure/LB = L.buckled_to LB.user_unbuckle(user) if(put_mob(L)) if(L == user) - user.visible_message("[user] climbs into [src].", "You climb into [src].", range = 3) + user.visible_message(SPAN_NOTICE("[user] climbs into [src]."), + SPAN_NOTICE("You climb into [src]."), range = 3) + else - user.visible_message("[user] puts [L] into [src].", "You put [L] into [src].", range = 3) + user.visible_message(SPAN_NOTICE("[user] puts [L] into [src]."), + SPAN_NOTICE("You put [L] into [src]."), range = 3) + if(user.pulling == L) user.pulling = null @@ -393,19 +405,19 @@ /obj/machinery/atmospherics/unary/cryo_cell/proc/put_mob(mob/living/carbon/human/M as mob) if (stat & (NOPOWER|BROKEN)) - to_chat(usr, "The cryo cell is not functioning.") + to_chat(usr, SPAN_WARNING("The cryo cell is not functioning.")) return if (!istype(M)) - to_chat(usr, "The cryo cell cannot handle such a lifeform!") + to_chat(usr, SPAN_DANGER("The cryo cell cannot handle such a lifeform!")) return if (occupant) - to_chat(usr, "The cryo cell is already occupied!") + to_chat(usr, SPAN_DANGER("The cryo cell is already occupied!")) return if (M.abiotic()) - to_chat(usr, "Subject may not have abiotic items on.") + to_chat(usr, SPAN_WARNING("Subject may not have abiotic items on.")) return if(!node) - to_chat(usr, "The cell is not correctly connected to its pipe network!") + to_chat(usr, SPAN_WARNING("The cell is not correctly connected to its pipe network!")) return if (M.client) M.client.perspective = EYE_PERSPECTIVE @@ -414,7 +426,7 @@ M.forceMove(src) M.ExtinguishMob() if(M.health > -100 && (M.health < 0 || M.sleeping)) - to_chat(M, "You feel a cold liquid surround you. Your skin starts to freeze up.") + to_chat(M, SPAN_NOTICE("You feel a cold liquid surround you. Your skin starts to freeze up.")) occupant = M current_heat_capacity = HEAT_CAPACITY_HUMAN update_use_power(POWER_USE_ACTIVE) @@ -430,7 +442,7 @@ if(usr == occupant)//If the user is inside the tube... if (usr.stat == 2)//and he's not dead.... return - to_chat(usr, "Release sequence activated. This will take two minutes.") + to_chat(usr, SPAN_NOTICE("Release sequence activated. This will take two minutes.")) sleep(1200) if(!src || !usr || !occupant || (occupant != usr)) //Check if someone's released/replaced/bombed him already return @@ -452,7 +464,9 @@ return if (usr.stat != 0) return - usr.visible_message("[usr] climbs into [src].", "You climb into [src].", range = 3) + usr.visible_message(SPAN_NOTICE("[usr] climbs into [src]."), + SPAN_NOTICE("You climb into [src]."), range = 3) + put_mob(usr) return diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index 55ab699f985..89cd0320e68 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -492,7 +492,7 @@ GLOBAL_LIST_EMPTY(frozen_crew) // Book keeping! var/turf/location = get_turf(src) log_admin("[key_name_admin(M)] has entered a [initial(src.name)].",ckey=key_name(M)) - message_admins("[key_name_admin(M)] has entered a [initial(src.name)].(JMP)") + message_admins(SPAN_NOTICE("[key_name_admin(M)] has entered a [initial(src.name)].(JMP)")) //Despawning occurs when process() is called with an occupant without a client. src.add_fingerprint(user) diff --git a/code/game/machinery/deployable.dm b/code/game/machinery/deployable.dm index c5a485d9818..ef97a90c2aa 100644 --- a/code/game/machinery/deployable.dm +++ b/code/game/machinery/deployable.dm @@ -165,7 +165,7 @@ Deployable Kits return else spark(src, 2, src) - visible_message("BZZzZZzZZzZT") + visible_message(SPAN_WARNING("BZZzZZzZZzZT")) return return else if (attacking_item.iswrench()) @@ -174,13 +174,13 @@ Deployable Kits src.health = src.maxhealth src.emagged = 0 src.req_access = list(ACCESS_SECURITY) - visible_message("[user] repairs \the [src]!") + visible_message(SPAN_WARNING("[user] repairs \the [src]!")) return else if (src.emagged > 0) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) src.emagged = 0 src.req_access = list(ACCESS_SECURITY) - visible_message("[user] repairs \the [src]!") + visible_message(SPAN_WARNING("[user] repairs \the [src]!")) return return else @@ -225,7 +225,7 @@ Deployable Kits return 0 /obj/machinery/deployable/barrier/proc/explode() - visible_message("[src] blows apart!") + visible_message(SPAN_DANGER("[src] blows apart!")) /* var/obj/item/stack/rods/ =*/ new /obj/item/stack/rods(get_turf(src)) @@ -242,13 +242,13 @@ Deployable Kits src.req_one_access.Cut() to_chat(user, "You break the ID authentication lock on \the [src].") spark(src, 2, GLOB.alldirs) - visible_message("BZZzZZzZZzZT") + visible_message(SPAN_WARNING("BZZzZZzZZzZT")) return 1 else if (src.emagged == 1) src.emagged = 2 to_chat(user, "You short out the anchoring mechanism on \the [src].") spark(src, 2, GLOB.alldirs) - visible_message("BZZzZZzZZzZT") + visible_message(SPAN_WARNING("BZZzZZzZZzZT")) return 1 /obj/machinery/deployable/barrier/legion diff --git a/code/game/machinery/door_control.dm b/code/game/machinery/door_control.dm index 7a95ec53452..7ca03feae7d 100644 --- a/code/game/machinery/door_control.dm +++ b/code/game/machinery/door_control.dm @@ -44,7 +44,7 @@ return if(!allowed(user) && (wires & 1)) - to_chat(user, "Access Denied") + to_chat(user, SPAN_WARNING("Access Denied")) flick("doorctrl-denied",src) return diff --git a/code/game/machinery/doors/airlock_control.dm b/code/game/machinery/doors/airlock_control.dm index 9d1600fdf58..9fffcb66a1a 100644 --- a/code/game/machinery/doors/airlock_control.dm +++ b/code/game/machinery/doors/airlock_control.dm @@ -239,7 +239,7 @@ /obj/machinery/access_button/attack_hand(mob/user) add_fingerprint(usr) if(!allowed(user)) - to_chat(user, "Access Denied") + to_chat(user, SPAN_WARNING("Access Denied")) else if(radio_connection) var/datum/signal/signal = new diff --git a/code/game/machinery/doors/blast_door.dm b/code/game/machinery/doors/blast_door.dm index 32683807efa..cc5aa7e0e7b 100644 --- a/code/game/machinery/doors/blast_door.dm +++ b/code/game/machinery/doors/blast_door.dm @@ -121,24 +121,24 @@ if (((stat & NOPOWER) || (stat & BROKEN)) && !( src.operating )) force_toggle() else - to_chat(usr, "[src]'s motors resist your effort.") + to_chat(usr, SPAN_NOTICE("[src]'s motors resist your effort.")) return TRUE if(istype(attacking_item, /obj/item/stack/material) && attacking_item.get_material_name() == "plasteel") var/amt = Ceiling((maxhealth - health)/150) if(!amt) - to_chat(usr, "\The [src] is already fully repaired.") + to_chat(usr, SPAN_NOTICE("\The [src] is already fully repaired.")) return TRUE var/obj/item/stack/P = attacking_item if(P.amount < amt) - to_chat(usr, "You don't have enough sheets to repair this! You need at least [amt] sheets.") + to_chat(usr, SPAN_WARNING("You don't have enough sheets to repair this! You need at least [amt] sheets.")) return TRUE - to_chat(usr, "You begin repairing [src]...") + to_chat(usr, SPAN_NOTICE("You begin repairing [src]...")) if(do_after(usr, 3 SECONDS, src, DO_REPAIR_CONSTRUCT)) if(P.use(amt)) - to_chat(usr, "You have repaired \The [src]") + to_chat(usr, SPAN_NOTICE("You have repaired \The [src]")) src.repair() else - to_chat(usr, "You don't have enough sheets to repair this! You need at least [amt] sheets.") + to_chat(usr, SPAN_WARNING("You don't have enough sheets to repair this! You need at least [amt] sheets.")) return TRUE diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm index 24baa050b8e..aae31fa1cb7 100644 --- a/code/game/machinery/doors/door.dm +++ b/code/game/machinery/doors/door.dm @@ -63,11 +63,11 @@ /obj/machinery/door/attack_generic(var/mob/user, var/damage) if(damage >= 10) - visible_message("\The [user] smashes into the [src]!") + visible_message(SPAN_DANGER("\The [user] smashes into the [src]!")) playsound(src.loc, hitsound, 60, 1) take_damage(damage) else - visible_message("\The [user] bonks \the [src] harmlessly.") + visible_message(SPAN_NOTICE("\The [user] bonks \the [src] harmlessly.")) playsound(src.loc, hitsound_light, 8, TRUE, extrarange = SHORT_RANGE_SOUND_EXTRARANGE) user.do_attack_animation(src) @@ -245,7 +245,7 @@ if (damage > 90) destroy_hits-- if (destroy_hits <= 0) - visible_message("\The [src.name] disintegrates!") + visible_message(SPAN_DANGER("\The [src.name] disintegrates!")) switch (Proj.damage_type) if(DAMAGE_BRUTE) new /obj/item/stack/material/steel(src.loc, 2) @@ -335,14 +335,14 @@ if(repairing && attacking_item.iswelder()) if(!density) - to_chat(user, "\The [src] must be closed before you can repair it.") + to_chat(user, SPAN_WARNING("\The [src] must be closed before you can repair it.")) return TRUE var/obj/item/weldingtool/welder = attacking_item if(welder.use(0,user)) - to_chat(user, "You start to fix dents and weld \the [repairing] into place.") + to_chat(user, SPAN_NOTICE("You start to fix dents and weld \the [repairing] into place.")) if(welder.use_tool(src, user, 5 * repairing.amount, volume = 50) && welder && welder.isOn()) - to_chat(user, "You finish repairing the damage to \the [src].") + to_chat(user, SPAN_NOTICE("You finish repairing the damage to \the [src].")) health = between(health, health + repairing.amount*DOOR_REPAIR_AMOUNT, maxhealth) update_icon() qdel(repairing) @@ -350,7 +350,7 @@ return TRUE if(repairing && attacking_item.iscrowbar()) - to_chat(user, "You remove \the [repairing].") + to_chat(user, SPAN_NOTICE("You remove \the [repairing].")) attacking_item.play_tool_sound(get_turf(src), 50) repairing.forceMove(user.loc) repairing = null @@ -363,9 +363,9 @@ if(W.damtype == DAMAGE_BRUTE || W.damtype == DAMAGE_BURN) user.do_attack_animation(src) if(W.force < min_force) - user.visible_message("\The [user] hits \the [src] with \the [W] with no visible effect.") + user.visible_message(SPAN_DANGER("\The [user] hits \the [src] with \the [W] with no visible effect.")) else - user.visible_message("\The [user] forcefully strikes \the [src] with \the [W]!") + user.visible_message(SPAN_DANGER("\The [user] forcefully strikes \the [src] with \the [W]!")) playsound(src.loc, hitsound, W.get_clamped_volume(), TRUE, extrarange = MEDIUM_RANGE_SOUND_EXTRARANGE) take_damage(W.force) return TRUE diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm index 5807a157fcf..da87772d799 100644 --- a/code/game/machinery/doors/firedoor.dm +++ b/code/game/machinery/doors/firedoor.dm @@ -137,13 +137,13 @@ if(stat & (BROKEN|NOPOWER)) if(damage >= 10) if(src.density) - visible_message("\The [user] forces \the [src] open!") + visible_message(SPAN_DANGER("\The [user] forces \the [src] open!")) open(1) else - visible_message("\The [user] forces \the [src] closed!") + visible_message(SPAN_DANGER("\The [user] forces \the [src] closed!")) close(1) else - visible_message("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"].") + visible_message(SPAN_NOTICE("\The [user] strains fruitlessly to force \the [src] [density ? "open" : "closed"].")) return ..() @@ -170,7 +170,7 @@ if(4) . += "WEST: " if(tile_info[index] == null) - . += "DATA UNAVAILABLE" + . += SPAN_WARNING("DATA UNAVAILABLE") continue var/celsius = convert_k2c(tile_info[index][1]) var/pressure = tile_info[index][2] @@ -199,7 +199,7 @@ return//Already doing something. if(blocked) - to_chat(user, "\The [src] is welded solid!") + to_chat(user, SPAN_WARNING("\The [src] is welded solid!")) return var/alarmed = lockdown @@ -213,10 +213,10 @@ var/mob/living/carbon/human/H = user if(H.species.can_shred(H) || H.default_attack?.crowbar_door) if(src.density) - visible_message("\The [H] forces \the [src] open!") + visible_message(SPAN_DANGER("\The [H] forces \the [src] open!")) open(1) else - visible_message("\The [H] forces \the [src] closed!") + visible_message(SPAN_DANGER("\The [H] forces \the [src] closed!")) close(1) return @@ -225,7 +225,7 @@ return if(alarmed && density && lockdown && !allowed(user)) - to_chat(user, "Access denied. Please wait for authorities to arrive, or for the alert to clear.") + to_chat(user, SPAN_WARNING("Access denied. Please wait for authorities to arrive, or for the alert to clear.")) return else if(Adjacent(user)) user.visible_message("[user] [density ? "open" : "close"]s \an [src].",\ @@ -283,20 +283,20 @@ return TRUE if(density && attacking_item.isscrewdriver()) hatch_open = !hatch_open - user.visible_message("[user] has [hatch_open ? "opened" : "closed"] \the [src] maintenance panel.", + user.visible_message(SPAN_DANGER("[user] has [hatch_open ? "opened" : "closed"] \the [src] maintenance panel."), "You have [hatch_open ? "opened" : "closed"] the [src] maintenance panel.") update_icon() return TRUE if(blocked && attacking_item.iscrowbar() && !repairing) if(!hatch_open) - to_chat(user, "You must open the maintenance panel first!") + to_chat(user, SPAN_DANGER("You must open the maintenance panel first!")) else - user.visible_message("[user] is removing the electronics from \the [src].", + user.visible_message(SPAN_DANGER("[user] is removing the electronics from \the [src]."), "You start to remove the electronics from [src].") if(attacking_item.use_tool(src, user, 30, volume = 50)) if(blocked && density && hatch_open) - user.visible_message("[user] has removed the electronics from \the [src].", + user.visible_message(SPAN_DANGER("[user] has removed the electronics from \the [src]."), "You have removed the electronics from [src].") if (stat & BROKEN) @@ -313,7 +313,7 @@ return TRUE if(blocked) - to_chat(user, "\The [src] is welded shut!") + to_chat(user, SPAN_DANGER("\The [src] is welded shut!")) return TRUE if(attacking_item.iscrowbar() || istype(attacking_item, /obj/item/material/twohanded/fireaxe) || attacking_item.ishammer()) @@ -321,7 +321,7 @@ return TRUE if(blocked && attacking_item.iscrowbar()) - user.visible_message("\The [user] pries at \the [src] with \a [attacking_item], but \the [src] is welded in place!",\ + user.visible_message(SPAN_DANGER("\The [user] pries at \the [src] with \a [attacking_item], but \the [src] is welded in place!"),\ "You try to pry \the [src] [density ? "open" : "closed"], but it is welded in place!",\ "You hear someone struggle and metal straining.") return TRUE @@ -331,17 +331,17 @@ if(!F.wielded) return TRUE - user.visible_message("\The [user] starts to force \the [src] [density ? "open" : "closed"] with \a [attacking_item]!",\ + user.visible_message(SPAN_DANGER("\The [user] starts to force \the [src] [density ? "open" : "closed"] with \a [attacking_item]!"),\ "You start forcing \the [src] [density ? "open" : "closed"] with \the [attacking_item]!",\ "You hear metal strain.") if(attacking_item.use_tool(src, user, 30, volume = 50)) if(attacking_item.iscrowbar() || attacking_item.ishammer()) if(stat & (BROKEN|NOPOWER) || !density) - user.visible_message("\The [user] forces \the [src] [density ? "open" : "closed"] with \a [attacking_item]!",\ + user.visible_message(SPAN_DANGER("\The [user] forces \the [src] [density ? "open" : "closed"] with \a [attacking_item]!"),\ "You force \the [src] [density ? "open" : "closed"] with \the [attacking_item]!",\ "You hear metal strain, and a door [density ? "open" : "close"].") else - user.visible_message("\The [user] forces \the [ blocked ? "welded" : "" ] [src] [density ? "open" : "closed"] with \a [attacking_item]!",\ + user.visible_message(SPAN_DANGER("\The [user] forces \the [ blocked ? "welded" : "" ] [src] [density ? "open" : "closed"] with \a [attacking_item]!"),\ "You force \the [ blocked ? "welded" : "" ] [src] [density ? "open" : "closed"] with \the [attacking_item]!",\ "You hear metal strain and groan, and a door [density ? "opening" : "closing"].") if(density) diff --git a/code/game/machinery/doors/firedoor_assembly.dm b/code/game/machinery/doors/firedoor_assembly.dm index 0bab71e57b9..563979d3421 100644 --- a/code/game/machinery/doors/firedoor_assembly.dm +++ b/code/game/machinery/doors/firedoor_assembly.dm @@ -19,54 +19,54 @@ if(attacking_item.iscoil() && !wired && anchored) var/obj/item/stack/cable_coil/cable = attacking_item if (cable.get_amount() < 1) - to_chat(user, "You need one length of coil to wire \the [src].") + to_chat(user, SPAN_WARNING("You need one length of coil to wire \the [src].")) return TRUE user.visible_message("[user] wires \the [src].", "You start to wire \the [src].") if(do_after(user, 4 SECONDS, src, DO_REPAIR_CONSTRUCT) && !wired && anchored) if (cable.use(1)) wired = 1 - to_chat(user, "You wire \the [src].") + to_chat(user, SPAN_NOTICE("You wire \the [src].")) return TRUE else if(attacking_item.iswirecutter() && wired ) user.visible_message("[user] cuts the wires from \the [src].", "You start to cut the wires from \the [src].") if(attacking_item.use_tool(src, user, 40, volume = 50)) if(!src) return - to_chat(user, "You cut the wires!") + to_chat(user, SPAN_NOTICE("You cut the wires!")) new/obj/item/stack/cable_coil(src.loc, 1) wired = 0 return TRUE else if(istype(attacking_item, /obj/item/airalarm_electronics) && wired) if(anchored) playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) - user.visible_message("[user] has inserted a circuit into \the [src]!", + user.visible_message(SPAN_WARNING("[user] has inserted a circuit into \the [src]!"), "You have inserted the circuit into \the [src]!") new /obj/machinery/door/firedoor(src.loc) qdel(attacking_item) qdel(src) else - to_chat(user, "You must secure \the [src] first!") + to_chat(user, SPAN_WARNING("You must secure \the [src] first!")) return TRUE else if(attacking_item.iswrench()) anchored = !anchored attacking_item.play_tool_sound(get_turf(src), 50) - user.visible_message("[user] has [anchored ? "" : "un" ]secured \the [src]!", + user.visible_message(SPAN_WARNING("[user] has [anchored ? "" : "un" ]secured \the [src]!"), "You have [anchored ? "" : "un" ]secured \the [src]!") update_icon() return TRUE else if(!anchored && attacking_item.iswelder()) var/obj/item/weldingtool/WT = attacking_item if(WT.use(0, user)) - user.visible_message("[user] dissassembles \the [src].", + user.visible_message(SPAN_WARNING("[user] dissassembles \the [src]."), "You start to dissassemble \the [src].") if(attacking_item.use_tool(src, user, 40, volume = 50)) if(!src || !WT.isOn()) return - user.visible_message("[user] has dissassembled \the [src].", + user.visible_message(SPAN_WARNING("[user] has dissassembled \the [src]."), "You have dissassembled \the [src].") new /obj/item/stack/material/steel(src.loc, 2) qdel(src) else - to_chat(user, "You need more welding fuel.") + to_chat(user, SPAN_NOTICE("You need more welding fuel.")) return TRUE else return ..() diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm index 72e34d94444..b02c40084be 100644 --- a/code/game/machinery/doors/windowdoor.dm +++ b/code/game/machinery/doors/windowdoor.dm @@ -138,7 +138,8 @@ if(istype(H) && H.species.can_shred(H)) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) playsound(src.loc, 'sound/effects/glass_hit.ogg', 75, 1) - user.visible_message("[user] smashes against [src].", "You smash against [src]!") + user.visible_message(SPAN_DANGER("[user] smashes against [src]."), + SPAN_DANGER("You smash against [src]!")) take_damage(25) return else @@ -165,7 +166,7 @@ spark(src.loc, 5) playsound(src.loc, /singleton/sound_category/spark_sound, 50, 1) playsound(src.loc, 'sound/weapons/blade.ogg', 50, 1) - visible_message("The glass door was sliced open by [user]!") + visible_message(SPAN_WARNING("The glass door was sliced open by [user]!")) return TRUE //If it's emagged, crowbar can pry electronics out. @@ -197,7 +198,7 @@ user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) var/aforce = attacking_item.force playsound(src.loc, 'sound/effects/glass_hit.ogg', 75, 1) - visible_message("[src] was hit by [attacking_item].") + visible_message(SPAN_DANGER("[src] was hit by [attacking_item].")) if(attacking_item.damtype == DAMAGE_BRUTE || attacking_item.damtype == DAMAGE_BURN) take_damage(aforce) return TRUE diff --git a/code/game/machinery/firealarm.dm b/code/game/machinery/firealarm.dm index 3101a169bba..320adf59b76 100644 --- a/code/game/machinery/firealarm.dm +++ b/code/game/machinery/firealarm.dm @@ -90,12 +90,18 @@ if (attacking_item.ismultitool()) src.detecting = !( src.detecting ) if (src.detecting) - user.visible_message("\The [user] has reconnected [src]'s detecting unit!", "You have reconnected [src]'s detecting unit.") + user.visible_message(SPAN_NOTICE("\The [user] has reconnected [src]'s detecting unit!"), + SPAN_NOTICE("You have reconnected [src]'s detecting unit.")) + else - user.visible_message("\The [user] has disconnected [src]'s detecting unit!", "You have disconnected [src]'s detecting unit.") + user.visible_message(SPAN_NOTICE("\The [user] has disconnected [src]'s detecting unit!"), + SPAN_NOTICE("You have disconnected [src]'s detecting unit.")) + return TRUE else if (attacking_item.iswirecutter()) - user.visible_message("\The [user] has cut the wires inside \the [src]!", "You have cut the wires inside \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] has cut the wires inside \the [src]!"), + SPAN_NOTICE("You have cut the wires inside \the [src].")) + new/obj/item/stack/cable_coil(get_turf(src), 5) playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1) buildstage = 1 @@ -105,10 +111,10 @@ if(attacking_item.iscoil()) var/obj/item/stack/cable_coil/C = attacking_item if (C.use(5)) - to_chat(user, "You wire \the [src].") + to_chat(user, SPAN_NOTICE("You wire \the [src].")) buildstage = 2 else - to_chat(user, "You need 5 pieces of cable to wire \the [src].") + to_chat(user, SPAN_WARNING("You need 5 pieces of cable to wire \the [src].")) return TRUE else if(attacking_item.iscrowbar()) to_chat(user, "You pry out the circuit!") diff --git a/code/game/machinery/flasher.dm b/code/game/machinery/flasher.dm index 988a3b71380..fa0a4951040 100644 --- a/code/game/machinery/flasher.dm +++ b/code/game/machinery/flasher.dm @@ -52,9 +52,9 @@ add_fingerprint(user) src.disable = !src.disable if (src.disable) - user.visible_message("[user] has disconnected the [src]'s flashbulb!", "You disconnect the [src]'s flashbulb!") + user.visible_message(SPAN_WARNING("[user] has disconnected the [src]'s flashbulb!"), SPAN_WARNING("You disconnect the [src]'s flashbulb!")) if (!src.disable) - user.visible_message("[user] has connected the [src]'s flashbulb!", "You connect the [src]'s flashbulb!") + user.visible_message(SPAN_WARNING("[user] has connected the [src]'s flashbulb!"), SPAN_WARNING("You connect the [src]'s flashbulb!")) return TRUE //Let the AI trigger them directly. @@ -111,11 +111,11 @@ src.anchored = !src.anchored if (!src.anchored) - user.show_message(text("[src] can now be moved.")) + user.show_message(SPAN_WARNING("[src] can now be moved.")) ClearOverlays() else if (src.anchored) - user.show_message(text("[src] is now secured.")) + user.show_message(SPAN_WARNING("[src] is now secured.")) AddOverlays("[base_state]-s") return TRUE diff --git a/code/game/machinery/floor_light.dm b/code/game/machinery/floor_light.dm index f6875af043f..a68d9acc780 100644 --- a/code/game/machinery/floor_light.dm +++ b/code/game/machinery/floor_light.dm @@ -27,19 +27,19 @@ var/list/floor_light_cache = list() /obj/machinery/floor_light/attackby(obj/item/attacking_item, mob/user) if(attacking_item.isscrewdriver()) anchored = !anchored - visible_message("\The [user] has [anchored ? "attached" : "detached"] \the [src].") + visible_message(SPAN_NOTICE("\The [user] has [anchored ? "attached" : "detached"] \the [src].")) playsound(src.loc, 'sound/items/Screwdriver.ogg', 100, 1) return TRUE else if(attacking_item.iswelder() && (damaged || (stat & BROKEN))) var/obj/item/weldingtool/WT = attacking_item if(!WT.use(0, user)) - to_chat(user, "\The [src] must be on to complete this task.") + to_chat(user, SPAN_WARNING("\The [src] must be on to complete this task.")) return TRUE if(!attacking_item.use_tool(src, user, 20, volume = 50)) return TRUE if(!src || !WT.isOn()) return TRUE - visible_message("\The [user] has repaired \the [src].") + visible_message(SPAN_NOTICE("\The [user] has repaired \the [src].")) update_icon() stat &= ~BROKEN damaged = null @@ -49,10 +49,10 @@ var/list/floor_light_cache = list() return attack_hand(user) else if(attacking_item.iscrowbar()) if(anchored) - to_chat(user, "\The [src] must be unfastened from the [loc] first!") + to_chat(user, SPAN_WARNING("\The [src] must be unfastened from the [loc] first!")) return TRUE else - to_chat(user, "You lever off the [name].") + to_chat(user, SPAN_NOTICE("You lever off the [name].")) playsound(src.loc, 'sound/items/crowbar_tile.ogg', 100, TRUE) if(stat & BROKEN) qdel(src) @@ -66,12 +66,12 @@ var/list/floor_light_cache = list() if(user.a_intent == I_HURT && !issmall(user)) if(!isnull(damaged) && !(stat & BROKEN)) - visible_message("\The [user] smashes \the [src]!") + visible_message(SPAN_DANGER("\The [user] smashes \the [src]!")) playsound(src, /singleton/sound_category/glass_break_sound, 70, 1) update_icon() stat |= BROKEN else - visible_message("\The [user] attacks \the [src]!") + visible_message(SPAN_DANGER("\The [user] attacks \the [src]!")) playsound(src.loc, 'sound/effects/glass_hit.ogg', 75, 1) if(isnull(damaged)) damaged = 0 update_brightness() @@ -79,21 +79,21 @@ var/list/floor_light_cache = list() else if(!anchored) - to_chat(user, "\The [src] must be screwed down first.") + to_chat(user, SPAN_WARNING("\The [src] must be screwed down first.")) return if(stat & BROKEN) - to_chat(user, "\The [src] is too damaged to be functional.") + to_chat(user, SPAN_WARNING("\The [src] is too damaged to be functional.")) return if(stat & NOPOWER) - to_chat(user, "\The [src] is unpowered.") + to_chat(user, SPAN_WARNING("\The [src] is unpowered.")) return on = !on if(on) update_use_power(POWER_USE_ACTIVE) - visible_message("\The [user] turns \the [src] [on ? "on" : "off"].") + visible_message(SPAN_NOTICE("\The [user] turns \the [src] [on ? "on" : "off"].")) update_brightness() return diff --git a/code/game/machinery/from_beyond.dm b/code/game/machinery/from_beyond.dm index 6dde31d3179..e6f7cf37afc 100644 --- a/code/game/machinery/from_beyond.dm +++ b/code/game/machinery/from_beyond.dm @@ -36,13 +36,13 @@ /obj/machinery/from_beyond/attack_hand(var/mob/living/carbon/human/user as mob) if(!active) - src.visible_message("[user] switches \the [src] on.") - to_chat(user, "The world beyond opens to your eyes.") + src.visible_message(SPAN_WARNING("[user] switches \the [src] on.")) + to_chat(user, SPAN_WARNING("The world beyond opens to your eyes.")) active = TRUE else - src.visible_message("[user] switches \the [src] off.") - to_chat(user, "The world beyond vanishes before your eyes.") + src.visible_message(SPAN_WARNING("[user] switches \the [src] off.")) + to_chat(user, SPAN_WARNING("The world beyond vanishes before your eyes.")) active = FALSE update_icon() @@ -69,20 +69,20 @@ L.see_invisible = SEE_INVISIBLE_CULT if(prob(15)) var/message = pick(whispers) - to_chat(L, "[message]") + to_chat(L, SPAN_CULT("[message]")) L.hallucination += 50 L.adjustBrainLoss(5, 55) if(prob(15)) - src.visible_message("\The [src] hums ominously.") + src.visible_message(SPAN_WARNING("\The [src] hums ominously.")) if(prob(5)) - src.visible_message("\The [src] crackles with energy!") + src.visible_message(SPAN_WARNING("\The [src] crackles with energy!")) playsound(src, 'sound/magic/lightningbolt.ogg', 40, 1) if(prob(1)) - to_chat(L, "Reality feels less stable...") - src.visible_message("\The [src] screeches loudly!") + to_chat(L, SPAN_CULT("Reality feels less stable...")) + src.visible_message(SPAN_WARNING("\The [src] screeches loudly!")) playsound(src, 'sound/magic/dimensional_rend.ogg', 100, 1) new /obj/effect/gateway/active/rift(src.loc) diff --git a/code/game/machinery/igniter.dm b/code/game/machinery/igniter.dm index 054d380828f..5a7269483cf 100755 --- a/code/game/machinery/igniter.dm +++ b/code/game/machinery/igniter.dm @@ -106,9 +106,9 @@ add_fingerprint(user) disable = !disable if(disable) - user.visible_message("[user] has disabled the [src]!", "You disable the connection to the [src].") + user.visible_message(SPAN_WARNING("[user] has disabled the [src]!"), SPAN_WARNING("You disable the connection to the [src].")) else if(!disable) - user.visible_message("[user] has reconnected the [src]!", "You fix the connection to the [src].") + user.visible_message(SPAN_WARNING("[user] has reconnected the [src]!"), SPAN_WARNING("You fix the connection to the [src].")) update_icon() return TRUE diff --git a/code/game/machinery/jukebox.dm b/code/game/machinery/jukebox.dm index 506ef3ae907..57d13fcfc7a 100644 --- a/code/game/machinery/jukebox.dm +++ b/code/game/machinery/jukebox.dm @@ -69,7 +69,7 @@ return if(!anchored) - to_chat(usr, "You must secure \the [src] first.") + to_chat(usr, SPAN_WARNING("You must secure \the [src] first.")) return if(stat & (NOPOWER|BROKEN)) @@ -152,7 +152,7 @@ /obj/machinery/media/jukebox/proc/explode() walk_to(src,0) - visible_message("\the [src] blows apart!") + visible_message(SPAN_DANGER("\the [src] blows apart!")) explosion(src.loc, 0, 0, 1, rand(1,2), 1) @@ -168,7 +168,7 @@ if(attacking_item.iswrench()) if(playing) StopPlaying() - user.visible_message("[user] has [anchored ? "un" : ""]secured \the [src].", "You [anchored ? "un" : ""]secure \the [src].") + user.visible_message(SPAN_WARNING("[user] has [anchored ? "un" : ""]secured \the [src]."), "You [anchored ? "un" : ""]secure \the [src].") anchored = !anchored attacking_item.play_tool_sound(get_turf(src), 50) power_change() @@ -180,7 +180,7 @@ if(!emagged) emagged = 1 StopPlaying() - visible_message("\The [src] makes a fizzling sound.") + visible_message(SPAN_DANGER("\The [src] makes a fizzling sound.")) update_icon() return 1 diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index 0f48a1a539f..854b7bdca75 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -283,7 +283,7 @@ Class Procs: return 1 if ( ! (istype(usr, /mob/living/carbon/human) || \ istype(usr, /mob/living/silicon))) - to_chat(usr, "You don't have the dexterity to do this!") + to_chat(usr, SPAN_WARNING("You don't have the dexterity to do this!")) return 1 /* //distance checks are made by atom/proc/DblClick @@ -293,10 +293,10 @@ Class Procs: if (ishuman(user)) var/mob/living/carbon/human/H = user if(H.getBrainLoss() >= 60) - visible_message("[H] stares cluelessly at [src] and drools.") + visible_message(SPAN_WARNING("[H] stares cluelessly at [src] and drools.")) return 1 else if(prob(H.getBrainLoss())) - to_chat(user, "You momentarily forget how to use [src].") + to_chat(user, SPAN_WARNING("You momentarily forget how to use [src].")) return 1 src.add_fingerprint(user) @@ -401,7 +401,7 @@ Class Procs: return FALSE S.play_tool_sound(get_turf(src), 50) panel_open = !panel_open - to_chat(user, "You [panel_open ? "open" : "close"] the maintenance hatch of [src].") + to_chat(user, SPAN_NOTICE("You [panel_open ? "open" : "close"] the maintenance hatch of [src].")) update_icon() return TRUE @@ -429,7 +429,7 @@ Class Procs: component_parts -= G component_parts += B B.forceMove(src) - to_chat(user, "[G.name] replaced with [B.name].") + to_chat(user, SPAN_NOTICE("[G.name] replaced with [B.name].")) break for(var/obj/item/stock_parts/A in component_parts) for(var/D in CB.req_components) @@ -445,13 +445,13 @@ Class Procs: component_parts -= A component_parts += B B.forceMove(src) - to_chat(user, "[A.name] replaced with [B.name].") + to_chat(user, SPAN_NOTICE("[A.name] replaced with [B.name].")) parts_replaced = TRUE break RefreshParts() update_icon() else - to_chat(user, "The following parts have been detected in \the [src]:") + to_chat(user, SPAN_NOTICE("The following parts have been detected in \the [src]:")) to_chat(user, counting_english_list(component_parts)) if(parts_replaced) //only play sound when RPED actually replaces parts playsound(src, 'sound/items/rped.ogg', 40, TRUE) diff --git a/code/game/machinery/mass_driver.dm b/code/game/machinery/mass_driver.dm index 08910ced2d8..07ff9fca3f7 100644 --- a/code/game/machinery/mass_driver.dm +++ b/code/game/machinery/mass_driver.dm @@ -38,7 +38,7 @@ O_limit++ if(O_limit >= 20) for(var/mob/M in hearers(src, null)) - to_chat(M, "The mass driver lets out a screech, it mustn't be able to handle any more items.") + to_chat(M, SPAN_NOTICE("The mass driver lets out a screech, it mustn't be able to handle any more items.")) break use_power_oneoff(500) spawn( 0 ) @@ -79,7 +79,7 @@ item_state = "inf_box" /obj/item/mass_driver_diy/attack_self(mob/user) - to_chat(user, "You start piecing together the kit...") + to_chat(user, SPAN_NOTICE("You start piecing together the kit...")) if(do_after(user, 8 SECONDS, src, DO_REPAIR_CONSTRUCT)) var/master_id = "[user.name] - [pick("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")][rand(100,999)]" var/obj/machinery/mass_driver/mining/R = new /obj/machinery/mass_driver/mining(user.loc) @@ -88,7 +88,7 @@ var/obj/item/mass_driver_button/B = new /obj/item/mass_driver_button(user.loc) B.id = master_id user.visible_message("[user] assembles \a [R].\ - ", "You assemble \a [R].") + ", SPAN_NOTICE("You assemble \a [R].")) R.add_fingerprint(user) qdel(src) @@ -106,12 +106,12 @@ //must place on a wall and user must not be inside a closet/mecha/whatever var/turf/W = A if (!iswall(W) || !isturf(user.loc)) - to_chat(user, "You can't place this here!") + to_chat(user, SPAN_WARNING("You can't place this here!")) return var/placement_dir = get_dir(user, W) if (!(placement_dir in GLOB.cardinal)) - to_chat(user, "You must stand directly in front of the wall you wish to place that on.") + to_chat(user, SPAN_WARNING("You must stand directly in front of the wall you wish to place that on.")) return //just check if there is a poster on or adjacent to the wall @@ -127,10 +127,10 @@ break if (stuff_on_wall) - to_chat(user, "There is already a button there!") + to_chat(user, SPAN_NOTICE("There is already a button there!")) return - to_chat(user, "You place down the button.") + to_chat(user, SPAN_NOTICE("You place down the button.")) var/obj/machinery/button/mass_driver/B = new /obj/machinery/button/remote/driver(user.loc) switch (placement_dir) diff --git a/code/game/machinery/navbeacon.dm b/code/game/machinery/navbeacon.dm index 60732eceff1..78976665157 100644 --- a/code/game/machinery/navbeacon.dm +++ b/code/game/machinery/navbeacon.dm @@ -155,7 +155,7 @@ src.locked = !src.locked to_chat(user, "Controls are now [src.locked ? "locked." : "unlocked."]") else - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) updateDialog() else to_chat(user, "You must open the cover first!") diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm index 9b2f7faf27c..eebc2fddfb9 100644 --- a/code/game/machinery/newscaster.dm +++ b/code/game/machinery/newscaster.dm @@ -334,7 +334,7 @@ var/list/obj/machinery/newscaster/allCasters = list() if(FC.is_admin_channel) dat+="[FC.channel_name]
" else - dat+="[FC.channel_name] [(FC.censored) ? ("***") : null]
" + dat+="[FC.channel_name] [(FC.censored) ? (SPAN_WARNING("***")) : null]
" dat+="

Refresh" dat+="
Back" if(2) @@ -408,7 +408,7 @@ var/list/obj/machinery/newscaster/allCasters = list() if(9) dat+="[src.viewing_channel.channel_name]: \[created by: [src.viewing_channel.author]\]
" if(src.viewing_channel.censored) - dat+="ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a [SSatlas.current_map.company_name] D-Notice.
" + dat += SPAN_WARNING("ATTENTION: ") + "This channel has been deemed as threatening to the welfare of the station, and marked with a [SSatlas.current_map.company_name] D-Notice.
" dat+="No further feed story additions are allowed while the D-Notice is in effect.

" else if( isemptylist(src.viewing_channel.messages) ) @@ -438,7 +438,7 @@ var/list/obj/machinery/newscaster/allCasters = list() else for(var/channel in SSnews.network_channels) var/datum/feed_channel/FC = SSnews.GetFeedChannel(channel) - dat+="[FC.channel_name] [(FC.censored) ? ("***") : null]
" + dat+="[FC.channel_name] [(FC.censored) ? (SPAN_WARNING("***")) : null]
" dat+="
Cancel" if(11) dat+="[SSatlas.current_map.company_name] D-Notice Handler
" @@ -450,7 +450,7 @@ var/list/obj/machinery/newscaster/allCasters = list() else for(var/channel in SSnews.network_channels) var/datum/feed_channel/FC = SSnews.GetFeedChannel(channel) - dat+="[FC.channel_name] [(FC.censored) ? ("***") : null]
" + dat+="[FC.channel_name] [(FC.censored) ? (SPAN_WARNING("***")) : null]
" dat+="
Back" if(12) @@ -469,7 +469,7 @@ var/list/obj/machinery/newscaster/allCasters = list() dat+="[src.viewing_channel.channel_name]: \[ created by: [src.viewing_channel.author] \]
" dat+="Channel messages listed below. If you deem them dangerous to the station, you can Bestow a D-Notice upon the channel.
" if(src.viewing_channel.censored) - dat+="ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a [SSatlas.current_map.company_name] D-Notice.
" + dat += SPAN_WARNING("ATTENTION: ") + "This channel has been deemed as threatening to the welfare of the station, and marked with a [SSatlas.current_map.company_name] D-Notice.
" dat+="No further feed story additions are allowed while the D-Notice is in effect.

" else if( isemptylist(src.viewing_channel.messages) ) @@ -899,7 +899,7 @@ var/list/obj/machinery/newscaster/allCasters = list() O.show_message("[user.name] forcefully slams the [src.name] with the [attacking_item.name]!" ) playsound(src.loc, 'sound/effects/glass_hit.ogg', 100, 1) else - to_chat(user, "This does nothing.") + to_chat(user, SPAN_NOTICE("This does nothing.")) src.update_icon() /datum/news_photo @@ -1097,7 +1097,7 @@ var/list/obj/machinery/newscaster/allCasters = list() SPAN_NOTICE("You unroll \the [src] to write on it.")) rolled() if(src.scribble_page == src.curr_page) - to_chat(user, "There's already a scribble in this page... You wouldn't want to make things too cluttered, would you?") + to_chat(user, SPAN_NOTICE("There's already a scribble in this page... You wouldn't want to make things too cluttered, would you?")) else var/s = sanitize( tgui_input_text(user, "Write something", "Newspaper", "") ) if (!s) diff --git a/code/game/machinery/nuclear_bomb.dm b/code/game/machinery/nuclear_bomb.dm index 07a3c748b57..d3f80493118 100644 --- a/code/game/machinery/nuclear_bomb.dm +++ b/code/game/machinery/nuclear_bomb.dm @@ -85,7 +85,7 @@ var/bomb_set var/obj/item/weldingtool/WT = attacking_item if(!WT.isOn()) return TRUE if (WT.get_fuel() < 5) // uses up 5 fuel. - to_chat(user, "You need more fuel to complete this task.") + to_chat(user, SPAN_WARNING("You need more fuel to complete this task.")) return TRUE user.visible_message("[user] starts cutting loose the anchoring bolt covers on [src].", "You start cutting loose the anchoring bolt covers with [attacking_item]...") @@ -111,7 +111,7 @@ var/bomb_set var/obj/item/weldingtool/WT = attacking_item if(!WT.isOn()) return TRUE if (WT.get_fuel() < 5) // uses up 5 fuel. - to_chat(user, "You need more fuel to complete this task.") + to_chat(user, SPAN_WARNING("You need more fuel to complete this task.")) return TRUE user.visible_message("[user] starts cutting apart the anchoring system sealant on [src].", "You start cutting apart the anchoring system's sealant with [attacking_item]...") @@ -155,9 +155,9 @@ var/bomb_set else if (deployable) if(removal_stage < 5) src.anchored = 1 - visible_message("With a steely snap, bolts slide out of [src] and anchor it to the flooring!") + visible_message(SPAN_WARNING("With a steely snap, bolts slide out of [src] and anchor it to the flooring!")) else - visible_message("\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut.") + visible_message(SPAN_WARNING("\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut.")) extended = 1 if(!src.lighthack) flick("lock", src) @@ -206,10 +206,10 @@ var/bomb_set return if (src.deployable) - to_chat(usr, "You close several panels to make [src] undeployable.") + to_chat(usr, SPAN_WARNING("You close several panels to make [src] undeployable.")) src.deployable = 0 else - to_chat(usr, "You adjust some panels to make [src] deployable.") + to_chat(usr, SPAN_WARNING("You adjust some panels to make [src] deployable.")) src.deployable = 1 return @@ -266,15 +266,15 @@ var/bomb_set SSnanoui.update_uis(src) return if (!anchored) - to_chat(usr, "\The [src] needs to be anchored.") + to_chat(usr, SPAN_WARNING("\The [src] needs to be anchored.")) SSnanoui.update_uis(src) return if (safety) - to_chat(usr, "The safety is still on.") + to_chat(usr, SPAN_WARNING("The safety is still on.")) SSnanoui.update_uis(src) return if (wires.is_cut(WIRE_TIMING)) - to_chat(usr, "Nothing happens, something might be wrong with the wiring.") + to_chat(usr, SPAN_WARNING("Nothing happens, something might be wrong with the wiring.")) SSnanoui.update_uis(src) return @@ -291,7 +291,7 @@ var/bomb_set alerted = 1 if (href_list["safety"]) if (wires.is_cut(WIRE_SAFETY)) - to_chat(usr, "Nothing happens, something might be wrong with the wiring.") + to_chat(usr, SPAN_WARNING("Nothing happens, something might be wrong with the wiring.")) SSnanoui.update_uis(src) return safety = !safety @@ -301,19 +301,19 @@ var/bomb_set if (href_list["anchor"]) if(removal_stage == 5) anchored = 0 - visible_message("\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut.") + visible_message(SPAN_WARNING("\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut.")) SSnanoui.update_uis(src) return if(!isinspace()) anchored = !anchored if(anchored) - visible_message("With a steely snap, bolts slide out of [src] and anchor it to the flooring.") + visible_message(SPAN_WARNING("With a steely snap, bolts slide out of [src] and anchor it to the flooring.")) else secure_device() - visible_message("The anchoring bolts slide back into the depths of [src].") + visible_message(SPAN_WARNING("The anchoring bolts slide back into the depths of [src].")) else - to_chat(usr, "There is nothing to anchor to!") + to_chat(usr, SPAN_WARNING("There is nothing to anchor to!")) SSnanoui.update_uis(src) diff --git a/code/game/machinery/pipe/construction.dm b/code/game/machinery/pipe/construction.dm index 982545de2ee..226e71eb8be 100644 --- a/code/game/machinery/pipe/construction.dm +++ b/code/game/machinery/pipe/construction.dm @@ -580,11 +580,11 @@ for(var/obj/machinery/atmospherics/M in src.loc) if((M.initialize_directions & pipe_dir) && M.check_connect_types_construction(M,src)) // matches at least one direction on either type of pipe & same connection type - to_chat(user, "There is already a pipe of the same type at this location.") + to_chat(user, SPAN_WARNING("There is already a pipe of the same type at this location.")) return TRUE // no conflicts found - var/pipefailtext = "There's nothing to connect this pipe section to!" //(with how the pipe code works, at least one end needs to be connected to something, otherwise the game deletes the segment)" + var/pipefailtext = SPAN_WARNING("There's nothing to connect this pipe section to!") //(with how the pipe code works, at least one end needs to be connected to something, otherwise the game deletes the segment)" //TODO: Move all of this stuff into the various pipe constructors. switch(pipe_type) @@ -1520,7 +1520,7 @@ attacking_item.play_tool_sound(get_turf(src), 50) user.visible_message( \ "[user] fastens the [src].", \ - "You have fastened the [src].", \ + SPAN_NOTICE("You have fastened the [src]."), \ "You hear ratchet.") qdel(src) // remove the pipe item @@ -1542,11 +1542,11 @@ /obj/item/pipe_meter/attackby(obj/item/attacking_item, mob/user) if (attacking_item.iswrench()) if(!locate(/obj/machinery/atmospherics/pipe, src.loc)) - to_chat(user, "You need to fasten it to a pipe") + to_chat(user, SPAN_WARNING("You need to fasten it to a pipe")) return 1 new/obj/machinery/meter( src.loc ) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You have fastened the meter to the pipe") + to_chat(user, SPAN_NOTICE("You have fastened the meter to the pipe")) qdel(src) return TRUE return ..() diff --git a/code/game/machinery/portable_turret.dm b/code/game/machinery/portable_turret.dm index 5087db70660..6fbdb9181f3 100644 --- a/code/game/machinery/portable_turret.dm +++ b/code/game/machinery/portable_turret.dm @@ -256,14 +256,14 @@ /obj/machinery/porta_turret/ui_status(mob/user, datum/ui_state/state) . = ..() if(HasController()) - to_chat(user, "Turrets can only be controlled using the assigned turret controller.") + to_chat(user, SPAN_NOTICE("Turrets can only be controlled using the assigned turret controller.")) return UI_CLOSE if(isLocked(user)) return UI_CLOSE if(!anchored) - to_chat(usr, "\The [src] has to be secured first!") + to_chat(usr, SPAN_NOTICE("\The [src] has to be secured first!")) return UI_CLOSE return ..() @@ -322,10 +322,10 @@ if(attacking_item.iscrowbar()) //If the turret is destroyed, you can remove it with a crowbar to //try and salvage its components - to_chat(user, "You begin prying the metal coverings off.") + to_chat(user, SPAN_NOTICE("You begin prying the metal coverings off.")) if(attacking_item.use_tool(src, user, 20, volume = 50)) if(prob(70) && !no_salvage) - to_chat(user, "You remove the turret and salvage some components.") + to_chat(user, SPAN_NOTICE("You remove the turret and salvage some components.")) if(installation) installation.forceMove(loc) installation = null @@ -334,28 +334,28 @@ if(prob(50)) new /obj/item/device/assembly/prox_sensor(loc) else - to_chat(user, "You remove the turret but did not manage to salvage anything.") + to_chat(user, SPAN_NOTICE("You remove the turret but did not manage to salvage anything.")) qdel(src) // qdel return TRUE else if((attacking_item.iswrench())) if (immobile) - to_chat(user, "[src] is firmly attached to the ground with some form of epoxy.") + to_chat(user, SPAN_NOTICE("[src] is firmly attached to the ground with some form of epoxy.")) return TRUE if(enabled || raised) - to_chat(user, "You cannot unsecure an active turret!") + to_chat(user, SPAN_WARNING("You cannot unsecure an active turret!")) return TRUE if(wrenching) - to_chat(user, "Someone is already [anchored ? "un" : ""]securing the turret!") + to_chat(user, SPAN_WARNING("Someone is already [anchored ? "un" : ""]securing the turret!")) return TRUE if(!anchored && isinspace()) - to_chat(user, "Cannot secure turrets in space!") + to_chat(user, SPAN_WARNING("Cannot secure turrets in space!")) return TRUE user.visible_message( \ - "[user] begins [anchored ? "un" : ""]securing the turret.", \ - "You begin [anchored ? "un" : ""]securing the turret." \ + SPAN_WARNING("[user] begins [anchored ? "un" : ""]securing the turret."), \ + SPAN_NOTICE("You begin [anchored ? "un" : ""]securing the turret.") \ ) wrenching = 1 @@ -365,11 +365,11 @@ attacking_item.play_tool_sound(get_turf(src), 100) anchored = 1 update_icon() - to_chat(user, "You secure the exterior bolts on the turret.") + to_chat(user, SPAN_NOTICE("You secure the exterior bolts on the turret.")) else if(anchored) attacking_item.play_tool_sound(get_turf(src), 100) anchored = 0 - to_chat(user, "You unsecure the exterior bolts on the turret.") + to_chat(user, SPAN_NOTICE("You unsecure the exterior bolts on the turret.")) update_icon() wrenching = 0 return TRUE @@ -378,21 +378,21 @@ //Behavior lock/unlock mangement if(allowed(user)) locked = !locked - to_chat(user, "Controls are now [locked ? "locked" : "unlocked"].") + to_chat(user, SPAN_NOTICE("Controls are now [locked ? "locked" : "unlocked"].")) updateUsrDialog() else - to_chat(user, "Access denied.") + to_chat(user, SPAN_NOTICE("Access denied.")) return TRUE else if(attacking_item.iswelder()) var/obj/item/weldingtool/WT = attacking_item if (!WT.welding) - to_chat(user, "\The [WT] must be turned on!") + to_chat(user, SPAN_DANGER("\The [WT] must be turned on!")) else if (health == maxhealth) - to_chat(user, "\The [src] is fully repaired.") + to_chat(user, SPAN_NOTICE("\The [src] is fully repaired.")) return else if (WT.use(3, user)) - to_chat(user, "Now welding \the [src].") + to_chat(user, SPAN_NOTICE("Now welding \the [src].")) if(WT.use_tool(src, user, 5, volume = 50)) if(QDELETED(src) || !WT.isOn()) return TRUE @@ -400,9 +400,9 @@ health += maxhealth / 3 health = min(maxhealth, health) else - to_chat(user, "You fail to complete the welding.") + to_chat(user, SPAN_NOTICE("You fail to complete the welding.")) else - to_chat(user, "You need more welding fuel to complete this task.") + to_chat(user, SPAN_WARNING("You need more welding fuel to complete this task.")) return TRUE else //if the turret was attacked with the intention of harming it: @@ -421,7 +421,7 @@ if(!emagged) //Emagging the turret makes it go bonkers and stun everyone. It also makes //the turret shoot much, much faster. - to_chat(user, "You short out [src]'s threat assessment circuits.") + to_chat(user, SPAN_WARNING("You short out [src]'s threat assessment circuits.")) visible_message("[src] hums oddly...") emagged = 1 lethal_icon = 1 @@ -842,7 +842,7 @@ if(0) //first step if(attacking_item.iswrench() && !anchored) attacking_item.play_tool_sound(get_turf(src), 100) - to_chat(user, "You secure the external bolts.") + to_chat(user, SPAN_NOTICE("You secure the external bolts.")) anchored = 1 build_step = 1 icon_state = "turret_frame_1_[case_sprite_set]" @@ -850,7 +850,7 @@ else if(attacking_item.iscrowbar() && !anchored) attacking_item.play_tool_sound(get_turf(src), 75) - to_chat(user, "You dismantle the turret construction.") + to_chat(user, SPAN_NOTICE("You dismantle the turret construction.")) new /obj/item/stack/material/steel( loc, 5) qdel(src) return TRUE @@ -859,16 +859,16 @@ if(istype(attacking_item, /obj/item/stack/material) && attacking_item.get_material_name() == DEFAULT_WALL_MATERIAL) var/obj/item/stack/M = attacking_item if(M.use(2)) - to_chat(user, "You add some metal armor to the interior frame.") + to_chat(user, SPAN_NOTICE("You add some metal armor to the interior frame.")) build_step = 2 icon_state = "turret_frame_2_[case_sprite_set]" else - to_chat(user, "You need two sheets of metal to continue construction.") + to_chat(user, SPAN_WARNING("You need two sheets of metal to continue construction.")) return TRUE else if(attacking_item.iswrench()) attacking_item.play_tool_sound(get_turf(src), 75) - to_chat(user, "You unfasten the external bolts.") + to_chat(user, SPAN_NOTICE("You unfasten the external bolts.")) anchored = 0 build_step = 0 icon_state = "turret_frame_0_[case_sprite_set]" @@ -878,7 +878,7 @@ if(2) if(attacking_item.iswrench()) attacking_item.play_tool_sound(get_turf(src), 100) - to_chat(user, "You bolt the metal armor into place.") + to_chat(user, SPAN_NOTICE("You bolt the metal armor into place.")) build_step = 3 icon_state = "turret_frame_3_[case_sprite_set]" return TRUE @@ -888,7 +888,7 @@ if(!WT.isOn()) return TRUE if(WT.get_fuel() < 5) //uses up 5 fuel. - to_chat(user, "You need more fuel to complete this task.") + to_chat(user, SPAN_NOTICE("You need more fuel to complete this task.")) return TRUE playsound(loc, pick('sound/items/Welder.ogg', 'sound/items/welder_pry.ogg'), 50, 1) @@ -908,9 +908,9 @@ if(isrobot(user)) return TRUE if(!user.unEquip(attacking_item)) - to_chat(user, "\the [attacking_item] is stuck to your hand, you cannot put it in \the [src]") + to_chat(user, SPAN_NOTICE("\the [attacking_item] is stuck to your hand, you cannot put it in \the [src]")) return TRUE - to_chat(user, "You install [attacking_item] into the turret.") + to_chat(user, SPAN_NOTICE("You install [attacking_item] into the turret.")) user.drop_from_inventory(E,src) target_type = /obj/machinery/porta_turret installation = attacking_item //installation becomes I.type @@ -921,7 +921,7 @@ else if(attacking_item.iswrench()) attacking_item.play_tool_sound(get_turf(src), 100) - to_chat(user, "You remove the turret's metal armor bolts.") + to_chat(user, SPAN_NOTICE("You remove the turret's metal armor bolts.")) build_step = 2 icon_state = "turret_frame_2_[case_sprite_set]" return TRUE @@ -930,9 +930,9 @@ if(isprox(attacking_item)) build_step = 5 if(!user.unEquip(attacking_item)) - to_chat(user, "\the [attacking_item] is stuck to your hand, you cannot put it in \the [src]") + to_chat(user, SPAN_NOTICE("\the [attacking_item] is stuck to your hand, you cannot put it in \the [src]")) return TRUE - to_chat(user, "You add the prox sensor to the turret.") + to_chat(user, SPAN_NOTICE("You add the prox sensor to the turret.")) qdel(attacking_item) return TRUE @@ -942,7 +942,7 @@ if(attacking_item.isscrewdriver()) attacking_item.play_tool_sound(get_turf(src), 100) build_step = 6 - to_chat(user, "You close the access hatch.") + to_chat(user, SPAN_NOTICE("You close the access hatch.")) icon_state = "turret_frame_5a_[case_sprite_set]" AddOverlays("turret_[E.turret_sprite_set]_off") AddOverlays("turret_frame_5b_[case_sprite_set]") @@ -954,20 +954,20 @@ if(istype(attacking_item, /obj/item/stack/material) && attacking_item.get_material_name() == DEFAULT_WALL_MATERIAL) var/obj/item/stack/M = attacking_item if(M.use(2)) - to_chat(user, "You add some metal armor to the exterior frame.") + to_chat(user, SPAN_NOTICE("You add some metal armor to the exterior frame.")) ClearOverlays() icon_state = "turret_frame_5a_[case_sprite_set]" AddOverlays("turret_[E.turret_sprite_set]_off") AddOverlays("turret_frame_5c_[case_sprite_set]") build_step = 7 else - to_chat(user, "You need two sheets of metal to continue construction.") + to_chat(user, SPAN_WARNING("You need two sheets of metal to continue construction.")) return TRUE else if(attacking_item.isscrewdriver()) attacking_item.play_tool_sound(get_turf(src), 100) build_step = 5 - to_chat(user, "You open the access hatch.") + to_chat(user, SPAN_NOTICE("You open the access hatch.")) ClearOverlays() icon_state = "turret_frame_4_[case_sprite_set]" AddOverlays("turret_[E.turret_sprite_set]_off") @@ -978,14 +978,14 @@ var/obj/item/weldingtool/WT = attacking_item if(!WT.isOn()) return if(WT.get_fuel() < 5) - to_chat(user, "You need more fuel to complete this task.") + to_chat(user, SPAN_NOTICE("You need more fuel to complete this task.")) playsound(loc, pick('sound/items/Welder.ogg', 'sound/items/welder_pry.ogg'), 50, 1) if(attacking_item.use_tool(src, user, 30, volume = 50)) if(!src || !WT.use(5, user)) return build_step = 8 - to_chat(user, "You weld the turret's armor down.") + to_chat(user, SPAN_NOTICE("You weld the turret's armor down.")) //The final step: create a full turret var/obj/machinery/porta_turret/Turret = new target_type(loc) @@ -1022,7 +1022,7 @@ else if(attacking_item.iscrowbar()) attacking_item.play_tool_sound(get_turf(src), 75) - to_chat(user, "You pry off the turret's exterior armor.") + to_chat(user, SPAN_NOTICE("You pry off the turret's exterior armor.")) new /obj/item/stack/material/steel(loc, 2) build_step = 6 ClearOverlays() @@ -1049,10 +1049,10 @@ installation = null ClearOverlays() icon_state = "turret_frame_3_[case_sprite_set]" - to_chat(user, "You remove [E.name] from the turret frame.") + to_chat(user, SPAN_NOTICE("You remove [E.name] from the turret frame.")) if(5) - to_chat(user, "You remove the prox sensor from the turret frame.") + to_chat(user, SPAN_NOTICE("You remove the prox sensor from the turret frame.")) new /obj/item/device/assembly/prox_sensor(loc) build_step = 4 diff --git a/code/game/machinery/requests_console.dm b/code/game/machinery/requests_console.dm index 215b7bacad2..d6f110729aa 100644 --- a/code/game/machinery/requests_console.dm +++ b/code/game/machinery/requests_console.dm @@ -363,22 +363,22 @@ var/list/obj/machinery/requests_console/allConsoles = list() if(href_list["linkpda"]) var/obj/item/modular_computer/pda = usr.get_active_hand() if (!pda || !istype(pda)) - to_chat(usr, "You need to be holding a handheld computer to link it.") + to_chat(usr, SPAN_WARNING("You need to be holding a handheld computer to link it.")) else if (pda in alert_pdas) - to_chat(usr, "\The [pda] appears to be already linked.") + to_chat(usr, SPAN_NOTICE("\The [pda] appears to be already linked.")) //Update the name real quick. alert_pdas[pda] = pda.name else alert_pdas += pda alert_pdas[pda] = pda.name - to_chat(usr, "You link \the [pda] to \the [src]. It will now ping upon the arrival of a request to this machine.") + to_chat(usr, SPAN_NOTICE("You link \the [pda] to \the [src]. It will now ping upon the arrival of a request to this machine.")) // Unlink a PDA. if(href_list["unlink"]) var/obj/item/modular_computer/pda = locate(href_list["unlink"]) if (pda && istype(pda)) if (pda in alert_pdas) - to_chat(usr, "You unlink [alert_pdas[pda]] from \the [src]. It will no longer be notified of new requests.") + to_chat(usr, SPAN_NOTICE("You unlink [alert_pdas[pda]] from \the [src]. It will no longer be notified of new requests.")) alert_pdas -= pda // Sort the forms. @@ -442,7 +442,7 @@ var/list/obj/machinery/requests_console/allConsoles = list() // Toggle the paper bin lid. if(href_list["setLid"]) lid = !lid - to_chat(usr, "You [lid ? "open" : "close"] the lid.") + to_chat(usr, SPAN_NOTICE("You [lid ? "open" : "close"] the lid.")) updateUsrDialog() return @@ -462,14 +462,14 @@ var/list/obj/machinery/requests_console/allConsoles = list() announcement.announcer = ID.assignment ? "[ID.assignment] [ID.registered_name]" : ID.registered_name else reset_message() - to_chat(user, "You are not authorized to send announcements.") + to_chat(user, SPAN_WARNING("You are not authorized to send announcements.")) updateUsrDialog() return TRUE else if (istype(attacking_item, /obj/item/stamp)) if(inoperable(MAINT)) return if(screen == RCS_MESSAUTH) var/obj/item/stamp/T = attacking_item - msgStamped = text("Stamped with the [T.name]") + msgStamped = SPAN_NOTICE("Stamped with the [T.name]") updateUsrDialog() return TRUE else if (istype(attacking_item, /obj/item/paper_bundle)) diff --git a/code/game/machinery/ringer.dm b/code/game/machinery/ringer.dm index d49c66cd40f..ef4a7262e69 100644 --- a/code/game/machinery/ringer.dm +++ b/code/game/machinery/ringer.dm @@ -119,13 +119,13 @@ pixel_x = 8; if (istype(attacking_item, /obj/item/modular_computer)) if(!check_access(attacking_item)) - to_chat(user, "Access Denied.") + to_chat(user, SPAN_WARNING("Access Denied.")) return TRUE else if (attacking_item in rings_pdas) - to_chat(user, "You unlink \the [attacking_item] from \the [src].") + to_chat(user, SPAN_NOTICE("You unlink \the [attacking_item] from \the [src].")) remove_pda(attacking_item) return TRUE - to_chat(user, "You link \the [attacking_item] to \the [src], it will now ring upon someone using \the [src].") + to_chat(user, SPAN_NOTICE("You link \the [attacking_item] to \the [src], it will now ring upon someone using \the [src].")) rings_pdas += attacking_item // WONT FIX: This requires callbacks fuck my dick. GLOB.destroyed_event.register(attacking_item, src, PROC_REF(remove_pda)) @@ -144,11 +144,11 @@ pixel_x = 8; return if(!on) - to_chat(user, "You turn \the [src] on, now all PDAs linked to it will be notified.") + to_chat(user, SPAN_NOTICE("You turn \the [src] on, now all PDAs linked to it will be notified.")) on = TRUE else - to_chat(user, "You turn \the [src] off.") + to_chat(user, SPAN_NOTICE("You turn \the [src] off.")) on = FALSE update_icon() diff --git a/code/game/machinery/seed_extractor.dm b/code/game/machinery/seed_extractor.dm index 74430506679..684cae3ca39 100644 --- a/code/game/machinery/seed_extractor.dm +++ b/code/game/machinery/seed_extractor.dm @@ -22,7 +22,7 @@ new_seed_type = SSplants.seeds[F.plantname] if(new_seed_type) - to_chat(user, "You extract some seeds from [attacking_item].") + to_chat(user, SPAN_NOTICE("You extract some seeds from [attacking_item].")) var/produce = rand(1,4) for(var/i = 0;i<=produce;i++) var/obj/item/seeds/seeds = new(get_turf(src)) @@ -38,7 +38,7 @@ else if(istype(attacking_item, /obj/item/stack/tile/grass)) var/obj/item/stack/tile/grass/S = attacking_item if (S.use(1)) - to_chat(user, "You extract some seeds from the grass tile.") + to_chat(user, SPAN_NOTICE("You extract some seeds from the grass tile.")) new /obj/item/seeds/grassseed(loc) return TRUE diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm index 4127606c66e..cde9f9235ae 100644 --- a/code/game/machinery/suit_storage_unit.dm +++ b/code/game/machinery/suit_storage_unit.dm @@ -121,7 +121,7 @@ dat+= "Maintenance panel controls
" dat+= "The panel is ridden with controls, button and meters, labeled in strange signs and symbols that
you cannot understand. Probably the manufactoring world's language.
Among other things, a few controls catch your eye.

" dat+= text("A small dial with a \"ë\" symbol embroidded on it. It's pointing towards a gauge that reads [].
Turn towards []
",(src.issuperUV ? "15nm" : "185nm"),src,(src.issuperUV ? "185nm" : "15nm") ) - dat+= text("A thick old-style button, with 2 grimy LED lights next to it. The [] LED is on.
Press button",(src.safetieson? "GREEN" : "RED"),src) + dat+= text("A thick old-style button, with 2 grimy LED lights next to it. The [] LED is on.
Press button",(src.safetieson? "GREEN" : SPAN_WARNING("RED")),src) dat+= text("

Close panel", user) //user << browse(dat, "window=ssu_m_panel;size=400x500") //onclose(user, "ssu_m_panel") @@ -233,7 +233,7 @@ if(!protected) playsound(src.loc, /singleton/sound_category/spark_sound, 75, 1, -1) - to_chat(user, "You try to touch the controls but you get zapped. There must be a short circuit somewhere.") + to_chat(user, SPAN_WARNING("You try to touch the controls but you get zapped. There must be a short circuit somewhere.")) return*/ else //welp, the guy is protected, we can continue if(src.issuperUV) @@ -259,7 +259,7 @@ if(!protected) playsound(src.loc, /singleton/sound_category/spark_sound, 75, 1, -1) - to_chat(user, "You try to touch the controls but you get zapped. There must be a short circuit somewhere.") + to_chat(user, SPAN_WARNING("You try to touch the controls but you get zapped. There must be a short circuit somewhere.")) return*/ else to_chat(user, "You push the button. The coloured LED next to it changes.") @@ -311,7 +311,7 @@ /obj/machinery/suit_storage_unit/proc/toggle_open(mob/user as mob) if(src.islocked || src.isUV) - to_chat(user, "Unable to open unit.") + to_chat(user, SPAN_WARNING("Unable to open unit.")) return if(src.OCCUPANT) src.eject_occupant(user) @@ -322,7 +322,7 @@ /obj/machinery/suit_storage_unit/proc/toggle_lock(mob/user as mob) if(src.OCCUPANT && src.safetieson) - to_chat(user, "The Unit's safety protocols disallow locking when a biological form is detected inside its compartments.") + to_chat(user, SPAN_WARNING("The Unit's safety protocols disallow locking when a biological form is detected inside its compartments.")) return if(src.isopen) return @@ -334,10 +334,10 @@ if(src.isUV || src.isopen) //I'm bored of all these sanity checks return if(src.OCCUPANT && src.safetieson) - to_chat(user, "WARNING: Biological entity detected in the confines of the Unit's storage. Cannot initiate cycle.") + to_chat(user, SPAN_WARNING("WARNING: Biological entity detected in the confines of the Unit's storage. Cannot initiate cycle.")) return if(!src.HELMET && !src.MASK && !src.SUIT && !src.OCCUPANT ) //shit's empty yo - to_chat(user, "Unit storage bays empty. Nothing to disinfect -- Aborting.") + to_chat(user, SPAN_WARNING("Unit storage bays empty. Nothing to disinfect -- Aborting.")) return to_chat(user, "You start the Unit's cauterisation cycle.") src.cycletime_left = 20 @@ -378,7 +378,7 @@ src.SUIT = null if(src.MASK) src.MASK = null - visible_message("With a loud whining noise, [src]'s door grinds open. Puffs of ashen smoke come out of its chamber.", range = 3) + visible_message(SPAN_WARNING("With a loud whining noise, [src]'s door grinds open. Puffs of ashen smoke come out of its chamber."), range = 3) src.isbroken = 1 src.isopen = 1 src.islocked = 0 @@ -402,9 +402,9 @@ if (src.OCCUPANT.client) if(user != OCCUPANT) - to_chat(OCCUPANT, "The machine kicks you out!") + to_chat(OCCUPANT, SPAN_NOTICE("The machine kicks you out!")) if(user.loc != src.loc) - to_chat(OCCUPANT, "You leave the not-so-cozy confines of the SSU.") + to_chat(OCCUPANT, SPAN_NOTICE("You leave the not-so-cozy confines of the SSU.")) src.OCCUPANT.client.eye = src.OCCUPANT.client.mob src.OCCUPANT.client.perspective = MOB_PERSPECTIVE @@ -438,15 +438,17 @@ if (usr.stat != 0) return if (!src.isopen) - to_chat(usr, "The unit's doors are shut.") + to_chat(usr, SPAN_WARNING("The unit's doors are shut.")) return if (!src.ispowered || src.isbroken) - to_chat(usr, "The unit is not operational.") + to_chat(usr, SPAN_WARNING("The unit is not operational.")) return if ( (src.OCCUPANT) || (src.HELMET) || (src.SUIT) ) - to_chat(usr, "It's too cluttered inside for you to fit in!") + to_chat(usr, SPAN_WARNING("It's too cluttered inside for you to fit in!")) return - usr.visible_message("[usr] starts squeezing into [src]!", "You start squeezing into [src]!", range = 3) + usr.visible_message(SPAN_NOTICE("[usr] starts squeezing into [src]!"), + SPAN_NOTICE("You start squeezing into [src]!"), range = 3) + if(do_after(usr, 1 SECOND, src, DO_UNIQUE)) usr.stop_pulling() usr.client.perspective = EYE_PERSPECTIVE @@ -470,7 +472,7 @@ if(attacking_item.isscrewdriver()) src.panelopen = !src.panelopen attacking_item.play_tool_sound(get_turf(src), 100) - to_chat(user, text("You [] the unit's maintenance panel.",(src.panelopen ? "open up" : "close") )) + to_chat(user, SPAN_NOTICE("You [src.panelopen ? "open up" : "close"] the unit's maintenance panel.")) update_icon() src.updateUsrDialog() return TRUE @@ -479,15 +481,18 @@ if( !(ismob(G.affecting)) ) return TRUE if (!src.isopen) - to_chat(usr, "The unit's doors are shut.") + to_chat(usr, SPAN_WARNING("The unit's doors are shut.")) return TRUE if (!src.ispowered || src.isbroken) - to_chat(usr, "The unit is not operational.") + to_chat(usr, SPAN_WARNING("The unit is not operational.")) return TRUE if ( (src.OCCUPANT) || (src.HELMET) || (src.SUIT) ) //Unit needs to be absolutely empty - to_chat(user, "The unit's storage area is too cluttered.") + to_chat(user, SPAN_WARNING("The unit's storage area is too cluttered.")) return TRUE - user.visible_message("[user] starts putting [G.affecting] into [src].", "You start putting [G.affecting] into [src].", range = 3) + user.visible_message(SPAN_NOTICE("[user] starts putting [G.affecting] into [src]."), + SPAN_NOTICE("You start putting [G.affecting] into [src]."), + range = 3) + if(do_after(user, 2 SECONDS, src, DO_UNIQUE)) if(!G || !G.affecting) return TRUE //derpcheck var/mob/M = G.affecting @@ -508,7 +513,7 @@ return TRUE var/obj/item/clothing/suit/space/S = attacking_item if(src.SUIT) - to_chat(user, "The unit already contains a suit.") + to_chat(user, SPAN_NOTICE("The unit already contains a suit.")) return TRUE to_chat(user, "You load the [S.name] into the storage compartment.") user.drop_from_inventory(S,src) @@ -521,7 +526,7 @@ return TRUE var/obj/item/clothing/head/helmet/H = attacking_item if(src.HELMET) - to_chat(user, "The unit already contains a helmet.") + to_chat(user, SPAN_NOTICE("The unit already contains a helmet.")) return TRUE to_chat(user, "You load the [H.name] into the storage compartment.") user.drop_from_inventory(H,src) @@ -534,7 +539,7 @@ return TRUE var/obj/item/clothing/mask/M = attacking_item if(src.MASK) - to_chat(user, "The unit already contains a mask.") + to_chat(user, SPAN_NOTICE("The unit already contains a mask.")) return TRUE to_chat(user, "You load the [M.name] into the storage compartment.") user.drop_from_inventory(M,src) diff --git a/code/game/machinery/supplybeacon.dm b/code/game/machinery/supplybeacon.dm index 42399e38a99..5eac101f958 100644 --- a/code/game/machinery/supplybeacon.dm +++ b/code/game/machinery/supplybeacon.dm @@ -12,11 +12,11 @@ deploy_path = /obj/machinery/power/supply_beacon/supermatter /obj/item/supply_beacon/attack_self(var/mob/user) - user.visible_message("\The [user] begins setting up \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] begins setting up \the [src].")) if(!do_after(user, deploy_time, src, DO_REPAIR_CONSTRUCT)) return var/obj/S = new deploy_path(get_turf(user)) - user.visible_message("\The [user] deploys \the [S].") + user.visible_message(SPAN_NOTICE("\The [user] deploys \the [S].")) user.unEquip(src) qdel(src) @@ -46,10 +46,10 @@ /obj/machinery/power/supply_beacon/attackby(obj/item/attacking_item, mob/user) if(!use_power && attacking_item.iswrench()) if(!anchored && !connect_to_network()) - to_chat(user, "This device must be placed over an exposed cable.") + to_chat(user, SPAN_WARNING("This device must be placed over an exposed cable.")) return TRUE anchored = !anchored - user.visible_message("\The [user] [anchored ? "secures" : "unsecures"] \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] [anchored ? "secures" : "unsecures"] \the [src].")) attacking_item.play_tool_sound(get_turf(src), 50) return TRUE return ..() @@ -58,13 +58,13 @@ if(expended) update_use_power(POWER_USE_OFF) - to_chat(user, "\The [src] has used up its charge.") + to_chat(user, SPAN_WARNING("\The [src] has used up its charge.")) return if(anchored) return use_power ? deactivate(user) : activate(user) else - to_chat(user, "You need to secure the beacon with a wrench first!") + to_chat(user, SPAN_WARNING("You need to secure the beacon with a wrench first!")) return /obj/machinery/power/supply_beacon/attack_ai(var/mob/user) @@ -75,11 +75,11 @@ if(expended) return if(surplus() < 500) - if(user) to_chat(user, "The connected wire doesn't have enough current.") + if(user) to_chat(user, SPAN_NOTICE("The connected wire doesn't have enough current.")) return set_light(3, 3, "#00CCAA") icon_state = "beacon_active" - if(user) to_chat(user, "You activate the beacon. The supply drop will be dispatched soon.") + if(user) to_chat(user, SPAN_NOTICE("You activate the beacon. The supply drop will be dispatched soon.")) /obj/machinery/power/supply_beacon/proc/deactivate(var/mob/user, var/permanent) if(permanent) @@ -90,7 +90,7 @@ set_light(0) update_use_power(POWER_USE_OFF) target_drop_time = null - if(user) to_chat(user, "You deactivate the beacon.") + if(user) to_chat(user, SPAN_NOTICE("You deactivate the beacon.")) /obj/machinery/power/supply_beacon/Destroy() if(use_power) diff --git a/code/game/machinery/telecomms/computers/logbrowser.dm b/code/game/machinery/telecomms/computers/logbrowser.dm index 2ba04a1e3a6..98057742986 100644 --- a/code/game/machinery/telecomms/computers/logbrowser.dm +++ b/code/game/machinery/telecomms/computers/logbrowser.dm @@ -114,7 +114,7 @@ if(href_list["delete"]) if(!src.allowed(usr) && !emagged) - to_chat(usr, "ACCESS DENIED.") + to_chat(usr, SPAN_WARNING("ACCESS DENIED.")) return if(SelectedServer) @@ -151,7 +151,7 @@ if(attacking_item.isscrewdriver()) if(attacking_item.use_tool(src, user, 20, volume = 50)) if (src.stat & BROKEN) - to_chat(user, "The broken glass falls out.") + to_chat(user, SPAN_NOTICE("The broken glass falls out.")) var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) new /obj/item/material/shard( src.loc ) var/obj/item/circuitboard/comm_server/M = new /obj/item/circuitboard/comm_server( A ) @@ -163,7 +163,7 @@ A.anchored = 1 qdel(src) else - to_chat(user, "You disconnect the monitor.") + to_chat(user, SPAN_NOTICE("You disconnect the monitor.")) var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) var/obj/item/circuitboard/comm_server/M = new /obj/item/circuitboard/comm_server( A ) for (var/obj/C in src) @@ -180,7 +180,7 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - to_chat(user, "You you disable the security protocols") + to_chat(user, SPAN_NOTICE("You you disable the security protocols")) src.updateUsrDialog() return 1 diff --git a/code/game/machinery/telecomms/computers/message.dm b/code/game/machinery/telecomms/computers/message.dm index b9e32eb7142..22245478c32 100644 --- a/code/game/machinery/telecomms/computers/message.dm +++ b/code/game/machinery/telecomms/computers/message.dm @@ -18,15 +18,15 @@ //Sparks effect - For emag var/datum/effect_system/sparks/spark_system //Messages - Saves me time if I want to change something. - var/noserver = "ALERT: No server detected." - var/incorrectkey = "ALERT: Incorrect decryption key!" - var/defaultmsg = "Welcome. Please select an option." - var/rebootmsg = "%$&(£: Critical %$$@ Error // !RestArting! - ?pLeaSe wAit!" + var/noserver = SPAN_ALERT("ALERT: No server detected.") + var/incorrectkey = SPAN_WARNING("ALERT: Incorrect decryption key!") + var/defaultmsg = SPAN_NOTICE("Welcome. Please select an option.") + var/rebootmsg = SPAN_WARNING("%$&(£: Critical %$$@ Error // !RestArting! - ?pLeaSe wAit!") //Computer properties var/screen = 0 // 0 = Main menu, 1 = Message Logs, 2 = Hacked screen, 3 = Custom Message var/hacking = 0 // Is it being hacked into by the AI/Cyborg var/emag = 0 // When it is emagged. - var/message = "System bootup complete. Please select an option." // The message that shows on the main menu. + var/message = SPAN_NOTICE("System bootup complete. Please select an option.") // The message that shows on the main menu. var/auth = 0 // Are they authenticated? var/optioncount = 8 // Custom Message Properties @@ -59,7 +59,7 @@ return TRUE if(attacking_item.isscrewdriver() && emag) //Stops people from just unscrewing the monitor and putting it back to get the console working again. - to_chat(user, "It is too hot to mess with!") + to_chat(user, SPAN_WARNING("It is too hot to mess with!")) return TRUE return ..() @@ -81,7 +81,7 @@ update_icon() return TRUE else - to_chat(user, "A no server error appears on the screen.") + to_chat(user, SPAN_NOTICE("A no server error appears on the screen.")) /obj/machinery/computer/message_monitor/update_icon() if(emag || hacking) @@ -104,10 +104,10 @@ if(auth) dat += "

\[Authenticated\] /" - dat += " Server Power: [src.linkedServer && src.linkedServer.use_power ? "\[On\]":"\[Off\]"]

" + dat += " Server Power: [src.linkedServer && src.linkedServer.use_power ? "\[On\]":SPAN_WARNING("\[Off\]")]" else dat += "

\[Unauthenticated\] /" - dat += " Server Power: [src.linkedServer && src.linkedServer.use_power ? "\[On\]":"\[Off\]"]

" + dat += " Server Power: [src.linkedServer && src.linkedServer.use_power ? "\[On\]":SPAN_WARNING("\[Off\]")]" if(hacking || emag) screen = 2 @@ -244,10 +244,10 @@ /obj/machinery/computer/message_monitor/proc/BruteForce(mob/user as mob) if(isnull(linkedServer)) - to_chat(user, "Could not complete brute-force: Linked Server Disconnected!") + to_chat(user, SPAN_WARNING("Could not complete brute-force: Linked Server Disconnected!")) else var/currentKey = src.linkedServer.decryptkey - to_chat(user, "Brute-force completed! The key is '[currentKey]'.") + to_chat(user, SPAN_WARNING("Brute-force completed! The key is '[currentKey]'.")) src.hacking = 0 update_icon() src.screen = 0 // Return the screen back to normal @@ -288,10 +288,10 @@ if(message_servers.len > 1) linkedServer = input(usr,"Please select a server.", "Select a server.", null) as null|anything in message_servers - message = "NOTICE: Server selected." + message = SPAN_ALERT("NOTICE: Server selected.") else if(message_servers.len > 0) linkedServer = message_servers[1] - message = "NOTICE: Only Single Server Detected - Server selected." + message = SPAN_NOTICE("NOTICE: Only Single Server Detected - Server selected.") else message = noserver @@ -310,7 +310,7 @@ else if(auth) src.linkedServer.pda_msgs = list() - message = "NOTICE: Logs cleared." + message = SPAN_NOTICE("NOTICE: Logs cleared.") //Clears the requests console logs - KEY REQUIRED if (href_list["clearr"]) if(!linkedServer || (src.linkedServer.stat & (NOPOWER|BROKEN))) @@ -318,7 +318,7 @@ else if(auth) src.linkedServer.rc_msgs = list() - message = "NOTICE: Logs cleared." + message = SPAN_NOTICE("NOTICE: Logs cleared.") //Change the password - KEY REQUIRED if (href_list["pass"]) if(!linkedServer || (src.linkedServer.stat & (NOPOWER|BROKEN))) @@ -330,12 +330,12 @@ if(src.linkedServer.decryptkey == dkey) var/newkey = trim(input(usr,"Please enter the new key (3 - 16 characters max):")) if(length(newkey) <= 3) - message = "NOTICE: Decryption key too short!" + message = SPAN_NOTICE("NOTICE: Decryption key too short!") else if(length(newkey) > 16) - message = "NOTICE: Decryption key too long!" + message = SPAN_NOTICE("NOTICE: Decryption key too long!") else if(newkey && newkey != "") src.linkedServer.decryptkey = newkey - message = "NOTICE: Decryption key set." + message = SPAN_NOTICE("NOTICE: Decryption key set.") else message = incorrectkey @@ -357,7 +357,7 @@ message = noserver else //if(istype(href_list["delete"], /datum/data_pda_msg)) src.linkedServer.pda_msgs -= locate(href_list["delete"]) - message = "NOTICE: Log Deleted!" + message = SPAN_NOTICE("NOTICE: Log Deleted!") //Delete the requests console log. if (href_list["deleter"]) //Are they on the view logs screen? @@ -366,7 +366,7 @@ message = noserver else //if(istype(href_list["delete"], /datum/data_pda_msg)) src.linkedServer.rc_msgs -= locate(href_list["deleter"]) - message = "NOTICE: Log Deleted!" + message = SPAN_NOTICE("NOTICE: Log Deleted!") //Create a custom message if (href_list["msg"]) if(src.linkedServer == null || (src.linkedServer.stat & (NOPOWER|BROKEN))) diff --git a/code/game/machinery/telecomms/computers/telemonitor.dm b/code/game/machinery/telecomms/computers/telemonitor.dm index 1a503872ca6..ce3b64a4fdc 100644 --- a/code/game/machinery/telecomms/computers/telemonitor.dm +++ b/code/game/machinery/telecomms/computers/telemonitor.dm @@ -128,7 +128,7 @@ if(attacking_item.isscrewdriver()) if(attacking_item.use_tool(src, user, 20, volume = 50)) if (src.stat & BROKEN) - to_chat(user, "The broken glass falls out.") + to_chat(user, SPAN_NOTICE("The broken glass falls out.")) var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) new /obj/item/material/shard( src.loc ) var/obj/item/circuitboard/comm_monitor/M = new /obj/item/circuitboard/comm_monitor( A ) @@ -140,7 +140,7 @@ A.anchored = 1 qdel(src) else - to_chat(user, "You disconnect the monitor.") + to_chat(user, SPAN_NOTICE("You disconnect the monitor.")) var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) var/obj/item/circuitboard/comm_monitor/M = new /obj/item/circuitboard/comm_monitor( A ) for (var/obj/C in src) @@ -157,6 +157,6 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - to_chat(user, "You you disable the security protocols") + to_chat(user, SPAN_NOTICE("You you disable the security protocols")) src.updateUsrDialog() return 1 diff --git a/code/game/machinery/telecomms/computers/traffic_control.dm b/code/game/machinery/telecomms/computers/traffic_control.dm index c71f3e3b076..ad69b1b370d 100644 --- a/code/game/machinery/telecomms/computers/traffic_control.dm +++ b/code/game/machinery/telecomms/computers/traffic_control.dm @@ -120,7 +120,7 @@ add_fingerprint(usr) usr.set_machine(src) if(!src.allowed(usr) && !emagged) - to_chat(usr, "ACCESS DENIED.") + to_chat(usr, SPAN_WARNING("ACCESS DENIED.")) return if(href_list["viewserver"]) @@ -205,7 +205,7 @@ if(attacking_item.isscrewdriver()) if(attacking_item.use_tool(src, user, 20, volume = 50)) if (src.stat & BROKEN) - to_chat(user, "The broken glass falls out.") + to_chat(user, SPAN_NOTICE("The broken glass falls out.")) var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) new /obj/item/material/shard( src.loc ) var/obj/item/circuitboard/comm_traffic/M = new /obj/item/circuitboard/comm_traffic( A ) @@ -217,7 +217,7 @@ A.anchored = 1 qdel(src) else - to_chat(user, "You disconnect the monitor.") + to_chat(user, SPAN_NOTICE("You disconnect the monitor.")) var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) var/obj/item/circuitboard/comm_traffic/M = new /obj/item/circuitboard/comm_traffic( A ) for (var/obj/C in src) @@ -234,6 +234,6 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - to_chat(user, "You you disable the security protocols") + to_chat(user, SPAN_NOTICE("You you disable the security protocols")) src.updateUsrDialog() return 1 diff --git a/code/game/machinery/telecomms/machine_interactions.dm b/code/game/machinery/telecomms/machine_interactions.dm index b7dd969749b..467194cb0b5 100644 --- a/code/game/machinery/telecomms/machine_interactions.dm +++ b/code/game/machinery/telecomms/machine_interactions.dm @@ -59,11 +59,11 @@ if(attacking_item.iscoil()) var/obj/item/stack/cable_coil/A = attacking_item if (A.use(5)) - to_chat(user, "You insert the cables.") + to_chat(user, SPAN_NOTICE("You insert the cables.")) construct_op-- stat &= ~BROKEN // the machine's not borked anymore! else - to_chat(user, "You need five coils of wire for this.") + to_chat(user, SPAN_WARNING("You need five coils of wire for this.")) . = TRUE if(attacking_item.iscrowbar()) to_chat(user, SPAN_NOTICE("You begin prying out the circuit board's components...")) diff --git a/code/game/machinery/transformer.dm b/code/game/machinery/transformer.dm index c93b54a9796..f55196acbf8 100644 --- a/code/game/machinery/transformer.dm +++ b/code/game/machinery/transformer.dm @@ -54,19 +54,19 @@ playsound(src.loc, 'sound/items/Welder.ogg', 50, 1) use_power_oneoff(6000) // Use a lot of power. message_admins("[key_name(H)] has been borgified by the Autoborger 5000.") - visible_message("The machine makes a series of loud sounds as it starts to replace [H]'s organs and limbs with robotic parts!") - to_chat(H, "You feel a horrible pain as the machine you entered starts to rip you apart and replace your limbs and organs!") - to_chat(H, " You lose consciousness for a brief moment before waking up with a whole new body...") + visible_message(SPAN_DANGER("The machine makes a series of loud sounds as it starts to replace [H]'s organs and limbs with robotic parts!")) + to_chat(H, SPAN_DANGER("You feel a horrible pain as the machine you entered starts to rip you apart and replace your limbs and organs!")) + to_chat(H, SPAN_DANGER(" You lose consciousness for a brief moment before waking up with a whole new body...")) playsound(src.loc, 'sound/machines/ping.ogg', 50, 0) canuse = FALSE addtimer(CALLBACK(src, PROC_REF(rearm)), 120 SECONDS) H.Robotize() else playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 50, 0) - visible_message("The machine displays an error message reading it is still making the required parts.") + visible_message(SPAN_NOTICE("The machine displays an error message reading it is still making the required parts.")) return /obj/machinery/transformer/proc/rearm() - src.visible_message("\The [src] pings!") + src.visible_message(SPAN_NOTICE("\The [src] pings!")) playsound(src.loc, 'sound/machines/ping.ogg', 50, 0) canuse = TRUE diff --git a/code/game/machinery/turret_control.dm b/code/game/machinery/turret_control.dm index 532774ef937..001ea8f78bf 100644 --- a/code/game/machinery/turret_control.dm +++ b/code/game/machinery/turret_control.dm @@ -100,16 +100,16 @@ if(attacking_item.GetID()) if(src.allowed(usr)) if(emagged) - to_chat(user, "The turret control is unresponsive.") + to_chat(user, SPAN_NOTICE("The turret control is unresponsive.")) else locked = !locked - to_chat(user, "You [ locked ? "lock" : "unlock"] the panel.") + to_chat(user, SPAN_NOTICE("You [ locked ? "lock" : "unlock"] the panel.")) return TRUE return ..() /obj/machinery/turretid/emag_act(var/remaining_charges, var/mob/user) if(!emagged) - to_chat(user, "You short out the turret controls' access analysis module.") + to_chat(user, SPAN_DANGER("You short out the turret controls' access analysis module.")) emagged = 1 locked = 0 ailock = 0 diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 4b93baaf75e..31b3d11a0ea 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -304,7 +304,7 @@ user.drop_from_inventory(attacking_item,src) coin = attacking_item categories |= CAT_COIN - to_chat(user, "You insert \the [attacking_item] into \the [src].") + to_chat(user, SPAN_NOTICE("You insert \the [attacking_item] into \the [src].")) SStgui.update_uis(src) return TRUE else if(attacking_item.iswrench()) @@ -315,7 +315,7 @@ user.visible_message("[user] begins [anchored? "un" : ""]securing \the [src] [anchored? "from" : "to"] the floor.", SPAN_NOTICE("You start [anchored? "un" : ""]securing \the [src] [anchored? "from" : "to"] the floor.")) if(attacking_item.use_tool(src, user, 20, volume = 50)) if(!src) return - to_chat(user, "You [anchored? "un" : ""]secured \the [src]!") + to_chat(user, SPAN_NOTICE("You [anchored? "un" : ""]secured \the [src]!")) anchored = !anchored power_change() return TRUE @@ -326,24 +326,24 @@ if(VR.charges) if(VR.vend_id == vend_id) VR.restock_inventory(src) - to_chat(user, "You restock \the [src] with \the [VR]!") + to_chat(user, SPAN_NOTICE("You restock \the [src] with \the [VR]!")) if(!VR.charges) - to_chat(user, "\The [VR] is depleted!") + to_chat(user, SPAN_WARNING("\The [VR] is depleted!")) else - to_chat(user, "\The [VR] is not stocked for this type of vendor!") + to_chat(user, SPAN_WARNING("\The [VR] is not stocked for this type of vendor!")) else - to_chat(user, "\The [VR] is depleted!") + to_chat(user, SPAN_WARNING("\The [VR] is depleted!")) else - to_chat(user, "You must open \the [src]'s maintenance panel first!") + to_chat(user, SPAN_WARNING("You must open \the [src]'s maintenance panel first!")) return TRUE else if(!is_borg_item(attacking_item)) if(!restock_items) - to_chat(user, "\the [src] can not be restocked manually!") + to_chat(user, SPAN_WARNING("\the [src] can not be restocked manually!")) return TRUE for(var/path in restock_blocked_items) if(istype(attacking_item, path)) - to_chat(user, "\the [src] does not accept this item!") + to_chat(user, SPAN_WARNING("\the [src] does not accept this item!")) return TRUE for(var/datum/data/vending_product/R in product_records) @@ -665,7 +665,7 @@ return if((!allowed(usr)) && !emagged && scan_id) //For SECURE VENDING MACHINES YEAH - to_chat(usr, "Access denied.") //Unless emagged of course) + to_chat(usr, SPAN_WARNING("Access denied.")) //Unless emagged of course) flick(src.icon_deny, src) set_light(initial(light_range), initial(light_power), COLOR_RED_LIGHT) return @@ -741,7 +741,7 @@ /obj/machinery/vending/proc/stock(var/datum/data/vending_product/R, var/mob/user) - to_chat(user, "You insert \the [R.product_name] in the product receptor.") + to_chat(user, SPAN_NOTICE("You insert \the [R.product_name] in the product receptor.")) R.amount++ SStgui.update_uis(src) @@ -836,7 +836,7 @@ intent_message(MACHINE_SOUND) throw_item.vendor_action(src) INVOKE_ASYNC(throw_item, TYPE_PROC_REF(/atom/movable, throw_at), target, rand(3, 10), rand(1, 3), src) - src.visible_message("[src] launches [throw_item.name] at [target.name]!") + src.visible_message(SPAN_WARNING("[src] launches [throw_item.name] at [target.name]!")) return 1 // screens go over the lighting layer, so googly eyes go under them diff --git a/code/game/machinery/washing_machine.dm b/code/game/machinery/washing_machine.dm index 19452669344..a053c6ae7fa 100644 --- a/code/game/machinery/washing_machine.dm +++ b/code/game/machinery/washing_machine.dm @@ -105,9 +105,9 @@ user.drop_from_inventory(attacking_item,src) state = 3 else - to_chat(user, "You can't put the item in right now.") + to_chat(user, SPAN_NOTICE("You can't put the item in right now.")) else - to_chat(user, "The washing machine is full.") + to_chat(user, SPAN_NOTICE("The washing machine is full.")) update_icon() return ..() @@ -128,7 +128,7 @@ crayon = null state = 1 if(5) - to_chat(user, "\The [src] is busy.") + to_chat(user, SPAN_WARNING("\The [src] is busy.")) if(6) state = 7 if(7) diff --git a/code/game/objects/effects/decals/Cleanable/humans.dm b/code/game/objects/effects/decals/Cleanable/humans.dm index 8e44a4a4e3f..567005f0e8b 100644 --- a/code/game/objects/effects/decals/Cleanable/humans.dm +++ b/code/game/objects/effects/decals/Cleanable/humans.dm @@ -144,7 +144,7 @@ return var/taken = rand(1,amount) amount -= taken - to_chat(user, "You get some of \the [src] on your hands.") + to_chat(user, SPAN_NOTICE("You get some of \the [src] on your hands.")) LAZYINITLIST(user.blood_DNA) if (blood_DNA) diff --git a/code/game/objects/effects/decals/Cleanable/misc.dm b/code/game/objects/effects/decals/Cleanable/misc.dm index dbdc9839576..f102fdfb5a5 100644 --- a/code/game/objects/effects/decals/Cleanable/misc.dm +++ b/code/game/objects/effects/decals/Cleanable/misc.dm @@ -16,7 +16,7 @@ anchored = TRUE /obj/effect/decal/cleanable/ash/attack_hand(mob/user) - to_chat(user, "[src] sifts through your fingers.") + to_chat(user, SPAN_NOTICE("[src] sifts through your fingers.")) var/turf/simulated/floor/F = get_turf(src) if (istype(F)) F.dirt += 4 diff --git a/code/game/objects/effects/decals/contraband.dm b/code/game/objects/effects/decals/contraband.dm index 8944826f8fd..89962c6b2a2 100644 --- a/code/game/objects/effects/decals/contraband.dm +++ b/code/game/objects/effects/decals/contraband.dm @@ -33,12 +33,12 @@ //must place on a wall and user must not be inside a closet/mecha/whatever var/turf/W = A if (!iswall(W) || !isturf(user.loc)) - to_chat(user, "You can't place this here!") + to_chat(user, SPAN_WARNING("You can't place this here!")) return var/placement_dir = get_dir(user, W) if (!(placement_dir in GLOB.cardinal)) - to_chat(user, "You must stand directly in front of the wall you wish to place that on.") + to_chat(user, SPAN_WARNING("You must stand directly in front of the wall you wish to place that on.")) return //just check if there is a poster on or adjacent to the wall @@ -54,10 +54,10 @@ break if (stuff_on_wall) - to_chat(user, "There is already a poster there!") + to_chat(user, SPAN_NOTICE("There is already a poster there!")) return - to_chat(user, "You start placing the poster on the wall...") //Looks like it's uncluttered enough. Place the poster.) + to_chat(user, SPAN_NOTICE("You start placing the poster on the wall...")) //Looks like it's uncluttered enough. Place the poster.) var/obj/structure/sign/poster/P = new(user.loc, get_dir(user, W), serial_number) @@ -71,7 +71,7 @@ return if (iswall(W) && !QDELETED(user) && P.loc == user.loc) - to_chat(user, "You place the poster!") + to_chat(user, SPAN_NOTICE("You place the poster!")) else P.roll_and_drop(P.loc) @@ -130,10 +130,10 @@ if(attacking_item.iswirecutter()) playsound(loc, 'sound/items/Wirecutter.ogg', 100, 1) if(ruined) - to_chat(user, "You remove the remnants of the poster.") + to_chat(user, SPAN_NOTICE("You remove the remnants of the poster.")) qdel(src) else - to_chat(user, "You carefully remove the poster from the wall.") + to_chat(user, SPAN_NOTICE("You carefully remove the poster from the wall.")) roll_and_drop(user.loc) return TRUE @@ -147,7 +147,7 @@ if(alert("Do I want to rip the poster from the wall?","You think...","Yes","No") == "Yes") if(ruined || !user.Adjacent(src)) return - visible_message("\The [user] rips \the [src] in a single, decisive motion!" ) + visible_message(SPAN_WARNING("\The [user] rips \the [src] in a single, decisive motion!") ) playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1) ruined = TRUE icon_state = "poster_ripped" diff --git a/code/game/objects/effects/effect_system.dm b/code/game/objects/effects/effect_system.dm index c743ffee4ca..e9a7fdcd42f 100644 --- a/code/game/objects/effects/effect_system.dm +++ b/code/game/objects/effects/effect_system.dm @@ -354,10 +354,10 @@ steam.start() -- spawns the effect spark(location, 2) for(var/mob/M in viewers(5, location)) - to_chat(M, "The solution violently explodes.") + to_chat(M, SPAN_WARNING("The solution violently explodes.")) for(var/mob/M in viewers(1, location)) if (prob (50 * amount)) - to_chat(M, "The explosion knocks you down.") + to_chat(M, SPAN_WARNING("The explosion knocks you down.")) M.Weaken(rand(1,5)) return else @@ -380,7 +380,7 @@ steam.start() -- spawns the effect flash = (amount/4) * flashing_factor for(var/mob/M in viewers(8, location)) - to_chat(M, "The solution violently explodes.") + to_chat(M, SPAN_WARNING("The solution violently explodes.")) explosion( location, diff --git a/code/game/objects/effects/gibs.dm b/code/game/objects/effects/gibs.dm index 5a041df813d..2a643f5cf43 100644 --- a/code/game/objects/effects/gibs.dm +++ b/code/game/objects/effects/gibs.dm @@ -21,7 +21,7 @@ /obj/effect/gibspawner/proc/Gib(atom/location, var/list/viruses = list(), var/datum/dna/MobDNA = null) if(gibtypes.len != gibamounts.len || gibamounts.len != gibdirections.len) - to_world("Gib list length mismatch!") + to_world(SPAN_WARNING("Gib list length mismatch!")) return var/obj/effect/decal/cleanable/blood/gibs/gib = null diff --git a/code/game/objects/effects/spiders.dm b/code/game/objects/effects/spiders.dm index 79e11601705..4ac48a2c1d9 100644 --- a/code/game/objects/effects/spiders.dm +++ b/code/game/objects/effects/spiders.dm @@ -120,7 +120,7 @@ else if (O && O.owner && prob(1)) if(world.time > last_itch + 30 SECONDS) last_itch = world.time - to_chat(O.owner, "Your [O.name] itches.") + to_chat(O.owner, SPAN_NOTICE("Your [O.name] itches.")) /obj/effect/spider/eggcluster/proc/take_damage(var/damage) health -= damage diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 54b3ba5656f..5db136b1c4f 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -371,10 +371,10 @@ if (user.hand) temp = H.organs_by_name[BP_L_HAND] if(temp && !temp.is_usable()) - to_chat(user, "You try to move your [temp.name], but cannot!") + to_chat(user, SPAN_NOTICE("You try to move your [temp.name], but cannot!")) return if(!temp) - to_chat(user, "You try to use your hand, but realize it is no longer attached!") + to_chat(user, SPAN_NOTICE("You try to use your hand, but realize it is no longer attached!")) return if(!do_additional_pickup_checks(user)) return @@ -638,7 +638,7 @@ var/list/global/slot_flags_enumeration = list( if(slot_l_store, slot_r_store) if(!H.w_uniform && (slot_w_uniform in mob_equip)) if(!disable_warning) - to_chat(H, "You need a jumpsuit before you can attach this [name].") + to_chat(H, SPAN_WARNING("You need a jumpsuit before you can attach this [name].")) return 0 if( w_class > 2 && !(slot_flags & SLOT_POCKET) ) return 0 @@ -650,11 +650,11 @@ var/list/global/slot_flags_enumeration = list( return TRUE if(!H.wear_suit && (slot_wear_suit in mob_equip)) if(!disable_warning) - to_chat(H, "You need a suit before you can attach this [name].") + to_chat(H, SPAN_WARNING("You need a suit before you can attach this [name].")) return 0 if(H.wear_suit && !length(H.wear_suit.allowed)) if(!disable_warning) - to_chat(usr, "You somehow have a suit with no defined allowed items for suit storage, stop that.") + to_chat(usr, SPAN_WARNING("You somehow have a suit with no defined allowed items for suit storage, stop that.")) return 0 if(!istype(src, /obj/item/modular_computer) && !ispen() && !is_type_in_list(src, H.wear_suit.allowed)) return 0 @@ -683,12 +683,12 @@ var/list/global/slot_flags_enumeration = list( if(slot_tie) if(!H.w_uniform && (slot_w_uniform in mob_equip)) if(!disable_warning) - to_chat(H, "You need a jumpsuit before you can attach this [name].") + to_chat(H, SPAN_WARNING("You need a jumpsuit before you can attach this [name].")) return 0 var/obj/item/clothing/under/uniform = H.w_uniform if(LAZYLEN(uniform.accessories) && !uniform.can_attach_accessory(src)) if (!disable_warning) - to_chat(H, "You already have an accessory of this type attached to your [uniform].") + to_chat(H, SPAN_WARNING("You already have an accessory of this type attached to your [uniform].")) return 0 return 1 @@ -746,30 +746,30 @@ var/list/global/slot_flags_enumeration = list( if(H != user) M.visible_message( - "[user] stabs [M] in the [eyes.singular_name] with [src]!", - "[user] stabs you in the [eyes.singular_name] with [src]!" + SPAN_DANGER("[user] stabs [M] in the [eyes.singular_name] with [src]!"), + SPAN_DANGER("[user] stabs you in the [eyes.singular_name] with [src]!") ) else user.visible_message( \ - "[user] stabs themself in the [eyes.singular_name] with [src]!", \ - "You stab yourself in the [eyes.singular_name] with [src]!" \ + SPAN_DANGER("[user] stabs themself in the [eyes.singular_name] with [src]!"), \ + SPAN_DANGER("You stab yourself in the [eyes.singular_name] with [src]!") \ ) eyes.take_damage(rand(3,4)) if(eyes.damage >= eyes.min_bruised_damage) if(H.stat != DEAD) if(eyes.robotic <= 1) //robot eyes bleeding might be a bit silly - to_chat(H, "Your eyes start to bleed profusely!") + to_chat(H, SPAN_DANGER("Your eyes start to bleed profusely!")) if(prob(50)) if(H.stat != DEAD) - to_chat(H, "You drop what you're holding and clutch at your eyes!") + to_chat(H, SPAN_WARNING("You drop what you're holding and clutch at your eyes!")) H.drop_item() H.eye_blurry += 10 H.Paralyse(1) H.Weaken(4) if (eyes.damage >= eyes.min_broken_damage) if(H.stat != DEAD) - to_chat(H, "You go blind!") + to_chat(H, SPAN_WARNING("You go blind!")) var/obj/item/organ/external/affecting = H.get_organ(BP_HEAD) if(affecting.take_damage(7, 0, damage_flags(), src)) H.UpdateDamageIcon() @@ -1000,7 +1000,7 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out. hit_mobs++ if(hit_mobs) - to_chat(user, "You used \the [src] to attack [hit_mobs] other target\s!") + to_chat(user, SPAN_DANGER("You used \the [src] to attack [hit_mobs] other target\s!")) cleaving = FALSE // Used for non-adjacent melee attacks with specific weapons capable of reaching more than one tile. diff --git a/code/game/objects/items/airbubble.dm b/code/game/objects/items/airbubble.dm index 1e5bb8be538..c464918040d 100644 --- a/code/game/objects/items/airbubble.dm +++ b/code/game/objects/items/airbubble.dm @@ -22,14 +22,14 @@ return user.visible_message( - "[user] begins deploying \the [src].", - "You begin deplyoing \the [src]." + SPAN_WARNING("[user] begins deploying \the [src]."), + SPAN_NOTICE("You begin deplyoing \the [src].") ) if (!do_after(user, 0.45 SECONDS)) return user.visible_message( - "[user] deployed \the [src]." , - "You deploy \the [src]." + SPAN_WARNING("[user] deployed \the [src].") , + SPAN_NOTICE("You deploy \the [src].") ) var/obj/structure/closet/airbubble/R if(syndie) @@ -85,13 +85,13 @@ /obj/structure/closet/airbubble/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() if(!isnull(internal_tank)) - . += "\The [src] has [internal_tank] attached, that displays [round(internal_tank.air_contents.return_pressure() ? internal_tank.air_contents.return_pressure() : 0)] KPa." + . += SPAN_NOTICE("\The [src] has [internal_tank] attached, that displays [round(internal_tank.air_contents.return_pressure() ? internal_tank.air_contents.return_pressure() : 0)] KPa.") else - . += "\The [src] has no tank attached." + . += SPAN_NOTICE("\The [src] has no tank attached.") if (cell) . += "\The [src] has [cell] attached, the charge meter reads [round(cell.percent())]%." else - . += "[src] has no power cell installed." + . += SPAN_WARNING("[src] has no power cell installed.") /obj/structure/closet/airbubble/can_open() if(zipped) @@ -109,7 +109,7 @@ for(var/mob/living/M in T) mob_num += 1 if(mob_num > 1) - to_chat(user, "[src] can only fit one person.") + to_chat(user, SPAN_WARNING("[src] can only fit one person.")) return 0 return 1 @@ -141,7 +141,7 @@ /obj/structure/closet/airbubble/toggle(mob/user as mob) if(!(opened ? close(user) : open(user))) - to_chat(user, "It won't budge!") + to_chat(user, SPAN_NOTICE("It won't budge!")) return update_icon() return 1 @@ -191,17 +191,17 @@ if(opened) return 0 if(contents.len > 1) return 0 if(cell) - to_chat(usr, "[src] can not be folded with [cell] attached to it.") + to_chat(usr, SPAN_WARNING("[src] can not be folded with [cell] attached to it.")) return usr.visible_message( - "[usr] begins folding up the [src.name].", - "You begin folding up the [src.name]." + SPAN_WARNING("[usr] begins folding up the [src.name]."), + SPAN_NOTICE("You begin folding up the [src.name].") ) if (!do_after(usr, 0.45 SECONDS)) return usr.visible_message( - "[usr] folds up the [src.name]." , - "You fold up the [src.name]." + SPAN_WARNING("[usr] folds up the [src.name].") , + SPAN_NOTICE("You fold up the [src.name].") ) var/obj/item/airbubble/bag if(syndie) @@ -220,11 +220,11 @@ bag.desc = "Special air bubble designed to protect people inside of it from decompressed environments. Has an integrated cooling unit to preserve a stable temperature inside. Requires a power cell to operate." if(syndie) bag.desc += " This does not seem like a regular color scheme" - bag.desc += " It appears to be poorly hand folded." + bag.desc += SPAN_NOTICE(" It appears to be poorly hand folded.") if(ripped) bag.icon_state = "[icon_state]_man_folded_ripped" - bag.desc += " It has hole in it! Maybe you shouldn't use it!" + bag.desc += SPAN_DANGER(" It has hole in it! Maybe you shouldn't use it!") else bag.icon_state = "[icon_state]_man_folded" qdel(src) @@ -263,8 +263,8 @@ escapee.next_move = world.time + 100 escapee.last_special = world.time + 100 - to_chat(escapee, "You lean on the back of \the [src] and start punching internal wall with your legs. (this will take about [breakout_time] minutes)") - visible_message("\The [src] begins to shake violently! Something is terring it from the inside!") + to_chat(escapee, SPAN_WARNING("You lean on the back of \the [src] and start punching internal wall with your legs. (this will take about [breakout_time] minutes)")) + visible_message(SPAN_DANGER("\The [src] begins to shake violently! Something is terring it from the inside!")) var/time = 360 * breakout_time * 2 breakout = TRUE @@ -274,13 +274,13 @@ return breakout = FALSE - to_chat(escapee, "You successfully break out! Tearing the bubble's walls!") // holy shit this is hilarious - visible_message("\the [escapee] successfully broke out of \the [src]! Tearing the bubble's walls!") + to_chat(escapee, SPAN_WARNING("You successfully break out! Tearing the bubble's walls!")) // holy shit this is hilarious + visible_message(SPAN_DANGER("\the [escapee] successfully broke out of \the [src]! Tearing the bubble's walls!")) var/sound_to_play = pick(list('sound/items/rip1.ogg', 'sound/items/rip2.ogg')) playsound(loc, sound_to_play, 100, 1) break_open() shake_animation() - desc += " It has hole in it! Maybe you shouldn't use it!" + desc += SPAN_DANGER(" It has hole in it! Maybe you shouldn't use it!") // We are out finally, the bubble is ripped. So dump everything out from it. Especially air and user. /obj/structure/closet/airbubble/break_open() @@ -306,19 +306,19 @@ return if(!ishuman(usr)) - to_chat(usr, "This mob type can't use this verb.") + to_chat(usr, SPAN_WARNING("This mob type can't use this verb.")) return if(!isnull(internal_tank)) usr.visible_message( - "[usr] is setting [src] internals.", - "You are settting [src] internals." + SPAN_WARNING("[usr] is setting [src] internals."), + SPAN_NOTICE("You are settting [src] internals.") ) if (!do_after(usr, 2 SECONDS, src)) return usr.visible_message( - "[usr] has set [src] internals." , - "You set [src] internals." + SPAN_WARNING("[usr] has set [src] internals.") , + SPAN_NOTICE("You set [src] internals.") ) if(use_internal_tank) STOP_PROCESSING(SSfast_process, src) @@ -327,7 +327,7 @@ use_internal_tank = !use_internal_tank update_icon() else - to_chat(usr, "[src] has no internal tank.") + to_chat(usr, SPAN_NOTICE("[src] has no internal tank.")) // Remove tank from bubble /obj/structure/closet/airbubble/verb/take_tank() @@ -339,19 +339,19 @@ return if(!ishuman(usr)) - to_chat(usr, "This mob type can't use this verb.") + to_chat(usr, SPAN_WARNING("This mob type can't use this verb.")) return if(!isnull(internal_tank)) usr.visible_message( - "[usr] is removing [internal_tank] from [src].", - "You are removing [internal_tank] from [src]." + SPAN_WARNING("[usr] is removing [internal_tank] from [src]."), + SPAN_NOTICE("You are removing [internal_tank] from [src].") ) if (!do_after(usr, 2 SECONDS, src)) return usr.visible_message( - "[usr] has removed [internal_tank] from [src].", - "You removed [internal_tank] from [src]." + SPAN_WARNING("[usr] has removed [internal_tank] from [src]."), + SPAN_NOTICE("You removed [internal_tank] from [src].") ) for(var/obj/I in src) I.forceMove(usr.loc) @@ -360,7 +360,7 @@ update_icon() STOP_PROCESSING(SSfast_process, src) else - to_chat(usr, "[src] has no tank.") + to_chat(usr, SPAN_WARNING("[src] has no tank.")) // Remove tank from bubble /obj/structure/closet/airbubble/verb/take_cell() @@ -372,47 +372,47 @@ return if(!ishuman(usr)) - to_chat(usr, "This mob type can't use this verb.") + to_chat(usr, SPAN_WARNING("This mob type can't use this verb.")) return if(!isnull(cell)) usr.visible_message( - "[usr] is removing [cell] from [src].", - "You are removing [cell] from [src]." + SPAN_WARNING("[usr] is removing [cell] from [src]."), + SPAN_NOTICE("You are removing [cell] from [src].") ) if (!do_after(usr, 2 SECONDS, src)) return usr.visible_message( - "[usr] has removed [cell] from [src].", - "You removed [cell] from [src]." + SPAN_WARNING("[usr] has removed [cell] from [src]."), + SPAN_NOTICE("You removed [cell] from [src].") ) cell.forceMove(usr.loc) cell = null cooling = FALSE update_icon() else - to_chat(usr, "[src] has no power cell.") + to_chat(usr, SPAN_WARNING("[src] has no power cell.")) // Handle most of things: restraining, cutting restrains, attaching tank. /obj/structure/closet/airbubble/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/tank)) if(!isnull(use_internal_tank)) user.visible_message( - "[user] is attaching [attacking_item] to [src].", - "You are attaching [attacking_item] to [src]." + SPAN_WARNING("[user] is attaching [attacking_item] to [src]."), + SPAN_NOTICE("You are attaching [attacking_item] to [src].") ) if (!do_after(user, 2 SECONDS, src)) return user.visible_message( - "[user] has attached [attacking_item] to [src].", - "You attached [attacking_item] to [src]." + SPAN_WARNING("[user] has attached [attacking_item] to [src]."), + SPAN_NOTICE("You attached [attacking_item] to [src].") ) internal_tank = attacking_item user.drop_from_inventory(attacking_item, src) use_internal_tank = 1 START_PROCESSING(SSfast_process, src) else - to_chat(user, "[src] already has a tank attached.") + to_chat(user, SPAN_WARNING("[src] already has a tank attached.")) return TRUE if(opened) if(istype(attacking_item, /obj/item/grab)) @@ -425,11 +425,11 @@ return TRUE else if(istype(attacking_item, /obj/item/handcuffs/cable)) if(zipped) - to_chat(user, "[src]'s zipper is already restrained.") + to_chat(user, SPAN_WARNING("[src]'s zipper is already restrained.")) return TRUE user.visible_message( - "[user] begins putting cable restrains on zipper of [src].", - "You begin putting cable restrains on zipper of [src]." + SPAN_WARNING("[user] begins putting cable restrains on zipper of [src]."), + SPAN_NOTICE("You begin putting cable restrains on zipper of [src].") ) playsound(loc, 'sound/weapons/cablecuff.ogg', 50, 1) if (!do_after(user, 3 SECONDS, src, extra_checks = CALLBACK(src, PROC_REF(is_closed)))) @@ -437,8 +437,8 @@ zipped = !zipped update_icon() user.visible_message( - "[src]'s zipper have been zipped by [user].", - "You put restrains on [src]'s zipper." + SPAN_WARNING("[src]'s zipper have been zipped by [user]."), + SPAN_NOTICE("You put restrains on [src]'s zipper.") ) qdel(attacking_item) @@ -446,12 +446,12 @@ return TRUE else if(attacking_item.iswirecutter()) if(!zipped) - to_chat(user, "[src] has no cables to cut.") + to_chat(user, SPAN_WARNING("[src] has no cables to cut.")) attack_hand(user) return TRUE user.visible_message( - "[user] begins cutting cable restrains on zipper of [src].", - "You begin cutting cable restrains on zipper of [src]." + SPAN_WARNING("[user] begins cutting cable restrains on zipper of [src]."), + SPAN_NOTICE("You begin cutting cable restrains on zipper of [src].") ) playsound(loc, 'sound/items/Wirecutter.ogg', 50, 1) if (!do_after(user, 3 SECONDS, src, extra_checks = CALLBACK(src, PROC_REF(is_closed)))) @@ -459,26 +459,26 @@ zipped = !zipped update_icon() user.visible_message( - "[src] zipper's cable restrains has been cut by [user].", - "You cut cable restrains on [src]'s zipper." + SPAN_WARNING("[src] zipper's cable restrains has been cut by [user]."), + SPAN_NOTICE("You cut cable restrains on [src]'s zipper.") ) new/obj/item/handcuffs/cable(src.loc) update_icon() return TRUE else if(istype(attacking_item, /obj/item/cell)) if(!isnull(cell)) - to_chat(user, "[src] already has [cell] attached to it.") + to_chat(user, SPAN_WARNING("[src] already has [cell] attached to it.")) attack_hand(user) return TRUE user.visible_message( - "[user] is attaching [attacking_item] to [src].", - "You are attaching [attacking_item] to [src]." + SPAN_WARNING("[user] is attaching [attacking_item] to [src]."), + SPAN_NOTICE("You are attaching [attacking_item] to [src].") ) if (!do_after(user, 2 SECONDS, src)) return TRUE user.visible_message( - "[user] has attached [attacking_item] to [src].", - "You attached [attacking_item] to [src]." + SPAN_WARNING("[user] has attached [attacking_item] to [src]."), + SPAN_NOTICE("You attached [attacking_item] to [src].") ) cell = attacking_item cooling = TRUE @@ -514,11 +514,11 @@ if(tank_air.return_pressure() <= 1) STOP_PROCESSING(SSfast_process, src) use_internal_tank = !use_internal_tank - visible_message("You hear last bits of air coming out from [src]'s hole.Maybe the tank run out of air?") + visible_message(SPAN_WARNING("You hear last bits of air coming out from [src]'s hole.Maybe the tank run out of air?")) playsound(loc, 'sound/effects/wind/wind_2_1.ogg', 100, 1) return inside_air = get_turf_air() - visible_message("You hear air howling from [src]'s hole. Maybe it is good to shut off valve on the internals tank?") + visible_message(SPAN_WARNING("You hear air howling from [src]'s hole. Maybe it is good to shut off valve on the internals tank?")) playsound(loc, 'sound/effects/wind/wind_2_2.ogg', 100, 1) var/transfer_moles = inside_air.volume/(inside_air.temperature * R_IDEAL_GAS_EQUATION) diff --git a/code/game/objects/items/apc_frame.dm b/code/game/objects/items/apc_frame.dm index 96b39ff549d..3342d0e8a2f 100644 --- a/code/game/objects/items/apc_frame.dm +++ b/code/game/objects/items/apc_frame.dm @@ -23,17 +23,17 @@ var/turf/loc = get_turf(usr) var/area/A = loc.loc if (!istype(loc, /turf/simulated/floor)) - to_chat(usr, "APC cannot be placed on this spot.") + to_chat(usr, SPAN_WARNING("APC cannot be placed on this spot.")) return if (A.requires_power == 0 || istype(A, /area/space) || istype(A, /area/mine/unexplored) || istype(A, /area/mine/explored)) - to_chat(usr, "APC cannot be placed in this area.") + to_chat(usr, SPAN_WARNING("APC cannot be placed in this area.")) return if (A.get_apc()) - to_chat(usr, "This area already has an APC.") + to_chat(usr, SPAN_WARNING("This area already has an APC.")) return //only one APC per area for(var/obj/machinery/power/terminal/T in loc) if (T.master) - to_chat(usr, "There is another network terminal here.") + to_chat(usr, SPAN_WARNING("There is another network terminal here.")) return else var/obj/item/stack/cable_coil/C = new /obj/item/stack/cable_coil(loc) diff --git a/code/game/objects/items/contraband.dm b/code/game/objects/items/contraband.dm index e1867aa07e7..212b294bb95 100644 --- a/code/game/objects/items/contraband.dm +++ b/code/game/objects/items/contraband.dm @@ -144,7 +144,7 @@ var/mob/living/carbon/human/H = user var/obj/item/blocked = H.check_mouth_coverage() if(blocked) - to_chat(user, "\The [blocked] is in the way!") + to_chat(user, SPAN_WARNING("\The [blocked] is in the way!")) return TRUE if(!H.check_has_mouth()) to_chat(user, SPAN_WARNING("You cannot seem to snort \the [src].")) diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm index ffe692f9fc1..92876c2d0c9 100644 --- a/code/game/objects/items/crayons.dm +++ b/code/game/objects/items/crayons.dm @@ -111,7 +111,7 @@ var/originaloc = user.loc var/drawtype = input("Choose what you'd like to draw.", "Crayon scribbles") in list("graffiti","rune","letter","arrow") if (user.loc != originaloc) - to_chat(user, "You moved!") + to_chat(user, SPAN_NOTICE("You moved!")) return switch(drawtype) @@ -133,7 +133,7 @@ for(var/singleton/reagent/R in reagents_to_add) reagents.remove_reagent(R,0.5/LAZYLEN(reagents_to_add)) //using crayons reduces crayon dust in it. if(!reagents.has_all_reagents(reagents_to_add)) - to_chat(user, "You used up your crayon!") + to_chat(user, SPAN_WARNING("You used up your crayon!")) qdel(src) return @@ -141,11 +141,13 @@ if(ishuman(user)) var/mob/living/carbon/human/H = user if(H.check_has_mouth()) - user.visible_message("[user] takes a bite of their crayon and swallows it.", "You take a bite of your crayon and swallow it.") + user.visible_message(SPAN_NOTICE("[user] takes a bite of their crayon and swallows it."), + SPAN_NOTICE("You take a bite of your crayon and swallow it.")) + user.adjustNutritionLoss(-1) reagents.trans_to_mob(user, 2, CHEM_INGEST) if(reagents.total_volume <= 0) - user.visible_message("[user] finished their crayon!", "You ate your crayon!") + user.visible_message(SPAN_NOTICE("[user] finished their crayon!"), SPAN_WARNING("You ate your crayon!")) qdel(src) return TRUE else diff --git a/code/game/objects/items/devices/aicard.dm b/code/game/objects/items/devices/aicard.dm index fa66a1d7ca4..d8022701d25 100644 --- a/code/game/objects/items/devices/aicard.dm +++ b/code/game/objects/items/devices/aicard.dm @@ -93,13 +93,13 @@ . = TRUE if ("radio") carded_ai.ai_radio.disabledAi = text2num(params["radio"]) - to_chat(carded_ai, "Your Subspace Transceiver has been [carded_ai.ai_radio.disabledAi ? "disabled" : "enabled"]!") - to_chat(usr, "You [carded_ai.ai_radio.disabledAi ? "disable" : "enable"] the AI's Subspace Transceiver.") + to_chat(carded_ai, SPAN_WARNING("Your Subspace Transceiver has been [carded_ai.ai_radio.disabledAi ? "disabled" : "enabled"]!")) + to_chat(usr, SPAN_NOTICE("You [carded_ai.ai_radio.disabledAi ? "disable" : "enable"] the AI's Subspace Transceiver.")) . = TRUE if ("wireless") carded_ai.control_disabled = text2num(params["wireless"]) - to_chat(carded_ai, "Your wireless interface has been [carded_ai.control_disabled ? "disabled" : "enabled"]!") - to_chat(usr, "You [carded_ai.control_disabled ? "disable" : "enable"] the AI's wireless interface.") + to_chat(carded_ai, SPAN_WARNING("Your wireless interface has been [carded_ai.control_disabled ? "disabled" : "enabled"]!")) + to_chat(usr, SPAN_NOTICE("You [carded_ai.control_disabled ? "disable" : "enable"] the AI's wireless interface.")) update_icon() . = TRUE diff --git a/code/game/objects/items/devices/chameleonproj.dm b/code/game/objects/items/devices/chameleonproj.dm index 7304c64812f..3ab6d5b0433 100644 --- a/code/game/objects/items/devices/chameleonproj.dm +++ b/code/game/objects/items/devices/chameleonproj.dm @@ -35,7 +35,7 @@ if(!active_dummy) if(istype(target,/obj/item) && !istype(target, /obj/item/disk/nuclear)) playsound(get_turf(src), 'sound/weapons/flash.ogg', 100, 1, -6) - to_chat(user, "Scanned [target].") + to_chat(user, SPAN_NOTICE("Scanned [target].")) saved_item = target.type saved_icon = target.icon saved_icon_state = target.icon_state @@ -49,7 +49,7 @@ playsound(get_turf(src), 'sound/effects/pop.ogg', 100, 1, -6) qdel(active_dummy) active_dummy = null - to_chat(usr, "You deactivate \the [src].") + to_chat(usr, SPAN_NOTICE("You deactivate \the [src].")) var/obj/effect/overlay/T = new /obj/effect/overlay(get_turf(src)) T.icon = 'icons/effects/effects.dmi' flick("emppulse",T) @@ -62,7 +62,7 @@ var/obj/effect/dummy/chameleon/C = new /obj/effect/dummy/chameleon(usr.loc) C.activate(O, usr, saved_icon, saved_icon_state, saved_overlays, src) qdel(O) - to_chat(usr, "You activate \the [src].") + to_chat(usr, SPAN_NOTICE("You activate \the [src].")) var/obj/effect/overlay/T = new/obj/effect/overlay(get_turf(src)) T.icon = 'icons/effects/effects.dmi' flick("emppulse",T) @@ -107,22 +107,22 @@ /obj/effect/dummy/chameleon/attackby() for(var/mob/M in src) - to_chat(M, "Your chameleon-projector deactivates.") + to_chat(M, SPAN_WARNING("Your chameleon-projector deactivates.")) master.disrupt() /obj/effect/dummy/chameleon/attack_hand() for(var/mob/M in src) - to_chat(M, "Your chameleon-projector deactivates.") + to_chat(M, SPAN_WARNING("Your chameleon-projector deactivates.")) master.disrupt() /obj/effect/dummy/chameleon/ex_act(var/severity = 2.0) for(var/mob/M in src) - to_chat(M, "Your chameleon-projector deactivates.") + to_chat(M, SPAN_WARNING("Your chameleon-projector deactivates.")) master.disrupt() /obj/effect/dummy/chameleon/bullet_act() for(var/mob/M in src) - to_chat(M, "Your chameleon-projector deactivates.") + to_chat(M, SPAN_WARNING("Your chameleon-projector deactivates.")) ..() master.disrupt() diff --git a/code/game/objects/items/devices/dociler.dm b/code/game/objects/items/devices/dociler.dm index 809220fc4d9..d5a9296c90c 100644 --- a/code/game/objects/items/devices/dociler.dm +++ b/code/game/objects/items/devices/dociler.dm @@ -14,7 +14,7 @@ /obj/item/device/dociler/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() - . += "It is currently set to [mode] docile mode." + . += SPAN_NOTICE("It is currently set to [mode] docile mode.") /obj/item/device/dociler/attack_self(var/mob/user) if(mode == "somewhat") @@ -28,11 +28,11 @@ if(!proximity) return if(!istype(L, /mob/living/simple_animal)) - to_chat(user, "\The [src] has no effect on \the [L].") + to_chat(user, SPAN_WARNING("\The [src] has no effect on \the [L].")) return if(!loaded) - to_chat(user, "\The [src] isn't loaded!") + to_chat(user, SPAN_WARNING("\The [src] isn't loaded!")) return user.visible_message("\The [user] thrusts \the [src] deep into \the [L]'s head, injecting something!") @@ -44,7 +44,7 @@ if(istype(L,/mob/living/simple_animal/hostile)) var/mob/living/simple_animal/hostile/H = L if(!H.tameable) - to_chat(user, "\The [src] has no effect on \the [L].") + to_chat(user, SPAN_WARNING("\The [src] has no effect on \the [L].")) return else H.LoseTarget() diff --git a/code/game/objects/items/devices/laserpointer.dm b/code/game/objects/items/devices/laserpointer.dm index 5016b8d5c3e..8bd3d16c17e 100644 --- a/code/game/objects/items/devices/laserpointer.dm +++ b/code/game/objects/items/devices/laserpointer.dm @@ -48,14 +48,14 @@ user.drop_item() attacking_item.forceMove(src) diode = attacking_item - to_chat(user, "You install a [diode.name] in [src].") + to_chat(user, SPAN_NOTICE("You install a [diode.name] in [src].")) else - to_chat(user, "[src] already has a laser diode.") + to_chat(user, SPAN_NOTICE("[src] already has a laser diode.")) return TRUE else if(attacking_item.isscrewdriver()) if(diode) - to_chat(user, "You remove the [diode.name] from the [src].") + to_chat(user, SPAN_NOTICE("You remove the [diode.name] from the [src].")) diode.forceMove(get_turf(user)) diode = null return TRUE @@ -70,10 +70,10 @@ if( !(user in (viewers(7,target))) ) return if (!diode) - to_chat(user, "You point \the [src] at \the [target], but nothing happens!") + to_chat(user, SPAN_NOTICE("You point \the [src] at \the [target], but nothing happens!")) return if (!user.IsAdvancedToolUser()) - to_chat(user, "You don't have the dexterity to do this!") + to_chat(user, SPAN_WARNING("You don't have the dexterity to do this!")) return add_fingerprint(user) @@ -88,23 +88,23 @@ if(prob(25)) C.emp_act(EMP_LIGHT) - selfmsg = "You hit the lens of \the [C] with \the [src], temporarily disabling the camera!" + selfmsg = SPAN_NOTICE("You hit the lens of \the [C] with \the [src], temporarily disabling the camera!") admin_attack_log(user, src,"hits the camera with a laser pointer", "EMPd a camera with a laser pointer") else - selfmsg = "You fail to hit the lens of \the [C] with \the [src]." + selfmsg = SPAN_NOTICE("You fail to hit the lens of \the [C] with \the [src].") othermsg = "[user] shines \the [src] at \the [C]." if(iscarbon(target)) if(user.zone_sel.selecting == BP_EYES) var/mob/living/carbon/C = target if(prob(30) && C.flash_act()) - selfmsg = "You blind \the [C] with \the [src]." + selfmsg = SPAN_NOTICE("You blind \the [C] with \the [src].") othermsg = "[user] shines \the [src] at \the [C]'s eyes'." C.eye_blind = 3 else - selfmsg = "You fail to blind \the [C] with \the [src]." + selfmsg = SPAN_NOTICE("You fail to blind \the [C] with \the [src].") othermsg = "[user] fails to blind \the [C] with \the [src]." //laser pointer image @@ -120,7 +120,7 @@ if(selfmsg) user.visible_message(othermsg, selfmsg) else - user.visible_message("[user] points \the [src] at \the [target].", "You point \the [src] at \the [target].") + user.visible_message("[user] points \the [src] at \the [target].", SPAN_NOTICE("You point \the [src] at \the [target].")) flick_overlay(I, showto, 15) diff --git a/code/game/objects/items/devices/magnetic_lock.dm b/code/game/objects/items/devices/magnetic_lock.dm index 014f0e3b493..dd5159d71be 100644 --- a/code/game/objects/items/devices/magnetic_lock.dm +++ b/code/game/objects/items/devices/magnetic_lock.dm @@ -80,13 +80,13 @@ . = ..() if (status == STATUS_BROKEN) - . += "It looks broken!" + . += SPAN_DANGER("It looks broken!") else if (powercell) var/power = round(powercell.charge / powercell.maxcharge * 100) - . += "The powercell is at [power]% charge." + . += SPAN_NOTICE("The powercell is at [power]% charge.") else - . += "It has no powercell to power it!" + . += SPAN_WARNING("It has no powercell to power it!") /obj/item/device/magnetic_lock/attack_hand(var/mob/user) add_fingerprint(user) @@ -103,7 +103,7 @@ detach() return TRUE else - to_chat(user, "\The [src] is locked in place!") + to_chat(user, SPAN_WARNING("\The [src] is locked in place!")) else ..() @@ -113,7 +113,7 @@ /obj/item/device/magnetic_lock/attackby(obj/item/attacking_item, mob/user) if (status == STATUS_BROKEN) - to_chat(user, "[src] is broken beyond repair!") + to_chat(user, SPAN_DANGER("[src] is broken beyond repair!")) return TRUE if (istype(attacking_item, /obj/item/card/id)) @@ -124,26 +124,28 @@ var/msg = "[attacking_item] through \the [src] and it [locked ? "locks" : "unlocks"] with a beep." var/pos_adj = "[user.name] swipes [user.get_pronoun("his")] " var/fp_adj = "You swipe your " - user.visible_message("[addtext(pos_adj, msg)]", "[addtext(fp_adj, msg)]") + user.visible_message(SPAN_WARNING("[addtext(pos_adj, msg)]"), SPAN_NOTICE("[addtext(fp_adj, msg)]")) update_icon() else playsound(src, 'sound/machines/buzz-sigh.ogg', 30, 1) to_chat(user, SPAN_WARNING("\The [src] buzzes as you swipe your [attacking_item].")) return else - to_chat(user, "You cannot swipe your [attacking_item] through [src] with it partially dismantled!") + to_chat(user, SPAN_DANGER("You cannot swipe your [attacking_item] through [src] with it partially dismantled!")) return TRUE if (istype(attacking_item, /obj/item) && user.a_intent == "harm") if (attacking_item.force >= 18) - user.visible_message("[user] bashes [src] with [attacking_item]!", "You strike [src] with [attacking_item], damaging it!") + user.visible_message(SPAN_DANGER("[user] bashes [src] with [attacking_item]!"), + SPAN_DANGER("You strike [src] with [attacking_item], damaging it!")) + takedamage(attacking_item.force) var/sound_to_play = pick(list('sound/weapons/genhit1.ogg', 'sound/weapons/genhit2.ogg', 'sound/weapons/genhit3.ogg')) playsound(loc, sound_to_play, attacking_item.force*3, 1) sound_to_play = pick(list('sound/effects/sparks1.ogg', 'sound/effects/sparks2.ogg', 'sound/effects/sparks3.ogg', 'sound/effects/sparks4.ogg')) addtimer(CALLBACK(GLOBAL_PROC, /proc/playsound, loc, sound_to_play, 30, 1), 3, TIMER_CLIENT_TIME) else - user.visible_message("[user] hits [src] with [attacking_item] but fails to damage it.", "You hit [src] with [attacking_item], [attacking_item.force >= 10 ? "and it almost makes a dent!" : "but it appears to have no visible effect."]") + user.visible_message(SPAN_DANGER("[user] hits [src] with [attacking_item] but fails to damage it."), SPAN_WARNING("You hit [src] with [attacking_item], [attacking_item.force >= 10 ? "and it almost makes a dent!" : "but it appears to have no visible effect."]")) playsound(loc, 'sound/weapons/Genhit.ogg', attacking_item.force*2.5, 1) return TRUE @@ -154,7 +156,9 @@ if (istype(attacking_item, /obj/item/card/emag)) var/obj/item/card/emag/emagcard = attacking_item emagcard.uses-- - visible_message("[src] sparks and falls off the door!", "You emag [src], frying its circuitry[status == STATUS_ACTIVE ? " and making it drop onto the floor" : ""]!") + visible_message(SPAN_DANGER("[src] sparks and falls off the door!"), + SPAN_DANGER("You emag [src], frying its circuitry[status == STATUS_ACTIVE ? " and making it drop onto the floor" : ""]!")) + status = STATUS_BROKEN if (target) @@ -281,7 +285,8 @@ /obj/item/device/magnetic_lock/proc/attachto(var/obj/machinery/door/airlock/newtarget, var/mob/user as mob) if (!check_target(newtarget, user)) return - user.visible_message("[user] starts mounting [src] onto [newtarget].", "You begin mounting [src] onto [newtarget].") + user.visible_message(SPAN_NOTICE("[user] starts mounting [src] onto [newtarget]."), + SPAN_NOTICE("You begin mounting [src] onto [newtarget].")) if (do_after(user, 3.5 SECONDS)) @@ -289,7 +294,7 @@ if(powercell) if(!powercell.charge) - to_chat(user, "\The [src] is clearly out of power.") + to_chat(user, SPAN_WARNING("\The [src] is clearly out of power.")) return var/direction = get_dir(user, newtarget) @@ -298,7 +303,7 @@ if (check_neighbor_density(get_turf(newtarget.loc), direction)) direction = turn(direction, 90) if (check_neighbor_density(get_turf(newtarget.loc), direction)) - to_chat(user, "There is something in the way of \the [newtarget]!") + to_chat(user, SPAN_WARNING("There is something in the way of \the [newtarget]!")) return if (locate(/obj/machinery/door/airlock) in oview(1, newtarget)) @@ -323,7 +328,8 @@ set_dir(reverse_direction(direction)) status = STATUS_ACTIVE attach(newtarget) - user.visible_message("[user] attached [src] onto [newtarget] and flicks it on. The magnetic lock now seals [newtarget].", "You attached [src] onto [newtarget] and switched on the magnetic lock.") + user.visible_message(SPAN_NOTICE("[user] attached [src] onto [newtarget] and flicks it on. The magnetic lock now seals [newtarget]."), + SPAN_NOTICE("You attached [src] onto [newtarget] and switched on the magnetic lock.")) return @@ -430,7 +436,7 @@ health = 0 if (health <= 0) - visible_message("[src] sparks[target ? " and falls off of \the [target]!" : "!"] It is now completely unusable!") + visible_message(SPAN_DANGER("[src] sparks[target ? " and falls off of \the [target]!" : "!"] It is now completely unusable!")) detach(0) status = STATUS_BROKEN update_icon() @@ -485,7 +491,7 @@ var/msg = "buttons on \the [src] and it [locked ? "locks" : "unlocks"] with a beep." var/pos_adj = "[usr.name] presses " var/fp_adj = "You press " - usr.visible_message("[addtext(pos_adj, msg)]", "[addtext(fp_adj, msg)]") + usr.visible_message(SPAN_WARNING("[addtext(pos_adj, msg)]"), SPAN_NOTICE("[addtext(fp_adj, msg)]")) update_icon() . = TRUE else diff --git a/code/game/objects/items/devices/modkit.dm b/code/game/objects/items/devices/modkit.dm index 65aa5d13cb3..c9cabe75fb3 100644 --- a/code/game/objects/items/devices/modkit.dm +++ b/code/game/objects/items/devices/modkit.dm @@ -132,7 +132,7 @@ return if(!parts) - to_chat(user, "This kit has no parts for this modification left.") + to_chat(user, SPAN_WARNING("This kit has no parts for this modification left.")) user.drop_from_inventory(src,W) qdel(src) return @@ -252,7 +252,7 @@ return if(!parts) - to_chat(user, "This kit has no parts for this modification left.") + to_chat(user, SPAN_WARNING("This kit has no parts for this modification left.")) user.drop_from_inventory(src,W) qdel(src) return diff --git a/code/game/objects/items/devices/multitool.dm b/code/game/objects/items/devices/multitool.dm index 517b35218b5..0148a57b9c9 100644 --- a/code/game/objects/items/devices/multitool.dm +++ b/code/game/objects/items/devices/multitool.dm @@ -173,40 +173,41 @@ /obj/item/device/multitool/proc/wire(datum/integrated_io/io, mob/user) if(!io.holder.assembly) - to_chat(user, "\The [io.holder] needs to be secured inside an assembly first.") + to_chat(user, SPAN_WARNING("\The [io.holder] needs to be secured inside an assembly first.")) return if(selected_io) if(io == selected_io) - to_chat(user, "Wiring \the [selected_io.holder]'s '[selected_io.name]' pin into itself is rather pointless.") + to_chat(user, SPAN_WARNING("Wiring \the [selected_io.holder]'s '[selected_io.name]' pin into itself is rather pointless.")) return if(io.io_type != selected_io.io_type) - to_chat(user, "Those two types of channels are incompatable. The first is a [selected_io.io_type], \ - while the second is a [io.io_type].") + to_chat(user, SPAN_WARNING("Those two types of channels are incompatable. The first is a [selected_io.io_type], \ + while the second is a [io.io_type].")) + return if(io.holder.assembly && io.holder.assembly != selected_io.holder.assembly) - to_chat(user, "Both \the [io.holder] and \the [selected_io.holder] need to be inside the same assembly.") + to_chat(user, SPAN_WARNING("Both \the [io.holder] and \the [selected_io.holder] need to be inside the same assembly.")) return selected_io.linked |= io io.linked |= selected_io - to_chat(user, "You connect \the [selected_io.holder]'s '[selected_io.name]' pin to \the [io.holder]'s '[io.name]' pin.") + to_chat(user, SPAN_NOTICE("You connect \the [selected_io.holder]'s '[selected_io.name]' pin to \the [io.holder]'s '[io.name]' pin.")) selected_io.holder.interact(user) // This is to update the UI. selected_io = null else selected_io = io - to_chat(user, "You link \the multitool to \the [selected_io.holder]'s [selected_io.name] data channel.") + to_chat(user, SPAN_NOTICE("You link \the multitool to \the [selected_io.holder]'s [selected_io.name] data channel.")) update_icon() /obj/item/device/multitool/proc/unwire(datum/integrated_io/io1, datum/integrated_io/io2, mob/user) if(!io1.linked.len || !io2.linked.len) - to_chat(user, "There is nothing connected to the data channel.") + to_chat(user, SPAN_WARNING("There is nothing connected to the data channel.")) return if(!(io1 in io2.linked) || !(io2 in io1.linked) ) - to_chat(user, "These data pins aren't connected!") + to_chat(user, SPAN_WARNING("These data pins aren't connected!")) return else io1.linked.Remove(io2) diff --git a/code/game/objects/items/devices/oxycandle.dm b/code/game/objects/items/devices/oxycandle.dm index db3e48dd58e..14d07e1c40f 100644 --- a/code/game/objects/items/devices/oxycandle.dm +++ b/code/game/objects/items/devices/oxycandle.dm @@ -18,7 +18,7 @@ /obj/item/device/oxycandle/attack_self(mob/user) if(!on) - to_chat(user, "You pull the cord and [src] ignites.") + to_chat(user, SPAN_NOTICE("You pull the cord and [src] ignites.")) light_range = brightness_on on = TRUE update_icon() diff --git a/code/game/objects/items/devices/paint_sprayer.dm b/code/game/objects/items/devices/paint_sprayer.dm index b7b24ebee8d..dc99bd7aed2 100644 --- a/code/game/objects/items/devices/paint_sprayer.dm +++ b/code/game/objects/items/devices/paint_sprayer.dm @@ -87,7 +87,7 @@ var/mob/living/heavy_vehicle/ES = A if(istype(ES)) - to_chat(user, "You can't paint an active exosuit. Dismantle it first.") + to_chat(user, SPAN_WARNING("You can't paint an active exosuit. Dismantle it first.")) return var/obj/structure/heavy_vehicle_frame/EF = A @@ -135,11 +135,11 @@ config_error = 1 if(config_error) - to_chat(user, "\The [src] flashes an error light. You might need to reconfigure it.") + to_chat(user, SPAN_WARNING("\The [src] flashes an error light. You might need to reconfigure it.")) return if(F.decals && F.decals.len > 5 && painting_decal != /obj/effect/floor_decal/reset) - to_chat(user, "\The [F] has been painted too much; you need to clear it off.") + to_chat(user, SPAN_WARNING("\The [F] has been painted too much; you need to clear it off.")) return var/painting_dir = 0 @@ -324,7 +324,7 @@ var/new_colour = input(usr, "Choose a colour.", "paintgun", paint_colour) as null|anything in preset_colors if(new_colour && new_colour != paint_colour) paint_colour = preset_colors[new_colour] - to_chat(usr, "You set \the [src] to paint with a new colour.") + to_chat(usr, SPAN_NOTICE("You set \the [src] to paint with a new colour.")) /obj/item/device/paint_sprayer/verb/choose_decal() set name = "Choose Decal" @@ -338,7 +338,7 @@ var/new_decal = tgui_input_list(usr, "Select a decal.", "Paint Sprayer", decals) if(new_decal && !isnull(decals[new_decal])) decal = new_decal - to_chat(usr, "You set \the [src] decal to '[decal]'.") + to_chat(usr, SPAN_NOTICE("You set \the [src] decal to '[decal]'.")) /obj/item/device/paint_sprayer/verb/choose_direction() set name = "Choose Direction" @@ -352,7 +352,7 @@ var/new_dir = tgui_input_list(usr, "Select a direction.", "Paint Sprayer", paint_dirs) if(new_dir && !isnull(paint_dirs[new_dir])) paint_dir = new_dir - to_chat(usr, "You set \the [src] direction to '[paint_dir]'.") + to_chat(usr, SPAN_NOTICE("You set \the [src] direction to '[paint_dir]'.")) #undef AIRLOCK_REGION_PAINT #undef AIRLOCK_REGION_STRIPE diff --git a/code/game/objects/items/devices/powersink.dm b/code/game/objects/items/devices/powersink.dm index 331c1028673..90cbbb7dff4 100644 --- a/code/game/objects/items/devices/powersink.dm +++ b/code/game/objects/items/devices/powersink.dm @@ -38,13 +38,13 @@ if(isturf(T) && !!T.is_plating()) attached = locate() in T if(!attached) - to_chat(user, "No exposed cable here to attach to.") + to_chat(user, SPAN_WARNING("No exposed cable here to attach to.")) else anchored = 1 mode = 1 - visible_message("\The [user] attaches \the [src] to the cable!") + visible_message(SPAN_NOTICE("\The [user] attaches \the [src] to the cable!")) else - to_chat(user, "\The [src] must be placed over an exposed cable to attach to it.") + to_chat(user, SPAN_WARNING("\The [src] must be placed over an exposed cable to attach to it.")) return TRUE else if (mode == 2) @@ -52,7 +52,7 @@ GLOB.processing_power_items.Remove(src) anchored = 0 mode = 0 - visible_message("\The [user] detaches \the [src] from the cable!") + visible_message(SPAN_NOTICE("\The [user] detaches \the [src] from the cable!")) set_light(0) icon_state = "powersink0" item_state = "powersink0" @@ -69,14 +69,14 @@ if(0) ..() if(1) - visible_message("\The [user] activates \the [src]!") + visible_message(SPAN_NOTICE("\The [user] activates \the [src]!")) mode = 2 icon_state = "powersink1" item_state = "powersink1" START_PROCESSING_POWER_OBJECT(src) GLOB.processing_power_items += src if(2) //This switch option wasn't originally included. It exists now. --NeoFite - visible_message("\The [user] deactivates \the [src]!") + visible_message(SPAN_NOTICE("\The [user] deactivates \the [src]!")) mode = 1 set_light(0) icon_state = "powersink0" diff --git a/code/game/objects/items/devices/radio/electropack.dm b/code/game/objects/items/devices/radio/electropack.dm index 722b9fd969a..4d482d8b64a 100644 --- a/code/game/objects/items/devices/radio/electropack.dm +++ b/code/game/objects/items/devices/radio/electropack.dm @@ -17,7 +17,7 @@ /obj/item/device/radio/electropack/attack_hand(mob/user as mob) if(src == user.back) - to_chat(user, "You need help taking this off!") + to_chat(user, SPAN_NOTICE("You need help taking this off!")) return ..() @@ -71,7 +71,7 @@ M.moved_recently = 1 step(M, M.last_move) addtimer(CALLBACK(src, PROC_REF(update_move_recently)), 50 SECONDS) - to_chat(M, "You feel a sharp shock!") + to_chat(M, SPAN_DANGER("You feel a sharp shock!")) spark(M, 3) M.Weaken(10) diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index 51981f91a33..286a127e0ac 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -545,9 +545,9 @@ var/global/list/default_interrogation_channels = list( b_stat = !( b_stat ) if(!istype(src, /obj/item/device/radio/beacon)) if (b_stat) - user.show_message("\The [src] can now be attached and modified!") + user.show_message(SPAN_NOTICE("\The [src] can now be attached and modified!")) else - user.show_message("\The [src] can no longer be modified or attached!") + user.show_message(SPAN_NOTICE("\The [src] can no longer be modified or attached!")) updateDialog() //Foreach goto(83) add_fingerprint(user) @@ -674,9 +674,9 @@ var/global/list/default_interrogation_channels = list( if(enable_subspace_transmission != subspace_transmission) subspace_transmission = !subspace_transmission if(subspace_transmission) - to_chat(usr, "Subspace Transmission is enabled") + to_chat(usr, SPAN_NOTICE("Subspace Transmission is enabled")) else - to_chat(usr, "Subspace Transmission is disabled") + to_chat(usr, SPAN_NOTICE("Subspace Transmission is disabled")) if(subspace_transmission == 0)//Simple as fuck, clears the channel list to prevent talking/listening over them if subspace transmission is disabled channels = list() @@ -689,10 +689,10 @@ var/global/list/default_interrogation_channels = list( shut_up = !shut_up if(shut_up) canhear_range = 0 - to_chat(usr, "Loadspeaker disabled.") + to_chat(usr, SPAN_NOTICE("Loadspeaker disabled.")) else canhear_range = 3 - to_chat(usr, "Loadspeaker enabled.") + to_chat(usr, SPAN_NOTICE("Loadspeaker enabled.")) . = 1 if(.) diff --git a/code/game/objects/items/devices/radio_jammer.dm b/code/game/objects/items/devices/radio_jammer.dm index c812cdc199b..db60efe202f 100644 --- a/code/game/objects/items/devices/radio_jammer.dm +++ b/code/game/objects/items/devices/radio_jammer.dm @@ -134,7 +134,7 @@ var/list/active_radio_jammers = list() /obj/item/device/radiojammer/improvised/attackby(obj/item/attacking_item, mob/user) if (attacking_item.isscrewdriver()) - to_chat(user, "You disassemble the improvised signal jammer.") + to_chat(user, SPAN_NOTICE("You disassemble the improvised signal jammer.")) user.put_in_hands(assembly_holder) assembly_holder.detached() user.put_in_hands(cell) diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm index 119c8b6da64..27747190857 100644 --- a/code/game/objects/items/devices/scanners.dm +++ b/code/game/objects/items/devices/scanners.dm @@ -91,20 +91,23 @@ BREATH ANALYZER /proc/health_scan_mob(var/mob/M, var/mob/living/user, var/show_limb_damage = TRUE, var/just_scan = FALSE, var/sound_scan) if(!just_scan) if (((user.is_clumsy()) || (user.mutations & DUMB)) && prob(50)) - user.visible_message("[user] runs the scanner over the floor.", "You run the scanner over the floor.", "You hear metal repeatedly clunking against the floor.") - to_chat(user, "Scan results for the ERROR:") + user.visible_message("[user] runs the scanner over the floor.", + SPAN_NOTICE("You run the scanner over the floor."), + SPAN_NOTICE("You hear metal repeatedly clunking against the floor.")) + + to_chat(user, SPAN_NOTICE("Scan results for the ERROR:")) if(sound_scan) playsound(user.loc, 'sound/items/healthscanner/healthscanner_used.ogg', 25, extrarange = SILENCED_SOUND_EXTRARANGE) return if(!user.IsAdvancedToolUser()) - to_chat(user, "You don't have the dexterity to do this!") + to_chat(user, SPAN_WARNING("You don't have the dexterity to do this!")) return - user.visible_message("[user] runs a scanner over [M].","You run the scanner over [M].") + user.visible_message("[user] runs a scanner over [M].",SPAN_NOTICE("You run the scanner over [M].")) if(!istype(M, /mob/living/carbon/human)) - to_chat(user, "This scanner is designed for humanoid patients only.") + to_chat(user, SPAN_WARNING("This scanner is designed for humanoid patients only.")) if(sound_scan) playsound(user.loc, 'sound/items/healthscanner/healthscanner_used.ogg', 25, extrarange = SILENCED_SOUND_EXTRARANGE) return @@ -112,7 +115,7 @@ BREATH ANALYZER var/mob/living/carbon/human/H = M if(H.isSynthetic() && !H.isFBP()) - to_chat(user, "This scanner is designed for organic humanoid patients only.") + to_chat(user, SPAN_WARNING("This scanner is designed for organic humanoid patients only.")) if(sound_scan) playsound(user.loc, 'sound/items/healthscanner/healthscanner_used.ogg', 25, extrarange = SILENCED_SOUND_EXTRARANGE) return @@ -163,7 +166,7 @@ BREATH ANALYZER var/pulse_result = "normal" if(H.should_have_organ(BP_HEART)) if(H.status_flags & FAKEDEATH) - pulse_result = "0" + pulse_result = SPAN_DANGER("0") else pulse_result = H.get_pulse(GETPULSE_TOOL) if(H.pulse() == PULSE_NONE) @@ -315,17 +318,17 @@ BREATH ANALYZER var/singleton/reagent/R = GET_SINGLETON(_R) if(R.scannable) print_reagent_default_message = FALSE - reagentdata["[_R]"] = " [round(REAGENT_VOLUME(H.reagents, _R), 1)]u [R.name]" + reagentdata["[_R]"] = SPAN_NOTICE(" [round(REAGENT_VOLUME(H.reagents, _R), 1)]u [R.name]") else unknown++ if(reagentdata.len) print_reagent_default_message = FALSE - dat += "Beneficial reagents detected in subject's blood:" + dat += SPAN_NOTICE("Beneficial reagents detected in subject's blood:") for(var/d in reagentdata) dat += reagentdata[d] if(unknown) print_reagent_default_message = FALSE - dat += "Warning: Unknown substance[(unknown>1)?"s":""] detected in subject's blood." + dat += SPAN_WARNING("Warning: Unknown substance[(unknown>1)?"s":""] detected in subject's blood.") var/datum/reagents/ingested = H.get_ingested_reagents() if(ingested && ingested.total_volume) @@ -334,12 +337,12 @@ BREATH ANALYZER var/singleton/reagent/R = GET_SINGLETON(_R) if(R.scannable) print_reagent_default_message = FALSE - dat += "[R.name] found in subject's stomach." + dat += SPAN_NOTICE("[R.name] found in subject's stomach.") else ++unknown if(unknown) print_reagent_default_message = FALSE - dat += "Non-medical reagent[(unknown > 1)?"s":""] found in subject's stomach." + dat += SPAN_WARNING("Non-medical reagent[(unknown > 1)?"s":""] found in subject's stomach.") if(print_reagent_default_message) dat += "No results." @@ -397,7 +400,7 @@ BREATH ANALYZER if (user.stat) return if (!usr.IsAdvancedToolUser()) - to_chat(usr, "You don't have the dexterity to do this!") + to_chat(usr, SPAN_WARNING("You don't have the dexterity to do this!")) return analyze_gases(src, user) @@ -598,18 +601,18 @@ BREATH ANALYZER /obj/item/device/breath_analyzer/attack(mob/living/carbon/human/H, mob/living/user as mob) if (!istype(H)) - to_chat(user,"You can't find a way to use \the [src] on [H]!") + to_chat(user,SPAN_WARNING("You can't find a way to use \the [src] on [H]!")) return if ( ((user.is_clumsy()) || (user.mutations & DUMB)) && prob(20)) - to_chat(user,"Your hand slips from clumsiness!") + to_chat(user,SPAN_DANGER("Your hand slips from clumsiness!")) if(!H.eyes_protected(src, FALSE)) eyestab(H,user) - to_chat(user,"Alert: No breathing detected.") + to_chat(user,SPAN_DANGER("Alert: No breathing detected.")) return if (!user.IsAdvancedToolUser()) - to_chat(user,"You don't have the dexterity to do this!") + to_chat(user,SPAN_WARNING("You don't have the dexterity to do this!")) return if(user == H && !H.can_eat(src)) @@ -620,7 +623,8 @@ BREATH ANALYZER user.setClickCooldown(DEFAULT_QUICK_COOLDOWN) user.do_attack_animation(H) - user.visible_message("[user] is trying to take a breath sample from [H].","You gently insert \the [src] into [H]'s mouth.") + user.visible_message(SPAN_NOTICE("[user] is trying to take a breath sample from [H]."), + SPAN_NOTICE("You gently insert \the [src] into [H]'s mouth.")) if (!LAZYLEN(src.other_DNA)) LAZYADD(src.other_DNA, H.dna.unique_enzymes) @@ -629,12 +633,13 @@ BREATH ANALYZER if (!do_after(user, 2 SECONDS, H, DO_UNIQUE & ~DO_BOTH_CAN_TURN)) return - user.visible_message("[user] takes a breath sample from [H].","\The [src] clicks as it finishes reading [H]'s breath sample.") + user.visible_message(SPAN_NOTICE("[user] takes a breath sample from [H]."), + SPAN_NOTICE("\The [src] clicks as it finishes reading [H]'s breath sample.")) to_chat(user,"Breath Sample Results:") if(H.stat == DEAD || H.losebreath || !H.breathing) - to_chat(user,"Alert: No breathing detected.") + to_chat(user,SPAN_DANGER("Alert: No breathing detected.")) playsound(user.loc, 'sound/items/healthscanner/healthscanner_dead.ogg', 25, extrarange = SILENCED_SOUND_EXTRARANGE) return @@ -643,22 +648,22 @@ BREATH ANALYZER to_chat(user,"Subject oxygen levels nominal.") playsound(user.loc, 'sound/items/healthscanner/healthscanner_stable.ogg', 25, extrarange = SILENCED_SOUND_EXTRARANGE) if(25 to 50) - to_chat(user,"Subject oxygen levels abnormal.") + to_chat(user,SPAN_NOTICE("Subject oxygen levels abnormal.")) playsound(user.loc, 'sound/items/healthscanner/healthscanner_danger.ogg', 25, extrarange = SHORT_RANGE_SOUND_EXTRARANGE) if(50 to INFINITY) - to_chat(user,"Severe oxygen deprivation detected.") + to_chat(user,SPAN_NOTICE("Severe oxygen deprivation detected.")) playsound(user.loc, 'sound/items/healthscanner/healthscanner_critical.ogg', 25, extrarange = SHORT_RANGE_SOUND_EXTRARANGE) var/obj/item/organ/internal/L = H.internal_organs_by_name[BP_LUNGS] if(istype(L)) if(L.is_bruised()) - to_chat(user,"Ruptured lung detected.") + to_chat(user,SPAN_WARNING("Ruptured lung detected.")) else if(L.is_damaged()) to_chat(user,"Damaged lung detected.") else to_chat(user,"Subject lung health nominal.") else - to_chat(user,"Subject lung health unknown.") + to_chat(user,SPAN_WARNING("Subject lung health unknown.")) var/additional_string = "\[NORMAL\]" var/bac = H.get_blood_alcohol() @@ -668,11 +673,11 @@ BREATH ANALYZER if(INTOX_MUSCLEIMP to INTOX_VOMIT) additional_string = "\[MODERATELY INTOXICATED\]" if(INTOX_VOMIT to INTOX_BALANCE) - additional_string = "\[HEAVILY INTOXICATED\]" + additional_string = SPAN_WARNING("\[HEAVILY INTOXICATED\]") if(INTOX_BALANCE to INTOX_DEATH) - additional_string = "\[ALCOHOL POISONING LIKELY\]" + additional_string = SPAN_WARNING("\[ALCOHOL POISONING LIKELY\]") if(INTOX_DEATH to INFINITY) - additional_string = "\[DEATH IMMINENT\]" + additional_string = SPAN_WARNING("\[DEATH IMMINENT\]") to_chat(user,"Blood Alcohol Content: [round(bac,0.01)] [additional_string]") if(H.breathing && H.breathing.total_volume) @@ -680,11 +685,11 @@ BREATH ANALYZER for(var/_R in H.breathing.reagent_volumes) var/singleton/reagent/R = GET_SINGLETON(_R) if(R.scannable) - to_chat(user,"[R.name] found in subject's respiratory system.") + to_chat(user,SPAN_NOTICE("[R.name] found in subject's respiratory system.")) else ++unknown if(unknown) - to_chat(user,"Non-medical reagent[(unknown > 1)?"s":""] found in subject's respiratory system.") + to_chat(user,SPAN_WARNING("Non-medical reagent[(unknown > 1)?"s":""] found in subject's respiratory system.")) /obj/item/device/advanced_healthanalyzer diff --git a/code/game/objects/items/devices/spy_bug.dm b/code/game/objects/items/devices/spy_bug.dm index cbd771b97e9..a9616ed7c61 100644 --- a/code/game/objects/items/devices/spy_bug.dm +++ b/code/game/objects/items/devices/spy_bug.dm @@ -95,10 +95,10 @@ /obj/item/device/spy_monitor/proc/pair(var/obj/item/device/spy_bug/SB, var/mob/living/user) if(SB.camera in cameras) - to_chat(user, "\The [SB] has been unpaired from \the [src].") + to_chat(user, SPAN_NOTICE("\The [SB] has been unpaired from \the [src].")) cameras -= SB.camera else - to_chat(user, "\The [SB] has been paired with \the [src].") + to_chat(user, SPAN_NOTICE("\The [SB] has been paired with \the [src].")) cameras += SB.camera /obj/item/device/spy_monitor/proc/view_cameras(mob/user) @@ -121,7 +121,7 @@ if(!T || !is_on_same_plane_or_station(T.z, user.z) || !selected_camera.can_use()) user.unset_machine() user.reset_view(null) - to_chat(user, "[selected_camera] unavailable.") + to_chat(user, SPAN_NOTICE("[selected_camera] unavailable.")) sleep(90) else user.set_machine(selected_camera) @@ -135,8 +135,8 @@ return if(!cameras.len) - to_chat(user, "No paired cameras detected!") - to_chat(user, "Bring a bug in contact with this device to pair the camera.") + to_chat(user, SPAN_WARNING("No paired cameras detected!")) + to_chat(user, SPAN_WARNING("Bring a bug in contact with this device to pair the camera.")) return return 1 diff --git a/code/game/objects/items/devices/tagger.dm b/code/game/objects/items/devices/tagger.dm index cb0dfb02b46..aafd133b51a 100644 --- a/code/game/objects/items/devices/tagger.dm +++ b/code/game/objects/items/devices/tagger.dm @@ -27,16 +27,16 @@ if(isanimal(A)) A.name = animaltag - to_chat(user,"You tag the animal as [animaltag].") + to_chat(user,SPAN_NOTICE("You tag the animal as [animaltag].")) else - to_chat(user, "You can't tag non animals.") + to_chat(user, SPAN_NOTICE("You can't tag non animals.")) return /obj/item/device/animaltagger/attack_self(mob/user as mob) var/inputtag = sanitizeSafe(input(user,"Label text?","Set label",""), MAX_NAME_LEN) if(!inputtag || !length(inputtag)) - to_chat(user, "Invalid tag line.") + to_chat(user, SPAN_NOTICE("Invalid tag line.")) return animaltag = inputtag diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm index 7cc868b4cf8..bd394cd0e31 100644 --- a/code/game/objects/items/devices/traitordevices.dm +++ b/code/game/objects/items/devices/traitordevices.dm @@ -32,7 +32,7 @@ effective or pretty fucking useless. /obj/item/device/batterer/attack_self(mob/living/carbon/user as mob, flag = 0, emp = 0) if(!user) return if(times_used >= max_uses) - to_chat(user, "The mind batterer has been burnt out!") + to_chat(user, SPAN_WARNING("The mind batterer has been burnt out!")) return user.attack_log += text("\[[time_stamp()]\] Used [src] to knock down people in the area.") @@ -44,13 +44,13 @@ effective or pretty fucking useless. M.Weaken(rand(10,20)) if(prob(25)) M.Stun(rand(5,10)) - to_chat(M, "You feel a tremendous, paralyzing wave flood your mind.") + to_chat(M, SPAN_DANGER("You feel a tremendous, paralyzing wave flood your mind.")) else - to_chat(M, "You feel a sudden, electric jolt travel through your head.") + to_chat(M, SPAN_DANGER("You feel a sudden, electric jolt travel through your head.")) playsound(src.loc, 'sound/misc/interference.ogg', 50, 1) - to_chat(user, "You trigger [src].") + to_chat(user, SPAN_NOTICE("You trigger [src].")) times_used += 1 if(times_used >= max_uses) icon_state = "battererburnt" diff --git a/code/game/objects/items/devices/transfer_valve.dm b/code/game/objects/items/devices/transfer_valve.dm index 92c83386f9e..216e5d71df1 100644 --- a/code/game/objects/items/devices/transfer_valve.dm +++ b/code/game/objects/items/devices/transfer_valve.dm @@ -18,17 +18,17 @@ var/turf/location = get_turf(src) // For admin logs if(istype(attacking_item, /obj/item/tank)) if(tank_one && tank_two) - to_chat(user, "There are already two tanks attached, remove one first.") + to_chat(user, SPAN_WARNING("There are already two tanks attached, remove one first.")) return if(!tank_one) tank_one = attacking_item user.drop_from_inventory(attacking_item,src) - to_chat(user, "You attach the tank to the transfer valve.") + to_chat(user, SPAN_NOTICE("You attach the tank to the transfer valve.")) else if(!tank_two) tank_two = attacking_item user.drop_from_inventory(attacking_item,src) - to_chat(user, "You attach the tank to the transfer valve.") + to_chat(user, SPAN_NOTICE("You attach the tank to the transfer valve.")) message_admins("[key_name_admin(user)] attached both tanks to a transfer valve. (JMP)") log_game("[key_name_admin(user)] attached both tanks to a transfer valve.",ckey=key_name(user)) @@ -38,15 +38,15 @@ else if(isassembly(attacking_item)) var/obj/item/device/assembly/A = attacking_item if(A.secured) - to_chat(user, "The device is secured.") + to_chat(user, SPAN_NOTICE("The device is secured.")) return if(attached_device) - to_chat(user, "There is already an device attached to the valve, remove it first.") + to_chat(user, SPAN_WARNING("There is already an device attached to the valve, remove it first.")) return user.remove_from_mob(attacking_item) attached_device = A A.forceMove(src) - to_chat(user, "You attach the [attacking_item] to the valve controls and secure it.") + to_chat(user, SPAN_NOTICE("You attach the [attacking_item] to the valve controls and secure it.")) A.holder = src A.toggle_secure() //this calls update_icon(), which calls update_icon() on the holder (i.e. the bomb). diff --git a/code/game/objects/items/devices/versebook.dm b/code/game/objects/items/devices/versebook.dm index 4ed7c845273..79314efff62 100644 --- a/code/game/objects/items/devices/versebook.dm +++ b/code/game/objects/items/devices/versebook.dm @@ -35,7 +35,7 @@ q = pick(randomquip) if(do_after(user, 2.5 SECONDS)) - to_chat(user, "You notice a particular verse: [q]") + to_chat(user, SPAN_NOTICE("You notice a particular verse: [q]")) reading = FALSE /obj/item/device/versebook/tribunal diff --git a/code/game/objects/items/devices/whistle.dm b/code/game/objects/items/devices/whistle.dm index 8c508e32997..ebb82045208 100644 --- a/code/game/objects/items/devices/whistle.dm +++ b/code/game/objects/items/devices/whistle.dm @@ -34,15 +34,15 @@ if(isnull(insults)) playsound(get_turf(src), 'sound/voice/halt.ogg', 100, 1, vary = 0) - user.audible_message("[user]'s [name] rasps, \"[use_message]\"", "\The [user] holds up \the [name].") + user.audible_message(SPAN_WARNING("[user]'s [name] rasps, \"[use_message]\""), SPAN_WARNING("\The [user] holds up \the [name].")) else if(insults > 0) playsound(get_turf(src), 'sound/voice/binsult.ogg', 100, 1, vary = 0) // Yes, it used to show the transcription of the sound clip. That was a) inaccurate b) immature as shit. - user.audible_message("[user]'s [name] gurgles something indecipherable and deeply offensive.", "\The [user] holds up \the [name].") + user.audible_message(SPAN_WARNING("[user]'s [name] gurgles something indecipherable and deeply offensive."), SPAN_WARNING("\The [user] holds up \the [name].")) insults-- else - to_chat(user, "*BZZZZZZZZT*") + to_chat(user, SPAN_DANGER("*BZZZZZZZZT*")) spamcheck = 1 spawn(20) @@ -50,7 +50,7 @@ /obj/item/device/hailer/emag_act(var/remaining_charges, var/mob/user) if(isnull(insults)) - to_chat(user, "You overload \the [src]'s voice synthesizer.") + to_chat(user, SPAN_DANGER("You overload \the [src]'s voice synthesizer.")) insults = rand(1, 3)//to prevent dickflooding return 1 else diff --git a/code/game/objects/items/eightball.dm b/code/game/objects/items/eightball.dm index 93f3567d862..03cb6737021 100644 --- a/code/game/objects/items/eightball.dm +++ b/code/game/objects/items/eightball.dm @@ -42,7 +42,7 @@ return if(on_cooldown) - to_chat(user, "\The [src] was shaken recently, it needs time to settle.") + to_chat(user, SPAN_WARNING("\The [src] was shaken recently, it needs time to settle.")) return var/query = sanitize(input(user,"What is your question?", "Magic eightball") as text|null) @@ -51,7 +51,9 @@ else return - user.visible_message("\The [user] starts shaking \the [src].", "You start shaking \the [src].", "You hear shaking and sloshing.") + user.visible_message(SPAN_NOTICE("\The [user] starts shaking \the [src]."), + SPAN_NOTICE("You start shaking \the [src]."), + "You hear shaking and sloshing.") shaking = TRUE @@ -59,7 +61,7 @@ if(do_after(user, shake_time)) var/answer = get_answer() - visible_message("\The [src] rattles, \"[answer]\".") + visible_message(SPAN_NOTICE("\The [src] rattles, \"[answer]\".")) on_cooldown = TRUE addtimer(CALLBACK(src, PROC_REF(clear_cooldown)), cooldown_time) diff --git a/code/game/objects/items/skrell.dm b/code/game/objects/items/skrell.dm index ff5fab9d863..aa0550b22ac 100644 --- a/code/game/objects/items/skrell.dm +++ b/code/game/objects/items/skrell.dm @@ -21,14 +21,14 @@ /obj/item/stellascope/throw_impact(atom/hit_atom) ..() - visible_message("\The [src] lands on \the [pick_constellation()].") + visible_message(SPAN_NOTICE("\The [src] lands on \the [pick_constellation()].")) /obj/item/stellascope/attack_self(mob/user as mob) if(ishuman(user)) var/mob/living/carbon/human/H = user if(isskrell(H)) - H.visible_message("\The [H] holds the brassy instrument up to [H.get_pronoun("his")] eye and peers at something unseen.", - "You see the starry edge of srom floating on the void of space.") + H.visible_message(SPAN_NOTICE("\The [H] holds the brassy instrument up to [H.get_pronoun("his")] eye and peers at something unseen."), + SPAN_NOTICE("You see the starry edge of srom floating on the void of space.")) if(projection_ready) new/obj/effect/temp_visual/constellation (get_turf(user)) projection_ready = FALSE @@ -64,13 +64,13 @@ AddOverlays(glow_state) /obj/effect/temp_visual/constellation/attackby(obj/item/attacking_item, mob/user) - visible_message("\The [src] vanishes!") + visible_message(SPAN_NOTICE("\The [src] vanishes!")) qdel(src) return TRUE /obj/effect/temp_visual/constellation/attack_hand(mob/user as mob) if(user.a_intent == I_HURT) - visible_message("\The [src] vanishes!") + visible_message(SPAN_NOTICE("\The [src] vanishes!")) qdel(src) return @@ -215,7 +215,7 @@ if(hologram_message) - visible_message("[hologram_message]") + visible_message(SPAN_NOTICE("[hologram_message]")) /obj/item/skrell_projector/dream // Subtype that starts processing on init, for mapping/use in the dream - lly name = "dream projector" diff --git a/code/game/objects/items/spirit_board.dm b/code/game/objects/items/spirit_board.dm index f7b0ce575d3..7f5c137d526 100644 --- a/code/game/objects/items/spirit_board.dm +++ b/code/game/objects/items/spirit_board.dm @@ -39,7 +39,7 @@ lastuser = M.ckey - visible_message("The planchette slowly moves... and stops at the letter \"[planchette]\".") + visible_message(SPAN_NOTICE("The planchette slowly moves... and stops at the letter \"[planchette]\".")) /obj/item/spirit_board/proc/spirit_board_checks(mob/M) //cooldown @@ -57,7 +57,7 @@ if(light_amount > 0.2) - to_chat(M, "It's too bright here to use \the [src]!") + to_chat(M, SPAN_WARNING("It's too bright here to use \the [src]!")) return 0 //mobs in range check @@ -65,12 +65,12 @@ for(var/mob/living/L in orange(1,src)) if(L.ckey) if(L.stat != CONSCIOUS || L.restrained()) - to_chat(M, "\The [L] does not seem to be paying attention to the [src].") + to_chat(M, SPAN_WARNING("\The [L] does not seem to be paying attention to the [src].")) else users_in_range++ if(users_in_range < 2) - to_chat(M, "There are not enough people to use \the [src]!") + to_chat(M, SPAN_WARNING("There are not enough people to use \the [src]!")) return 0 return 1 diff --git a/code/game/objects/items/stacks/rods.dm b/code/game/objects/items/stacks/rods.dm index 906bf13027f..138eedc1770 100644 --- a/code/game/objects/items/stacks/rods.dm +++ b/code/game/objects/items/stacks/rods.dm @@ -66,14 +66,16 @@ var/global/list/datum/stack_recipe/rod_recipes = list( var/obj/item/weldingtool/WT = attacking_item if(get_amount() < 2) - to_chat(user, "You need at least two rods to do this.") + to_chat(user, SPAN_WARNING("You need at least two rods to do this.")) return if(WT.use(0,user)) var/obj/item/stack/material/steel/new_item = new(usr.loc) new_item.add_to_stacks(usr) for (var/mob/M in viewers(src)) - M.show_message("[src] is shaped into metal by [user.name] with the weldingtool.", 3, "You hear welding.", 2) + M.show_message(SPAN_NOTICE("[src] is shaped into metal by [user.name] with the weldingtool."), 3, + SPAN_NOTICE("You hear welding."), 2) + var/obj/item/stack/rods/R = src src = null var/replace = (user.get_inactive_hand()==R) @@ -86,8 +88,8 @@ var/global/list/datum/stack_recipe/rod_recipes = list( var/obj/item/stack/medical/splint/makeshift/new_splint = new(user.loc) new_splint.add_fingerprint(user) - user.visible_message("\The [user] constructs \a [new_splint] out of a [singular_name].", \ - "You use make \a [new_splint] out of a [singular_name].") + user.visible_message(SPAN_NOTICE("\The [user] constructs \a [new_splint] out of a [singular_name]."), \ + SPAN_NOTICE("You use make \a [new_splint] out of a [singular_name].")) use(1) return diff --git a/code/game/objects/items/stacks/sheets/glass.dm b/code/game/objects/items/stacks/sheets/glass.dm index d585a38a601..8f0fdb6e241 100644 --- a/code/game/objects/items/stacks/sheets/glass.dm +++ b/code/game/objects/items/stacks/sheets/glass.dm @@ -44,11 +44,11 @@ for (var/obj/structure/window/win in user.loc) i++ if(i >= 4) - to_chat(user, "There are too many windows in this location.") + to_chat(user, SPAN_WARNING("There are too many windows in this location.")) return 1 directions-=win.dir if(!(win.dir in GLOB.cardinal)) - to_chat(user, "Can't let you do that.") + to_chat(user, SPAN_WARNING("Can't let you do that.")) return 1 //Determine the direction. It will first check in the direction the person making the window is facing, if it finds an already made window it will try looking at the next cardinal direction, etc. @@ -67,10 +67,10 @@ if(!src) return 1 if(src.loc != user) return 1 if(src.get_amount() < 4) - to_chat(user, "You need more glass to do that.") + to_chat(user, SPAN_WARNING("You need more glass to do that.")) return 1 if(locate(/obj/structure/window) in user.loc) - to_chat(user, "There is a window in the way.") + to_chat(user, SPAN_WARNING("There is a window in the way.")) return 1 new created_window( user.loc, SOUTHWEST, 1 ) src.use(4) @@ -81,15 +81,15 @@ if(!src || src.loc != user) return 1 if(isturf(user.loc) && locate(/obj/structure/windoor_assembly/, user.loc)) - to_chat(user, "There is already a windoor assembly in that location.") + to_chat(user, SPAN_WARNING("There is already a windoor assembly in that location.")) return 1 if(isturf(user.loc) && locate(/obj/machinery/door/window/, user.loc)) - to_chat(user, "There is already a windoor in that location.") + to_chat(user, SPAN_WARNING("There is already a windoor in that location.")) return 1 if(src.get_amount() < 5) - to_chat(user, "You need more glass to do that.") + to_chat(user, SPAN_WARNING("You need more glass to do that.")) return 1 new /obj/structure/windoor_assembly(user.loc, user.dir, 1) @@ -130,14 +130,14 @@ if (M.use(1)) var/obj/item/L = new /obj/item/stack/tile/light user.drop_from_inventory(L, get_turf(src)) - to_chat(user, "You make a light tile.") + to_chat(user, SPAN_NOTICE("You make a light tile.")) use(1) else - to_chat(user, "You need one metal sheet to finish the light tile!") + to_chat(user, SPAN_WARNING("You need one metal sheet to finish the light tile!")) else if(attacking_item.iswirecutter()) user.drop_from_inventory(attacking_item, get_turf(src)) - to_chat(user, "You detach the wire from the [name].") + to_chat(user, SPAN_NOTICE("You detach the wire from the [name].")) playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1) new /obj/item/stack/cable_coil(user.loc, 5) new /obj/item/stack/material/glass(user.loc) diff --git a/code/game/objects/items/stacks/tiles/light.dm b/code/game/objects/items/stacks/tiles/light.dm index 2d9261d34ce..dfa3f3c7728 100644 --- a/code/game/objects/items/stacks/tiles/light.dm +++ b/code/game/objects/items/stacks/tiles/light.dm @@ -20,7 +20,7 @@ /obj/item/stack/tile/light/attackby(obj/item/attacking_item, mob/user) if(attacking_item.iscrowbar()) amount-- - to_chat(user, "You pry off the steel sheet from the [name].") + to_chat(user, SPAN_NOTICE("You pry off the steel sheet from the [name].")) attacking_item.play_tool_sound(get_turf(src), 100) new /obj/item/stack/material/glass/wired(user.loc) new /obj/item/stack/material/steel(user.loc) diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm index 4f8b6f6705f..f2654d86588 100644 --- a/code/game/objects/items/toys.dm +++ b/code/game/objects/items/toys.dm @@ -57,7 +57,7 @@ if(!proximity) return if (istype(A, /obj/structure/reagent_dispensers/watertank) && get_dist(src,A) <= 1) A.reagents.trans_to_obj(src, 10) - to_chat(user, "You fill the balloon with the contents of [A].") + to_chat(user, SPAN_NOTICE("You fill the balloon with the contents of [A].")) src.desc = "A translucent balloon with some form of liquid sloshing around in it." src.update_icon() return @@ -74,14 +74,14 @@ qdel(src) else src.desc = "A translucent balloon with some form of liquid sloshing around in it." - to_chat(user, "You fill the balloon with the contents of [attacking_item].") + to_chat(user, SPAN_NOTICE("You fill the balloon with the contents of [attacking_item].")) attacking_item.reagents.trans_to_obj(src, 10) src.update_icon() return TRUE /obj/item/toy/waterballoon/throw_impact(atom/hit_atom) if(src.reagents.total_volume >= 1) - src.visible_message("\The [src] bursts!","You hear a pop and a splash.") + src.visible_message(SPAN_WARNING("\The [src] bursts!"),"You hear a pop and a splash.") src.reagents.touch_turf(get_turf(hit_atom)) for(var/atom/A in get_turf(hit_atom)) src.reagents.touch(A) @@ -117,17 +117,18 @@ /obj/item/toy/balloon/attack_self(mob/user as mob) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) if(user.a_intent == I_HELP) - user.visible_message("\The [user] pokes [src]!","You poke [src]!") + user.visible_message(SPAN_NOTICE("\The [user] pokes [src]!"), SPAN_NOTICE("You poke [src]!")) else if (user.a_intent == I_HURT) - user.visible_message("\The [user] punches [src]!","You punch [src]!") + user.visible_message(SPAN_WARNING("\The [user] punches [src]!"), SPAN_WARNING("You punch [src]!")) else if (user.a_intent == I_GRAB) if(prob(66)) - user.visible_message("\The [user] attempts to pop [src]!","You attempt to pop [src]!") + user.visible_message(SPAN_WARNING("\The [user] attempts to pop [src]!"), SPAN_WARNING("You attempt to pop [src]!")) else - user.visible_message("\The [user] pops [src]!","You pop [src]!") + user.visible_message(SPAN_WARNING("\The [user] pops [src]!"), SPAN_WARNING("You pop [src]!")) burst() else - user.visible_message("\The [user] lightly bats the [src].","You lightly bat the [src].") + user.visible_message(SPAN_NOTICE("\The [user] lightly bats the [src]."), + SPAN_NOTICE("You lightly bat the [src].")) /obj/item/toy/balloon/update_icon() switch(status) @@ -412,7 +413,7 @@ /obj/item/toy/crossbow/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() if(distance <= 2 && dart_count) - . += "\The [src] is loaded with [dart_count] foam dart\s." + . += SPAN_NOTICE("\The [src] is loaded with [dart_count] foam dart\s.") /obj/item/toy/crossbow/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/toy/ammo/crossbow)) @@ -420,9 +421,9 @@ user.drop_from_inventory(attacking_item, src) qdel(attacking_item) dart_count++ - to_chat(user, "You load the foam dart into \the [src].") + to_chat(user, SPAN_NOTICE("You load the foam dart into \the [src].")) else - to_chat(usr, "\The [src] is already fully loaded.") + to_chat(usr, SPAN_WARNING("\The [src] is already fully loaded.")) /obj/item/toy/crossbow/afterattack(atom/target, mob/user, flag) @@ -456,7 +457,7 @@ continue for(var/mob/O in viewers(world.view, D)) - O.show_message(text("\The [] was hit by the foam dart!", M), 1) + O.show_message(SPAN_WARNING("\The [M] was hit by the foam dart!"), 1) new /obj/item/toy/ammo/crossbow(M.loc) qdel(D) return @@ -484,8 +485,8 @@ if (src.dart_count > 0 && M.lying) // Check for(var/mob/O in viewers(M, null)) if(O.client) - O.show_message(text("\The [] casually lines up a shot with []'s head and pulls the trigger.", user, M), 1) - O.show_message(text("\The [] was hit in the head by the foam dart!", M), 1) + O.show_message(SPAN_NOTICE("\The [user] casually lines up a shot with [M]'s head and pulls the trigger."), 1) + O.show_message(SPAN_WARNING("\The [M] was hit in the head by the foam dart!"), 1) playsound(src, 'sound/items/syringeproj.ogg', 50, TRUE) new /obj/item/toy/ammo/crossbow(M.loc) @@ -536,13 +537,13 @@ last_active = world.time src.active = !( src.active ) if(src.active) - to_chat(user, "You extend the plastic blade with a quick flick of your wrist.") + to_chat(user, SPAN_NOTICE("You extend the plastic blade with a quick flick of your wrist.")) playsound(user, 'sound/weapons/saberon.ogg', 50, 1) src.icon_state = "sword[colorvar]" src.item_state = "sword[colorvar]" src.w_class = ITEMSIZE_LARGE else - to_chat(user, "You push the plastic blade back down into the handle.") + to_chat(user, SPAN_NOTICE("You push the plastic blade back down into the handle.")) playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) src.icon_state = "sword0" src.item_state = "sword0" @@ -647,7 +648,7 @@ /obj/item/toy/bosunwhistle/attack_self(mob/user as mob) if(cooldown < world.time - 35) - to_chat(user, "You blow on [src], creating an ear-splitting noise!") + to_chat(user, SPAN_NOTICE("You blow on [src], creating an ear-splitting noise!")) playsound(user, 'sound/misc/boatswain.ogg', 20, 1) cooldown = world.time @@ -966,13 +967,17 @@ return poke_cooldown = world.time + 2 SECONDS if(user.a_intent == I_HELP) - user.visible_message("\The [user] hugs [src]!","You hug [src]!") + user.visible_message(SPAN_NOTICE("\The [user] hugs [src]!"), + SPAN_NOTICE("You hug [src]!")) + else if (user.a_intent == I_HURT) - user.visible_message("\The [user] punches [src]!","You punch [src]!") + user.visible_message(SPAN_WARNING("\The [user] punches [src]!"), SPAN_WARNING("You punch [src]!")) else if (user.a_intent == I_GRAB) - user.visible_message("\The [user] attempts to strangle [src]!","You attempt to strangle [src]!") + user.visible_message(SPAN_WARNING("\The [user] attempts to strangle [src]!"), SPAN_WARNING("You attempt to strangle [src]!")) else - user.visible_message("\The [user] pokes the [src].","You poke the [src].") + user.visible_message(SPAN_NOTICE("\The [user] pokes the [src]."), + SPAN_NOTICE("You poke the [src].")) + playsound(src, poke_sound, 25, 0) visible_message("[src] says, \"[phrase]\"") diff --git a/code/game/objects/items/vaurca.dm b/code/game/objects/items/vaurca.dm index 275a1b8d081..06fb5921c72 100644 --- a/code/game/objects/items/vaurca.dm +++ b/code/game/objects/items/vaurca.dm @@ -133,4 +133,4 @@ if(hologram_message) - visible_message("[hologram_message]") + visible_message(SPAN_NOTICE("[hologram_message]")) diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm index 2a6e349add1..ad3660019fa 100755 --- a/code/game/objects/items/weapons/AI_modules.dm +++ b/code/game/objects/items/weapons/AI_modules.dm @@ -369,7 +369,7 @@ AI MODULES log_law_changes(target, sender) GLOB.lawchanges.Add("The law is '[newFreeFormLaw]'") - to_chat(target, "BZZZZT") + to_chat(target, SPAN_DANGER("BZZZZT")) var/law = "[newFreeFormLaw]" target.add_ion_law(law) target.show_laws() diff --git a/code/game/objects/items/weapons/autopsy.dm b/code/game/objects/items/weapons/autopsy.dm index 94720efb7d2..d7d9c713011 100644 --- a/code/game/objects/items/weapons/autopsy.dm +++ b/code/game/objects/items/weapons/autopsy.dm @@ -108,13 +108,13 @@ if(0) damage_desc = "Unknown" if(1 to 5) - damage_desc = "negligible" + damage_desc = SPAN_DANGER("negligible") if(5 to 15) - damage_desc = "light" + damage_desc = SPAN_DANGER("light") if(15 to 30) damage_desc = "moderate" if(30 to 1000) - damage_desc = "severe" + damage_desc = SPAN_WARNING("severe") if(!total_score) total_score = D.organs_scanned.len diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index 1312fd1876c..559116e3224 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -78,7 +78,7 @@ var/const/NO_EMAG_ACT = -50 log_and_message_admins("emagged \an [A].") if(uses<1) - user.visible_message("\The [src] fizzles and sparks - it seems it's been used once too often, and is now spent.") + user.visible_message(SPAN_WARNING("\The [src] fizzles and sparks - it seems it's been used once too often, and is now spent.")) var/obj/item/card/emag_broken/junk = new(user.loc) junk.add_fingerprint(user) user.drop_from_inventory(src,get_turf(junk)) @@ -206,7 +206,7 @@ var/const/NO_EMAG_ACT = -50 if (response == "Yes") var/mob/living/carbon/human/H = user if(H.gloves) - to_chat(user, "You cannot imprint [src] while wearing \the [H.gloves].") + to_chat(user, SPAN_WARNING("You cannot imprint [src] while wearing \the [H.gloves].")) return else mob_id = WEAKREF(H) @@ -215,7 +215,7 @@ var/const/NO_EMAG_ACT = -50 fingerprint_hash = md5(H.dna.uni_identity) citizenship = H.citizenship age = H.age - to_chat(user, "Biometric imprinting successful!") + to_chat(user, SPAN_NOTICE("Biometric imprinting successful!")) return if(last_flash <= world.time - 20) last_flash = world.time @@ -246,17 +246,17 @@ var/const/NO_EMAG_ACT = -50 if (response == "Yes") if (!user.Adjacent(M) || user.restrained() || user.lying || user.stat) - to_chat(user, "You must remain adjacent to [M] to scan their biometric data.") + to_chat(user, SPAN_WARNING("You must remain adjacent to [M] to scan their biometric data.")) return var/mob/living/carbon/human/H = M if(H.gloves) - to_chat(user, "\The [H] is wearing gloves.") + to_chat(user, SPAN_WARNING("\The [H] is wearing gloves.")) return 1 if(user != H && H.a_intent != "help" && !H.lying) - user.visible_message("\The [user] tries to take prints from \the [H], but they move away.") + user.visible_message(SPAN_DANGER("\The [user] tries to take prints from \the [H], but they move away.")) return 1 var/has_hand @@ -268,7 +268,7 @@ var/const/NO_EMAG_ACT = -50 if(istype(O) && !O.is_stump()) has_hand = 1 if(!has_hand) - to_chat(user, "They don't have any hands.") + to_chat(user, SPAN_WARNING("They don't have any hands.")) return 1 user.visible_message("[user] imprints [src] with \the [H]'s biometrics.") mob_id = WEAKREF(H) @@ -327,7 +327,7 @@ var/const/NO_EMAG_ACT = -50 if(use_check_and_message(usr, use_flags = USE_DISALLOW_SILICONS)) return if(wear_over_suit == -1) - to_chat(usr, "\The [src] cannot be worn above your suit!") + to_chat(usr, SPAN_NOTICE("\The [src] cannot be worn above your suit!")) return wear_over_suit = !wear_over_suit mob_icon_update() diff --git a/code/game/objects/items/weapons/cards_ids_syndicate.dm b/code/game/objects/items/weapons/cards_ids_syndicate.dm index 0ed4da9a2f7..bf1c572865a 100644 --- a/code/game/objects/items/weapons/cards_ids_syndicate.dm +++ b/code/game/objects/items/weapons/cards_ids_syndicate.dm @@ -43,7 +43,7 @@ /obj/item/card/id/syndicate/attack_self(mob/user as mob) // We use the fact that registered_name is not unset should the owner be vaporized, to ensure the id doesn't magically become unlocked. if(!registered_user && register_user(user)) - to_chat(user, "The microscanner marks you as its owner, preventing others from accessing its internals.") + to_chat(user, SPAN_NOTICE("The microscanner marks you as its owner, preventing others from accessing its internals.")) if(registered_user == user) switch(alert("Would you like edit the ID, or show it?","Show or Edit?", "Edit","Show")) if("Edit") @@ -151,20 +151,20 @@ age = initial(age) else age = new_age - to_chat(user, "Age has been set to '[age]'.") + to_chat(user, SPAN_NOTICE("Age has been set to '[age]'.")) . = 1 if("Appearance") var/datum/card_state/choice = tgui_input_list(user, "Select the appearance for this card.", "Agent Card Appearance", id_card_states(), icon_state) if(choice && CanUseTopic(user, state)) src.icon_state = choice.icon_state src.item_state = choice.item_state - to_chat(usr, "Appearance changed to [choice].") + to_chat(usr, SPAN_NOTICE("Appearance changed to [choice].")) . = 1 if("Assignment") var/new_job = tgui_input_text(user, "What assignment would you like to put on this card? Changing assignment will not grant or remove any access levels.", "Agent Card Assignment", assignment) if(!isnull(new_job) && CanUseTopic(user, state)) src.assignment = new_job - to_chat(user, "Occupation changed to '[new_job]'.") + to_chat(user, SPAN_NOTICE("Occupation changed to '[new_job]'.")) update_name() . = 1 if("Blood Type") @@ -176,7 +176,7 @@ var/new_blood_type = sanitize(input(user,"What blood type would you like to be written on this card?","Agent Card Blood Type",default) as null|text) if(!isnull(new_blood_type) && CanUseTopic(user, state)) src.blood_type = new_blood_type - to_chat(user, "Blood type changed to '[new_blood_type]'.") + to_chat(user, SPAN_NOTICE("Blood type changed to '[new_blood_type]'.")) . = 1 if("DNA Hash") var/default = dna_hash @@ -187,7 +187,7 @@ var/new_dna_hash = sanitize(input(user,"What DNA hash would you like to be written on this card?","Agent Card DNA Hash",default) as null|text) if(!isnull(new_dna_hash) && CanUseTopic(user, state)) src.dna_hash = new_dna_hash - to_chat(user, "DNA hash changed to '[new_dna_hash]'.") + to_chat(user, SPAN_NOTICE("DNA hash changed to '[new_dna_hash]'.")) . = 1 if("Fingerprint Hash") var/default = fingerprint_hash @@ -198,24 +198,24 @@ var/new_fingerprint_hash = sanitize(input(user,"What fingerprint hash would you like to be written on this card?","Agent Card Fingerprint Hash",default) as null|text) if(!isnull(new_fingerprint_hash) && CanUseTopic(user, state)) src.fingerprint_hash = new_fingerprint_hash - to_chat(user, "Fingerprint hash changed to '[new_fingerprint_hash]'.") + to_chat(user, SPAN_NOTICE("Fingerprint hash changed to '[new_fingerprint_hash]'.")) . = 1 if("Name") var/new_name = sanitizeName(input(user,"What name would you like to put on this card?","Agent Card Name", registered_name) as null|text) if(!isnull(new_name) && CanUseTopic(user, state)) src.registered_name = new_name update_name() - to_chat(user, "Name changed to '[new_name]'.") + to_chat(user, SPAN_NOTICE("Name changed to '[new_name]'.")) . = 1 if("Photo") set_id_photo(user) - to_chat(user, "Photo changed.") + to_chat(user, SPAN_NOTICE("Photo changed.")) . = 1 if("Sex") var/new_sex = sanitize(input(user,"What sex would you like to put on this card?","Agent Card Sex", sex) as null|text) if(!isnull(new_sex) && CanUseTopic(user, state)) src.sex = new_sex - to_chat(user, "Sex changed to '[new_sex]'.") + to_chat(user, SPAN_NOTICE("Sex changed to '[new_sex]'.")) . = 1 if("Citizenship") var/new_citizenship = sanitize(input(user,"Which citizenship would you like to put on this card?","Agent Card Citizenship", citizenship) as null|text) @@ -245,7 +245,7 @@ unset_registered_user() sex = initial(sex) employer_faction = initial(employer_faction) - to_chat(user, "All information has been deleted from \the [src].") + to_chat(user, SPAN_NOTICE("All information has been deleted from \the [src].")) . = 1 // Always update the UI, or buttons will spin indefinitely diff --git a/code/game/objects/items/weapons/cigs_lighters.dm b/code/game/objects/items/weapons/cigs_lighters.dm index c99d20c4cc9..d442cbd3e3b 100644 --- a/code/game/objects/items/weapons/cigs_lighters.dm +++ b/code/game/objects/items/weapons/cigs_lighters.dm @@ -308,11 +308,11 @@ CIGARETTE PACKETS ARE IN FANCY.DM chem_volume = 30 burn_rate = 0.006 //Lasts ~166 seconds) surgerysound = 'sound/items/surgery/cautery.ogg' - matchmes = "USER lights their NAME with their FLAME." - lightermes = "USER manages to light their NAME with FLAME." - zippomes = "With a flick of their wrist, USER lights their NAME with their FLAME." - weldermes = "USER casually lights the NAME with FLAME." - ignitermes = "USER fiddles with FLAME, and manages to light their NAME." + matchmes = SPAN_NOTICE("USER lights their NAME with their FLAME.") + lightermes = SPAN_NOTICE("USER manages to light their NAME with FLAME.") + zippomes = SPAN_NOTICE("With a flick of their wrist, USER lights their NAME with their FLAME.") + weldermes = SPAN_NOTICE("USER casually lights the NAME with FLAME.") + ignitermes = SPAN_NOTICE("USER fiddles with FLAME, and manages to light their NAME.") reagents_to_add = list( /singleton/reagent/toxin/tobacco = 10, /singleton/reagent/mental/nicotine = 5 @@ -342,7 +342,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM return 1 if(last_drag <= world.time - 30) //Spam limiter. Only for messages/sound. last_drag = world.time - H.visible_message("[H.name] takes a drag of their [name].") + H.visible_message(SPAN_NOTICE("[H.name] takes a drag of their [name].")) playsound(H, 'sound/items/cigs_lighters/inhale.ogg', 50, 0, -1) reagents.trans_to_mob(H, (rand(5,10)/10), CHEM_BREATHE) //Smokes it faster. Slightly random amount. return 1 @@ -468,11 +468,11 @@ CIGARETTE PACKETS ARE IN FANCY.DM throw_speed = 0.5 burn_rate = 0.015 chem_volume = 60 - matchmes = "USER lights their NAME with their FLAME." - lightermes = "USER manages to offend their NAME by lighting it with FLAME." - zippomes = "With a flick of their wrist, USER lights their NAME with their FLAME." - weldermes = "USER insults NAME by lighting it with FLAME." - ignitermes = "USER fiddles with FLAME, and manages to light their NAME with the power of science." + matchmes = SPAN_NOTICE("USER lights their NAME with their FLAME.") + lightermes = SPAN_NOTICE("USER manages to offend their NAME by lighting it with FLAME.") + zippomes = SPAN_NOTICE("With a flick of their wrist, USER lights their NAME with their FLAME.") + weldermes = SPAN_NOTICE("USER insults NAME by lighting it with FLAME.") + ignitermes = SPAN_NOTICE("USER fiddles with FLAME, and manages to light their NAME with the power of science.") drop_sound = 'sound/items/drop/gloves.ogg' pickup_sound = 'sound/items/pickup/gloves.ogg' reagents_to_add = list( @@ -589,11 +589,11 @@ CIGARETTE PACKETS ARE IN FANCY.DM burn_rate = 0.015 w_class = ITEMSIZE_TINY chem_volume = 30 - matchmes = "USER lights their NAME with their FLAME." - lightermes = "USER manages to light their NAME with FLAME." - zippomes = "With much care, USER lights their NAME with their FLAME." - weldermes = "USER recklessly lights NAME with FLAME." - ignitermes = "USER fiddles with FLAME, and manages to light their NAME with the power of science." + matchmes = SPAN_NOTICE("USER lights their NAME with their FLAME.") + lightermes = SPAN_NOTICE("USER manages to light their NAME with FLAME.") + zippomes = SPAN_NOTICE("With much care, USER lights their NAME with their FLAME.") + weldermes = SPAN_NOTICE("USER recklessly lights NAME with FLAME.") + ignitermes = SPAN_NOTICE("USER fiddles with FLAME, and manages to light their NAME with the power of science.") drop_sound = 'sound/items/drop/accessory.ogg' pickup_sound = 'sound/items/pickup/accessory.ogg' diff --git a/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm b/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm index 6d101ed7730..aa0303d50fb 100644 --- a/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm +++ b/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm @@ -41,7 +41,7 @@ if(emagged) to_chat(user, "Circuit lock is already removed.") return - to_chat(user, "You override the circuit lock and open controls.") + to_chat(user, SPAN_NOTICE("You override the circuit lock and open controls.")) emagged = 1 locked = 0 return 1 @@ -49,16 +49,16 @@ /obj/item/circuitboard/security/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/card/id)) if(emagged) - to_chat(user, "Circuit lock does not respond.") + to_chat(user, SPAN_WARNING("Circuit lock does not respond.")) return if(check_access(attacking_item)) locked = !locked - to_chat(user, "You [locked ? "" : "un"]lock the circuit controls.") + to_chat(user, SPAN_NOTICE("You [locked ? "" : "un"]lock the circuit controls.")) else - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) else if(attacking_item.ismultitool()) if(locked) - to_chat(user, "Circuit controls are locked.") + to_chat(user, SPAN_WARNING("Circuit controls are locked.")) return var/existing_networks = jointext(network,",") var/input = sanitize( tgui_input_text(user, "Which networks would you like to connect this camera console circuit to? Seperate networks with a comma. No Spaces!\nFor example: SS13,Security,Secret ", diff --git a/code/game/objects/items/weapons/circuitboards/computer/research.dm b/code/game/objects/items/weapons/circuitboards/computer/research.dm index 181e3b3f899..dba4d00254f 100644 --- a/code/game/objects/items/weapons/circuitboards/computer/research.dm +++ b/code/game/objects/items/weapons/circuitboards/computer/research.dm @@ -8,13 +8,15 @@ /obj/item/circuitboard/rdconsole/attackby(obj/item/attacking_item, mob/user) if(attacking_item.isscrewdriver()) - user.visible_message("\The [user] adjusts the jumper on \the [src]'s access protocol pins.", "You adjust the jumper on the access protocol pins.") + user.visible_message(SPAN_NOTICE("\The [user] adjusts the jumper on \the [src]'s access protocol pins."), + SPAN_NOTICE("You adjust the jumper on the access protocol pins.")) + if(src.build_path == /obj/machinery/computer/rdconsole/core) src.name = T_BOARD("RD Console - Robotics") src.build_path = /obj/machinery/computer/rdconsole/robotics - to_chat(user, "Access protocols set to robotics.") + to_chat(user, SPAN_NOTICE("Access protocols set to robotics.")) else src.name = T_BOARD("RD Console") src.build_path = /obj/machinery/computer/rdconsole/core - to_chat(user, "Access protocols set to default.") + to_chat(user, SPAN_NOTICE("Access protocols set to default.")) return diff --git a/code/game/objects/items/weapons/cloaking_device.dm b/code/game/objects/items/weapons/cloaking_device.dm index 4bc34d06f66..c0f1e803e41 100644 --- a/code/game/objects/items/weapons/cloaking_device.dm +++ b/code/game/objects/items/weapons/cloaking_device.dm @@ -76,7 +76,7 @@ stop_modifier() playsound(src, 'sound/effects/phasein.ogg', 10, 1, -2)//Cloaking is quieter than uncloaking if (owner) - to_chat(owner, "\The [src] is now active.") + to_chat(owner, SPAN_NOTICE("\The [src] is now active.")) start_modifier() /obj/item/cloaking_device/proc/deactivate() @@ -85,7 +85,7 @@ active = 0 src.icon_state = "shield0" if (owner) - to_chat(owner, "\The [src] is now inactive.") + to_chat(owner, SPAN_NOTICE("\The [src] is now inactive.")) playsound(src, 'sound/effects/phasein.ogg', 50, 1) stop_modifier() @@ -123,17 +123,17 @@ if(!cell) user.drop_from_inventory(attacking_item, src) cell = attacking_item - to_chat(user, "You install a cell in [src].") + to_chat(user, SPAN_NOTICE("You install a cell in [src].")) update_icon() else - to_chat(user, "[src] already has a cell.") + to_chat(user, SPAN_NOTICE("[src] already has a cell.")) else if(attacking_item.isscrewdriver()) if(cell) cell.update_icon() cell.forceMove(get_turf(src.loc)) cell = null - to_chat(user, "You remove the cell from the [src].") + to_chat(user, SPAN_NOTICE("You remove the cell from the [src].")) deactivate() return ..() diff --git a/code/game/objects/items/weapons/cosmetics.dm b/code/game/objects/items/weapons/cosmetics.dm index 4f8751fe61c..646519a2a56 100644 --- a/code/game/objects/items/weapons/cosmetics.dm +++ b/code/game/objects/items/weapons/cosmetics.dm @@ -107,7 +107,7 @@ /obj/item/lipstick/attack_self(mob/user as mob) - to_chat(user, "You twist \the [src] [open ? "closed" : "open"].") + to_chat(user, SPAN_NOTICE("You twist \the [src] [open ? "closed" : "open"].")) open = !open update_icon() @@ -119,23 +119,23 @@ if(ishuman(M)) var/mob/living/carbon/human/H = M if(H.lipstick_color) //if they already have lipstick on - to_chat(user, "You need to wipe off the old lipstick first!") + to_chat(user, SPAN_NOTICE("You need to wipe off the old lipstick first!")) return if(H == user) - user.visible_message("[user] does their lips with \the [src].", \ - "You take a moment to apply \the [src]. Perfect!") + user.visible_message(SPAN_NOTICE("[user] does their lips with \the [src]."), \ + SPAN_NOTICE("You take a moment to apply \the [src]. Perfect!")) H.lipstick_color = lipstick_color H.update_body() else - user.visible_message("[user] begins to do [H]'s lips with \the [src].", \ - "You begin to apply \the [src].") + user.visible_message(SPAN_WARNING("[user] begins to do [H]'s lips with \the [src]."), \ + SPAN_NOTICE("You begin to apply \the [src].")) if(do_after(user, 4 SECONDS, H, do_flags = DO_DEFAULT & ~DO_SHOW_PROGRESS & ~DO_BOTH_CAN_TURN)) - user.visible_message("[user] does [H]'s lips with \the [src].", \ - "You apply \the [src].") + user.visible_message(SPAN_NOTICE("[user] does [H]'s lips with \the [src]."), \ + SPAN_NOTICE("You apply \the [src].")) H.lipstick_color = lipstick_color H.update_body() else - to_chat(user, "Where are the lips on that?") + to_chat(user, SPAN_NOTICE("Where are the lips on that?")) //you can wipe off lipstick with paper! see code/modules/paperwork/paper.dm, paper/attack() @@ -154,7 +154,7 @@ color = get_random_colour(lower = 150) /obj/item/haircomb/attack_self(mob/user) - user.visible_message("[user] uses [src] to comb their hair with incredible style and sophistication. What a [user.gender == FEMALE ? "lady" : "guy"].") + user.visible_message(SPAN_NOTICE("[user] uses [src] to comb their hair with incredible style and sophistication. What a [user.gender == FEMALE ? "lady" : "guy"].")) /obj/item/razor name = "electric razor" @@ -181,7 +181,7 @@ var/obj/item/organ/external/E = H.get_organ(target_zone) if(!E || E.is_stump()) - to_chat(user, "They are missing that limb!") + to_chat(user, SPAN_DANGER("They are missing that limb!")) return FALSE if(!ishuman_species(H) && !istajara(H)) //you can only shave humans and tajara for obvious reasons @@ -190,29 +190,29 @@ if(target_zone == BP_HEAD) if(H.head && (H.head.body_parts_covered & HEAD)) - to_chat(user, "\The [H.head] is in the way!") + to_chat(user, SPAN_WARNING("\The [H.head] is in the way!")) return FALSE if(H.h_style == "Bald" || H.h_style == "Balding Hair" || H.h_style == "Skinhead" || H.h_style == "Tajaran Ears") - to_chat(user, "There is not enough hair left to shave!") + to_chat(user, SPAN_WARNING("There is not enough hair left to shave!")) return FALSE if(H == user) //shaving yourself user.visible_message("\The [user] starts to shave [user.get_pronoun("his")] head with \the [src].", \ - "You start to shave your head with \the [src].") + SPAN_NOTICE("You start to shave your head with \the [src].")) if(do_mob(user, user, 20)) user.visible_message("\The [user] shaves [user.get_pronoun("his")] head with \the [src].", \ - "You finish shaving with \the [src].") + SPAN_NOTICE("You finish shaving with \the [src].")) shave(H, target_zone) return TRUE else - user.visible_message("\The [user] tries to shave \the [H]'s head with \the [src]!", \ - "You start shaving [H]'s head.") + user.visible_message(SPAN_WARNING("\The [user] tries to shave \the [H]'s head with \the [src]!"), \ + SPAN_NOTICE("You start shaving [H]'s head.")) if(do_mob(user, H, 20)) - user.visible_message("\The [user] shaves \the [H]'s head bald with \the [src]!", \ - "You shave \the [H]'s head bald.") + user.visible_message(SPAN_WARNING("\The [user] shaves \the [H]'s head bald with \the [src]!"), \ + SPAN_NOTICE("You shave \the [H]'s head bald.")) shave(H, target_zone) return TRUE @@ -220,40 +220,40 @@ else if(target_zone == BP_MOUTH) if(H.head && (H.head.body_parts_covered & FACE)) - to_chat(user, "\The [H.head] is in the way!") + to_chat(user, SPAN_WARNING("\The [H.head] is in the way!")) return FALSE if(H.wear_mask && (H.wear_mask.body_parts_covered & FACE)) - to_chat(user, "\The [H.wear_mask] is in the way!") + to_chat(user, SPAN_WARNING("\The [H.wear_mask] is in the way!")) return FALSE if(H.f_style == "Shaved") - to_chat(user, "There is not enough facial hair left to shave!") + to_chat(user, SPAN_WARNING("There is not enough facial hair left to shave!")) return FALSE if(H == user) //shaving yourself - user.visible_message("\The [user] starts to shave [user.get_pronoun("his")] facial hair with \the [src].", \ - "You take a moment to shave your facial hair with \the [src].") + user.visible_message(SPAN_WARNING("\The [user] starts to shave [user.get_pronoun("his")] facial hair with \the [src]."), \ + SPAN_NOTICE("You take a moment to shave your facial hair with \the [src].")) if(do_mob(user, user, 20)) - user.visible_message("\The [user] shaves [user.get_pronoun("his")] facial hair clean with \the [src].", \ - "You finish shaving with \the [src].") + user.visible_message(SPAN_WARNING("\The [user] shaves [user.get_pronoun("his")] facial hair clean with \the [src]."), \ + SPAN_NOTICE("You finish shaving with \the [src].")) shave(H, target_zone) return TRUE else - user.visible_message("\The [user] tries to shave \the [H]'s facial hair with \the [src].", \ - "You start shaving [H]'s facial hair.") + user.visible_message(SPAN_WARNING("\The [user] tries to shave \the [H]'s facial hair with \the [src]."), \ + SPAN_NOTICE("You start shaving [H]'s facial hair.")) if(do_mob(user, H, 20)) - user.visible_message("\The [user] shaves off \the [H]'s facial hair with \the [src].", \ - "You shave [H]'s facial hair clean off.") + user.visible_message(SPAN_WARNING("\The [user] shaves off \the [H]'s facial hair with \the [src]."), \ + SPAN_NOTICE("You shave [H]'s facial hair clean off.")) shave(H, target_zone) return TRUE else - to_chat(user, "You need to target the mouth or head to shave \the [H]!") + to_chat(user, SPAN_WARNING("You need to target the mouth or head to shave \the [H]!")) return diff --git a/code/game/objects/items/weapons/dna_injector.dm b/code/game/objects/items/weapons/dna_injector.dm index 43039a601dc..b82698ce283 100644 --- a/code/game/objects/items/weapons/dna_injector.dm +++ b/code/game/objects/items/weapons/dna_injector.dm @@ -105,7 +105,7 @@ if(inuse) return 0 - user.visible_message("\The [user] is trying to inject \the [M] with \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] is trying to inject \the [M] with \the [src]!")) inuse = 1 s_time = world.time spawn(50) @@ -117,11 +117,11 @@ user.setClickCooldown(DEFAULT_QUICK_COOLDOWN) user.do_attack_animation(M) - M.visible_message("\The [M] has been injected with \the [src] by \the [user].") + M.visible_message(SPAN_DANGER("\The [M] has been injected with \the [src] by \the [user].")) var/mob/living/carbon/human/H = M if(!istype(H)) - to_chat(user, "Apparently it didn't work...") + to_chat(user, SPAN_WARNING("Apparently it didn't work...")) return if(H.species && H.species.flags & NO_SCAN) @@ -130,7 +130,7 @@ // Used by admin log. var/injected_with_monkey = "" if((buf.types & DNA2_BUF_SE) && (block ? (GetState() && block == MONKEYBLOCK) : GetState(MONKEYBLOCK))) - injected_with_monkey = " (MONKEY)" + injected_with_monkey = SPAN_DANGER(" (MONKEY)") M.attack_log += text("\[[time_stamp()]\] Has been injected with [name] by [user.name] ([user.ckey])") user.attack_log += text("\[[time_stamp()]\] Used the [name] to inject [M.name] ([M.ckey])") diff --git a/code/game/objects/items/weapons/explosives.dm b/code/game/objects/items/weapons/explosives.dm index 742a19535ef..cd3fd132d13 100644 --- a/code/game/objects/items/weapons/explosives.dm +++ b/code/game/objects/items/weapons/explosives.dm @@ -27,7 +27,7 @@ /obj/item/plastique/attackby(obj/item/attacking_item, mob/user) if(attacking_item.isscrewdriver()) open_panel = !open_panel - to_chat(user, "You [open_panel ? "open" : "close"] the wire panel.") + to_chat(user, SPAN_NOTICE("You [open_panel ? "open" : "close"] the wire panel.")) return TRUE else if(attacking_item.iswirecutter() || attacking_item.ismultitool() || istype(attacking_item, /obj/item/device/assembly/signaler )) wires.interact(user) diff --git a/code/game/objects/items/weapons/extinguisher.dm b/code/game/objects/items/weapons/extinguisher.dm index 8b2c120f78e..caacc4d738c 100644 --- a/code/game/objects/items/weapons/extinguisher.dm +++ b/code/game/objects/items/weapons/extinguisher.dm @@ -32,15 +32,17 @@ if(istype(attacking_item, /obj/item/extinguisher)) var/obj/item/extinguisher/E = attacking_item if(is_open_container()) - to_chat(user,"\The [src] needs to be secured first!") + to_chat(user,SPAN_NOTICE("\The [src] needs to be secured first!")) else if(reagents.total_volume <= 0) - to_chat(user,"\The [src] is empty!") + to_chat(user,SPAN_NOTICE("\The [src] is empty!")) else if(E.reagents.total_volume < E.reagents.maximum_volume) reagents.trans_to(E, src.reagents.total_volume) - user.visible_message("[user] fills \the [E] with the [src].", "You fill \the [E] with the [src].") + user.visible_message(SPAN_NOTICE("[user] fills \the [E] with the [src]."), + SPAN_NOTICE("You fill \the [E] with the [src].")) + playsound(E.loc, 'sound/items/stimpack.ogg', 50, 1) else - to_chat(user,"\The [E] is full!") + to_chat(user,SPAN_NOTICE("\The [E] is full!")) return TRUE . = ..() @@ -48,12 +50,12 @@ /obj/item/reagent_containers/extinguisher_refill/attack_self(mob/user as mob) //Copied from inhalers. if(is_open_container()) if(LAZYLEN(reagents.reagent_volumes)) - to_chat(user,"With a quick twist of the cartridge's lid, you secure the reagents inside \the [src].") + to_chat(user,SPAN_NOTICE("With a quick twist of the cartridge's lid, you secure the reagents inside \the [src].")) atom_flags &= ~ATOM_FLAG_OPEN_CONTAINER else - to_chat(user,"You can't secure the cartridge without putting reagents in!") + to_chat(user,SPAN_NOTICE("You can't secure the cartridge without putting reagents in!")) else - to_chat(user,"\The reagents inside [src] are already secured!") + to_chat(user,SPAN_NOTICE("\The reagents inside [src] are already secured!")) return /obj/item/reagent_containers/extinguisher_refill/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) @@ -152,15 +154,17 @@ if(istype(attacking_item,/obj/item/reagent_containers/extinguisher_refill)) var/obj/item/reagent_containers/extinguisher_refill/ER = attacking_item if(ER.is_open_container()) - to_chat(user,"\The [ER] needs to be secured first!") + to_chat(user,SPAN_NOTICE("\The [ER] needs to be secured first!")) else if(ER.reagents.total_volume <= 0) - to_chat(user,"\The [ER] is empty!") + to_chat(user,SPAN_NOTICE("\The [ER] is empty!")) else if (src.reagents.total_volume < src.reagents.maximum_volume) ER.reagents.trans_to(src, ER.reagents.total_volume) - user.visible_message("[user] fills \the [src] with the [ER].", "You fill \the [src] with the [ER].") + user.visible_message(SPAN_NOTICE("[user] fills \the [src] with the [ER]."), + SPAN_NOTICE("You fill \the [src] with the [ER].")) + playsound(ER.loc, 'sound/items/stimpack.ogg', 50, 1) else - to_chat(user,"\The [src] is full!") + to_chat(user,SPAN_NOTICE("\The [src] is full!")) return TRUE . = ..() diff --git a/code/game/objects/items/weapons/grenades/chem_grenade.dm b/code/game/objects/items/weapons/grenades/chem_grenade.dm index 74dfaa41bf4..6619746ab6c 100644 --- a/code/game/objects/items/weapons/grenades/chem_grenade.dm +++ b/code/game/objects/items/weapons/grenades/chem_grenade.dm @@ -37,7 +37,7 @@ user.put_in_hands(B) name = "unsecured grenade with [beakers.len] containers[detonator?" and detonator":""]" if(stage > 1 && !active && clown_check(user)) - to_chat(user, "You prime \the [name]!") + to_chat(user, SPAN_WARNING("You prime \the [name]!")) msg_admin_attack("[user.name] ([user.ckey]) primed \a [src]. (JMP)",ckey=key_name(user)) @@ -52,13 +52,13 @@ if(istype(attacking_item,/obj/item/device/assembly_holder) && (!stage || stage==1) && path != 2) var/obj/item/device/assembly_holder/det = attacking_item if(istype(det.a_left,det.a_right.type) || (!isigniter(det.a_left) && !isigniter(det.a_right))) - to_chat(user, "Assembly must contain one igniter.") + to_chat(user, SPAN_WARNING("Assembly must contain one igniter.")) return if(!det.secured) - to_chat(user, "Assembly must be secured with screwdriver.") + to_chat(user, SPAN_WARNING("Assembly must be secured with screwdriver.")) return path = 1 - to_chat(user, "You add [attacking_item] to the metal casing.") + to_chat(user, SPAN_NOTICE("You add [attacking_item] to the metal casing.")) playsound(src.loc, attacking_item.usesound, 25, -3) user.remove_from_mob(det) det.forceMove(src) @@ -76,21 +76,21 @@ if(stage == 1) path = 1 if(beakers.len) - to_chat(user, "You lock the assembly.") + to_chat(user, SPAN_NOTICE("You lock the assembly.")) name = "grenade" else - to_chat(user, "You lock the empty assembly.") + to_chat(user, SPAN_NOTICE("You lock the empty assembly.")) name = "fake grenade" playsound(src.loc, attacking_item.usesound, 25, -3) icon_state = initial(icon_state) +"_locked" stage = 2 else if(stage == 2) if(active && prob(95)) - to_chat(user, "You trigger the assembly!") + to_chat(user, SPAN_WARNING("You trigger the assembly!")) prime() return else - to_chat(user, "You unlock the assembly.") + to_chat(user, SPAN_NOTICE("You unlock the assembly.")) playsound(src.loc, attacking_item.usesound, 25, -3) name = "unsecured grenade with [beakers.len] containers[detonator?" and detonator":""]" icon_state = initial(icon_state) + (detonator?"_ass":"") @@ -99,17 +99,17 @@ else if(is_type_in_list(attacking_item, allowed_containers) && (!stage || stage==1) && path != 2) path = 1 if(beakers.len == 2) - to_chat(user, "The grenade can not hold more containers.") + to_chat(user, SPAN_WARNING("The grenade can not hold more containers.")) return else if(attacking_item.reagents.total_volume) - to_chat(user, "You add \the [attacking_item] to the assembly.") + to_chat(user, SPAN_NOTICE("You add \the [attacking_item] to the assembly.")) user.drop_from_inventory(attacking_item,src) beakers += attacking_item stage = 1 name = "unsecured grenade with [beakers.len] containers[detonator?" and detonator":""]" else - to_chat(user, "\The [attacking_item] is empty.") + to_chat(user, SPAN_WARNING("\The [attacking_item] is empty.")) /obj/item/grenade/chem_grenade/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() diff --git a/code/game/objects/items/weapons/grenades/grenade.dm b/code/game/objects/items/weapons/grenades/grenade.dm index 502853c8653..73807e63c60 100644 --- a/code/game/objects/items/weapons/grenades/grenade.dm +++ b/code/game/objects/items/weapons/grenades/grenade.dm @@ -21,7 +21,7 @@ /obj/item/grenade/proc/clown_check(var/mob/living/user) if((user.is_clumsy()) && prob(50)) - to_chat(user, "Huh? How does this thing work?") + to_chat(user, SPAN_WARNING("Huh? How does this thing work?")) activate(user) add_fingerprint(user) @@ -50,7 +50,7 @@ /obj/item/grenade/attack_self(mob/user as mob) if(!active) if(clown_check(user)) - to_chat(user, "You prime \the [name]! [det_time/10] seconds!") + to_chat(user, SPAN_WARNING("You prime \the [name]! [det_time/10] seconds!")) activate(user) add_fingerprint(user) diff --git a/code/game/objects/items/weapons/landmines.dm b/code/game/objects/items/weapons/landmines.dm index 8c6ddfe41f5..9cf0e6abc9b 100644 --- a/code/game/objects/items/weapons/landmines.dm +++ b/code/game/objects/items/weapons/landmines.dm @@ -23,7 +23,7 @@ return layer = ABOVE_TILE_LAYER - to_chat(usr, "You hide \the [src].") + to_chat(usr, SPAN_NOTICE("You hide \the [src].")) /obj/item/landmine/attack_self(mob/user) @@ -33,14 +33,14 @@ return if(!deployed && !use_check(user, USE_DISALLOW_SILICONS)) user.visible_message( - "[user] starts to deploy \the [src].", - "You begin deploying \the [src]!" + SPAN_DANGER("[user] starts to deploy \the [src]."), + SPAN_DANGER("You begin deploying \the [src]!") ) if (do_after(user, 6 SECONDS, do_flags = DO_REPAIR_CONSTRUCT)) user.visible_message( - "[user] has deployed \the [src].", - "You have deployed \the [src]!" + SPAN_DANGER("[user] has deployed \the [src]."), + SPAN_DANGER("You have deployed \the [src]!") ) deploy(user) @@ -85,9 +85,9 @@ var/mob/living/L = AM if(L.mob_size >= 5) L.visible_message( - "[L] steps on \the [src].", - "You step on \the [src]!", - "You hear a mechanical click!" + SPAN_DANGER("[L] steps on \the [src]."), + SPAN_DANGER("You step on \the [src]!"), + SPAN_DANGER("You hear a mechanical click!") ) trigger(L) ..() diff --git a/code/game/objects/items/weapons/material/knives.dm b/code/game/objects/items/weapons/material/knives.dm index 03c92387a61..3cf8378a17c 100644 --- a/code/game/objects/items/weapons/material/knives.dm +++ b/code/game/objects/items/weapons/material/knives.dm @@ -55,9 +55,9 @@ var/obj/item/organ/external/O = available_organs[choice] for(var/thing in O.implants) var/obj/S = thing - usr.visible_message("[usr] starts carefully digging out something in [H == usr ? "themselves" : H]...") + usr.visible_message(SPAN_NOTICE("[usr] starts carefully digging out something in [H == usr ? "themselves" : H]...")) O.take_damage(8, 0, DAMAGE_FLAG_SHARP|DAMAGE_FLAG_EDGE, src) - H.custom_pain("It burns!", 50) + H.custom_pain(SPAN_DANGER("It burns!"), 50) if(do_mob(usr, H, 100)) H.remove_implant(S, FALSE) log_and_message_admins("has extracted [S] out of [key_name(H)]") @@ -178,10 +178,10 @@ /obj/item/material/knife/butterfly/attack_self(mob/user) active = !active if(active) - to_chat(user, "You flip out \the [src].") + to_chat(user, SPAN_NOTICE("You flip out \the [src].")) playsound(user, 'sound/weapons/blade_open.ogg', 15, 1) else - to_chat(user, "\The [src] can now be concealed.") + to_chat(user, SPAN_NOTICE("\The [src] can now be concealed.")) playsound(user, 'sound/weapons/blade_close.ogg', 15, 1) update_force() add_fingerprint(user) diff --git a/code/game/objects/items/weapons/material/material_armor.dm b/code/game/objects/items/weapons/material/material_armor.dm index 59787395811..535545624e3 100644 --- a/code/game/objects/items/weapons/material/material_armor.dm +++ b/code/game/objects/items/weapons/material/material_armor.dm @@ -56,23 +56,23 @@ Protectiveness | Armor % if(istype(attacking_item, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/S = attacking_item if(wired) - to_chat(user, "This already has enough wires on it.") + to_chat(user, SPAN_WARNING("This already has enough wires on it.")) return if(S.use(20)) - to_chat(user, "You attach several wires to \the [src]..") + to_chat(user, SPAN_NOTICE("You attach several wires to \the [src]..")) wired = TRUE icon_state = "[initial(icon_state)]_wired" return else - to_chat(user, "You need more wire for that.") + to_chat(user, SPAN_NOTICE("You need more wire for that.")) return if(istype(attacking_item, /obj/item/material/armor_plating)) var/obj/item/material/armor_plating/second_plate = attacking_item if(!wired && !second_plate.wired) - to_chat(user, "You need something to hold the two pieces of plating together.") + to_chat(user, SPAN_WARNING("You need something to hold the two pieces of plating together.")) return if(second_plate.material != src.material) - to_chat(user, "Both plates need to be the same type of material.") + to_chat(user, SPAN_WARNING("Both plates need to be the same type of material.")) return //TODO: Possible better animations var/obj/item/clothing/suit/armor/material/makeshift/new_armor = new(src.loc, src.material.name) @@ -115,14 +115,14 @@ Protectiveness | Armor % if(istype(attacking_item, /obj/item/stack/material)) var/obj/item/stack/material/S = attacking_item if(S.use(2)) - to_chat(user, "You apply some [S.material.use_name] to \the [src]. ") + to_chat(user, SPAN_NOTICE("You apply some [S.material.use_name] to \the [src]. ")) var/obj/item/clothing/head/helmet/material/makeshift/helmet = new(null, S.material.name) user.put_in_hands(helmet) user.drop_from_inventory(src) qdel(src) return else - to_chat(user, "You don't have enough material to build a helmet!") + to_chat(user, SPAN_WARNING("You don't have enough material to build a helmet!")) else ..() diff --git a/code/game/objects/items/weapons/material/swords.dm b/code/game/objects/items/weapons/material/swords.dm index 6a2511df571..161b810191e 100644 --- a/code/game/objects/items/weapons/material/swords.dm +++ b/code/game/objects/items/weapons/material/swords.dm @@ -30,7 +30,7 @@ parry_bonus = has_parry_bonus // proc returns the parry multiplier if(default_parry_check(user, attacker, damage_source) && prob(parry_chance * parry_bonus)) - user.visible_message("\The [user] parries [attack_text] with \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] parries [attack_text] with \the [src]!")) playsound(user.loc, 'sound/weapons/bladeparry.ogg', 50, 1) return PROJECTILE_STOPPED return FALSE diff --git a/code/game/objects/items/weapons/material/twohanded.dm b/code/game/objects/items/weapons/material/twohanded.dm index b2d662dbfb1..75a94460182 100644 --- a/code/game/objects/items/weapons/material/twohanded.dm +++ b/code/game/objects/items/weapons/material/twohanded.dm @@ -95,7 +95,7 @@ //Allow a small chance of parrying melee attacks when wielded - maybe generalize this to other weapons someday /obj/item/material/twohanded/handle_shield(mob/user, var/on_back, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack") if(wielded && default_parry_check(user, attacker, damage_source) && prob(parry_chance)) - user.visible_message("\The [user] parries [attack_text] with \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] parries [attack_text] with \the [src]!")) playsound(user.loc, /singleton/sound_category/punchmiss_sound, 50, 1) return PROJECTILE_STOPPED return FALSE @@ -115,18 +115,18 @@ if(istype(user, /mob/living/carbon/human)) var/mob/living/carbon/human/H = user if(issmall(H)) - to_chat(user, "It's too heavy for you to wield fully.") + to_chat(user, SPAN_WARNING("It's too heavy for you to wield fully.")) return else return if(!istype(user.get_active_hand(), src)) - to_chat(user, "You need to be holding the [name] in your active hand.") + to_chat(user, SPAN_WARNING("You need to be holding the [name] in your active hand.")) return if(wielded) //Trying to unwield it unwield() - to_chat(user, "You are now carrying the [name] with one hand.") + to_chat(user, SPAN_NOTICE("You are now carrying the [name] with one hand.")) var/obj/item/material/twohanded/offhand/O = user.get_inactive_hand() if(O && istype(O)) @@ -138,10 +138,10 @@ if(offhand_item) user.unEquip(offhand_item, FALSE, user.loc) if(user.get_inactive_hand()) - to_chat(user, "You need your other hand to be empty.") + to_chat(user, SPAN_WARNING("You need your other hand to be empty.")) return wield() - to_chat(user, "You grip the [base_name] with both hands.") + to_chat(user, SPAN_NOTICE("You grip the [base_name] with both hands.")) var/obj/item/material/twohanded/offhand/O = new /obj/item/material/twohanded/offhand(user) ////Let's reserve his other hand~ O.name = "[base_name] - offhand" @@ -270,7 +270,7 @@ /obj/item/material/twohanded/spear/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/organ/external/head)) - to_chat(user, "You stick the head onto the spear and stand it upright on the ground.") + to_chat(user, SPAN_NOTICE("You stick the head onto the spear and stand it upright on the ground.")) var/obj/structure/headspear/HS = new /obj/structure/headspear(user.loc) var/matrix/M = matrix() attacking_item.transform = M @@ -284,7 +284,7 @@ return if(istype(attacking_item, /obj/item/grenade)) - to_chat(user, "You strap \the [attacking_item] to \the [src].") + to_chat(user, SPAN_NOTICE("You strap \the [attacking_item] to \the [src].")) user.unEquip(attacking_item) attacking_item.forceMove(src) explosive = attacking_item @@ -339,7 +339,7 @@ anchored = 1 /obj/structure/headspear/attack_hand(mob/living/user) - user.visible_message("[user] kicks over \the [src]!", "You kick down \the [src]!") + user.visible_message(SPAN_WARNING("[user] kicks over \the [src]!"), SPAN_DANGER("You kick down \the [src]!")) new /obj/item/material/twohanded/spear(user.loc, material) for(var/obj/item/organ/external/head/H in src) H.forceMove(user.loc) diff --git a/code/game/objects/items/weapons/melee/energy.dm b/code/game/objects/items/weapons/melee/energy.dm index 1a024368125..3849c0ee57c 100644 --- a/code/game/objects/items/weapons/melee/energy.dm +++ b/code/game/objects/items/weapons/melee/energy.dm @@ -47,8 +47,8 @@ /obj/item/melee/energy/attack_self(mob/living/user as mob) if(active) if ((user.is_clumsy()) && prob(50)) - user.visible_message("\The [user] accidentally cuts [user.get_pronoun("himself")] with \the [src].",\ - "You accidentally cut yourself with \the [src].") + user.visible_message(SPAN_DANGER("\The [user] accidentally cuts [user.get_pronoun("himself")] with \the [src]."),\ + SPAN_DANGER("You accidentally cut yourself with \the [src].")) user.take_organ_damage(5,5) deactivate(user) else @@ -64,7 +64,7 @@ /obj/item/melee/energy/handle_shield(mob/user, var/on_back, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack") if(active && default_parry_check(user, attacker, damage_source) && prob(50)) - user.visible_message("\The [user] parries [attack_text] with \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] parries [attack_text] with \the [src]!")) spark(src, 5) playsound(user.loc, 'sound/weapons/blade.ogg', 50, 1) return PROJECTILE_STOPPED @@ -96,7 +96,7 @@ if(!(def_zone in list(BP_CHEST, BP_GROIN,BP_HEAD))) reflectchance /= 2 if(P.starting && prob(reflectchance)) - visible_message("\The [user]'s [src.name] reflects [attack_text]!") + visible_message(SPAN_DANGER("\The [user]'s [src.name] reflects [attack_text]!")) // Find a turf near or on the original location to bounce to var/new_x = P.starting.x + pick(0, 0, 0, 0, 0, -1, 1, -2, 2) @@ -108,7 +108,7 @@ return PROJECTILE_CONTINUE // complete projectile permutation else - user.visible_message("\The [user] blocks [attack_text] with \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] blocks [attack_text] with \the [src]!")) return PROJECTILE_STOPPED else if(istype(damage_source, /obj/item/projectile/bullet) && can_block_bullets) @@ -116,7 +116,7 @@ if(!(def_zone in list(BP_CHEST, BP_GROIN,BP_HEAD))) reflectchance /= 2 if(prob(reflectchance)) - user.visible_message("\The [user] blocks [attack_text] with \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] blocks [attack_text] with \the [src]!")) return PROJECTILE_STOPPED /obj/item/melee/energy/get_print_info() @@ -156,12 +156,12 @@ /obj/item/melee/energy/glaive/activate(mob/living/user) ..() icon_state = "eglaive1" - to_chat(user, "\The [src] is now energised.") + to_chat(user, SPAN_NOTICE("\The [src] is now energised.")) /obj/item/melee/energy/glaive/deactivate(mob/living/user) ..() icon_state = initial(icon_state) - to_chat(user, "\The [src] is de-energised.") + to_chat(user, SPAN_NOTICE("\The [src] is de-energised.")) /obj/item/melee/energy/glaive/attack(mob/living/carbon/human/M as mob, mob/living/carbon/user as mob) user.setClickCooldown(16) @@ -202,12 +202,12 @@ /obj/item/melee/energy/axe/activate(mob/living/user) ..() icon_state = "axe1" - to_chat(user, "\The [src] is now energised.") + to_chat(user, SPAN_NOTICE("\The [src] is now energised.")) /obj/item/melee/energy/axe/deactivate(mob/living/user) ..() icon_state = initial(icon_state) - to_chat(user, "\The [src] is de-energised. It's just a regular axe now.") + to_chat(user, SPAN_NOTICE("\The [src] is de-energised. It's just a regular axe now.")) /obj/item/melee/energy/axe/can_woodcut() if(active) @@ -262,14 +262,14 @@ /obj/item/melee/energy/sword/activate(mob/living/user) if(!active) - to_chat(user, "\The [src] is now energised.") + to_chat(user, SPAN_NOTICE("\The [src] is now energised.")) ..() attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut") icon_state = "sword[blade_color]" /obj/item/melee/energy/sword/deactivate(mob/living/user) if(active) - to_chat(user, "\The [src] deactivates!") + to_chat(user, SPAN_NOTICE("\The [src] deactivates!")) ..() attack_verb = list() icon_state = initial(icon_state) @@ -413,8 +413,8 @@ /obj/item/melee/energy/sword/powersword/attack_self(mob/living/user as mob) ..() if(prob(30)) - user.visible_message("\The [user] accidentally cuts [user.get_pronoun("himself")] with \the [src].",\ - "You accidentally cut yourself with \the [src].") + user.visible_message(SPAN_DANGER("\The [user] accidentally cuts [user.get_pronoun("himself")] with \the [src]."),\ + SPAN_DANGER("You accidentally cut yourself with \the [src].")) user.take_organ_damage(5,5) /* *Energy Blade diff --git a/code/game/objects/items/weapons/melee/misc.dm b/code/game/objects/items/weapons/melee/misc.dm index b692467a8e2..368268e821c 100644 --- a/code/game/objects/items/weapons/melee/misc.dm +++ b/code/game/objects/items/weapons/melee/misc.dm @@ -113,10 +113,10 @@ ..() if(prob(trigger_chance)) if(!on) - to_chat(user, "\The [src] buzzes!") + to_chat(user, SPAN_WARNING("\The [src] buzzes!")) return playsound(user, 'sound/weapons/beartrap_shut.ogg', 50, 1, -1) - user.visible_message("\The [user] slams \the [target] away with \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] slams \the [target] away with \the [src]!")) var/T = get_turf(user) spark(T, 3, GLOB.alldirs) step_away(target,user,15) @@ -139,7 +139,7 @@ R.cell.use(150) /obj/item/melee/hammer/powered/proc/rearm() - src.visible_message("\The [src] hisses lowly.") + src.visible_message(SPAN_NOTICE("\The [src] hisses lowly.")) on = TRUE update_icon() @@ -173,7 +173,7 @@ else if(target_zone == BP_R_HAND || target_zone == BP_R_ARM) if (target.r_hand && target.r_hand != src) target.drop_r_hand() - user.visible_message("\The [user] disarms \the [target] with \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] disarms \the [target] with \the [src]!")) return /obj/item/melee/ceremonial_sword diff --git a/code/game/objects/items/weapons/shields.dm b/code/game/objects/items/weapons/shields.dm index 323695b38be..1655118cc67 100644 --- a/code/game/objects/items/weapons/shields.dm +++ b/code/game/objects/items/weapons/shields.dm @@ -87,7 +87,7 @@ /obj/item/shield/riot/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/melee/baton)) if(cooldown < world.time - 25) - user.visible_message("[user] bashes [src] with [attacking_item]!") + user.visible_message(SPAN_WARNING("[user] bashes [src] with [attacking_item]!")) playsound(user.loc, 'sound/effects/shieldbash.ogg', 50, 1) cooldown = world.time else diff --git a/code/game/objects/items/weapons/storage/backpack.dm b/code/game/objects/items/weapons/storage/backpack.dm index c44012a3347..9ee1d5cd959 100644 --- a/code/game/objects/items/weapons/storage/backpack.dm +++ b/code/game/objects/items/weapons/storage/backpack.dm @@ -75,7 +75,7 @@ wearable = 1 if(!wearable && !(slot in list(slot_l_store, slot_r_store, slot_s_store))) - to_chat(H, "Your species cannot wear [src].") + to_chat(H, SPAN_DANGER("Your species cannot wear [src].")) return 0 return 1 @@ -96,7 +96,7 @@ /obj/item/storage/backpack/holding/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/storage/backpack/holding)) - to_chat(user, "The Bluespace interfaces of the two devices conflict and malfunction.") + to_chat(user, SPAN_WARNING("The Bluespace interfaces of the two devices conflict and malfunction.")) qdel(attacking_item) return ..() diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index ea65756ac7f..a32f2259001 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -81,7 +81,9 @@ user.do_attack_animation(src) if ((health-damage) <= 0) - L.visible_message("[L] tears open the [src], spilling its contents everywhere!", "You tear open the [src], spilling its contents everywhere!") + L.visible_message(SPAN_DANGER("[L] tears open the [src], spilling its contents everywhere!"), + SPAN_DANGER("You tear open the [src], spilling its contents everywhere!")) + spill() else shake_animation() diff --git a/code/game/objects/items/weapons/storage/laundry_basket.dm b/code/game/objects/items/weapons/storage/laundry_basket.dm index e39fe6b9684..c81f9f6c964 100644 --- a/code/game/objects/items/weapons/storage/laundry_basket.dm +++ b/code/game/objects/items/weapons/storage/laundry_basket.dm @@ -28,17 +28,17 @@ if (user.hand) temp = H.get_organ(BP_L_HAND) if(!temp) - to_chat(user, "You need two hands to pick this up!") + to_chat(user, SPAN_WARNING("You need two hands to pick this up!")) return if(user.get_inactive_hand()) - to_chat(user, "You need your other hand to be empty") + to_chat(user, SPAN_WARNING("You need your other hand to be empty")) return return ..() /obj/item/storage/laundry_basket/attack_self(mob/user as mob) var/turf/T = get_turf(user) - to_chat(user, "You dump the [src]'s contents onto \the [T].") + to_chat(user, SPAN_NOTICE("You dump the [src]'s contents onto \the [T].")) return ..() /obj/item/storage/laundry_basket/pickup(mob/user) diff --git a/code/game/objects/items/weapons/storage/lockbox.dm b/code/game/objects/items/weapons/storage/lockbox.dm index dbf943a11e6..5ae5fa73f12 100644 --- a/code/game/objects/items/weapons/storage/lockbox.dm +++ b/code/game/objects/items/weapons/storage/lockbox.dm @@ -21,22 +21,22 @@ /obj/item/storage/lockbox/attackby(attacking_item, mob/user) if(istype(attacking_item, /obj/item/card/id)) if(src.broken) - to_chat(user, "It appears to be broken.") + to_chat(user, SPAN_WARNING("It appears to be broken.")) return if(src.allowed(user)) src.locked = !( src.locked ) if(src.locked) src.icon_state = src.icon_locked item_state = icon_state - to_chat(user, "You lock \the [src]!") + to_chat(user, SPAN_NOTICE("You lock \the [src]!")) return else src.icon_state = src.icon_closed item_state = icon_state - to_chat(user, "You unlock \the [src]!") + to_chat(user, SPAN_NOTICE("You unlock \the [src]!")) return else - to_chat(user, "Access Denied") + to_chat(user, SPAN_WARNING("Access Denied")) else if(istype(attacking_item, /obj/item/melee/energy/blade)) if(emag_act(INFINITY, user, attacking_item, "The locker has been sliced open by [user] with an energy blade!", "You hear metal being sliced and sparks flying.")) var/obj/item/melee/energy/blade/blade = attacking_item @@ -46,12 +46,12 @@ if(!locked) ..() else - to_chat(user, "It's locked!") + to_chat(user, SPAN_WARNING("It's locked!")) return /obj/item/storage/lockbox/show_to(mob/user as mob) if(locked) - to_chat(user, "It's locked!") + to_chat(user, SPAN_WARNING("It's locked!")) else ..() return @@ -59,13 +59,13 @@ /obj/item/storage/lockbox/emag_act(var/remaining_charges, var/mob/user, var/emag_source, var/visual_feedback = "", var/audible_feedback = "") if(!broken) if(visual_feedback) - visual_feedback = "[visual_feedback]" + visual_feedback = SPAN_WARNING("[visual_feedback]") else - visual_feedback = "The locker has been sliced open by [user] with an electromagnetic card!" + visual_feedback = SPAN_WARNING("The locker has been sliced open by [user] with an electromagnetic card!") if(audible_feedback) - audible_feedback = "[audible_feedback]" + audible_feedback = SPAN_WARNING("[audible_feedback]") else - audible_feedback = "You hear a faint electrical spark." + audible_feedback = SPAN_WARNING("You hear a faint electrical spark.") broken = 1 locked = 0 diff --git a/code/game/objects/items/weapons/storage/secure.dm b/code/game/objects/items/weapons/storage/secure.dm index 181d5b2adeb..c0c3ec1c596 100644 --- a/code/game/objects/items/weapons/storage/secure.dm +++ b/code/game/objects/items/weapons/storage/secure.dm @@ -159,7 +159,7 @@ /obj/item/storage/secure/briefcase/attack_hand(mob/user as mob) if((src.loc == user) && (src.locked == 1)) - to_chat(usr, "[src] is locked and cannot be opened!") + to_chat(usr, SPAN_WARNING("[src] is locked and cannot be opened!")) else if((src.loc == user) && (!src.locked)) src.open(usr) else diff --git a/code/game/objects/items/weapons/storage/storage.dm b/code/game/objects/items/weapons/storage/storage.dm index 026189fea17..2fd95d5b1a8 100644 --- a/code/game/objects/items/weapons/storage/storage.dm +++ b/code/game/objects/items/weapons/storage/storage.dm @@ -737,7 +737,7 @@ var/obj/item/tray/T = attacking_item if(T.current_weight > 0) T.spill(user) - to_chat(user, "Trying to place a loaded tray into [src] was a bad idea.") + to_chat(user, SPAN_WARNING("Trying to place a loaded tray into [src] was a bad idea.")) return if(istype(attacking_item, /obj/item/device/hand_labeler)) diff --git a/code/game/objects/items/weapons/storage/wallets.dm b/code/game/objects/items/weapons/storage/wallets.dm index db8fb2dd74e..d7fea0788c0 100644 --- a/code/game/objects/items/weapons/storage/wallets.dm +++ b/code/game/objects/items/weapons/storage/wallets.dm @@ -158,7 +158,7 @@ if(use_check_and_message(usr, use_flags = USE_DISALLOW_SILICONS)) return if(wear_over_suit == -1) - to_chat(usr, "\The [src] cannot be worn above your suit!") + to_chat(usr, SPAN_NOTICE("\The [src] cannot be worn above your suit!")) return wear_over_suit = !wear_over_suit mob_icon_update() diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm index 6f358de382b..6174a4eafd5 100644 --- a/code/game/objects/items/weapons/stunbaton.dm +++ b/code/game/objects/items/weapons/stunbaton.dm @@ -64,26 +64,26 @@ if(!distance <= 1) return if(bcell) - . += "The baton is [round(bcell.percent())]% charged." + . += SPAN_NOTICE("The baton is [round(bcell.percent())]% charged.") else - . += "The baton does not have a power source installed." + . += SPAN_WARNING("The baton does not have a power source installed.") /obj/item/melee/baton/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/cell)) if(!bcell) user.drop_from_inventory(attacking_item, src) bcell = attacking_item - to_chat(user, "You install a cell in [src].") + to_chat(user, SPAN_NOTICE("You install a cell in [src].")) update_icon() else - to_chat(user, "[src] already has a cell.") + to_chat(user, SPAN_NOTICE("[src] already has a cell.")) else if(attacking_item.isscrewdriver()) if(bcell) bcell.update_icon() bcell.forceMove(get_turf(src)) bcell = null - to_chat(user, "You remove the cell from the [src].") + to_chat(user, SPAN_NOTICE("You remove the cell from the [src].")) status = 0 update_icon() return @@ -93,22 +93,22 @@ /obj/item/melee/baton/attack_self(mob/user) if(bcell && bcell.charge > hitcost) status = !status - to_chat(user, "[src] is now [status ? "on" : "off"].") + to_chat(user, SPAN_NOTICE("[src] is now [status ? "on" : "off"].")) playsound(loc, /singleton/sound_category/spark_sound, 75, 1, -1) update_icon() else status = 0 if(!bcell) - to_chat(user, "[src] does not have a power source!") + to_chat(user, SPAN_WARNING("[src] does not have a power source!")) else - to_chat(user, "[src] is out of charge.") + to_chat(user, SPAN_WARNING("[src] is out of charge.")) add_fingerprint(user) /obj/item/melee/baton/attack(mob/living/L, mob/user, var/hit_zone) if(!L) return if(status && (user.is_clumsy()) && prob(50)) - to_chat(user, "You accidentally hit yourself with the [src]!") + to_chat(user, SPAN_DANGER("You accidentally hit yourself with the [src]!")) user.Weaken(30) deductcharge(hitcost) return @@ -121,7 +121,7 @@ var/stun = stunforce if(user.is_pacified()) - to_chat(user, "You don't want to risk hurting [L]!") + to_chat(user, SPAN_NOTICE("You don't want to risk hurting [L]!")) return 0 var/target_zone = check_zone(hit_zone) @@ -152,17 +152,17 @@ target_zone = get_zone_with_miss_chance(user.zone_sel.selecting, L) if(!target_zone) - L.visible_message("[user] misses [L] with \the [src]!") + L.visible_message(SPAN_WARNING("[user] misses [L] with \the [src]!")) return 0 var/mob/living/carbon/human/H = L var/obj/item/organ/external/affecting = H.get_organ(target_zone) if (affecting) if(!status) - L.visible_message("[L] has been prodded in the [affecting.name] with \the [src] by [user]. Luckily it was off.") + L.visible_message(SPAN_WARNING("[L] has been prodded in the [affecting.name] with \the [src] by [user]. Luckily it was off.")) return 1 else - H.visible_message("[L] has been prodded in the [affecting.name] with \the [src] by [user]!") + H.visible_message(SPAN_DANGER("[L] has been prodded in the [affecting.name] with \the [src] by [user]!")) var/intent = "(INTENT: [user? uppertext(user.a_intent) : "N/A"])" admin_attack_log(user, L, "was stunned by this mob with [src] [intent]", "stunned this mob with [src] [intent]", "stunned with [src]") if(!sheathed) @@ -170,10 +170,10 @@ if(isslime(L)) var/mob/living/carbon/slime/S = L if(!status) - L.visible_message("[S] has been prodded with \the [src] by [user]. Too bad it was off.") + L.visible_message(SPAN_WARNING("[S] has been prodded with \the [src] by [user]. Too bad it was off.")) return TRUE else - L.visible_message("[S] has been prodded with \the [src] by [user]!") + L.visible_message(SPAN_DANGER("[S] has been prodded with \the [src] by [user]!")) S.discipline++ if(prob(1)) @@ -182,10 +182,10 @@ else if(!status) - L.visible_message("[L] has been prodded with \the [src] by [user]. Luckily it was off.") + L.visible_message(SPAN_WARNING("[L] has been prodded with \the [src] by [user]. Luckily it was off.")) return TRUE else - L.visible_message("[L] has been prodded with \the [src] by [user]!") + L.visible_message(SPAN_DANGER("[L] has been prodded with \the [src] by [user]!")) //stun effects L.stun_effect_act(stun, agony, target_zone, src) diff --git a/code/game/objects/items/weapons/surgery_tools.dm b/code/game/objects/items/weapons/surgery_tools.dm index 4fdb49c4ec7..ec2ea6a12ef 100644 --- a/code/game/objects/items/weapons/surgery_tools.dm +++ b/code/game/objects/items/weapons/surgery_tools.dm @@ -272,10 +272,10 @@ if (H.hand) temp = H.organs_by_name[BP_L_HAND] if(temp && !temp.is_usable()) - to_chat(user, "You try to move your [temp.name], but cannot!") + to_chat(user, SPAN_NOTICE("You try to move your [temp.name], but cannot!")) return - to_chat(user, "You pick up the [src].") + to_chat(user, SPAN_NOTICE("You pick up the [src].")) pixel_x = 0 pixel_y = 0 forceMove(get_turf(user)) diff --git a/code/game/objects/items/weapons/swords_axes_etc.dm b/code/game/objects/items/weapons/swords_axes_etc.dm index f9a848085a4..f4f343dd2b0 100644 --- a/code/game/objects/items/weapons/swords_axes_etc.dm +++ b/code/game/objects/items/weapons/swords_axes_etc.dm @@ -22,7 +22,7 @@ /obj/item/melee/classic_baton/attack(mob/M as mob, mob/living/user as mob, var/target_zone) if ((user.is_clumsy()) && prob(50)) - to_chat(user, "You club yourself over the head.") + to_chat(user, SPAN_WARNING("You club yourself over the head.")) user.Weaken(3 * force) if(ishuman(user)) var/mob/living/carbon/human/H = user diff --git a/code/game/objects/items/weapons/syndie.dm b/code/game/objects/items/weapons/syndie.dm index 786ecf7045a..7a8312bda8a 100644 --- a/code/game/objects/items/weapons/syndie.dm +++ b/code/game/objects/items/weapons/syndie.dm @@ -87,12 +87,12 @@ pr_open = 1 switch(alert(user, "What would you like to do?", "Lighter", "Press the button.", "Close the lighter.")) if("Press the button.") - to_chat(user, "You press the button.") + to_chat(user, SPAN_WARNING("You press the button.")) flick("c-4detonator_click", src) if(src.bomb) src.bomb.detonate() log_admin("[key_name(user)] has triggered [src.bomb] with [src].",ckey=key_name(user)) - message_admins("[key_name_admin(user)] has triggered [src.bomb] with [src].") + message_admins(SPAN_DANGER("[key_name_admin(user)] has triggered [src.bomb] with [src].")) if("Close the lighter.") src.icon_state = "c-4detonator_0" diff --git a/code/game/objects/items/weapons/tanks/jetpack.dm b/code/game/objects/items/weapons/tanks/jetpack.dm index 5bbb718d6c0..600a604be2b 100644 --- a/code/game/objects/items/weapons/tanks/jetpack.dm +++ b/code/game/objects/items/weapons/tanks/jetpack.dm @@ -98,7 +98,7 @@ if (src.air_contents.total_moles < 3 && !warned) warned = TRUE playsound(user, 'sound/effects/alert.ogg', 50, 1) - to_chat(user, "The meter on \the [src] indicates you are almost out of gas and beeps loudly!") + to_chat(user, SPAN_DANGER("The meter on \the [src] indicates you are almost out of gas and beeps loudly!")) addtimer(CALLBACK(src, PROC_REF(reset_warning)), 600) var/datum/gas_mixture/G = src.air_contents.remove(num) diff --git a/code/game/objects/items/weapons/tanks/tanks.dm b/code/game/objects/items/weapons/tanks/tanks.dm index ab49fc0037e..754c91eff71 100644 --- a/code/game/objects/items/weapons/tanks/tanks.dm +++ b/code/game/objects/items/weapons/tanks/tanks.dm @@ -154,7 +154,7 @@ if(location.internal == src) location.internal = null location.internals.icon_state = "internal0" - to_chat(usr, "You close the tank release valve.") + to_chat(usr, SPAN_NOTICE("You close the tank release valve.")) if (location.internals) location.internals.icon_state = "internal0" else @@ -168,11 +168,11 @@ if(can_open_valve) location.internal = src - to_chat(usr, "You open \the [src] valve.") + to_chat(usr, SPAN_NOTICE("You open \the [src] valve.")) if (location.internals) location.internals.icon_state = "internal1" else - to_chat(usr, "You need something to connect to \the [src].") + to_chat(usr, SPAN_WARNING("You need something to connect to \the [src].")) . = TRUE update_icon() if(action=="setReleasePressure") diff --git a/code/game/objects/items/weapons/tanks/watertank.dm b/code/game/objects/items/weapons/tanks/watertank.dm index 8b1b5f81f38..64adfab19cb 100644 --- a/code/game/objects/items/weapons/tanks/watertank.dm +++ b/code/game/objects/items/weapons/tanks/watertank.dm @@ -36,7 +36,7 @@ if(!user) return if (user.back!= src) - to_chat(user, "The watertank must be worn properly to use!") + to_chat(user, SPAN_WARNING("The watertank must be worn properly to use!")) return if(use_check_and_message(user)) return @@ -51,7 +51,7 @@ //Detach the nozzle into the user's hands if(!user.put_in_hands(noz)) on = FALSE - to_chat(user, "You need a free hand to hold the mister!") + to_chat(user, SPAN_WARNING("You need a free hand to hold the mister!")) return noz.forceMove(user) else @@ -106,7 +106,7 @@ /obj/item/reagent_containers/spray/chemsprayer/mister/dropped(mob/user) ..() - to_chat(user, "The mister snaps back onto the watertank.") + to_chat(user, SPAN_NOTICE("The mister snaps back onto the watertank.")) tank.on = 0 forceMove(tank) @@ -144,4 +144,4 @@ /obj/item/reagent_containers/spray/chemsprayer/mister/janitor/attack_self(var/mob/user) amount_per_transfer_from_this = (amount_per_transfer_from_this == 10 ? 5 : 10) - to_chat(user, "You [amount_per_transfer_from_this == 10 ? "remove" : "fix"] the nozzle. You'll now use [amount_per_transfer_from_this] units per spray.") + to_chat(user, SPAN_NOTICE("You [amount_per_transfer_from_this == 10 ? "remove" : "fix"] the nozzle. You'll now use [amount_per_transfer_from_this] units per spray.")) diff --git a/code/game/objects/items/weapons/tape.dm b/code/game/objects/items/weapons/tape.dm index 3a2ad64550b..7ade28b88b8 100644 --- a/code/game/objects/items/weapons/tape.dm +++ b/code/game/objects/items/weapons/tape.dm @@ -13,18 +13,18 @@ if(target_zone == BP_EYES) if(!H.organs_by_name[BP_HEAD]) - to_chat(user, "\The [H] doesn't have a head.") + to_chat(user, SPAN_WARNING("\The [H] doesn't have a head.")) return if(!H.has_eyes()) - to_chat(user, "\The [H] doesn't have any eyes.") + to_chat(user, SPAN_WARNING("\The [H] doesn't have any eyes.")) return if(H.glasses) - to_chat(user, "\The [H] is already wearing something on their eyes.") + to_chat(user, SPAN_WARNING("\The [H] is already wearing something on their eyes.")) return if(H.head && (H.head.body_parts_covered & FACE)) - to_chat(user, "Remove their [H.head] first.") + to_chat(user, SPAN_WARNING("Remove their [H.head] first.")) return - user.visible_message("\The [user] begins taping over \the [H]'s eyes!") + user.visible_message(SPAN_DANGER("\The [user] begins taping over \the [H]'s eyes!")) if(!do_after(user, 3 SECONDS, H, DO_UNIQUE)) return @@ -34,26 +34,26 @@ return playsound(src, /singleton/sound_category/rip_sound, 25) - user.visible_message("\The [user] has taped up \the [H]'s eyes!") + user.visible_message(SPAN_DANGER("\The [user] has taped up \the [H]'s eyes!")) H.equip_to_slot_or_del(new /obj/item/clothing/glasses/sunglasses/blindfold/tape(H), slot_glasses) H.update_inv_glasses() else if(target_zone == BP_MOUTH || target_zone == BP_HEAD) if(!H.organs_by_name[BP_HEAD]) - to_chat(user, "\The [H] doesn't have a head.") + to_chat(user, SPAN_WARNING("\The [H] doesn't have a head.")) return if(!H.check_has_mouth()) - to_chat(user, "\The [H] doesn't have a mouth.") + to_chat(user, SPAN_WARNING("\The [H] doesn't have a mouth.")) return if(H.wear_mask) - to_chat(user, "\The [H] is already wearing a mask.") + to_chat(user, SPAN_WARNING("\The [H] is already wearing a mask.")) return if(H.head && (H.head.body_parts_covered & FACE)) - to_chat(user, "Remove their [H.head] first.") + to_chat(user, SPAN_WARNING("Remove their [H.head] first.")) return playsound(src, /singleton/sound_category/rip_sound, 25) - user.visible_message("\The [user] begins taping up \the [H]'s mouth!") + user.visible_message(SPAN_DANGER("\The [user] begins taping up \the [H]'s mouth!")) if(!do_after(user, 3 SECONDS, H, DO_UNIQUE)) return @@ -63,7 +63,7 @@ return playsound(src, /singleton/sound_category/rip_sound,25) - user.visible_message("\The [user] has taped up \the [H]'s mouth!") + user.visible_message(SPAN_DANGER("\The [user] has taped up \the [H]'s mouth!")) H.equip_to_slot_or_del(new /obj/item/clothing/mask/muzzle/tape(H), slot_wear_mask) H.update_inv_wear_mask() diff --git a/code/game/objects/items/weapons/tools.dm b/code/game/objects/items/weapons/tools.dm index 47b29fe6288..da5ea03db31 100644 --- a/code/game/objects/items/weapons/tools.dm +++ b/code/game/objects/items/weapons/tools.dm @@ -443,7 +443,7 @@ return if(istype(O, /obj/structure/reagent_dispensers/fueltank) && O.Adjacent(user) && !welding) O.reagents.trans_to_obj(src, max_fuel) - to_chat(user, "You refuel your welder.") + to_chat(user, SPAN_NOTICE("You refuel your welder.")) playsound(src.loc, 'sound/effects/refill.ogg', 50, 1, -6) return else if(istype(O, /obj/structure/reagent_dispensers/fueltank) && O.Adjacent(user) && welding) @@ -452,9 +452,9 @@ return var/obj/structure/reagent_dispensers/fueltank/tank = O if(tank.armed) - to_chat(user, "You are already heating \the [O]!") + to_chat(user, SPAN_WARNING("You are already heating \the [O]!")) return - user.visible_message("[user] begins heating \the [O]...", "You start to heat \the [O]!") + user.visible_message(SPAN_WARNING("[user] begins heating \the [O]..."), SPAN_WARNING("You start to heat \the [O]!")) switch(alert("Are you sure you want to do this? It is quite dangerous and could get you in trouble.", "Heat up fuel tank", "No", "Yes")) if("Yes") log_and_message_admins("is attempting to welderbomb", user) @@ -534,9 +534,9 @@ if(set_welding && !welding) if (get_fuel() > 0) if(M) - to_chat(M, "You switch the [src] on.") + to_chat(M, SPAN_NOTICE("You switch the [src] on.")) else if(T) - T.visible_message("\The [src] turns on.") + T.visible_message(SPAN_DANGER("\The [src] turns on.")) playsound(loc, 'sound/items/welder_activate.ogg', 50, TRUE, extrarange = SILENCED_SOUND_EXTRARANGE) force = 22 damtype = DAMAGE_BURN @@ -548,14 +548,14 @@ set_processing(TRUE) else if(M) - to_chat(M, "You need more welding fuel to complete this task.") + to_chat(M, SPAN_NOTICE("You need more welding fuel to complete this task.")) return //Otherwise else if(!set_welding && welding) if(M) - to_chat(M, "You switch \the [src] off.") + to_chat(M, SPAN_NOTICE("You switch \the [src] off.")) else if(T) - T.visible_message("\The [src] turns off.") + T.visible_message(SPAN_WARNING("\The [src] turns off.")) playsound(loc, 'sound/items/welder_deactivate.ogg', 50, TRUE, extrarange = SILENCED_SOUND_EXTRARANGE) force = 3 damtype = DAMAGE_BRUTE diff --git a/code/game/objects/items/weapons/towel.dm b/code/game/objects/items/weapons/towel.dm index 691497a8b48..5c8ad0cba48 100644 --- a/code/game/objects/items/weapons/towel.dm +++ b/code/game/objects/items/weapons/towel.dm @@ -21,13 +21,13 @@ if(istype(M) && user.a_intent == I_HELP) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) if(user.on_fire) - user.visible_message("\The [user] uses \the [src] to pat out \the [M]'s flames with \the [src]!") + user.visible_message(SPAN_WARNING("\The [user] uses \the [src] to pat out \the [M]'s flames with \the [src]!")) playsound(M, 'sound/weapons/towelwhip.ogg', 25, 1) M.ExtinguishMob(-1) else - user.visible_message("\The [user] starts drying \the [M] off with \the [src]...") + user.visible_message(SPAN_NOTICE("\The [user] starts drying \the [M] off with \the [src]...")) if(do_mob(user, M, 3 SECONDS)) - user.visible_message("\The [user] dries \the [M] off with \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] dries \the [M] off with \the [src].")) playsound(M, 'sound/weapons/towelwipe.ogg', 25, 1) M.adjust_fire_stacks(-Clamp(M.fire_stacks,-1.5,1.5)) return @@ -43,7 +43,7 @@ set category = "Object" set src in usr - to_chat(usr, "You lay out \the [src] flat on the ground.") + to_chat(usr, SPAN_NOTICE("You lay out \the [src] flat on the ground.")) var/obj/item/towel_flat/T = new /obj/item/towel_flat(usr.loc) T.color = src.color qdel(src) @@ -55,7 +55,7 @@ icon_state = "towel_flat" /obj/item/towel_flat/attack_hand(mob/user as mob) - to_chat(user, "You pick up and fold \the [src].") + to_chat(user, SPAN_NOTICE("You pick up and fold \the [src].")) var/obj/item/towel/T = new /obj/item/towel(user) T.color = src.color user.put_in_hands(T) diff --git a/code/game/objects/items/weapons/traps.dm b/code/game/objects/items/weapons/traps.dm index fc8b9add83a..989a90ced1c 100644 --- a/code/game/objects/items/weapons/traps.dm +++ b/code/game/objects/items/weapons/traps.dm @@ -191,7 +191,7 @@ else if(do_after(user, 5 SECONDS)) capture(M) else - to_chat(user, "\The [src] is already full!") + to_chat(user, SPAN_WARNING("\The [src] is already full!")) /obj/item/trap/animal/update_icon() icon_state = "[icon_base][deployed]" @@ -222,8 +222,8 @@ var/mob/living/L = AM if(msg) L.visible_message( - "[L] enters \the [src], and it snaps shut with a clatter!", - "You enter \the [src], and it snaps shut with a clatter!", + SPAN_DANGER("[L] enters \the [src], and it snaps shut with a clatter!"), + SPAN_DANGER("You enter \the [src], and it snaps shut with a clatter!"), "You hear a loud metallic snap!" ) if(AM.loc != loc) @@ -261,8 +261,8 @@ escapee.next_move = world.time + 100 escapee.last_special = world.time + 100 - to_chat(escapee, "You begin to shake and bump the lock of \the [src]. (this will take about [time_to_escape] minutes).") - visible_message("\The [src] begins to shake violently! Something is attempting to escape it!") + to_chat(escapee, SPAN_WARNING("You begin to shake and bump the lock of \the [src]. (this will take about [time_to_escape] minutes).")) + visible_message(SPAN_DANGER("\The [src] begins to shake violently! Something is attempting to escape it!")) var/time = 360 * time_to_escape * 2 breakout = TRUE @@ -272,8 +272,8 @@ return breakout = FALSE - to_chat(escapee, "You successfully break out!") - visible_message("\The [escapee] successfully breaks out of \the [src]!") + to_chat(escapee, SPAN_WARNING("You successfully break out!")) + visible_message(SPAN_DANGER("\The [escapee] successfully breaks out of \the [src]!")) playsound(loc, 'sound/effects/grillehit.ogg', 100, 1) release() @@ -293,7 +293,7 @@ return if(!ishuman(usr)) - to_chat(usr, "This mob type can't use this verb.") + to_chat(usr, SPAN_WARNING("This mob type can't use this verb.")) return var/datum/M = captured ? captured.resolve() : null @@ -305,11 +305,11 @@ return if(!can_use(usr)) - to_chat(usr, "You cannot use \the [src].") + to_chat(usr, SPAN_WARNING("You cannot use \the [src].")) return if(usr == M) - to_chat(usr, "You can't open \the [src] from the inside! You'll need to force it open.") + to_chat(usr, SPAN_WARNING("You can't open \the [src] from the inside! You'll need to force it open.")) return var/adj = src.Adjacent(usr) @@ -353,7 +353,7 @@ if(!target) target = src.loc if(user) - visible_message("[user] opens \the [src].") + visible_message(SPAN_NOTICE("[user] opens \the [src].")) var/datum/L = captured ? captured.resolve() : null if (!L) @@ -364,7 +364,7 @@ var/msg if (isliving(L)) var/mob/living/ll = L - msg = "[ll] runs out of \the [src]." + msg = SPAN_WARNING("[ll] runs out of \the [src].") unbuckle() captured = null @@ -383,7 +383,8 @@ to_chat(user, SPAN_NOTICE("You need a better grip on \the [M]!")) return - user.visible_message("[user] starts putting [M] into \the [src].", "You start putting [M] into \the [src].") + user.visible_message(SPAN_NOTICE("[user] starts putting [M] into \the [src]."), + SPAN_NOTICE("You start putting [M] into \the [src].")) if (!is_type_in_list(M, allowed_mobs)) to_chat(user, SPAN_WARNING("[M] won't fit in there!")) @@ -399,13 +400,13 @@ if(!WT.isOn()) to_chat(user, SPAN_WARNING("\The [WT] is off!")) return - user.visible_message("[user] is trying to slice \the [src] open!", - "You are trying to slice \the [src] open!") + user.visible_message(SPAN_NOTICE("[user] is trying to slice \the [src] open!"), + SPAN_NOTICE("You are trying to slice \the [src] open!")) if(WT.use_tool(src, user, 60, volume = 50)) if(WT.use(2, user)) - user.visible_message("[user] slices \the [src] open!", - "You slice \the [src] open!") + user.visible_message(SPAN_NOTICE("[user] slices \the [src] open!"), + SPAN_NOTICE("You slice \the [src] open!")) new /obj/item/stack/rods(src.loc, resources["rods"]) if(resources.len == 2) new /obj/item/stack/material/steel(src.loc, resources["metal"]) @@ -415,19 +416,19 @@ else if(attacking_item.isscrewdriver()) var/turf/T = get_turf(src) if(!T) - to_chat(user, "There is nothing to secure [src] to!") + to_chat(user, SPAN_WARNING("There is nothing to secure [src] to!")) return - user.visible_message("[user] is trying to [anchored ? "un" : "" ]secure \the [src]!", - "You are trying to [anchored ? "un" : "" ]secure \the [src]!") + user.visible_message(SPAN_NOTICE("[user] is trying to [anchored ? "un" : "" ]secure \the [src]!"), + SPAN_NOTICE("You are trying to [anchored ? "un" : "" ]secure \the [src]!")) var/sound_to_play = pick(list('sound/items/Screwdriver.ogg', 'sound/items/Screwdriver2.ogg')) playsound(src.loc, sound_to_play, 50, 1) if(attacking_item.use_tool(src, user, 30, volume = 50)) density = !density anchored = !anchored - user.visible_message("[user] [anchored ? "" : "un" ]secures \the [src]!", - "You [anchored ? "" : "un" ]secure \the [src]!") + user.visible_message(SPAN_NOTICE("[user] [anchored ? "" : "un" ]secures \the [src]!"), + SPAN_NOTICE("You [anchored ? "" : "un" ]secure \the [src]!")) else ..() @@ -458,23 +459,23 @@ /obj/item/trap/animal/proc/pass_without_trace(mob/user, pct = 100) if(!is_type_in_list(user, allowed_mobs)) user.forceMove(loc) - user.visible_message("[user] passes over \the [src] without triggering it.", - "You pass over \the [src] without triggering it." + user.visible_message(SPAN_NOTICE("[user] passes over \the [src] without triggering it."), + SPAN_NOTICE("You pass over \the [src] without triggering it.") ) else - user.visible_message("[user] attempts to pass through \the [src] without triggering it.", - "You attempt to pass through \the [src] without triggering it. " + user.visible_message(SPAN_NOTICE("[user] attempts to pass through \the [src] without triggering it."), + SPAN_NOTICE("You attempt to pass through \the [src] without triggering it. ") ) if(do_after(user, 2 SECONDS, src)) if(prob(pct)) user.forceMove(loc) - user.visible_message("[user] passes through \the [src] without triggering it.", - "You pass through \the [src] without triggering it." + user.visible_message(SPAN_NOTICE("[user] passes through \the [src] without triggering it."), + SPAN_NOTICE("You pass through \the [src] without triggering it.") ) else user.forceMove(loc) - user.visible_message("[user] accidentally triggers \the [src]!", - "You accidentally trigger \the [src]!" + user.visible_message(SPAN_WARNING("[user] accidentally triggers \the [src]!"), + SPAN_WARNING("You accidentally trigger \the [src]!") ) capture(user) @@ -497,7 +498,7 @@ /obj/item/trap/animal/attack_self(mob/user) if(!can_use(user)) - to_chat(user, "You cannot use \the [src].") + to_chat(user, SPAN_WARNING("You cannot use \the [src].")) return if(captured) @@ -514,8 +515,8 @@ var/mob/living/M = target if(is_type_in_list(M, allowed_mobs)) user.visible_message( - "[user] traps [M] inside of \the [src].", - "You trap [M] inside of the \the [src]!", + SPAN_WARNING("[user] traps [M] inside of \the [src]."), + SPAN_WARNING("You trap [M] inside of the \the [src]!"), "You hear a loud metallic snap!" ) capture(M, msg = 0) @@ -593,20 +594,20 @@ if(attacking_item.iswrench()) var/turf/T = get_turf(src) if(!T) - to_chat(user, "There is nothing to secure [src] to!") + to_chat(user, SPAN_WARNING("There is nothing to secure [src] to!")) return if(anchored && deployed) to_chat(user, SPAN_WARNING("You can't do that while \the [src] is deployed! Undeploy it first.")) return - user.visible_message("[user] begins [anchored ? "un" : "" ]securing \the [src]!", - "You begin [anchored ? "un" : "" ]securing \the [src]!") + user.visible_message(SPAN_NOTICE("[user] begins [anchored ? "un" : "" ]securing \the [src]!"), + SPAN_NOTICE("You begin [anchored ? "un" : "" ]securing \the [src]!")) if(attacking_item.use_tool(src, user, 30, volume = 50)) anchored = !anchored - user.visible_message("[user] [anchored ? "" : "un" ]secures \the [src]!", - "You [anchored ? "" : "un" ]secure \the [src]!") + user.visible_message(SPAN_NOTICE("[user] [anchored ? "" : "un" ]secures \the [src]!"), + SPAN_NOTICE("You [anchored ? "" : "un" ]secure \the [src]!")) else if(attacking_item.isscrewdriver()) // Unlike smaller traps, screwdriver shouldn't work on this. @@ -653,18 +654,18 @@ var/obj/item/stack/rods/O = attacking_item if(O.get_amount() >= 12) - to_chat(user, "You are trying to add metal bars to \the [src].") + to_chat(user, SPAN_NOTICE("You are trying to add metal bars to \the [src].")) if (!do_after(user, 2 SECONDS, src)) return - to_chat(user, "You add metal bars to \the [src].") + to_chat(user, SPAN_NOTICE("You add metal bars to \the [src].")) O.use(12) new /obj/item/trap/animal/large(src.loc) qdel(src) return else - to_chat(user, "You need at least 12 rods to complete \the [src].") + to_chat(user, SPAN_WARNING("You need at least 12 rods to complete \the [src].")) else if(istype(attacking_item, /obj/item/screwdriver)) return else diff --git a/code/game/objects/items/weapons/vaurca_items.dm b/code/game/objects/items/weapons/vaurca_items.dm index 95b86892714..a31b01d00fe 100644 --- a/code/game/objects/items/weapons/vaurca_items.dm +++ b/code/game/objects/items/weapons/vaurca_items.dm @@ -129,7 +129,7 @@ var/mob/living/carbon/human/H = user H.update_inv_l_hand() H.update_inv_r_hand() - to_chat(user, "\The [src] is now energised.") + to_chat(user, SPAN_NOTICE("\The [src] is now energised.")) /obj/item/melee/energy/vaurca/deactivate(mob/living/user) ..() @@ -140,7 +140,7 @@ var/mob/living/carbon/human/H = user H.update_inv_l_hand() H.update_inv_r_hand() - to_chat(user, "\The [src] is de-energised.") + to_chat(user, SPAN_NOTICE("\The [src] is de-energised.")) /obj/item/vaurca/box name = "puzzle box" @@ -152,25 +152,25 @@ /obj/item/vaurca/box/attack_self(mob/user as mob) if(isvaurca(user)) - to_chat(user, "You are familiar with the box's solution, and open it to reveal an ancient thing. How tedious.") + to_chat(user, SPAN_NOTICE("You are familiar with the box's solution, and open it to reveal an ancient thing. How tedious.")) var/obj/item/archaeological_find/X = new /obj/item/archaeological_find user.remove_from_mob(src) user.put_in_hands(X) qdel(src) else if(isipc(user)) - to_chat(user, "You analyze the box's markings, and begin to calculate with robotic efficiency every possible combination. (You must stand still to complete the puzzle box.)") + to_chat(user, SPAN_NOTICE("You analyze the box's markings, and begin to calculate with robotic efficiency every possible combination. (You must stand still to complete the puzzle box.)")) if(do_after(user, 100)) - to_chat(user, "Calculations complete. You begin to brute-force the box with a mechanical determination.") + to_chat(user, SPAN_NOTICE("Calculations complete. You begin to brute-force the box with a mechanical determination.")) if(do_after(user, 600)) - to_chat(user, "After a minute of brute-force puzzle solving, the box finally opens to reveal an ancient thing.") + to_chat(user, SPAN_NOTICE("After a minute of brute-force puzzle solving, the box finally opens to reveal an ancient thing.")) var/obj/item/archaeological_find/X = new /obj/item/archaeological_find user.remove_from_mob(src) user.put_in_hands(X) qdel(src) else - to_chat(user, "You stare at the box for a few seconds, trying to even comprehend what you're looking at... (You must stand still to complete the puzzle box.)") + to_chat(user, SPAN_NOTICE("You stare at the box for a few seconds, trying to even comprehend what you're looking at... (You must stand still to complete the puzzle box.)")) if(do_after(user, 60)) to_chat(user, "After a few more seconds, you hesitantly turn the first piece of the puzzle box.") if(do_after(user,30)) @@ -178,11 +178,11 @@ if(do_after(user,200)) to_chat(user, "Twenty seconds pass, and suddenly you're feeling a lot less confident. You struggle on...") if(do_after(user,100)) - to_chat(user, "You blink, and suddenly you've lost your place, your thoughts, your mind...") + to_chat(user, SPAN_NOTICE("You blink, and suddenly you've lost your place, your thoughts, your mind...")) if(do_after(user,20)) - to_chat(user, "You find yourself again, and get back to turning pieces. At this point it is just randomly.") + to_chat(user, SPAN_NOTICE("You find yourself again, and get back to turning pieces. At this point it is just randomly.")) if(do_after(user,600)) - to_chat(user, "A minute goes by, and with one final turn the box looks just like it did when you started. Fucking bugs.") + to_chat(user, SPAN_NOTICE("A minute goes by, and with one final turn the box looks just like it did when you started. Fucking bugs.")) /obj/item/melee/vaurca/navcomp name = "navcomp coordinate archive" @@ -437,7 +437,7 @@ var/mob/living/carbon/human/H = user H.update_inv_l_hand() H.update_inv_r_hand() - to_chat(user, "\The [src] is now energised.") + to_chat(user, SPAN_NOTICE("\The [src] is now energised.")) /obj/item/melee/energy/vaurca_zweihander/deactivate(mob/living/user) ..() @@ -448,7 +448,7 @@ var/mob/living/carbon/human/H = user H.update_inv_l_hand() H.update_inv_r_hand() - to_chat(user, "\The [src] is de-energised.") + to_chat(user, SPAN_NOTICE("\The [src] is de-energised.")) /obj/item/gun/launcher/crossbow/vaurca name = "gauss rifle" @@ -490,10 +490,10 @@ if(bolt) if(tension < max_tension) if(do_after(M, 5 * tension)) - to_chat(M, "You pump [src], charging the magnetic coils.") + to_chat(M, SPAN_WARNING("You pump [src], charging the magnetic coils.")) tension++ else - to_chat(M, "\The [src]'s magnetic coils are at maximum charge.") + to_chat(M, SPAN_NOTICE("\The [src]'s magnetic coils are at maximum charge.")) return var/obj/item/next if(belt.len) @@ -502,27 +502,27 @@ if(next) belt -= next //Remove grenade from loaded list. bolt = next - to_chat(M, "You pump [src], loading \a [next] into the chamber.") + to_chat(M, SPAN_WARNING("You pump [src], loading \a [next] into the chamber.")) else - to_chat(M, "You pump [src], but the magazine is empty.") + to_chat(M, SPAN_WARNING("You pump [src], but the magazine is empty.")) /obj/item/gun/launcher/crossbow/vaurca/proc/load(obj/item/W, mob/user) if(belt.len >= belt_size) - to_chat(user, "[src] is full.") + to_chat(user, SPAN_WARNING("[src] is full.")) return user.remove_from_mob(W) W.forceMove(src) belt.Insert(1, W) //add to the head of the list, so that it is loaded on the next pump - user.visible_message("[user] inserts \a [W] into [src].", "You insert \a [W] into [src].") + user.visible_message("[user] inserts \a [W] into [src].", SPAN_NOTICE("You insert \a [W] into [src].")) /obj/item/gun/launcher/crossbow/vaurca/proc/unload(mob/user) if(belt.len) var/obj/item/arrow/rod/R = belt[belt.len] belt.len-- user.put_in_hands(R) - user.visible_message("[user] removes \a [R] from [src].", "You remove \a [R] from [src].") + user.visible_message("[user] removes \a [R] from [src].", SPAN_NOTICE("You remove \a [R] from [src].")) else - to_chat(user, "[src] is empty.") + to_chat(user, SPAN_WARNING("[src] is empty.")) /obj/item/gun/launcher/crossbow/vaurca/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/arrow)) diff --git a/code/game/objects/items/weapons/weaponry.dm b/code/game/objects/items/weapons/weaponry.dm index 8efeb2c9397..ee54312819a 100644 --- a/code/game/objects/items/weapons/weaponry.dm +++ b/code/game/objects/items/weapons/weaponry.dm @@ -143,6 +143,6 @@ attack_verb = list("banned") /obj/item/banhammer/attack(mob/M as mob, mob/user as mob) - to_chat(M, " You have been banned FOR NO REISIN by [user]") - to_chat(user, " You have BANNED [M]") + to_chat(M, SPAN_WARNING(" You have been banned FOR NO REISIN by [user]")) + to_chat(user, SPAN_WARNING(" You have BANNED [M]")) playsound(loc, 'sound/effects/adminhelp.ogg', 15) diff --git a/code/game/objects/objs.dm b/code/game/objects/objs.dm index bd2e3ded801..2c39cd8ff67 100644 --- a/code/game/objects/objs.dm +++ b/code/game/objects/objs.dm @@ -64,7 +64,7 @@ /obj/CanUseTopic(var/mob/user, var/datum/ui_state/state) if(user.CanUseObjTopic(src)) return ..() - to_chat(user, "[icon2html(src, user)]Access Denied!") + to_chat(user, SPAN_DANGER("[icon2html(src, user)]Access Denied!")) return STATUS_CLOSE /mob/living/silicon/CanUseObjTopic(var/obj/O) diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm index 861b2872ade..c7ce10f41b3 100644 --- a/code/game/objects/structures.dm +++ b/code/game/objects/structures.dm @@ -50,8 +50,8 @@ attack_generic(user,1,"slices") if(LAZYLEN(climbers) && !(user in climbers)) - user.visible_message("[user] shakes \the [src].", \ - "You shake \the [src].") + user.visible_message(SPAN_WARNING("[user] shakes \the [src]."), \ + SPAN_NOTICE("You shake \the [src].")) structure_shaken() return ..() @@ -156,28 +156,28 @@ if(user.loc == TT) TT = get_turf(src) - user.visible_message("[user] [atom_flags & ATOM_FLAG_CHECKS_BORDER ? "leaps over" : "climbs onto"] \the [src]!") + user.visible_message(SPAN_WARNING("[user] [atom_flags & ATOM_FLAG_CHECKS_BORDER ? "leaps over" : "climbs onto"] \the [src]!")) user.forceMove(TT) LAZYREMOVE(climbers, user) /obj/structure/proc/structure_shaken() for(var/mob/living/M in climbers) M.Weaken(1) - to_chat(M, "You topple as you are shaken off \the [src]!") + to_chat(M, SPAN_DANGER("You topple as you are shaken off \the [src]!")) LAZYREMOVE(climbers, M) for(var/mob/living/M in get_turf(src)) if(M.lying) return //No spamming this on people. M.Weaken(3) - to_chat(M, "You topple as \the [src] moves under you!") + to_chat(M, SPAN_DANGER("You topple as \the [src] moves under you!")) if(prob(25)) var/damage = rand(15,30) var/mob/living/carbon/human/H = M if(!istype(H)) - to_chat(H, "You land heavily!") + to_chat(H, SPAN_DANGER("You land heavily!")) M.adjustBruteLoss(damage) return @@ -196,12 +196,12 @@ affecting = H.get_organ(BP_HEAD) if(affecting) - to_chat(M, "You land heavily on your [affecting.name]!") + to_chat(M, SPAN_DANGER("You land heavily on your [affecting.name]!")) affecting.take_damage(damage, 0) if(affecting.parent) affecting.parent.add_autopsy_data("Misadventure", damage) else - to_chat(H, "You land heavily!") + to_chat(H, SPAN_DANGER("You land heavily!")) H.adjustBruteLoss(damage) H.UpdateDamageIcon() @@ -214,19 +214,19 @@ if(!Adjacent(user)) return 0 if (user.restrained() || user.buckled_to) - to_chat(user, "You need your hands and legs free for this.") + to_chat(user, SPAN_NOTICE("You need your hands and legs free for this.")) return 0 if (user.stat || user.paralysis || user.sleeping || user.lying || user.weakened) return 0 if (issilicon(user)) - to_chat(user, "You need hands for this.") + to_chat(user, SPAN_NOTICE("You need hands for this.")) return 0 return 1 /obj/structure/attack_generic(var/mob/user, var/damage, var/attack_verb, var/wallbreaker) if(!breakable || !damage || !wallbreaker) return 0 - visible_message("[user] [attack_verb] the [src] apart!") + visible_message(SPAN_DANGER("[user] [attack_verb] the [src] apart!")) user.do_attack_animation(src) spawn(1) qdel(src) diff --git a/code/game/objects/structures/barsign.dm b/code/game/objects/structures/barsign.dm index 8352c730cba..24cb5773a00 100644 --- a/code/game/objects/structures/barsign.dm +++ b/code/game/objects/structures/barsign.dm @@ -14,9 +14,9 @@ if(istype(card)) if(check_access(card)) set_sign() - to_chat(user, "You change the sign.") + to_chat(user, SPAN_NOTICE("You change the sign.")) else - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) return return ..() diff --git a/code/game/objects/structures/bedsheet_bin.dm b/code/game/objects/structures/bedsheet_bin.dm index 90543497ba0..a2b5705c20c 100644 --- a/code/game/objects/structures/bedsheet_bin.dm +++ b/code/game/objects/structures/bedsheet_bin.dm @@ -403,11 +403,11 @@ LINEN BINS user.drop_from_inventory(attacking_item,src) sheets.Add(attacking_item) amount++ - to_chat(user, "You put [attacking_item] in [src].") + to_chat(user, SPAN_NOTICE("You put [attacking_item] in [src].")) else if(amount && !hidden && attacking_item.w_class < 4) //make sure there's sheets to hide it among, make sure nothing else is hidden in there. user.drop_from_inventory(attacking_item,src) hidden = attacking_item - to_chat(user, "You hide [attacking_item] among the sheets.") + to_chat(user, SPAN_NOTICE("You hide [attacking_item] among the sheets.")) /obj/structure/bedsheetbin/attack_hand(mob/user as mob) if(amount >= 1) @@ -423,11 +423,11 @@ LINEN BINS B.forceMove(user.loc) user.put_in_hands(B) - to_chat(user, "You take [B] out of [src].") + to_chat(user, SPAN_NOTICE("You take [B] out of [src].")) if(hidden) hidden.forceMove(user.loc) - to_chat(user, "[hidden] falls out of [B]!") + to_chat(user, SPAN_NOTICE("[hidden] falls out of [B]!")) hidden = null @@ -446,7 +446,7 @@ LINEN BINS B = new /obj/item/bedsheet(loc) B.forceMove(loc) - to_chat(user, "You telekinetically remove [B] from [src].") + to_chat(user, SPAN_NOTICE("You telekinetically remove [B] from [src].")) update_icon() if(hidden) diff --git a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm index 6ab182c5f49..5fb7611fe34 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm @@ -47,12 +47,12 @@ user.drop_item() else if(attacking_item.GetID()) if(user.loc == src) - to_chat(user, "You can't reach the lock from inside.") + to_chat(user, SPAN_NOTICE("You can't reach the lock from inside.")) return var/obj/item/card/id/I = attacking_item.GetID() if(broken) - to_chat(user, "It appears to be broken.") + to_chat(user, SPAN_WARNING("It appears to be broken.")) return if(!I || !I.registered_name) return if(allowed(user) || !registered_name || (istype(I) && (registered_name == I.registered_name))) @@ -64,7 +64,7 @@ registered_name = I.registered_name desc = "Owned by [I.registered_name]." else - to_chat(user, "Access Denied") + to_chat(user, SPAN_WARNING("Access Denied")) else if(istype(attacking_item, /obj/item/melee/energy/blade)) var/obj/item/melee/energy/blade/blade = attacking_item if(emag_act(INFINITY, user, "The locker has been sliced open by [user] with \an [blade]!", "You hear metal being sliced and sparks flying.")) @@ -72,7 +72,7 @@ playsound(loc, 'sound/weapons/blade.ogg', 50, 1) playsound(loc, /singleton/sound_category/spark_sound, 50, 1) else - to_chat(user, "Access Denied") + to_chat(user, SPAN_WARNING("Access Denied")) return /obj/structure/closet/secure_closet/personal/emag_act(var/remaining_charges, var/mob/user, var/visual_feedback, var/audible_feedback) @@ -82,7 +82,7 @@ desc = "It appears to be broken." update_icon() if(visual_feedback) - visible_message("[visual_feedback]", "[audible_feedback]") + visible_message(SPAN_WARNING("[visual_feedback]"), SPAN_WARNING("[audible_feedback]")) return 1 /obj/structure/closet/secure_closet/personal/verb/reset() @@ -94,9 +94,9 @@ if(ishuman(usr)) add_fingerprint(usr) if (locked || !registered_name) - to_chat(usr, "You need to unlock it first.") + to_chat(usr, SPAN_WARNING("You need to unlock it first.")) else if (broken) - to_chat(usr, "It appears to be broken.") + to_chat(usr, SPAN_WARNING("It appears to be broken.")) else if (opened) if(!close()) diff --git a/code/game/objects/structures/crates_lockers/closets/statue.dm b/code/game/objects/structures/crates_lockers/closets/statue.dm index 4cc2b0a6930..78409f00aa0 100644 --- a/code/game/objects/structures/crates_lockers/closets/statue.dm +++ b/code/game/objects/structures/crates_lockers/closets/statue.dm @@ -66,7 +66,7 @@ timer -= 2 if (timer == 10) - visible_message("\The [src]'s surface begins cracking and dissolving!") + visible_message(SPAN_NOTICE("\The [src]'s surface begins cracking and dissolving!")) if (timer <= 0) dump_contents() @@ -146,7 +146,7 @@ user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) health -= attacking_item.force user.do_attack_animation(src) - visible_message("[user] strikes [src] with [attacking_item].") + visible_message(SPAN_DANGER("[user] strikes [src] with [attacking_item].")) check_health() /obj/structure/closet/statue/MouseDrop_T() @@ -169,7 +169,7 @@ user.frozen = FALSE user.dust() dump_contents() - visible_message("[src] shatters!.") + visible_message(SPAN_WARNING("[src] shatters!.")) qdel(src) @@ -194,5 +194,5 @@ L.bodytemperature -= 150 dump_contents() - visible_message("\The [src] shatters!") + visible_message(SPAN_WARNING("\The [src] shatters!")) qdel(src) diff --git a/code/game/objects/structures/curtains.dm b/code/game/objects/structures/curtains.dm index ee855e0c029..2018206dc03 100644 --- a/code/game/objects/structures/curtains.dm +++ b/code/game/objects/structures/curtains.dm @@ -22,7 +22,7 @@ /obj/structure/curtain/bullet_act(obj/item/projectile/P, def_zone) if(!P.nodamage) - visible_message("[P] tears [src] down!") + visible_message(SPAN_WARNING("[P] tears [src] down!")) qdel(src) else ..(P, def_zone) diff --git a/code/game/objects/structures/extinguisher.dm b/code/game/objects/structures/extinguisher.dm index 28b38875edf..ea2626981e0 100644 --- a/code/game/objects/structures/extinguisher.dm +++ b/code/game/objects/structures/extinguisher.dm @@ -48,7 +48,7 @@ user.remove_from_mob(attacking_item) contents += attacking_item has_extinguisher = attacking_item - to_chat(user, "You place [attacking_item] in [src].") + to_chat(user, SPAN_NOTICE("You place [attacking_item] in [src].")) playsound(src.loc, 'sound/effects/extin.ogg', 50, 0) else opened = !opened @@ -67,7 +67,7 @@ return 0 if(has_extinguisher) user.put_in_hands(has_extinguisher) - to_chat(user, "You take [has_extinguisher] from [src].") + to_chat(user, SPAN_NOTICE("You take [has_extinguisher] from [src].")) playsound(src.loc, 'sound/effects/extout.ogg', 50, 0) has_extinguisher = null opened = TRUE diff --git a/code/game/objects/structures/girders.dm b/code/game/objects/structures/girders.dm index 46f6f2f8da0..849c2780dfd 100644 --- a/code/game/objects/structures/girders.dm +++ b/code/game/objects/structures/girders.dm @@ -59,7 +59,7 @@ /obj/structure/girder/proc/take_damage(var/damage) health -= damage if(health <= 0) - visible_message("\The [src] falls apart!") + visible_message(SPAN_WARNING("\The [src] falls apart!")) dismantle() /obj/structure/girder/proc/reset_girder() @@ -75,15 +75,15 @@ /obj/structure/girder/attackby(obj/item/attacking_item, mob/user) if(attacking_item.iswrench() && state == 0) if(anchored && !reinf_material) - to_chat(user, "Now disassembling the girder...") + to_chat(user, SPAN_NOTICE("Now disassembling the girder...")) if(attacking_item.use_tool(src, user, 40, volume = 50)) if(!src) return - to_chat(user, "You dissasembled the girder!") + to_chat(user, SPAN_NOTICE("You dissasembled the girder!")) dismantle() else if(!anchored) - to_chat(user, "Now securing the girder...") + to_chat(user, SPAN_NOTICE("Now securing the girder...")) if(attacking_item.use_tool(src, user, 40, volume = 50)) - to_chat(user, "You secured the girder!") + to_chat(user, SPAN_NOTICE("You secured the girder!")) reset_girder() else if(istype(attacking_item, /obj/item/gun/energy/plasmacutter)) @@ -100,73 +100,73 @@ else if(istype(attacking_item, /obj/item/melee/energy)) var/obj/item/melee/energy/WT = attacking_item if(WT.active) - to_chat(user, "Now slicing apart the girder...") + to_chat(user, SPAN_NOTICE("Now slicing apart the girder...")) if(attacking_item.use_tool(src, user, 30, volume = 50)) if(!src) return - to_chat(user, "You slice apart the girder!") + to_chat(user, SPAN_NOTICE("You slice apart the girder!")) dismantle() else - to_chat(user, "You need to activate the weapon to do that!") + to_chat(user, SPAN_NOTICE("You need to activate the weapon to do that!")) return else if(istype(attacking_item, /obj/item/melee/energy/blade)) - to_chat(user, "Now slicing apart the girder...") + to_chat(user, SPAN_NOTICE("Now slicing apart the girder...")) if(attacking_item.use_tool(src, user, 30, volume = 50)) if(!src) return - to_chat(user, "You slice apart the girder!") + to_chat(user, SPAN_NOTICE("You slice apart the girder!")) dismantle() else if(istype(attacking_item, /obj/item/melee/chainsword)) var/obj/item/melee/chainsword/WT = attacking_item if(WT.active) - to_chat(user, "Now slicing apart the girder...") + to_chat(user, SPAN_NOTICE("Now slicing apart the girder...")) if(WT.use_tool(src, user, 60, volume = 50)) if(!src) return - to_chat(user, "You slice apart the girder!") + to_chat(user, SPAN_NOTICE("You slice apart the girder!")) dismantle() else - to_chat(user, "You need to activate the weapon to do that!") + to_chat(user, SPAN_NOTICE("You need to activate the weapon to do that!")) return else if(istype(attacking_item, /obj/item/pickaxe/diamonddrill)) - to_chat(user, "You drill through the girder!") + to_chat(user, SPAN_NOTICE("You drill through the girder!")) dismantle() else if(istype(attacking_item, /obj/item/melee/arm_blade/)) - to_chat(user, "Now slicing apart the girder...") + to_chat(user, SPAN_NOTICE("Now slicing apart the girder...")) if(do_after(user,150)) if(!src) return - to_chat(user, "You slice apart the girder!") + to_chat(user, SPAN_NOTICE("You slice apart the girder!")) dismantle() else if(attacking_item.isscrewdriver()) if(state == 2) - to_chat(user, "Now unsecuring support struts...") + to_chat(user, SPAN_NOTICE("Now unsecuring support struts...")) if(attacking_item.use_tool(src, user, 40, volume = 50)) if(!src) return - to_chat(user, "You unsecured the support struts!") + to_chat(user, SPAN_NOTICE("You unsecured the support struts!")) state = 1 else if(anchored && !reinf_material) attacking_item.play_tool_sound(get_turf(src), 50) reinforcing = !reinforcing - to_chat(user, "\The [src] can now be [reinforcing? "reinforced" : "constructed"]!") + to_chat(user, SPAN_NOTICE("\The [src] can now be [reinforcing? "reinforced" : "constructed"]!")) return else if(attacking_item.iswirecutter() && state == 1) - to_chat(user, "Now removing support struts...") + to_chat(user, SPAN_NOTICE("Now removing support struts...")) if(attacking_item.use_tool(src, user, 40, volume = 50)) if(!src) return - to_chat(user, "You removed the support struts!") + to_chat(user, SPAN_NOTICE("You removed the support struts!")) reinf_material = null reset_girder() else if(attacking_item.iscrowbar() && state == 0 && anchored) - to_chat(user, "Now dislodging the girder...") + to_chat(user, SPAN_NOTICE("Now dislodging the girder...")) if(attacking_item.use_tool(src, user, 40, volume = 50)) if(!src) return - to_chat(user, "You dislodged the girder!") + to_chat(user, SPAN_NOTICE("You dislodged the girder!")) icon_state = "displaced" anchored = 0 health = 50 @@ -190,10 +190,10 @@ playsound(src, 'sound/weapons/smash.ogg', 50) if(damage_to_deal > weaken && (damage_to_deal > MIN_DAMAGE_TO_HIT)) damage_to_deal -= weaken - visible_message("[user] strikes \the [src] with \the [attacking_item], [is_sharp(attacking_item) ? "slicing" : "denting"] a support rod!") + visible_message(SPAN_WARNING("[user] strikes \the [src] with \the [attacking_item], [is_sharp(attacking_item) ? "slicing" : "denting"] a support rod!")) take_damage(damage_to_deal) else - visible_message("[user] strikes \the [src] with \the [attacking_item], but it bounces off!") + visible_message(SPAN_WARNING("[user] strikes \the [src] with \the [attacking_item], but it bounces off!")) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) return @@ -201,7 +201,7 @@ /obj/structure/girder/proc/construct_wall(obj/item/stack/material/S, mob/user) if(S.get_amount() < 2) - to_chat(user, "There isn't enough material here to construct a wall.") + to_chat(user, SPAN_NOTICE("There isn't enough material here to construct a wall.")) return 0 var/material/M = SSmaterials.get_material_by_name(S.default_type) @@ -212,11 +212,11 @@ add_hiddenprint(usr) if(M.integrity < 50) - to_chat(user, "This material is too soft for use in wall construction.") + to_chat(user, SPAN_NOTICE("This material is too soft for use in wall construction.")) return 0 if(!plating) - to_chat(user, "You begin adding the plating...") + to_chat(user, SPAN_NOTICE("You begin adding the plating...")) plating = TRUE else return TRUE @@ -228,9 +228,9 @@ plating = FALSE if(anchored) - to_chat(user, "You added the plating!") + to_chat(user, SPAN_NOTICE("You added the plating!")) else - to_chat(user, "You create a false wall! Push on it to open or close the passage.") + to_chat(user, SPAN_NOTICE("You create a false wall! Push on it to open or close the passage.")) wall_fake = 1 var/turf/Tsrc = get_turf(src) @@ -247,11 +247,11 @@ /obj/structure/girder/proc/reinforce_with_material(obj/item/stack/material/S, mob/user) //if the verb is removed this can be renamed. if(reinf_material) - to_chat(user, "\The [src] is already reinforced.") + to_chat(user, SPAN_NOTICE("\The [src] is already reinforced.")) return 0 if(S.get_amount() < 2) - to_chat(user, "There isn't enough material here to reinforce the girder.") + to_chat(user, SPAN_NOTICE("There isn't enough material here to reinforce the girder.")) return 0 var/material/M = SSmaterials.get_material_by_name(S.default_type) @@ -259,10 +259,10 @@ to_chat(user, "You cannot reinforce \the [src] with that; it is too soft.") return 0 - to_chat(user, "Now reinforcing...") + to_chat(user, SPAN_NOTICE("Now reinforcing...")) if (!do_after(user,40) || !S.use(2)) return 1 //don't call parent attackby() past this point - to_chat(user, "You added reinforcement!") + to_chat(user, SPAN_NOTICE("You added reinforcement!")) reinf_material = M reinforce_girder() @@ -277,7 +277,7 @@ /obj/structure/girder/attack_hand(mob/user as mob) if((user.mutations & HULK)) - visible_message("[user] smashes [src] apart!") + visible_message(SPAN_DANGER("[user] smashes [src] apart!")) dismantle() return return ..() @@ -310,7 +310,7 @@ if(!damage || !wallbreaker) return FALSE user.do_attack_animation(src) - visible_message("[user] [attack_message] \the [src]!") + visible_message(SPAN_DANGER("[user] [attack_message] \the [src]!")) dismantle() return TRUE @@ -327,48 +327,48 @@ /obj/structure/girder/cult/attackby(obj/item/attacking_item, mob/user) if(attacking_item.iswrench()) - to_chat(user, "Now disassembling the girder...") + to_chat(user, SPAN_NOTICE("Now disassembling the girder...")) if(attacking_item.use_tool(src, user, 40, volume = 50)) - to_chat(user, "You dissasembled the girder!") + to_chat(user, SPAN_NOTICE("You dissasembled the girder!")) dismantle() else if(istype(attacking_item, /obj/item/gun/energy/plasmacutter)) - to_chat(user, "Now slicing apart the girder...") + to_chat(user, SPAN_NOTICE("Now slicing apart the girder...")) if(attacking_item.use_tool(src, user, 30, volume = 50)) - to_chat(user, "You slice apart the girder!") + to_chat(user, SPAN_NOTICE("You slice apart the girder!")) dismantle() else if(istype(attacking_item, /obj/item/pickaxe/diamonddrill)) - to_chat(user, "You drill through the girder!") + to_chat(user, SPAN_NOTICE("You drill through the girder!")) new /obj/effect/decal/remains/human(get_turf(src)) dismantle() else if(istype(attacking_item, /obj/item/melee/energy)) var/obj/item/melee/energy/WT = attacking_item if(WT.active) - to_chat(user, "Now slicing apart the girder...") + to_chat(user, SPAN_NOTICE("Now slicing apart the girder...")) if(attacking_item.use_tool(src, user, 30, volume = 50)) - to_chat(user, "You slice apart the girder!") + to_chat(user, SPAN_NOTICE("You slice apart the girder!")) dismantle() else - to_chat(user, "You need to activate the weapon to do that!") + to_chat(user, SPAN_NOTICE("You need to activate the weapon to do that!")) return else if(istype(attacking_item, /obj/item/melee/energy/blade)) - to_chat(user, "Now slicing apart the girder...") + to_chat(user, SPAN_NOTICE("Now slicing apart the girder...")) if(attacking_item.use_tool(src, user, 30, volume = 50)) - to_chat(user, "You slice apart the girder!") + to_chat(user, SPAN_NOTICE("You slice apart the girder!")) dismantle() else if(istype(attacking_item, /obj/item/melee/chainsword)) var/obj/item/melee/chainsword/WT = attacking_item if(WT.active) - to_chat(user, "Now slicing apart the girder...") + to_chat(user, SPAN_NOTICE("Now slicing apart the girder...")) if(WT.use_tool(src, user, 60, volume = 50)) - to_chat(user, "You slice apart the girder!") + to_chat(user, SPAN_NOTICE("You slice apart the girder!")) dismantle() else - to_chat(user, "You need to activate the weapon to do that!") + to_chat(user, SPAN_NOTICE("You need to activate the weapon to do that!")) return diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm index d3d1def0421..dbb2ad889f7 100644 --- a/code/game/objects/structures/grille.dm +++ b/code/game/objects/structures/grille.dm @@ -163,8 +163,8 @@ if(!shock(user, 90)) playsound(loc, 'sound/items/Screwdriver.ogg', 100, 1) anchored = !anchored - user.visible_message("[user] [anchored ? "fastens" : "unfastens"] the grille.", \ - "You have [anchored ? "fastened the grille to" : "unfastened the grill from"] the floor.") + user.visible_message(SPAN_NOTICE("[user] [anchored ? "fastens" : "unfastens"] the grille."), \ + SPAN_NOTICE("You have [anchored ? "fastened the grille to" : "unfastened the grill from"] the floor.")) return else if(istype(attacking_item,/obj/item/stack/rods) && destroyed == 1) if(!shock(user, 90)) @@ -174,8 +174,8 @@ destroyed = 0 icon_state = "grille" ROD.use(1) - user.visible_message("[user] repairs the grille.", \ - "You have repaired the grille.") + user.visible_message(SPAN_NOTICE("[user] repairs the grille."), \ + SPAN_NOTICE("You have repaired the grille.")) return //window placing begin //TODO CONVERT PROPERLY TO MATERIAL DATUM @@ -200,23 +200,23 @@ else dir_to_set = 4 else - to_chat(user, "You can't reach.") + to_chat(user, SPAN_NOTICE("You can't reach.")) return //Only works for 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, "There is already a window facing this way there.") + to_chat(user, SPAN_NOTICE("There is already a window facing this way there.")) return - to_chat(user, "You start placing the window.") + to_chat(user, SPAN_NOTICE("You start placing the window.")) if(do_after(user,20)) for(var/obj/structure/window/WINDOW in loc) if(WINDOW.dir == dir_to_set)//checking this for a 2nd time to check if a window was made while we were waiting. - to_chat(user, "There is already a window facing this way there.") + to_chat(user, SPAN_NOTICE("There is already a window facing this way there.")) return var/wtype = ST.material.created_window if (ST.use(1)) var/obj/structure/window/WD = new wtype(loc, dir_to_set, 1) - to_chat(user, "You place the [WD] on [src].") + to_chat(user, SPAN_NOTICE("You place the [WD] on [src].")) WD.update_icon() return //window placing end @@ -282,7 +282,7 @@ ..() /obj/structure/grille/attack_generic(var/mob/user, var/damage, var/attack_verb) - visible_message("[user] [attack_verb] the [src]!") + visible_message(SPAN_DANGER("[user] [attack_verb] the [src]!")) user.do_attack_animation(src) health -= damage spawn(1) healthcheck() diff --git a/code/game/objects/structures/janicart.dm b/code/game/objects/structures/janicart.dm index d3f6f658b38..17932ad18c4 100644 --- a/code/game/objects/structures/janicart.dm +++ b/code/game/objects/structures/janicart.dm @@ -121,9 +121,9 @@ mymop = I update_icon() updateUsrDialog() - to_chat(usr, "You put [I] into [src].") + to_chat(usr, SPAN_NOTICE("You put [I] into [src].")) else - to_chat(usr, "The cart already has a mop attached") + to_chat(usr, SPAN_NOTICE("The cart already has a mop attached")) return else if(istype(I, /obj/item/reagent_containers) && mybucket) var/obj/item/reagent_containers/C = I @@ -139,17 +139,17 @@ if (mybucket) if(attacking_item.reagents.total_volume < attacking_item.reagents.maximum_volume) if(mybucket.reagents.total_volume < 1) - to_chat(user, "[mybucket] is empty!") + to_chat(user, SPAN_NOTICE("[mybucket] is empty!")) update_icon() else mybucket.reagents.trans_to_obj(attacking_item, 5) // - to_chat(user, "You wet [attacking_item] in [mybucket].") + to_chat(user, SPAN_NOTICE("You wet [attacking_item] in [mybucket].")) playsound(loc, 'sound/effects/slosh.ogg', 25, 1) update_icon() else - to_chat(user, "[attacking_item] can't absorb anymore liquid!") + to_chat(user, SPAN_NOTICE("[attacking_item] can't absorb anymore liquid!")) else - to_chat(user, "There is no bucket mounted here to dip [attacking_item] into!") + to_chat(user, SPAN_NOTICE("There is no bucket mounted here to dip [attacking_item] into!")) return 1 else if(istype(attacking_item, /obj/item/reagent_containers/spray) && !myspray) @@ -157,7 +157,7 @@ myspray = attacking_item update_icon() updateUsrDialog() - to_chat(user, "You put [attacking_item] into [src].") + to_chat(user, SPAN_NOTICE("You put [attacking_item] into [src].")) return 1 else if(istype(attacking_item, /obj/item/device/lightreplacer) && !myreplacer) @@ -165,7 +165,7 @@ myreplacer = attacking_item update_icon() updateUsrDialog() - to_chat(user, "You put [attacking_item] into [src].") + to_chat(user, SPAN_NOTICE("You put [attacking_item] into [src].")) return 1 else if(istype(attacking_item, /obj/item/storage/bag/trash) && !mybag) @@ -174,7 +174,7 @@ attacking_item.forceMove(src) update_icon() updateUsrDialog() - to_chat(user, "You put [attacking_item] into [src].") + to_chat(user, SPAN_NOTICE("You put [attacking_item] into [src].")) return 1 else if(istype(attacking_item, /obj/item/clothing/suit/caution)) @@ -183,9 +183,9 @@ signs++ update_icon() updateUsrDialog() - to_chat(user, "You put [attacking_item] into [src].") + to_chat(user, SPAN_NOTICE("You put [attacking_item] into [src].")) else - to_chat(user, "[src] can't hold any more signs.") + to_chat(user, SPAN_NOTICE("[src] can't hold any more signs.")) return 1 else if(mybag) @@ -293,29 +293,29 @@ if("garbage") if(mybag) user.put_in_hands(mybag) - to_chat(user, "You take [mybag] from [src].") + to_chat(user, SPAN_NOTICE("You take [mybag] from [src].")) mybag = null if("mop") if(mymop) user.put_in_hands(mymop) - to_chat(user, "You take [mymop] from [src].") + to_chat(user, SPAN_NOTICE("You take [mymop] from [src].")) mymop = null if("spray") if(myspray) user.put_in_hands(myspray) - to_chat(user, "You take [myspray] from [src].") + to_chat(user, SPAN_NOTICE("You take [myspray] from [src].")) myspray = null if("replacer") if(myreplacer) user.put_in_hands(myreplacer) - to_chat(user, "You take [myreplacer] from [src].") + to_chat(user, SPAN_NOTICE("You take [myreplacer] from [src].")) myreplacer = null if("sign") if(signs) var/obj/item/clothing/suit/caution/Sign = locate() in src if(Sign) user.put_in_hands(Sign) - to_chat(user, "You take \a [Sign] from [src].") + to_chat(user, SPAN_NOTICE("You take \a [Sign] from [src].")) signs-- else warning("[src] signs ([signs]) didn't match contents") @@ -323,7 +323,7 @@ if("bucket") if(mybucket) mybucket.forceMove(get_turf(user)) - to_chat(user, "You unmount [mybucket] from [src].") + to_chat(user, SPAN_NOTICE("You unmount [mybucket] from [src].")) mybucket.update_icon() mybucket = null @@ -363,7 +363,7 @@ if(user==pulling) pulling = null user.pulledby = null - to_chat(user, "You lost your grip!") + to_chat(user, SPAN_WARNING("You lost your grip!")) return if(user.pulling && (user == pulling)) pulling = null @@ -375,7 +375,7 @@ if(user==pulling) return if(pulling && (get_dir(src.loc, pulling.loc) == direction)) - to_chat(user, "You cannot go there.") + to_chat(user, SPAN_WARNING("You cannot go there.")) return driving = 1 @@ -401,7 +401,7 @@ . = ..() if (pulling && (get_dist(src, pulling) > 1)) pulling.pulledby = null - to_chat(pulling, "You lost your grip!") + to_chat(pulling, SPAN_WARNING("You lost your grip!")) pulling = null /obj/structure/janitorialcart/CtrlClick(var/mob/user) diff --git a/code/game/objects/structures/lattice.dm b/code/game/objects/structures/lattice.dm index c6010c08ec6..26b632b224d 100644 --- a/code/game/objects/structures/lattice.dm +++ b/code/game/objects/structures/lattice.dm @@ -57,13 +57,13 @@ if (attacking_item.iswelder()) var/obj/item/weldingtool/WT = attacking_item if(WT.use(1, user)) - to_chat(user, "Slicing lattice joints ...") + to_chat(user, SPAN_NOTICE("Slicing lattice joints ...")) new /obj/item/stack/rods(src.loc) qdel(src) if (istype(attacking_item, /obj/item/stack/rods)) var/obj/item/stack/rods/R = attacking_item if (R.use(2)) - to_chat(user, "Constructing catwalk ...") + to_chat(user, SPAN_NOTICE("Constructing catwalk ...")) playsound(src, 'sound/weapons/Genhit.ogg', 50, 1) new /obj/structure/lattice/catwalk(src.loc) qdel(src) diff --git a/code/game/objects/structures/mirror.dm b/code/game/objects/structures/mirror.dm index a395478c465..d39abd41080 100644 --- a/code/game/objects/structures/mirror.dm +++ b/code/game/objects/structures/mirror.dm @@ -38,7 +38,7 @@ if(user.mind) var/datum/vampire/vampire = user.mind.antag_datums[MODE_VAMPIRE] if(vampire && !(vampire.status & VAMP_ISTHRALL)) - to_chat(user, "Your reflection appears distorted on the surface of \the [src].") + to_chat(user, SPAN_NOTICE("Your reflection appears distorted on the surface of \the [src].")) if(ishuman(user)) var/mob/living/carbon/human/H = user @@ -71,10 +71,10 @@ return if(prob(attacking_item.force * 2)) - visible_message("[user] smashes [src] with [attacking_item]!") + visible_message(SPAN_WARNING("[user] smashes [src] with [attacking_item]!")) shatter() else - visible_message("[user] hits [src] with [attacking_item]!") + visible_message(SPAN_WARNING("[user] hits [src] with [attacking_item]!")) playsound(src.loc, 'sound/effects/glass_hit.ogg', 70, 1) /obj/structure/mirror/attack_generic(var/mob/user, var/damage) @@ -85,10 +85,10 @@ return 0 if(damage) - user.visible_message("[user] smashes [src]!") + user.visible_message(SPAN_DANGER("[user] smashes [src]!")) shatter() else - user.visible_message("[user] hits [src] and bounces off!") + user.visible_message(SPAN_DANGER("[user] hits [src] and bounces off!")) return 1 /obj/effect/reflection @@ -181,7 +181,7 @@ if(user.mind) var/datum/vampire/vampire = user.mind.antag_datums[MODE_VAMPIRE] if(vampire && !(vampire.status & VAMP_ISTHRALL)) - to_chat(user, "Your reflection appears distorted on the surface of \the [src].") + to_chat(user, SPAN_NOTICE("Your reflection appears distorted on the surface of \the [src].")) if(ishuman(user)) var/mob/living/carbon/human/H = user diff --git a/code/game/objects/structures/mop_bucket.dm b/code/game/objects/structures/mop_bucket.dm index ea44e91ac68..6e6d63fdad1 100644 --- a/code/game/objects/structures/mop_bucket.dm +++ b/code/game/objects/structures/mop_bucket.dm @@ -26,10 +26,10 @@ /obj/structure/mopbucket/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/mop)) if(reagents.total_volume < 1) - to_chat(user, "\The [src] is out of water!") + to_chat(user, SPAN_WARNING("\The [src] is out of water!")) else reagents.trans_to_obj(attacking_item, 5) - to_chat(user, "You wet \the [attacking_item] in \the [src].") + to_chat(user, SPAN_NOTICE("You wet \the [attacking_item] in \the [src].")) playsound(loc, 'sound/effects/slosh.ogg', 25, 1) return ..() update_icon() diff --git a/code/game/objects/structures/noticeboard.dm b/code/game/objects/structures/noticeboard.dm index 1d26a17a3e4..44304994fd7 100644 --- a/code/game/objects/structures/noticeboard.dm +++ b/code/game/objects/structures/noticeboard.dm @@ -25,9 +25,9 @@ user.drop_from_inventory(attacking_item,src) notices++ icon_state = "nboard0[notices]" //update sprite - to_chat(user, "You pin the paper to the noticeboard.") + to_chat(user, SPAN_NOTICE("You pin the paper to the noticeboard.")) else - to_chat(user, "You reach to pin your paper to the board but hesitate. You are certain your paper will not be seen among the many others already attached.") + to_chat(user, SPAN_NOTICE("You reach to pin your paper to the board but hesitate. You are certain your paper will not be seen among the many others already attached.")) /obj/structure/noticeboard/attack_hand(var/mob/user) examine(user) @@ -70,7 +70,7 @@ else if(L.ispen()) P.attackby(L, usr) else - to_chat(usr, "You'll need something to write with!") + to_chat(usr, SPAN_NOTICE("You'll need something to write with!")) return add_fingerprint(usr) if(href_list["read"]) diff --git a/code/game/objects/structures/railing.dm b/code/game/objects/structures/railing.dm index 13d3b9577e5..50fcf2676c0 100644 --- a/code/game/objects/structures/railing.dm +++ b/code/game/objects/structures/railing.dm @@ -273,10 +273,10 @@ if(!density) to_chat(user, SPAN_NOTICE("You need to wrench \the [src] from back into place first.")) return - user.visible_message(anchored ? "\The [user] begins unscrewing \the [src]." : "\The [user] begins fastening \the [src]." ) + user.visible_message(anchored ? SPAN_NOTICE("\The [user] begins unscrewing \the [src].") : SPAN_NOTICE("\The [user] begins fastening \the [src].") ) attacking_item.play_tool_sound(get_turf(src), 75) if(do_after(user, 10, src) && density) - to_chat(user, (anchored ? "You have unfastened \the [src] from the floor." : "You have fastened \the [src] to the floor.")) + to_chat(user, (anchored ? SPAN_NOTICE("You have unfastened \the [src] from the floor.") : SPAN_NOTICE("You have fastened \the [src] to the floor."))) anchored = !anchored update_icon() return diff --git a/code/game/objects/structures/sarcophagus.dm b/code/game/objects/structures/sarcophagus.dm index 2dfe8425764..1a114e62008 100644 --- a/code/game/objects/structures/sarcophagus.dm +++ b/code/game/objects/structures/sarcophagus.dm @@ -41,7 +41,7 @@ if(open) return if(istype(attacking_item, /obj/item/sarcophagus_key)) - to_chat(usr, "You slide \the [attacking_item] inside an opening in \the [src].") + to_chat(usr, SPAN_NOTICE("You slide \the [attacking_item] inside an opening in \the [src].")) open() /obj/structure/sarcophagus/proc/open() diff --git a/code/game/objects/structures/simple_doors.dm b/code/game/objects/structures/simple_doors.dm index b703a715a6f..698262e252c 100644 --- a/code/game/objects/structures/simple_doors.dm +++ b/code/game/objects/structures/simple_doors.dm @@ -115,7 +115,7 @@ if(lock && lock.isLocked()) if(user) - to_chat(user, "\The [src] is locked!") + to_chat(user, SPAN_WARNING("\The [src] is locked!")) return isSwitchingStates = 1 @@ -151,7 +151,7 @@ if(istype(attacking_item, /obj/item/key) && lock) var/obj/item/key/K = attacking_item if(!lock.toggle(attacking_item)) - to_chat(user, "\The [K] does not fit in the lock!") + to_chat(user, SPAN_WARNING("\The [K] does not fit in the lock!")) return if(lock && lock.pick_lock(attacking_item, user)) @@ -159,7 +159,7 @@ if(istype(attacking_item, /obj/item/material/lock_construct)) if(lock) - to_chat(user, "\The [src] already has a lock.") + to_chat(user, SPAN_WARNING("\The [src] already has a lock.")) else var/obj/item/material/lock_construct/L = attacking_item lock = L.create_lock(src,user) @@ -170,11 +170,11 @@ user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) if(I.damtype == DAMAGE_BRUTE || I.damtype == DAMAGE_BURN) if(I.force < 10) - user.visible_message("\The [user] hits \the [src] with \the [I] with no visible effect.") + user.visible_message(SPAN_DANGER("\The [user] hits \the [src] with \the [I] with no visible effect.")) else user.do_attack_animation(src) shake_animation() - user.visible_message("\The [user] forcefully strikes \the [src] with \the [I]!") + user.visible_message(SPAN_DANGER("\The [user] forcefully strikes \the [src] with \the [I]!")) playsound(src.loc, material.hitsound, attacking_item.get_clamped_volume(), 1) src.health -= attacking_item.force * 1 CheckHealth() diff --git a/code/game/objects/structures/stool_bed_chair_nest/bed.dm b/code/game/objects/structures/stool_bed_chair_nest/bed.dm index 95f70b48dcd..ff27603e141 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/bed.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/bed.dm @@ -202,7 +202,7 @@ else if(istype(attacking_item, /obj/item/grab)) var/obj/item/grab/G = attacking_item var/mob/living/affecting = G.affecting - user.visible_message("[user] attempts to buckle [affecting] into \the [src]!") + user.visible_message(SPAN_NOTICE("[user] attempts to buckle [affecting] into \the [src]!")) if(do_after(user, 2 SECONDS, affecting, DO_UNIQUE)) affecting.forceMove(loc) spawn(0) diff --git a/code/game/objects/structures/therapy.dm b/code/game/objects/structures/therapy.dm index 82976524ae4..defd16ee230 100644 --- a/code/game/objects/structures/therapy.dm +++ b/code/game/objects/structures/therapy.dm @@ -129,7 +129,7 @@ var/thrall_response = alert(H, "Do you believe in hypnosis?", "Willpower", "Yes", "No") if(thrall_response == "Yes") - to_chat(H, "... [text] ...") + to_chat(H, SPAN_NOTICE("... [text] ...")) else thrall = null @@ -143,7 +143,7 @@ if(!istype(H)) return - user.visible_message("[user] begins to mesmerizingly wave [src] like a pendulum before [H]'s very eyes!") + user.visible_message(SPAN_WARNING("[user] begins to mesmerizingly wave [src] like a pendulum before [H]'s very eyes!")) if(!do_mob(user, H, 10 SECONDS)) return @@ -154,7 +154,7 @@ var/response = alert(H, "Do you believe in hypnosis?", "Willpower", "Yes", "No") if(response == "Yes") - H.visible_message("[H] falls into a deep slumber!", "You fall into a deep slumber!") + H.visible_message(SPAN_WARNING("[H] falls into a deep slumber!"), SPAN_DANGER("You fall into a deep slumber!")) H.sleeping = max(H.sleeping, 40) H.drowsiness = max(H.drowsiness, 60) @@ -183,12 +183,12 @@ if(attacking_item.iswrench()) attacking_item.play_tool_sound(get_turf(src), 50) if(anchored) - to_chat(user, "You unanchor \the [src] and it destabilizes.") + to_chat(user, SPAN_NOTICE("You unanchor \the [src] and it destabilizes.")) STOP_PROCESSING(SSfast_process, src) icon_state = "metronome0" anchored = 0 else - to_chat(user, "You anchor \the [src] and it restabilizes.") + to_chat(user, SPAN_NOTICE("You anchor \the [src] and it restabilizes.")) START_PROCESSING(SSfast_process, src) icon_state = "metronome1" anchored = 1 @@ -212,5 +212,5 @@ ticktock = "Tock" else ticktock = "Tick" - to_chat(H, "[ticktock]. . .") + to_chat(H, SPAN_NOTICE("[ticktock]. . .")) sound_to(H, 'sound/effects/singlebeat.ogg') diff --git a/code/game/objects/structures/tranqcabinet.dm b/code/game/objects/structures/tranqcabinet.dm index 62562a6ad98..5d2c796dcb3 100644 --- a/code/game/objects/structures/tranqcabinet.dm +++ b/code/game/objects/structures/tranqcabinet.dm @@ -20,7 +20,7 @@ user.remove_from_mob(attacking_item) contents += attacking_item has_tranq = attacking_item - to_chat(user, "You place [attacking_item] in [src].") + to_chat(user, SPAN_NOTICE("You place [attacking_item] in [src].")) else opened = !opened else @@ -35,7 +35,7 @@ return if(has_tranq) user.put_in_hands(has_tranq) - to_chat(user, "You take [has_tranq] from [src].") + to_chat(user, SPAN_NOTICE("You take [has_tranq] from [src].")) has_tranq = null opened = 1 else @@ -45,7 +45,7 @@ /obj/structure/tranqcabinet/do_simple_ranged_interaction(var/mob/user) if(has_tranq) has_tranq.forceMove(loc) - to_chat(user, "You telekinetically remove [has_tranq] from [src].") + to_chat(user, SPAN_NOTICE("You telekinetically remove [has_tranq] from [src].")) has_tranq = null opened = 1 else diff --git a/code/game/objects/structures/under_wardrobe.dm b/code/game/objects/structures/under_wardrobe.dm index 0c6677f8222..82ecb60f558 100644 --- a/code/game/objects/structures/under_wardrobe.dm +++ b/code/game/objects/structures/under_wardrobe.dm @@ -12,7 +12,7 @@ /obj/structure/undies_wardrobe/attack_hand(var/mob/user) if(!human_who_can_use_underwear(user)) - to_chat(user, "Sadly there's nothing in here for you to wear.") + to_chat(user, SPAN_WARNING("Sadly there's nothing in here for you to wear.")) return interact(user) diff --git a/code/game/objects/structures/urban.dm b/code/game/objects/structures/urban.dm index f2be4080b8d..8bc97168ecd 100644 --- a/code/game/objects/structures/urban.dm +++ b/code/game/objects/structures/urban.dm @@ -168,7 +168,7 @@ playsound(src.loc, 'sound/effects/stonedoor_openclose.ogg', 50, 1) to_chat(user, "You forcibly relocate the manhole, hopefully in the right way.") if(!open) - visible_message("A horrid smell erupts from the abyss of the manhole, not one any soul should inhale. Some mistakes were made.") + visible_message(SPAN_WARNING("A horrid smell erupts from the abyss of the manhole, not one any soul should inhale. Some mistakes were made.")) icon_state = "manhole_open" desc = "This looks pretty dangerous, stinks horribly, and doesn't have a ladder inside. Watch out!" open = 1 @@ -176,7 +176,7 @@ turf.is_hole = TRUE return if(open) - visible_message("The manhole clunks and seals back into place, safely burying our problems underground for someone else later.") + visible_message(SPAN_WARNING("The manhole clunks and seals back into place, safely burying our problems underground for someone else later.")) icon_state = "manhole_closed" desc = "It looks recently opened and sloppily closed." open = 0 diff --git a/code/game/objects/structures/windoor_assembly.dm b/code/game/objects/structures/windoor_assembly.dm index 03681d5763b..cf2cdc723fa 100644 --- a/code/game/objects/structures/windoor_assembly.dm +++ b/code/game/objects/structures/windoor_assembly.dm @@ -78,13 +78,13 @@ if(attacking_item.use_tool(src, user, 40, volume = 50)) if(!src || !WT.isOn()) return - to_chat(user, "You dissasembled the windoor assembly!") + to_chat(user, SPAN_NOTICE("You dissasembled the windoor assembly!")) new /obj/item/stack/material/glass/reinforced(get_turf(src), 5) if(secure) new /obj/item/stack/rods(get_turf(src), 4) qdel(src) else - to_chat(user, "You need more welding fuel to dissassemble the windoor assembly.") + to_chat(user, SPAN_NOTICE("You need more welding fuel to dissassemble the windoor assembly.")) return //Wrenching an unsecure assembly anchors it in place. Step 4 complete @@ -93,7 +93,7 @@ if(attacking_item.use_tool(src, user, 40, volume = 50)) if(!src) return - to_chat(user, "You've secured the windoor assembly!") + to_chat(user, SPAN_NOTICE("You've secured the windoor assembly!")) src.anchored = 1 if(src.secure) src.name = "Secure Anchored Windoor Assembly" @@ -106,7 +106,7 @@ if(attacking_item.use_tool(src, user, 40, volume = 50)) if(!src) return - to_chat(user, "You've unsecured the windoor assembly!") + to_chat(user, SPAN_NOTICE("You've unsecured the windoor assembly!")) src.anchored = 0 if(src.secure) src.name = "Secure Windoor Assembly" @@ -117,13 +117,13 @@ else if(istype(attacking_item, /obj/item/stack/rods) && !secure) var/obj/item/stack/rods/R = attacking_item if(R.get_amount() < 4) - to_chat(user, "You need more rods to do this.") + to_chat(user, SPAN_WARNING("You need more rods to do this.")) return - to_chat(user, "You start to reinforce the windoor with rods.") + to_chat(user, SPAN_NOTICE("You start to reinforce the windoor with rods.")) if(attacking_item.use_tool(src, user, 40, volume = 50) && !secure) if (R.use(4)) - to_chat(user, "You reinforce the windoor.") + to_chat(user, SPAN_NOTICE("You reinforce the windoor.")) src.secure = "secure_" if(src.anchored) src.name = "Secure Anchored Windoor Assembly" @@ -137,7 +137,7 @@ var/obj/item/stack/cable_coil/CC = attacking_item if(attacking_item.use_tool(src, user, 40, volume = 50)) if (CC.use(1)) - to_chat(user, "You wire the windoor!") + to_chat(user, SPAN_NOTICE("You wire the windoor!")) src.state = "02" if(src.secure) src.name = "Secure Wired Windoor Assembly" @@ -156,7 +156,7 @@ if(attacking_item.use_tool(src, user, 40, volume = 50)) if(!src) return - to_chat(user, "You cut the windoor wires.!") + to_chat(user, SPAN_NOTICE("You cut the windoor wires.!")) new/obj/item/stack/cable_coil(get_turf(user), 1) src.state = "01" if(src.secure) @@ -175,7 +175,7 @@ EL.is_installed = 0 if(!src) return user.drop_from_inventory(EL,src) - to_chat(user, "You've installed the airlock electronics!") + to_chat(user, SPAN_NOTICE("You've installed the airlock electronics!")) src.name = "Near finished Windoor Assembly" src.electronics = EL else @@ -187,7 +187,7 @@ if(attacking_item.use_tool(src, user, 40, volume = 50)) if(!src || !src.electronics) return - to_chat(user, "You've removed the airlock electronics!") + to_chat(user, SPAN_NOTICE("You've removed the airlock electronics!")) if(src.secure) src.name = "Secure Wired Windoor Assembly" else @@ -199,7 +199,7 @@ //Crowbar to complete the assembly, Step 7 complete. else if(attacking_item.iscrowbar()) if(!src.electronics) - to_chat(usr, "The assembly is missing electronics.") + to_chat(usr, SPAN_WARNING("The assembly is missing electronics.")) return usr << browse(null, "window=windoor_access") user.visible_message("[user] pries the windoor into the frame.", "You start prying the windoor into the frame.") @@ -209,7 +209,7 @@ if(!src) return density = 1 //Shouldn't matter but just incase - to_chat(user, "You finish the windoor!") + to_chat(user, SPAN_NOTICE("You finish the windoor!")) if(secure) var/obj/machinery/door/window/brigdoor/windoor = new /obj/machinery/door/window/brigdoor(src.loc) diff --git a/code/game/turfs/simulated/floor_attackby.dm b/code/game/turfs/simulated/floor_attackby.dm index 5d2a4c0de61..411945741f5 100644 --- a/code/game/turfs/simulated/floor_attackby.dm +++ b/code/game/turfs/simulated/floor_attackby.dm @@ -6,13 +6,13 @@ if(flooring && (!ismob(user) || user.a_intent != I_HURT)) if(attacking_item.iscrowbar()) if(broken || burnt) - to_chat(user, "You remove the broken [flooring.descriptor].") + to_chat(user, SPAN_NOTICE("You remove the broken [flooring.descriptor].")) make_plating() else if(flooring.flags & TURF_IS_FRAGILE) - to_chat(user, "You forcefully pry off the [flooring.descriptor], destroying them in the process.") + to_chat(user, SPAN_DANGER("You forcefully pry off the [flooring.descriptor], destroying them in the process.")) make_plating() else if(flooring.flags & TURF_REMOVE_CROWBAR) - to_chat(user, "You lever off the [flooring.descriptor].") + to_chat(user, SPAN_NOTICE("You lever off the [flooring.descriptor].")) make_plating(1) else return @@ -21,17 +21,17 @@ else if(attacking_item.isscrewdriver() && (flooring.flags & TURF_REMOVE_SCREWDRIVER)) if(broken || burnt) return - to_chat(user, "You unscrew and remove the [flooring.descriptor].") + to_chat(user, SPAN_NOTICE("You unscrew and remove the [flooring.descriptor].")) make_plating(1) attacking_item.play_tool_sound(get_turf(src), 80) return else if(attacking_item.iswrench() && (flooring.flags & TURF_REMOVE_WRENCH)) - to_chat(user, "You unwrench and remove the [flooring.descriptor].") + to_chat(user, SPAN_NOTICE("You unwrench and remove the [flooring.descriptor].")) make_plating(1) attacking_item.play_tool_sound(get_turf(src), 80) return else if(istype(attacking_item, /obj/item/shovel) && (flooring.flags & TURF_REMOVE_SHOVEL)) - to_chat(user, "You shovel off the [flooring.descriptor].") + to_chat(user, SPAN_NOTICE("You shovel off the [flooring.descriptor].")) make_plating(1) attacking_item.play_tool_sound(get_turf(src), 80) return @@ -46,20 +46,20 @@ attacking_item.play_tool_sound(get_turf(src), 80) return else if(attacking_item.iscoil()) - to_chat(user, "You must remove the [flooring.descriptor] first.") + to_chat(user, SPAN_WARNING("You must remove the [flooring.descriptor] first.")) return else if(attacking_item.iscoil()) if(broken || burnt) - to_chat(user, "This section is too damaged to support anything. Use a welder to fix the damage.") + to_chat(user, SPAN_WARNING("This section is too damaged to support anything. Use a welder to fix the damage.")) return var/obj/item/stack/cable_coil/coil = attacking_item coil.turf_place(src, user) return else if(istype(attacking_item, /obj/item/stack)) if(broken || burnt) - to_chat(user, "This section is too damaged to support anything. Use a welder to fix the damage.") + to_chat(user, SPAN_WARNING("This section is too damaged to support anything. Use a welder to fix the damage.")) return var/obj/item/stack/S = attacking_item var/singleton/flooring/use_flooring @@ -75,7 +75,7 @@ return // Do we have enough? if(use_flooring.build_cost && S.get_amount() < use_flooring.build_cost) - to_chat(user, "You require at least [use_flooring.build_cost] [S.name] to complete the [use_flooring.descriptor].") + to_chat(user, SPAN_WARNING("You require at least [use_flooring.build_cost] [S.name] to complete the [use_flooring.descriptor].")) return // Stay still and focus... if(use_flooring.build_time && !do_after(user, use_flooring.build_time, flooring, DO_REPAIR_CONSTRUCT)) @@ -94,21 +94,21 @@ return if(broken || burnt) playsound(src, 'sound/items/crowbar_tile.ogg', 80, 1) - visible_message("[user] has begun prying off the damaged plating.") + visible_message(SPAN_NOTICE("[user] has begun prying off the damaged plating.")) var/turf/T = GetBelow(src) if(T) - T.visible_message("The ceiling above looks as if it's being pried off.") + T.visible_message(SPAN_WARNING("The ceiling above looks as if it's being pried off.")) if(do_after(user, 10 SECONDS)) if(!istype(src, /turf/simulated/floor)) return if(broken || burnt && !(is_plating())) return - visible_message("[user] has pried off the damaged plating.") + visible_message(SPAN_WARNING("[user] has pried off the damaged plating.")) new /obj/item/stack/tile/floor(src) src.ReplaceWithLattice() playsound(src, 'sound/items/Deconstruct.ogg', 80, 1) if(T) - T.visible_message("The ceiling above has been pried off!") + T.visible_message(SPAN_DANGER("The ceiling above has been pried off!")) return return else if(attacking_item.iswelder()) @@ -117,20 +117,20 @@ if(broken || burnt) if(do_after(user, 5 SECONDS)) if(welder.use(0, user)) - to_chat(user, "You fix some dents on the broken plating.") + to_chat(user, SPAN_NOTICE("You fix some dents on the broken plating.")) playsound(src, 'sound/items/Welder.ogg', 80, 1) icon_state = "plating" burnt = null broken = null else - to_chat(user, "You need more welding fuel to complete this task.") + to_chat(user, SPAN_WARNING("You need more welding fuel to complete this task.")) return else if(welder.use(0, user)) playsound(src, 'sound/items/Welder.ogg', 80, 1) - visible_message("[user] has started melting the plating's reinforcements!") + visible_message(SPAN_NOTICE("[user] has started melting the plating's reinforcements!")) if(welder.use_tool(src, user, 100, volume = 80) && welder.isOn() && welder_melt()) - visible_message("[user] has melted the plating's reinforcements! It should be possible to pry it off.") + visible_message(SPAN_WARNING("[user] has melted the plating's reinforcements! It should be possible to pry it off.")) playsound(src, 'sound/items/Welder.ogg', 80, 1) return diff --git a/code/game/turfs/simulated/water.dm b/code/game/turfs/simulated/water.dm index 53eaa5495fd..b52349abb04 100644 --- a/code/game/turfs/simulated/water.dm +++ b/code/game/turfs/simulated/water.dm @@ -104,7 +104,7 @@ numobjects += 1 var/mob/living/L = AM if(!istype(oldloc, /turf/simulated/floor/beach/water)) - to_chat(L, "You get drenched in water from entering \the [src]!") + to_chat(L, SPAN_WARNING("You get drenched in water from entering \the [src]!")) wash(L) ..() @@ -120,7 +120,7 @@ numobjects -= 1 var/mob/living/L = AM if(!istype(newloc, /turf/simulated/floor/beach/water)) - to_chat(L, "You climb out of \the [src].") + to_chat(L, SPAN_WARNING("You climb out of \the [src].")) ..() /turf/simulated/floor/beach/water/process() diff --git a/code/game/turfs/space/space.dm b/code/game/turfs/space/space.dm index e8486c96f14..c05c4f96b42 100644 --- a/code/game/turfs/space/space.dm +++ b/code/game/turfs/space/space.dm @@ -87,7 +87,7 @@ return var/obj/item/stack/rods/R = attacking_item if (R.use(1)) - to_chat(user, "Constructing support lattice ...") + to_chat(user, SPAN_NOTICE("Constructing support lattice ...")) playsound(src, 'sound/weapons/Genhit.ogg', 50, 1) ReplaceWithLattice() return @@ -104,7 +104,7 @@ ChangeTurf(/turf/simulated/floor/airless) return else - to_chat(user, "The plating is going to need some support.") + to_chat(user, SPAN_WARNING("The plating is going to need some support.")) ..() @@ -112,7 +112,7 @@ /turf/space/Entered(atom/movable/A as mob|obj) if(movement_disabled) - to_chat(usr, "Movement is admin-disabled.") //This is to identify lag problems) + to_chat(usr, SPAN_WARNING("Movement is admin-disabled.")) //This is to identify lag problems) return ..(A, A.loc) if ((!(A) || src != A.loc)) return diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index 54ea8881c3b..52b1e861c62 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -205,7 +205,7 @@ /turf/Enter(atom/movable/mover as mob|obj, atom/forget as mob|obj|turf|area) if(movement_disabled && usr.ckey != movement_disabled_exception) - to_chat(usr, "Movement is admin-disabled.") //This is to identify lag problems) + to_chat(usr, SPAN_WARNING("Movement is admin-disabled.")) //This is to identify lag problems) return ..() @@ -251,7 +251,7 @@ var/const/enterloopsanity = 100 /turf/Entered(atom/movable/arrived, atom/old_loc) if(movement_disabled) - to_chat(usr, "Movement is admin-disabled.") //This is to identify lag problems) + to_chat(usr, SPAN_WARNING("Movement is admin-disabled.")) //This is to identify lag problems) return ASSERT(istype(arrived)) diff --git a/code/game/verbs/ooc.dm b/code/game/verbs/ooc.dm index cb450b5ee8e..87ed1c4ae20 100644 --- a/code/game/verbs/ooc.dm +++ b/code/game/verbs/ooc.dm @@ -8,7 +8,7 @@ set category = "OOC" if(say_disabled) //This is here to try to identify lag problems - to_chat(usr, "Speech is currently admin-disabled.") + to_chat(usr, SPAN_WARNING("Speech is currently admin-disabled.")) return if(!mob) @@ -19,7 +19,7 @@ return if(!(prefs.toggles & CHAT_OOC)) - to_chat(src, "You have OOC muted.") + to_chat(src, SPAN_WARNING("You have OOC muted.")) return msg = sanitize(msg) @@ -29,10 +29,10 @@ if(!holder) if(!GLOB.config.ooc_allowed) - to_chat(src, "OOC is globally muted.") + to_chat(src, SPAN_DANGER("OOC is globally muted.")) return if(!GLOB.config.dooc_allowed && (mob.stat == DEAD)) - to_chat(usr, "OOC for dead mobs has been turned off.") + to_chat(usr, SPAN_DANGER("OOC for dead mobs has been turned off.")) return if(handle_spam_prevention(msg,MUTE_OOC)) return @@ -76,7 +76,7 @@ set category = "OOC" if(say_disabled) //This is here to try to identify lag problems - to_chat(usr, "Speech is currently admin-disabled.") + to_chat(usr, SPAN_DANGER("Speech is currently admin-disabled.")) return if(!mob) @@ -92,18 +92,18 @@ return if(!(prefs.toggles & CHAT_LOOC)) - to_chat(src, "You have LOOC muted.") + to_chat(src, SPAN_DANGER("You have LOOC muted.")) return if(mob.stat == DEAD && !(prefs.toggles & CHAT_GHOSTLOOC)) - to_chat(src, "You have observer LOOC muted.") + to_chat(src, SPAN_DANGER("You have observer LOOC muted.")) return if(!holder) if(!GLOB.config.looc_allowed) - to_chat(src, "LOOC is globally muted.") + to_chat(src, SPAN_DANGER("LOOC is globally muted.")) return if(!GLOB.config.dead_looc_allowed && (mob.stat == DEAD)) - to_chat(usr, "LOOC for dead mobs has been turned off.") + to_chat(usr, SPAN_DANGER("LOOC for dead mobs has been turned off.")) return if(handle_spam_prevention(msg, MUTE_OOC)) return @@ -183,7 +183,7 @@ var/list/choice = list(2, 4, 6, 8, 10, 12, 20, 50, 100) var/input = input("Select the Dice you want!", "Dice", null, null) in choice - to_chat(usr, "You roll [rand(1,input)] out of [input]!") + to_chat(usr, SPAN_NOTICE("You roll [rand(1,input)] out of [input]!")) /client/verb/fit_viewport() set name = "Fit Viewport" diff --git a/code/modules/admin/DB ban/ban_mirroring.dm b/code/modules/admin/DB ban/ban_mirroring.dm index 490086cbec6..ee2b59c5930 100644 --- a/code/modules/admin/DB ban/ban_mirroring.dm +++ b/code/modules/admin/DB ban/ban_mirroring.dm @@ -147,11 +147,11 @@ var/list/mirrors = get_ban_mirrors(ban_id) if (!mirrors) - to_chat(user, "Something went horribly wrong.") + to_chat(user, SPAN_WARNING("Something went horribly wrong.")) return if (!mirrors.len) - to_chat(user, "No mirrors for this ban found.") + to_chat(user, SPAN_WARNING("No mirrors for this ban found.")) return var/output = "
Ban mirrors for ban #[ban_id]

" @@ -195,18 +195,18 @@ return if (!establish_db_connection(GLOB.dbcon)) - to_chat(user, "Database connection failed!") + to_chat(user, SPAN_WARNING("Database connection failed!")) return var/DBQuery/query = GLOB.dbcon.NewQuery("SELECT extra_info, ban_id FROM ss13_ban_mirrors WHERE id = :id:") query.Execute(list("id" = mirror_id)) if (!query.NextRow()) - to_chat(user, "Unable to locate mirror with ID #[mirror_id].") + to_chat(user, SPAN_NOTICE("Unable to locate mirror with ID #[mirror_id].")) return if (!query.item[1] || !length(query.item[1])) - to_chat(user, "No attached ckeys were found.") + to_chat(user, SPAN_NOTICE("No attached ckeys were found.")) return var/output = "Back

" @@ -214,12 +214,12 @@ var/list/ckeys = json_decode(query.item[1]) if (!ckeys.len) - to_chat(user, "No alternate ckeys to report.") + to_chat(user, SPAN_NOTICE("No alternate ckeys to report.")) return output += ckeys.Join("
") catch() - to_chat(user, "Maligned data found. Please alert the system administrator.") + to_chat(user, SPAN_NOTICE("Maligned data found. Please alert the system administrator.")) return output += "

Back" @@ -230,7 +230,7 @@ return if (!establish_db_connection(GLOB.dbcon)) - to_chat(user, "Database connection failed!") + to_chat(user, SPAN_WARNING("Database connection failed!")) return var/query_text = inactive ? "UPDATE ss13_ban_mirrors SET deleted_at = NULL WHERE id = :id:" : "UPDATE ss13_ban_mirrors SET deleted_at = NOW() WHERE id = :id:" @@ -239,9 +239,9 @@ query.Execute(list("id" = mirror_id)) if (query.ErrorMsg()) - to_chat(user, "An error occured while toggling mirror status!") + to_chat(user, SPAN_WARNING("An error occured while toggling mirror status!")) else - to_chat(user, "Mirror set to [inactive ? "ACTIVE" : "INACTIVE"].") + to_chat(user, SPAN_NOTICE("Mirror set to [inactive ? "ACTIVE" : "INACTIVE"].")) /proc/handle_connection_info(var/client/C, var/data) if (!C) diff --git a/code/modules/admin/DB ban/functions.dm b/code/modules/admin/DB ban/functions.dm index 538d77d748d..a040293da53 100644 --- a/code/modules/admin/DB ban/functions.dm +++ b/code/modules/admin/DB ban/functions.dm @@ -63,7 +63,7 @@ ip = query.item[3] if(!validckey) if(!banned_mob || (banned_mob && !IsGuestKey(banned_mob.key))) - message_admins("[key_name_admin(usr)] attempted to ban [ckey], but [ckey] has not been seen yet. Please only ban actual players.",1) + message_admins(SPAN_WARNING("[key_name_admin(usr)] attempted to ban [ckey], but [ckey] has not been seen yet. Please only ban actual players."),1) return var/a_ckey @@ -100,7 +100,7 @@ var/sql = "INSERT INTO ss13_ban (`id`,`bantime`,`serverip`,`game_id`,`bantype`,`reason`,`job`,`duration`,`rounds`,`expiration_time`,`ckey`,`computerid`,`ip`,`a_ckey`,`a_computerid`,`a_ip`,`who`,`adminwho`,`edits`,`unbanned`,`unbanned_datetime`,`unbanned_ckey`,`unbanned_computerid`,`unbanned_ip`) VALUES (null, Now(), '[serverip]', '[GLOB.round_id]','[bantype_str]', '[reason]', '[job]', [(duration)?"[duration]":"0"], [(rounds)?"[rounds]":"0"], Now() + INTERVAL [(duration>0) ? duration : 0] MINUTE, '[ckey]', '[computerid]', '[ip]', '[a_ckey]', '[a_computerid]', '[a_ip]', '[who]', '[adminwho]', '', null, null, null, null, null)" var/DBQuery/query_insert = GLOB.dbcon.NewQuery(sql) query_insert.Execute() - to_chat(usr, "Ban saved to database.") + to_chat(usr, SPAN_NOTICE("Ban saved to database.")) message_admins("[key_name_admin(usr)] has added a [bantype_str] for [ckey] [(job)?"([job])":""] [(duration > 0)?"([duration] minutes)":""] with the reason: \"[reason]\" to the ban database.",1) /proc/DB_ban_unban(var/ckey, var/bantype, var/job = "") @@ -151,17 +151,17 @@ ban_number++; if(ban_number == 0) - to_chat(usr, "Database update failed due to no bans fitting the search criteria. If this is not a legacy ban you should contact the database admin.") + to_chat(usr, SPAN_WARNING("Database update failed due to no bans fitting the search criteria. If this is not a legacy ban you should contact the database admin.")) return if(ban_number > 1) - to_chat(usr, "Database update failed due to multiple bans fitting the search criteria. Note down the ckey, job and current time and contact the database admin.") + to_chat(usr, SPAN_WARNING("Database update failed due to multiple bans fitting the search criteria. Note down the ckey, job and current time and contact the database admin.")) return if(istext(ban_id)) ban_id = text2num(ban_id) if(!isnum(ban_id)) - to_chat(usr, "Database update failed due to a ban ID mismatch. Contact the database admin.") + to_chat(usr, SPAN_WARNING("Database update failed due to a ban ID mismatch. Contact the database admin.")) return DB_ban_unban_by_id(ban_id) @@ -237,7 +237,7 @@ var/reason = input("Please specify an unban reason.", "Unban Reason", "Unbanned as per appeal.") if (!reason) - to_chat(usr, "Invalid reason given. Cancelled.") + to_chat(usr, SPAN_WARNING("Invalid reason given. Cancelled.")) return var/ban_number = 0 //failsafe @@ -254,11 +254,11 @@ ban_number++; if(ban_number == 0) - to_chat(usr, "Database update failed due to a ban id not being present in the database.") + to_chat(usr, SPAN_WARNING("Database update failed due to a ban id not being present in the database.")) return if(ban_number > 1) - to_chat(usr, "Database update failed due to multiple bans having the same ID. Contact the database admin.") + to_chat(usr, SPAN_WARNING("Database update failed due to multiple bans having the same ID. Contact the database admin.")) return var/datum/admins/holder = null @@ -304,7 +304,7 @@ if(!check_rights(R_BAN)) return if(!establish_db_connection(GLOB.dbcon)) - to_chat(usr, "Failed to establish database connection") + to_chat(usr, SPAN_WARNING("Failed to establish database connection")) return var/output = "
" @@ -503,7 +503,7 @@ var/typedesc ="" switch(bantype) if("PERMABAN") - typedesc = "PERMABAN" + typedesc = SPAN_WARNING("PERMABAN") if("TEMPBAN") typedesc = "TEMPBAN
([duration] minutes) [(unbanned || auto) ? "" : "(Edit)"]
Expires [expiration]
" if("JOB_PERMABAN") diff --git a/code/modules/admin/IsBanned.dm b/code/modules/admin/IsBanned.dm index f3b2ef2b662..5a871552e21 100644 --- a/code/modules/admin/IsBanned.dm +++ b/code/modules/admin/IsBanned.dm @@ -55,7 +55,7 @@ //Guest Checking if(!(GLOB.config.guests_allowed || GLOB.config.external_auth) && IsGuestKey(key)) log_access("Failed Login: [key] - Guests not allowed",ckey=key_name(key)) - message_admins("Failed Login: [key] - Guests not allowed") + message_admins(SPAN_NOTICE("Failed Login: [key] - Guests not allowed")) LOG_CLIENT_CONNECTION(ACCESS_STATUS_GUESTDENIED) return list("reason"="guest", "desc"="\nReason: Guests not allowed. Please sign in with a byond account.") if(GLOB.config.ban_legacy_system) @@ -63,7 +63,7 @@ . = CheckBan(ckey, computer_id, address) if(.) log_access("Failed Login: [key] [computer_id] [address] - Banned [.["reason"]]",ckey=key_name(key)) - message_admins("Failed Login: [key] id:[computer_id] ip:[address] - Banned [.["reason"]]") + message_admins(SPAN_NOTICE("Failed Login: [key] id:[computer_id] ip:[address] - Banned [.["reason"]]")) return . return ..() //default pager ban stuff diff --git a/code/modules/admin/NewBan.dm b/code/modules/admin/NewBan.dm index 8bc721abd9f..7f5325a5ba8 100644 --- a/code/modules/admin/NewBan.dm +++ b/code/modules/admin/NewBan.dm @@ -106,7 +106,7 @@ var/savefile/Banlist Banlist.cd = "/base" if ( Banlist.dir.Find("[ckey][computerid]") ) - to_chat(usr, text("Ban already exists.")) + to_chat(usr, SPAN_WARNING("Ban already exists.")) return 0 else Banlist.dir.Add("[ckey][computerid]") diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index afa02c7d9be..db7fb9f8186 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -394,7 +394,7 @@ var/global/enabled_spooking = 0 if(FC.is_admin_channel) dat+="[FC.channel_name]
" else - dat+="[FC.channel_name] [(FC.censored) ? ("***") : null]
" + dat+="[FC.channel_name] [(FC.censored) ? (SPAN_WARNING("***")) : null]
" dat+={"

Refresh
Back "} @@ -481,7 +481,7 @@ var/global/enabled_spooking = 0 else for(var/channel in SSnews.network_channels) var/datum/feed_channel/FC = SSnews.GetFeedChannel(channel) - dat+="[FC.channel_name] [(FC.censored) ? ("***") : null]
" + dat+="[FC.channel_name] [(FC.censored) ? (SPAN_WARNING("***")) : null]
" dat+="
Cancel" if(11) dat+={" @@ -495,7 +495,7 @@ var/global/enabled_spooking = 0 else for(var/channel in SSnews.network_channels) var/datum/feed_channel/FC = SSnews.GetFeedChannel(channel) - dat+="[FC.channel_name] [(FC.censored) ? ("***") : null]
" + dat+="[FC.channel_name] [(FC.censored) ? (SPAN_WARNING("***")) : null]
" dat+="
Back" if(12) @@ -678,7 +678,7 @@ var/global/enabled_spooking = 0 if(confirm == "Cancel") return if(confirm == "Yes") - to_world("Restarting world!Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key]!") + to_world(SPAN_DANGER("Restarting world!Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key]!")) log_admin("[key_name(usr)] initiated a reboot.") feedback_set_details("end_error","admin reboot - by [usr.key] [usr.client.holder.fakekey ? "(stealth)" : ""]") @@ -814,11 +814,11 @@ var/global/enabled_spooking = 0 if(SSticker.current_state == GAME_STATE_PREGAME) SSticker.current_state = GAME_STATE_SETTING_UP log_admin("[usr.key] has started the game.") - message_admins("[usr.key] has started the game.") + message_admins(SPAN_NOTICE("[usr.key] has started the game.")) feedback_add_details("admin_verb","SN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! return 1 else - to_chat(usr, "Error: Start Now: Game has already started.") + to_chat(usr, SPAN_WARNING("Error: Start Now: Game has already started.")) return 0 /datum/admins/proc/toggleenter() @@ -831,7 +831,7 @@ var/global/enabled_spooking = 0 else to_world("New players may now enter the game.") log_admin("[key_name(usr)] toggled new player game entering.") - message_admins("[key_name_admin(usr)] toggled new player game entering.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] toggled new player game entering."), 1) world.update_status() feedback_add_details("admin_verb","TE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -857,7 +857,7 @@ var/global/enabled_spooking = 0 to_world("You may now respawn.") else to_world("You may no longer respawn :(") - message_admins("[key_name_admin(usr)] toggled respawn to [GLOB.config.abandon_allowed ? "On" : "Off"].", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] toggled respawn to [GLOB.config.abandon_allowed ? "On" : "Off"]."), 1) log_admin("[key_name(usr)] toggled respawn to [GLOB.config.abandon_allowed ? "On" : "Off"].") world.update_status() feedback_add_details("admin_verb","TR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -880,7 +880,7 @@ var/global/enabled_spooking = 0 if (ROUND_IS_STARTED) SSticker.delay_end = !SSticker.delay_end log_admin("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].") - message_admins("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].", 1) + message_admins(SPAN_NOTICE("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"]."), 1) return //alert("Round end delayed", null, null, null, null, null) GLOB.round_progressing = !GLOB.round_progressing if (!GLOB.round_progressing) @@ -896,7 +896,7 @@ var/global/enabled_spooking = 0 set desc="Toggle admin jumping" set name="Toggle Jump" GLOB.config.allow_admin_jump = !(GLOB.config.allow_admin_jump) - message_admins("Toggled admin jumping to [GLOB.config.allow_admin_jump].") + message_admins(SPAN_NOTICE("Toggled admin jumping to [GLOB.config.allow_admin_jump].")) feedback_add_details("admin_verb","TJ") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /datum/admins/proc/adspawn() @@ -904,7 +904,7 @@ var/global/enabled_spooking = 0 set desc="Toggle admin spawning" set name="Toggle Spawn" GLOB.config.allow_admin_spawning = !(GLOB.config.allow_admin_spawning) - message_admins("Toggled admin item spawning to [GLOB.config.allow_admin_spawning].") + message_admins(SPAN_NOTICE("Toggled admin item spawning to [GLOB.config.allow_admin_spawning].")) feedback_add_details("admin_verb","TAS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /datum/admins/proc/adrev() @@ -912,7 +912,7 @@ var/global/enabled_spooking = 0 set desc="Toggle admin revives" set name="Toggle Revive" GLOB.config.allow_admin_rev = !(GLOB.config.allow_admin_rev) - message_admins("Toggled reviving to [GLOB.config.allow_admin_rev].") + message_admins(SPAN_NOTICE("Toggled reviving to [GLOB.config.allow_admin_rev].")) feedback_add_details("admin_verb","TAR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /datum/admins/proc/immreboot() @@ -922,7 +922,7 @@ var/global/enabled_spooking = 0 if(!usr.client.holder) return if( alert("Reboot server?",,"Yes","No") == "No") return - to_world("Rebooting world! Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key]!") + to_world(SPAN_DANGER("Rebooting world!Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key]!")) log_admin("[key_name(usr)] initiated an immediate reboot.") feedback_set_details("end_error","immediate admin reboot - by [usr.key] [usr.client.holder.fakekey ? "(stealth)" : ""]") @@ -1158,7 +1158,7 @@ var/global/enabled_spooking = 0 else to_world("Guests may now enter the game.") log_admin("[key_name(usr)] toggled guests game entering [GLOB.config.guests_allowed?"":"dis"]allowed.") - message_admins("[key_name_admin(usr)] toggled guests game entering [GLOB.config.guests_allowed?"":"dis"]allowed.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] toggled guests game entering [GLOB.config.guests_allowed?"":"dis"]allowed."), 1) feedback_add_details("admin_verb","TGU") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /datum/admins/proc/output_ai_laws() @@ -1316,14 +1316,14 @@ var/global/enabled_spooking = 0 if(check_rights(R_ADMIN|R_MOD, user)) if (target.paralysis == 0) msg = "has paralyzed [key_name_admin(target)]." - target.visible_message("OOC Information: [target] has been winded by a member of staff! Please freeze all roleplay involving their character until the matter is resolved! Adminhelp if you have further questions.", "You have been winded by a member of staff! Please stand by until they contact you!") + target.visible_message("OOC Information: [target] has been winded by a member of staff! Please freeze all roleplay involving their character until the matter is resolved! Adminhelp if you have further questions.", SPAN_WARNING("You have been winded by a member of staff! Please stand by until they contact you!")) target.paralysis = 8000 else if (alert(user, "The player is currently winded. Do you want to unwind him?", "Unwind player?", "Yes", "No") == "No") return target.paralysis = 0 msg = "has unparalyzed [key_name_admin(target)]." - target.visible_message("OOC Information: [target] has been unwinded by a member of staff!", "You have been unwinded by a member of staff!") + target.visible_message("OOC Information: [target] has been unwinded by a member of staff!", SPAN_WARNING("You have been unwinded by a member of staff!")) log_and_message_admins(msg, user) feedback_add_details("admin_verb", "WIND") diff --git a/code/modules/admin/admin_investigate.dm b/code/modules/admin/admin_investigate.dm index 4120854d58f..22e0abd9c27 100644 --- a/code/modules/admin/admin_investigate.dm +++ b/code/modules/admin/admin_investigate.dm @@ -34,7 +34,7 @@ if("singulo", "telesci") //general one-round-only stuff var/F = investigate_subject2file(subject) if(!F) - to_chat(src, "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.") + to_chat(src, SPAN_WARNING("Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.")) return src << browse(F,"window=investigate[subject];size=800x300") @@ -43,8 +43,8 @@ if(GLOB.config.logfiles["world_href_log"]) src << browse(GLOB.config.logfiles["world_href_log"], "window=investigate[subject];size=800x300") else - to_chat(src, "Error: admin_investigate: No href logfile found.") + to_chat(src, SPAN_WARNING("Error: admin_investigate: No href logfile found.")) return else - to_chat(src, "Error: admin_investigate: Href Logging is not on.") + to_chat(src, SPAN_WARNING("Error: admin_investigate: Href Logging is not on.")) return diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index c3f1312d73f..36b3c2f9f66 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -582,13 +582,13 @@ var/list/admin_verbs_cciaa = list( ghost.reenter_corpse() log_admin("[src] reentered their corpose using aghost.",admin_key=key_name(src)) else - to_chat(ghost, "Error: Aghost: Can't reenter corpse.") + to_chat(ghost, SPAN_WARNING("Error: Aghost: Can't reenter corpse.")) return feedback_add_details("admin_verb","P") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! else if(istype(mob,/mob/abstract/new_player)) - to_chat(src, "Error: Aghost: Can't admin-ghost whilst in the lobby. Join or Observe first.") + to_chat(src, SPAN_WARNING("Error: Aghost: Can't admin-ghost whilst in the lobby. Join or Observe first.")) else //ghostize var/mob/body = mob @@ -608,11 +608,11 @@ var/list/admin_verbs_cciaa = list( if(holder && mob) if(mob.invisibility == INVISIBILITY_OBSERVER) mob.set_invisibility(initial(mob.invisibility)) - to_chat(mob, "Invisimin off. Invisibility reset.") + to_chat(mob, SPAN_DANGER("Invisimin off. Invisibility reset.")) mob.alpha = max(mob.alpha + 100, 255) else mob.set_invisibility(INVISIBILITY_OBSERVER) - to_chat(mob, "Invisimin on. You are now as invisible as a ghost.") + to_chat(mob, SPAN_NOTICE("Invisimin on. You are now as invisible as a ghost.")) mob.alpha = max(mob.alpha - 100, 0) /client/proc/player_panel_modern() @@ -725,7 +725,7 @@ var/list/admin_verbs_cciaa = list( var/light_impact_range = tgui_input_number(usr, "Set the light impact range (in tiles).", "Light") var/flash_range = tgui_input_number(usr, "Set the flash range (in tiles).", "Flash") explosion(epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range) - message_admins("[ckey] creating an admin explosion at [epicenter.loc].") + message_admins(SPAN_NOTICE("[ckey] creating an admin explosion at [epicenter.loc].")) feedback_add_details("admin_verb","DB") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/make_sound(var/obj/O in range(world.view)) // -- TLE @@ -739,7 +739,7 @@ var/list/admin_verbs_cciaa = list( for (var/mob/V in hearers(O)) V.show_message(message, 2) log_admin("[key_name(usr)] made [O] at [O.x], [O.y], [O.z]. make a sound",admin_key=key_name(usr)) - message_admins("[key_name_admin(usr)] made [O] at [O.x], [O.y], [O.z]. make a sound", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] made [O] at [O.x], [O.y], [O.z]. make a sound"), 1) feedback_add_details("admin_verb","MS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -781,7 +781,7 @@ var/list/admin_verbs_cciaa = list( to_chat(usr, "Disabled air processing.") feedback_add_details("admin_verb","KA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! log_admin("[key_name(usr)] used 'kill air'.",admin_key=key_name(usr)) - message_admins("[key_name_admin(usr)] used 'kill air'.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] used 'kill air'."), 1) /client/proc/readmin_self() set name = "Re-Admin self" @@ -817,10 +817,10 @@ var/list/admin_verbs_cciaa = list( if(holder) if (toggle_aooc_holder_check() == FALSE) - to_chat(src, "AOOC is now muted.") + to_chat(src, SPAN_NOTICE("AOOC is now muted.")) remove_verb(src, /client/proc/aooc) else - to_chat(src, "AOOC is now unmuted.") + to_chat(src, SPAN_NOTICE("AOOC is now unmuted.")) add_verb(src, /client/proc/aooc) feedback_add_details("admin_verb","TAOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -929,7 +929,7 @@ var/list/admin_verbs_cciaa = list( var/mob/living/carbon/human/M = input("Select mob.", "Edit Appearance") as null|anything in GLOB.human_mob_list if(!istype(M, /mob/living/carbon/human)) - to_chat(usr, "You can only do this to humans!") + to_chat(usr, SPAN_WARNING("You can only do this to humans!")) return switch(alert("Are you sure you wish to edit this mob's appearance? Skrell, Unathi and Tajaran can result in unintended consequences.",,"Yes","No")) if("No") @@ -1075,11 +1075,11 @@ var/list/admin_verbs_cciaa = list( set name = "Man Up" set desc = "Tells mob to man up and deal with it." - to_chat(T, "Man up and deal with it.") - to_chat(T, "Move on.") + to_chat(T, SPAN_NOTICE("Man up and deal with it.")) + to_chat(T, SPAN_NOTICE("Move on.")) log_admin("[key_name(usr)] told [key_name(T)] to man up and deal with it.", admin_key=key_name(usr), ckey=key_name(T)) - message_admins("[key_name_admin(usr)] told [key_name(T)] to man up and deal with it.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] told [key_name(T)] to man up and deal with it."), 1) /client/proc/global_man_up() set category = "Fun" @@ -1091,7 +1091,7 @@ var/list/admin_verbs_cciaa = list( sound_to(T, 'sound/voice/ManUp1.ogg') log_admin("[key_name(usr)] told everyone to man up and deal with it.",admin_key=key_name(usr)) - message_admins("[key_name_admin(usr)] told everyone to man up and deal with it.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] told everyone to man up and deal with it."), 1) /client/proc/give_spell(mob/T as mob in GLOB.mob_list) // -- Urist set category = "Fun" @@ -1102,7 +1102,7 @@ var/list/admin_verbs_cciaa = list( T.add_spell(new S) feedback_add_details("admin_verb","GS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! log_admin("[key_name(usr)] gave [key_name(T)] the spell [S].",admin_key=key_name(usr),ckey=key_name(T)) - message_admins("[key_name_admin(usr)] gave [key_name(T)] the spell [S].", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] gave [key_name(T)] the spell [S]."), 1) /client/proc/toggle_recursive_explosions() set category = "Server" @@ -1115,7 +1115,7 @@ var/list/admin_verbs_cciaa = list( var/ans = alert(src, "This will force explosions to run in the [GLOB.config.use_spreading_explosions ? "old manner (circular)" : "new, realistic manner (spreading)"]. Do you want to proceed?", "Switch explosion type", "Yes", "Cancel") if (!ans || ans == "Cancel") - to_chat(src, "Cancelled.") + to_chat(src, SPAN_NOTICE("Cancelled.")) return GLOB.config.use_spreading_explosions = !GLOB.config.use_spreading_explosions @@ -1247,7 +1247,7 @@ var/list/admin_verbs_cciaa = list( sortTim(C.client_colors, GLOBAL_PROC_REF(cmp_clientcolor_priority)) C.update_client_color() - log_and_message_admins("gave [key_name(C)] a new client color.") + log_and_message_admins(SPAN_NOTICE("gave [key_name(C)] a new client color.")) feedback_add_details("admin_verb","CR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! #ifdef ENABLE_SUNLIGHT diff --git a/code/modules/admin/banjob.dm b/code/modules/admin/banjob.dm index 728d6ac6357..e8116fbca5e 100644 --- a/code/modules/admin/banjob.dm +++ b/code/modules/admin/banjob.dm @@ -605,18 +605,18 @@ var/list/jobban_keylist = list() // Global jobban list. */ /datum/admins/proc/jobban_handle(var/tgt_ref, var/job) if (!check_rights(R_MOD, 0) && !check_rights(R_ADMIN, 0)) - to_chat(usr, "You do not have the appropriate permissions to add job bans!") + to_chat(usr, SPAN_WARNING("You do not have the appropriate permissions to add job bans!")) return 0 if (check_rights(R_MOD, 0) && !check_rights(R_ADMIN, 0) && !GLOB.config.mods_can_job_tempban) // If mod and tempban disabled - to_chat(usr, "Mod jobbanning is disabled!") + to_chat(usr, SPAN_WARNING("Mod jobbanning is disabled!")) return 0 var/ckey = null CKEY_OR_MOB(ckey, tgt_ref) if (!ckey) - to_chat(usr, "No valid target sent. Cancelling.") + to_chat(usr, SPAN_WARNING("No valid target sent. Cancelling.")) return 0 if (admin_datums[ckey]) @@ -724,13 +724,13 @@ var/list/jobban_keylist = list() // Global jobban list. switch (alert("Temporary Ban?",,"Yes","No", "Cancel")) if ("Yes") if (!check_rights(R_MOD,0) && !check_rights(R_BAN, 0)) - to_chat(usr, "You Cannot issue temporary job-bans!") + to_chat(usr, SPAN_WARNING("You Cannot issue temporary job-bans!")) return 0 var/mins = input(usr, "How long (in minutes)?", "Ban time", 1440) as num|null if (!mins) return 0 if (check_rights(R_MOD, 0) && !check_rights(R_BAN, 0) && mins > GLOB.config.mod_job_tempban_max) - to_chat(usr, "Moderators can only job tempban up to [GLOB.config.mod_job_tempban_max] minutes!") + to_chat(usr, SPAN_WARNING("Moderators can only job tempban up to [GLOB.config.mod_job_tempban_max] minutes!")) return 0 var/reason = sanitize(input(usr,"Reason?","Please State Reason","") as text|null) if (!reason) @@ -752,12 +752,12 @@ var/list/jobban_keylist = list() // Global jobban list. notes_add(ckey, "Banned from [msg] - [reason]", usr) else notes_add_sql(ckey, "Banned from [msg] - [reason]", usr) - message_admins("[key_name_admin(usr)] banned [ckey] from [msg] for [mins] minutes.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] banned [ckey] from [msg] for [mins] minutes."), 1) if (ismob(tgt_ref)) var/mob/M = tgt_ref - to_chat(M, "You have been jobbanned by [usr.client.ckey] from: [msg].") - to_chat(M, "The reason is: [reason]") - to_chat(M, "This jobban will be lifted in [mins] minutes.") + to_chat(M, SPAN_DANGER("You have been jobbanned by [usr.client.ckey] from: [msg].")) + to_chat(M, SPAN_DANGER("The reason is: [reason]")) + to_chat(M, SPAN_WARNING("This jobban will be lifted in [mins] minutes.")) jobban_panel(ckey) return 1 if ("No") @@ -781,12 +781,12 @@ var/list/jobban_keylist = list() // Global jobban list. notes_add(ckey, "Banned from [msg] - [reason]", usr) else notes_add_sql(ckey, "Banned from [msg] - [reason]", usr) - message_admins("[key_name_admin(usr)] banned [ckey] from [msg]", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] banned [ckey] from [msg]"), 1) if (ismob(tgt_ref)) var/mob/M = tgt_ref - to_chat(M, "You have been jobbanned by [usr.client.ckey] from: [msg].") - to_chat(M, "The reason is: [reason]") - to_chat(M, "Jobban can be lifted only upon request.") + to_chat(M, SPAN_DANGER("You have been jobbanned by [usr.client.ckey] from: [msg].")) + to_chat(M, SPAN_DANGER("The reason is: [reason]")) + to_chat(M, SPAN_WARNING("Jobban can be lifted only upon request.")) jobban_panel(ckey) return 1 if("Cancel") @@ -821,10 +821,10 @@ var/list/jobban_keylist = list() // Global jobban list. else continue if (msg) - message_admins("[key_name_admin(usr)] unbanned [ckey] from [msg]", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] unbanned [ckey] from [msg]"), 1) if (ismob(tgt_ref)) var/mob/M = tgt_ref - to_chat(M, "You have been un-jobbanned by [usr.client.ckey] from [msg].") + to_chat(M, SPAN_DANGER("You have been un-jobbanned by [usr.client.ckey] from [msg].")) jobban_panel(ckey) return 1 return 0 //we didn't do anything! diff --git a/code/modules/admin/create_poll.dm b/code/modules/admin/create_poll.dm index c1ae754451c..ab34d739bbd 100644 --- a/code/modules/admin/create_poll.dm +++ b/code/modules/admin/create_poll.dm @@ -5,7 +5,7 @@ if(!check_rights(R_DEV)) return if(!establish_db_connection(GLOB.dbcon)) - to_chat(src,"Failed to establish database connection.") + to_chat(src,SPAN_DANGER("Failed to establish database connection.")) return var/polltype = input("Choose poll type.","Poll Type") in list("Single Option","Text Reply","Rating","Multiple Choice") var/choice_amount = 0 @@ -88,7 +88,7 @@ pollid = query_get_id.item[1] log_admin("[key_name(src)] created the poll with id [pollid].") - message_admins("[key_name_admin(src)] created the poll with id [pollid].") + message_admins(SPAN_NOTICE("[key_name_admin(src)] created the poll with id [pollid].")) var/add_option = 1 if(polltype == "TEXT") diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm index 72a22a8b76d..48ac686dd3b 100644 --- a/code/modules/admin/holder2.dm +++ b/code/modules/admin/holder2.dm @@ -96,13 +96,13 @@ NOTE: It checks usr by default. Supply the "user" argument if you wish to check return 1 else if(show_msg) - to_chat(user, "Error: You do not have sufficient rights to do that. You require one of the following flags:[rights2text(rights_required," ")].") + to_chat(user, SPAN_WARNING("Error: You do not have sufficient rights to do that. You require one of the following flags:[rights2text(rights_required," ")].")) else if(user.client.holder) return 1 else if(show_msg) - to_chat(user, "Error: You are not an admin.") + to_chat(user, SPAN_WARNING("Error: You are not an admin.")) return 0 //probably a bit iffy - will hopefully figure out a better solution @@ -114,7 +114,7 @@ NOTE: It checks usr by default. Supply the "user" argument if you wish to check if(usr.client.holder.rights != other.holder.rights) if( (usr.client.holder.rights & other.holder.rights) == other.holder.rights ) return 1 //we have all the rights they have and more - to_chat(usr, "Error: Cannot proceed. They have more or equal rights to us.") + to_chat(usr, SPAN_WARNING("Error: Cannot proceed. They have more or equal rights to us.")) return 0 /client/proc/deadmin() diff --git a/code/modules/admin/law_manager.dm b/code/modules/admin/law_manager.dm index 44e594e7477..a7065b3a7df 100644 --- a/code/modules/admin/law_manager.dm +++ b/code/modules/admin/law_manager.dm @@ -143,15 +143,15 @@ return TRUE if("notify_laws") - to_chat(owner, "Law Notice") + to_chat(owner, SPAN_DANGER("Law Notice")) owner.laws.show_laws(owner) if(isAI(owner)) var/mob/living/silicon/ai/AI = owner for(var/mob/living/silicon/robot/R in AI.connected_robots) - to_chat(R, "Law Notice") + to_chat(R, SPAN_DANGER("Law Notice")) R.laws.show_laws(R) if(usr != owner) - to_chat(usr, "Laws displayed.") + to_chat(usr, SPAN_NOTICE("Laws displayed.")) return TRUE /datum/tgui_module/admin/law_manager/ui_data(mob/user) diff --git a/code/modules/admin/player_notes.dm b/code/modules/admin/player_notes.dm index 9f7c2d2b0d7..ce5e3024520 100644 --- a/code/modules/admin/player_notes.dm +++ b/code/modules/admin/player_notes.dm @@ -10,7 +10,7 @@ datum/admins/proc/notes_show(var/ckey) datum/admins/proc/notes_gethtml(var/ckey) var/savefile/notesfile = new(NOTESFILE) - if(!notesfile) return "Error: Cannot access [NOTESFILE]" + if(!notesfile) return SPAN_WARNING("Error: Cannot access [NOTESFILE]") if(ckey) . = "Notes for [ckey]: \[+\] \[-\]
" notesfile.cd = "/[ckey]" @@ -103,7 +103,7 @@ datum/admins/proc/notes_gethtml(var/ckey) infos += P info << infos - message_admins("[key_name_admin(user)] has edited [key]'s notes.") + message_admins(SPAN_NOTICE("[key_name_admin(user)] has edited [key]'s notes.")) log_admin("[key_name(user)] has edited [key]'s notes.",admin_key=key_name(user),ckey=key) del(info) // savefile, so NOT qdel @@ -128,7 +128,7 @@ datum/admins/proc/notes_gethtml(var/ckey) infos.Remove(item) info << infos - message_admins("[key_name_admin(usr)] deleted one of [key]'s notes.") + message_admins(SPAN_NOTICE("[key_name_admin(usr)] deleted one of [key]'s notes.")) log_admin("[key_name(usr)] deleted one of [key]'s notes.",admin_key=key_name(usr),ckey=key) qdel(info) diff --git a/code/modules/admin/player_notes_sql.dm b/code/modules/admin/player_notes_sql.dm index 587ab9e5a59..d3f5a6c6f30 100644 --- a/code/modules/admin/player_notes_sql.dm +++ b/code/modules/admin/player_notes_sql.dm @@ -28,7 +28,7 @@ var/DBQuery/insert_query = GLOB.dbcon.NewQuery("INSERT INTO ss13_notes (id, adddate, game_id, ckey, ip, computerid, a_ckey, content) VALUES (null, Now(), :game_id:, :ckey:, :address:, :computer_id:, :a_ckey:, :note:)") insert_query.Execute(query_details) - message_admins("[key_name_admin(user)] has edited [player_ckey]'s notes.") + message_admins(SPAN_NOTICE("[key_name_admin(user)] has edited [player_ckey]'s notes.")) log_admin("[key_name(user)] has edited [player_ckey]'s notes.",admin_key=key_name(user),ckey=player_ckey) /proc/notes_edit_sql(var/note_id, var/note_edit) @@ -51,12 +51,12 @@ count++ if (count == 0) - to_chat(usr, "Database update failed due to a note id not being present in the database.") + to_chat(usr, SPAN_WARNING("Database update failed due to a note id not being present in the database.")) log_world("ERROR: Database update failed due to a note id not being present in the database.") return if (count > 1) - to_chat(usr, "Database update failed due to multiple notes having the same ID. Contact the database admin.") + to_chat(usr, SPAN_WARNING("Database update failed due to multiple notes having the same ID. Contact the database admin.")) log_world("ERROR: Database update failed due to multiple notes having the same ID. Contact the database admin.") return @@ -66,7 +66,7 @@ var/DBQuery/deletequery = GLOB.dbcon.NewQuery("UPDATE ss13_notes SET visible = 0 WHERE id = :note_id:") deletequery.Execute(list("note_id" = note_id)) - message_admins("[key_name_admin(usr)] deleted one of [ckey]'s notes.") + message_admins(SPAN_NOTICE("[key_name_admin(usr)] deleted one of [ckey]'s notes.")) log_admin("[key_name(usr)] deleted one of [ckey]'s notes.",admin_key=key_name(usr),ckey=ckey) else to_chat(usr, "Cancelled") diff --git a/code/modules/admin/secrets/admin_secrets/jump_shuttle.dm b/code/modules/admin/secrets/admin_secrets/jump_shuttle.dm index 9ba1b675f62..2b532b1a95e 100644 --- a/code/modules/admin/secrets/admin_secrets/jump_shuttle.dm +++ b/code/modules/admin/secrets/admin_secrets/jump_shuttle.dm @@ -28,9 +28,9 @@ var/move_duration = input(user, "How many seconds will this jump take?") as num S.long_jump(origin_area, destination_area, transition_area, move_duration) - message_admins("[key_name_admin(user)] has initiated a jump from [origin_area] to [destination_area] lasting [move_duration] seconds for the [shuttle_tag] shuttle", 1) + message_admins(SPAN_NOTICE("[key_name_admin(user)] has initiated a jump from [origin_area] to [destination_area] lasting [move_duration] seconds for the [shuttle_tag] shuttle"), 1) log_admin("[key_name(user)] has initiated a jump from [origin_area] to [destination_area] lasting [move_duration] seconds for the [shuttle_tag] shuttle",admin_key=key_name(user)) else S.short_jump(origin_area, destination_area) - message_admins("[key_name_admin(user)] has initiated a jump from [origin_area] to [destination_area] for the [shuttle_tag] shuttle", 1) + message_admins(SPAN_NOTICE("[key_name_admin(user)] has initiated a jump from [origin_area] to [destination_area] for the [shuttle_tag] shuttle"), 1) log_admin("[key_name(user)] has initiated a jump from [origin_area] to [destination_area] for the [shuttle_tag] shuttle",admin_key=key_name(user)) diff --git a/code/modules/admin/secrets/fun_secrets/ghost_mode.dm b/code/modules/admin/secrets/fun_secrets/ghost_mode.dm index 0c46b3750fa..aa909fd3f5d 100644 --- a/code/modules/admin/secrets/fun_secrets/ghost_mode.dm +++ b/code/modules/admin/secrets/fun_secrets/ghost_mode.dm @@ -17,13 +17,13 @@ affected_mobs |= M switch(rand(1,4)) if(1) - M.show_message(text("You shudder as if cold..."), 1) + M.show_message(SPAN_NOTICE("You shudder as if cold..."), 1) if(2) - M.show_message(text("You feel something gliding across your back..."), 1) + M.show_message(SPAN_NOTICE("You feel something gliding across your back..."), 1) if(3) - M.show_message(text("Your eyes twitch, you feel like something you can't see is here..."), 1) + M.show_message(SPAN_NOTICE("Your eyes twitch, you feel like something you can't see is here..."), 1) if(4) - M.show_message(text("You notice something moving out of the corner of your eye, but nothing is there..."), 1) + M.show_message(SPAN_NOTICE("You notice something moving out of the corner of your eye, but nothing is there..."), 1) for(var/obj/W in orange(5,M)) if(prob(25) && !W.anchored) @@ -43,6 +43,6 @@ sleep(100) for(var/mob/M in affected_mobs) - M.show_message(text("The chilling wind suddenly stops..."), 1) + M.show_message(SPAN_NOTICE("The chilling wind suddenly stops..."), 1) affected_mobs.Cut() affected_areas.Cut() diff --git a/code/modules/admin/secrets/fun_secrets/toggle_bomb_cap.dm b/code/modules/admin/secrets/fun_secrets/toggle_bomb_cap.dm index 20b4b0f48ed..f2c6427d11e 100644 --- a/code/modules/admin/secrets/fun_secrets/toggle_bomb_cap.dm +++ b/code/modules/admin/secrets/fun_secrets/toggle_bomb_cap.dm @@ -17,5 +17,5 @@ var/range_dev = GLOB.max_explosion_range *0.25 var/range_high = GLOB.max_explosion_range *0.5 var/range_low = GLOB.max_explosion_range - message_admins("[key_name_admin(user)] changed the bomb cap to [range_dev], [range_high], [range_low]", 1) + message_admins(SPAN_DANGER("[key_name_admin(user)] changed the bomb cap to [range_dev], [range_high], [range_low]"), 1) log_admin("[key_name(user)] changed the bomb cap to [GLOB.max_explosion_range]",admin_key=key_name(user)) diff --git a/code/modules/admin/secrets/random_events/gravity.dm b/code/modules/admin/secrets/random_events/gravity.dm index 7acf6cfd637..9de13d7073b 100644 --- a/code/modules/admin/secrets/random_events/gravity.dm +++ b/code/modules/admin/secrets/random_events/gravity.dm @@ -24,9 +24,9 @@ feedback_add_details("admin_secrets_fun_used","Grav") if(GLOB.gravity_is_on) log_admin("[key_name(user)] toggled gravity on.", admin_key=key_name(user)) - message_admins("[key_name_admin(user)] toggled gravity on.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(user)] toggled gravity on."), 1) command_announcement.Announce("Gravity generators are again functioning within normal parameters. Sorry for any inconvenience.") else log_admin("[key_name(user)] toggled gravity off.", admin_key=key_name(user)) - message_admins("[key_name_admin(usr)] toggled gravity off.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] toggled gravity off."), 1) command_announcement.Announce("Feedback surge detected in mass-distributions systems. Artificial gravity has been disabled whilst the system reinitializes. Further failures may result in a gravitational collapse and formation of blackholes. Have a nice day.") diff --git a/code/modules/admin/ticket.dm b/code/modules/admin/ticket.dm index b4163655cff..94b8da895be 100644 --- a/code/modules/admin/ticket.dm +++ b/code/modules/admin/ticket.dm @@ -60,8 +60,8 @@ GLOBAL_LIST_EMPTY(ticket_panels) broadcast_closure(key_name(closed_by)) - to_chat(client_by_ckey(src.owner), "Your ticket has been closed by [closed_by].") - message_admins("[src.owner]'s ticket has been closed by [key_name(closed_by)].") + to_chat(client_by_ckey(src.owner), SPAN_NOTICE("Your ticket has been closed by [closed_by].")) + message_admins(SPAN_NOTICE("[src.owner]'s ticket has been closed by [key_name(closed_by)].")) set_to_closed(closed_by.ckey) @@ -76,8 +76,8 @@ GLOBAL_LIST_EMPTY(ticket_panels) broadcast_closure("[closing_user] (Remotely)") - to_chat(client_by_ckey(src.owner), "Your ticket has been closed by [closing_user] (remotely).") - message_admins("[src.owner]'s ticket has been closed by [closing_user] (remotely).") + to_chat(client_by_ckey(src.owner), SPAN_NOTICE("Your ticket has been closed by [closing_user] (remotely).")) + message_admins(SPAN_NOTICE("[src.owner]'s ticket has been closed by [closing_user] (remotely).")) set_to_closed(closing_user) @@ -104,8 +104,8 @@ GLOBAL_LIST_EMPTY(ticket_panels) SSdiscord.send_to_admins("[key_name(owner_client)]'s request for help has been taken by [key_name(assigned_admin)].") owner_client.adminhelped = ADMINHELPED - message_admins("[key_name(assigned_admin)] has assigned themself to [src.owner]'s ticket.") - to_chat(owner_client, "[assigned_admin] has added themself to your ticket and should respond shortly. Thanks for your patience!") + message_admins(SPAN_DANGER("[key_name(assigned_admin)] has assigned themself to [src.owner]'s ticket.")) + to_chat(owner_client, SPAN_NOTICE("[assigned_admin] has added themself to your ticket and should respond shortly. Thanks for your patience!")) to_chat(assigned_admin, get_options_bar(owner_client, 2, 1, 1)) update_ticket_panels() @@ -123,11 +123,11 @@ GLOBAL_LIST_EMPTY(ticket_panels) var/client/C = client_by_ckey(ckey) if (C) admin_found = TRUE - to_chat(C, "You have yet to close [owner]'s ticket!") + to_chat(C, SPAN_DANGER("You have yet to close [owner]'s ticket!")) sound_to(C, 'sound/effects/adminhelp.ogg') if (!admin_found) - message_admins("[owner]'s ticket has yet to be closed!") + message_admins(SPAN_DANGER("[owner]'s ticket has yet to be closed!")) for(var/s in GLOB.staff) var/client/C = s if((C.holder.rights & (R_ADMIN|R_MOD)) && (C.prefs.toggles & SOUND_ADMINHELP)) @@ -309,7 +309,7 @@ GLOBAL_LIST_EMPTY(ticket_panels) usr.client.cmd_admin_pm(admin_client, ticket = ticket) break if(!admin_found) - to_chat(usr, "Error: Private-Message: Client not found. They may have lost connection, so please be patient!") + to_chat(usr, SPAN_WARNING("Error: Private-Message: Client not found. They may have lost connection, so please be patient!")) else usr.client.adminhelp(input(usr,"", "adminhelp \"text\"") as text) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 2b3db859a1c..86f94ec9f0a 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -136,7 +136,7 @@ SSticker.delay_end = !SSticker.delay_end log_admin("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].",admin_key=key_name(usr)) - message_admins("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].", 1) + message_admins(SPAN_NOTICE("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"]."), 1) href_list["secretsadmin"] = "check_antagonist" else if(href_list["simplemake"]) @@ -157,7 +157,7 @@ delmob = 1 log_admin("[key_name(usr)] has used rudimentary transformation on [key_name(M)]. Transforming to [href_list["simplemake"]]; deletemob=[delmob]",admin_key=key_name(usr)) - message_admins("[key_name_admin(usr)] has used rudimentary transformation on [key_name_admin(M)]. Transforming to [href_list["simplemake"]]; deletemob=[delmob]", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] has used rudimentary transformation on [key_name_admin(M)]. Transforming to [href_list["simplemake"]]; deletemob=[delmob]"), 1) switch(href_list["simplemake"]) if("observer") @@ -254,7 +254,7 @@ log_admin("[key_name(usr)] edited [banned_key]'s ban. Reason: [reason] Duration: [duration]",admin_key=key_name(usr)) ban_unban_log_save("[key_name(usr)] edited [banned_key]'s ban. Reason: [reason] Duration: [duration]") - message_admins("[key_name_admin(usr)] edited [banned_key]'s ban. Reason: [reason] Duration: [duration]", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] edited [banned_key]'s ban. Reason: [reason] Duration: [duration]"), 1) Banlist.cd = "/base/[banfolder]" Banlist["reason"] << reason Banlist["temp"] << temp @@ -281,7 +281,7 @@ var/ckey = ckey(input("Please specify the ckey you want to search for:", "ckey") as text) if (!ckey) - to_chat(usr, "Cancelled.") + to_chat(usr, SPAN_NOTICE("Cancelled.")) return jobban_panel(ckey) @@ -291,27 +291,27 @@ var/mob/M = locate(href_list["boot2"]) if (ismob(M)) if(!check_rights(R_MOD|R_ADMIN, 0)) - to_chat(usr, "You do not have the appropriate permissions to boot users!") + to_chat(usr, SPAN_WARNING("You do not have the appropriate permissions to boot users!")) return if(!check_if_greater_rights_than(M.client)) return var/reason = sanitize(input("Please enter reason")) if(!reason) - to_chat_immediate(M, "You have been kicked from the server") + to_chat_immediate(M, SPAN_DANGER("You have been kicked from the server")) else - to_chat_immediate(M, "You have been kicked from the server: [reason]") + to_chat_immediate(M, SPAN_DANGER("You have been kicked from the server: [reason]")) log_admin("[key_name(usr)] booted [key_name(M)].",admin_key=key_name(usr),ckey=key_name(M)) - message_admins("[key_name_admin(usr)] booted [key_name_admin(M)].", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] booted [key_name_admin(M)]."), 1) //M.client = null del(M.client) else if(href_list["newban"]) if(!check_rights(R_MOD,0) && !check_rights(R_BAN, 0)) - to_chat(usr, "You do not have the appropriate permissions to add bans!") + to_chat(usr, SPAN_WARNING("You do not have the appropriate permissions to add bans!")) return if(check_rights(R_MOD,0) && !check_rights(R_ADMIN, 0) && !GLOB.config.mods_can_job_tempban) // If mod and tempban disabled - to_chat(usr, "Mod jobbanning is disabled!") + to_chat(usr, SPAN_WARNING("Mod jobbanning is disabled!")) return var/mob/M = locate(href_list["newban"]) @@ -327,7 +327,7 @@ if(!mins) return if(check_rights(R_MOD, 0) && !check_rights(R_BAN, 0) && mins > GLOB.config.mod_tempban_max) - to_chat(usr, "Moderators can only job tempban up to [GLOB.config.mod_tempban_max] minutes!") + to_chat(usr, SPAN_WARNING("Moderators can only job tempban up to [GLOB.config.mod_tempban_max] minutes!")) return if(mins >= 525600) mins = 525599 var/reason = sanitize(input(usr,"Reason?","reason","Griefer") as text|null) @@ -339,17 +339,17 @@ notes_add(M.ckey,"[usr.client.ckey] has banned [M.ckey]. - Reason: [reason] - This will be removed in [mins] minutes.",usr) else notes_add_sql(M.ckey, "[usr.client.ckey] has banned [M.ckey]. - Reason: [reason] - This will be removed in [mins] minutes.", usr, M.lastKnownIP, M.computer_id) - to_chat_immediate(M, "You have been banned by [usr.client.ckey].\nReason: [reason].") - to_chat_immediate(M, "This is a temporary ban, it will be removed in [mins] minutes.") + to_chat_immediate(M, SPAN_DANGER("You have been banned by [usr.client.ckey].\nReason: [reason].")) + to_chat_immediate(M, SPAN_DANGER("This is a temporary ban, it will be removed in [mins] minutes.")) feedback_inc("ban_tmp",1) DB_ban_record(BANTYPE_TEMP, M, mins, reason) feedback_inc("ban_tmp_mins",mins) if(GLOB.config.banappeals) - to_chat_immediate(M, "To try to resolve this matter head to [GLOB.config.banappeals]") + to_chat_immediate(M, SPAN_WARNING("To try to resolve this matter head to [GLOB.config.banappeals]")) else - to_chat_immediate(M, "No ban appeals URL has been set.") + to_chat_immediate(M, SPAN_WARNING("No ban appeals URL has been set.")) log_admin("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.",admin_key=key_name(usr),ckey=key_name(M)) - message_admins("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.") + message_admins(SPAN_NOTICE("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.")) del(M.client) //qdel(M) // See no reason why to delete mob. Important stuff can be lost. And ban can be lifted before round ends. @@ -365,19 +365,19 @@ AddBan(M.ckey, M.computer_id, reason, usr.ckey, 0, 0, M.lastKnownIP) if("No") AddBan(M.ckey, M.computer_id, reason, usr.ckey, 0, 0) - to_chat(M, "You have been banned by [usr.client.ckey].\nReason: [reason].") - to_chat(M, "This is a permanent ban.") + to_chat(M, SPAN_DANGER("You have been banned by [usr.client.ckey].\nReason: [reason].")) + to_chat(M, SPAN_WARNING("This is a permanent ban.")) if(GLOB.config.banappeals) - to_chat(M, "To try to resolve this matter head to [GLOB.config.banappeals]") + to_chat(M, SPAN_WARNING("To try to resolve this matter head to [GLOB.config.banappeals]")) else - to_chat(M, "No ban appeals URL has been set.") + to_chat(M, SPAN_WARNING("No ban appeals URL has been set.")) ban_unban_log_save("[usr.client.ckey] has permabanned [M.ckey]. - Reason: [reason] - This is a permanent ban.") if (GLOB.config.ban_legacy_system) notes_add(M.ckey,"[usr.client.ckey] has permabanned [M.ckey]. - Reason: [reason] - This is a permanent ban.",usr) else notes_add_sql(M.ckey, "[usr.client.ckey] has permabanned [M.ckey]. - Reason: [reason] - This is a permanent ban.", usr, M.lastKnownIP, M.computer_id) log_admin("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.",admin_key=key_name(usr),ckey=key_name(M)) - message_admins("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.") + message_admins(SPAN_NOTICE("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.")) feedback_inc("ban_perma",1) DB_ban_record(BANTYPE_PERMA, M, -1, reason) @@ -441,8 +441,8 @@ return alert(usr, "The game has already started.", null, null, null, null) GLOB.master_mode = href_list["c_mode2"] log_admin("[key_name(usr)] set the mode as [GLOB.master_mode].",admin_key=key_name(usr)) - message_admins("[key_name_admin(usr)] set the mode as [GLOB.master_mode].", 1) - to_world("The mode is now: [GLOB.master_mode]") + message_admins(SPAN_NOTICE("[key_name_admin(usr)] set the mode as [GLOB.master_mode]."), 1) + to_world(SPAN_NOTICE("The mode is now: [GLOB.master_mode]")) Game() // updates the main game menu SSpersistent_configuration.last_gamemode = GLOB.master_mode .(href, list("c_mode"=1)) @@ -457,7 +457,7 @@ return alert(usr, "The game mode has to be secret!", null, null, null, null) GLOB.secret_force_mode = href_list["f_secret2"] log_admin("[key_name(usr)] set the forced secret mode as [GLOB.secret_force_mode].",admin_key=key_name(usr)) - message_admins("[key_name_admin(usr)] set the forced secret mode as [GLOB.secret_force_mode].", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] set the forced secret mode as [GLOB.secret_force_mode]."), 1) Game() // updates the main game menu .(href, list("f_secret"=1)) @@ -483,7 +483,7 @@ return log_admin("[key_name(usr)] attempting to monkeyize [key_name(H)]",admin_key=key_name(usr)) - message_admins("[key_name_admin(usr)] attempting to monkeyize [key_name_admin(H)]", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] attempting to monkeyize [key_name_admin(H)]"), 1) H.monkeyize() else if(href_list["corgione"]) @@ -496,7 +496,7 @@ return log_admin("[key_name(usr)] attempting to corgize [key_name(H)]",admin_key=key_name(usr),ckey=key_name(H)) - message_admins("[key_name_admin(usr)] attempting to corgize [key_name_admin(H)]", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] attempting to corgize [key_name_admin(H)]"), 1) H.corgize() else if(href_list["forcespeech"]) @@ -513,7 +513,7 @@ M.say(speech) speech = sanitize(speech) // Nah, we don't trust them log_admin("[key_name(usr)] forced [key_name(M)] to say: [speech]",admin_key=key_name(usr)) - message_admins("[key_name_admin(usr)] forced [key_name_admin(M)] to say: [speech]") + message_admins(SPAN_NOTICE("[key_name_admin(usr)] forced [key_name_admin(M)] to say: [speech]")) else if(href_list["sendbacktolobby"]) if(!check_rights(R_ADMIN)) @@ -522,11 +522,11 @@ var/mob/M = locate(href_list["sendbacktolobby"]) if(!isobserver(M)) - to_chat(usr, "You can only send ghost players back to the Lobby.") + to_chat(usr, SPAN_NOTICE("You can only send ghost players back to the Lobby.")) return if(!M.client) - to_chat(usr, "[M] doesn't seem to have an active client.") + to_chat(usr, SPAN_WARNING("[M] doesn't seem to have an active client.")) return if(alert(usr, "Send [key_name(M)] back to Lobby?", "Message", "Yes", "No") != "Yes") @@ -561,7 +561,7 @@ sleep(5) M.forceMove(pick(GLOB.tdome1)) spawn(50) - to_chat(M, "You have been sent to the Thunderdome.") + to_chat(M, SPAN_NOTICE("You have been sent to the Thunderdome.")) log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Team 1)",admin_key=key_name(usr),ckey=key_name(M)) message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Team 1)", 1) @@ -587,7 +587,7 @@ sleep(5) M.forceMove(pick(GLOB.tdome2)) spawn(50) - to_chat(M, "You have been sent to the Thunderdome.") + to_chat(M, SPAN_NOTICE("You have been sent to the Thunderdome.")) log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Team 2)",admin_key=key_name(usr),ckey=key_name(M)) message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Team 2)", 1) @@ -610,7 +610,7 @@ sleep(5) M.forceMove(pick(GLOB.tdomeadmin)) spawn(50) - to_chat(M, "You have been sent to the Thunderdome.") + to_chat(M, SPAN_NOTICE("You have been sent to the Thunderdome.")) log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Admin.)",admin_key=key_name(usr),ckey=key_name(M)) message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Admin.)", 1) @@ -640,7 +640,7 @@ sleep(5) M.forceMove(pick(GLOB.tdomeobserve)) spawn(50) - to_chat(M, "You have been sent to the Thunderdome.") + to_chat(M, SPAN_NOTICE("You have been sent to the Thunderdome.")) log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Observer.)",admin_key=key_name(usr),ckey=key_name(M)) message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Observer.)", 1) @@ -655,7 +655,7 @@ if(GLOB.config.allow_admin_rev) L.revive() - message_admins("Admin [key_name_admin(usr)] healed / revived [key_name_admin(L)]!", 1) + message_admins(SPAN_DANGER("Admin [key_name_admin(usr)] healed / revived [key_name_admin(L)]!"), 1) log_admin("[key_name(usr)] healed / Revived [key_name(L)]",admin_key=key_name(usr),ckey=key_name(L)) else to_chat(usr, "Admin Rejuvinates have been disabled") @@ -669,7 +669,7 @@ to_chat(usr, "This can only be used on instances of type /mob/living/carbon/human") return - message_admins("Admin [key_name_admin(usr)] AIized [key_name_admin(H)]!", 1) + message_admins(SPAN_DANGER("Admin [key_name_admin(usr)] AIized [key_name_admin(H)]!"), 1) log_admin("[key_name(usr)] AIized [key_name(H)]",admin_key=key_name(usr),ckey=key_name(H)) H.AIize() @@ -799,7 +799,7 @@ switch (M.stat) if (0) status = "Alive" if (1) status = "Unconscious" - if (2) status = "Dead" + if (2) status = SPAN_WARNING("Dead") health_description = "Status: [status]" health_description += "
Oxy: [L.getOxyLoss()] - Tox: [L.getToxLoss()] - Fire: [L.getFireLoss()] - Brute: [L.getBruteLoss()] - Clone: [L.getCloneLoss()] - Brain: [L.getBrainLoss()]" else @@ -816,7 +816,7 @@ if(MALE,FEMALE) gender_description = "[M.gender]" else - gender_description = "[M.gender]" + gender_description = SPAN_WARNING("[M.gender]") var/dat = "Info about [M.name]:
" dat += "Mob type: [M.type]
" @@ -860,7 +860,7 @@ log_admin("[key_name(H)] got their cookie, spawned by [key_name(src.owner)]",admin_key=key_name(src.owner),ckey=key_name(H)) message_admins("[key_name(H)] got their cookie, spawned by [key_name(src.owner)]") feedback_inc("admin_cookies_spawned",1) - to_chat(H, "Your prayers have been answered!! You received the best cookie!") + to_chat(H, SPAN_NOTICE("Your prayers have been answered!! You received the best cookie!")) else if(href_list["BlueSpaceArtillery"]) if(!check_rights(R_ADMIN|R_FUN)) @@ -923,7 +923,7 @@ to_chat(L, "You hear something crackle in your headset for a moment before a voice speaks.") to_chat(L, "Please stand by for a message from Central Command.") to_chat(L, "Message as follows.") - to_chat(L, "[input]") + to_chat(L, SPAN_NOTICE("[input]")) to_chat(L, "Message ends.") else to_chat(src.owner, "The person you are trying to contact does not have functional radio equipment.") @@ -983,7 +983,7 @@ usr << browse(data, "window=[B.name]") else - to_chat(usr, "The faxed item is not viewable. This is probably a bug, and should be reported on the tracker: [fax.type]") + to_chat(usr, SPAN_WARNING("The faxed item is not viewable. This is probably a bug, and should be reported on the tracker: [fax.type]")) else if (href_list["AdminFaxViewPage"]) var/page = text2num(href_list["AdminFaxViewPage"]) diff --git a/code/modules/admin/verbs/access_control.dm b/code/modules/admin/verbs/access_control.dm index 8e105e19e85..6782e1e78c1 100644 --- a/code/modules/admin/verbs/access_control.dm +++ b/code/modules/admin/verbs/access_control.dm @@ -13,27 +13,27 @@ data += "If you do not know what these do, you shouldn't be touching them!
" data += "

Hub Visibility Setting:


" - data += "Currently [world.visibility ? "VISIBLE" : "HIDDEN"]. Toggle

" + data += "Currently [world.visibility ? "VISIBLE" : SPAN_WARNING("HIDDEN")]. Toggle

" data += "

IP Intel Settings:


    " - data += "
  • Current warning level: [GLOB.config.ipintel_rating_bad ? "[GLOB.config.ipintel_rating_bad]" : "DISABLED"]. Edit
  • " - data += "
  • Current kick level: [GLOB.config.ipintel_rating_kick ? "[GLOB.config.ipintel_rating_kick]" : "DISABLED"]. Edit
  • " + data += "
  • Current warning level: [GLOB.config.ipintel_rating_bad ? "[GLOB.config.ipintel_rating_bad]" : SPAN_WARNING("DISABLED")]. Edit
  • " + data += "
  • Current kick level: [GLOB.config.ipintel_rating_kick ? "[GLOB.config.ipintel_rating_kick]" : SPAN_WARNING("DISABLED")]. Edit
  • " data += "

" data += "

Player Age Settings:


    " - data += "
  • New players: [GLOB.config.access_deny_new_players ? "DENIED" : "ALLOWED"]. Toggle
  • " - data += "
  • Account age restriction: [GLOB.config.access_deny_new_accounts == -1 ? "DISABLED" : "[GLOB.config.access_deny_new_accounts] DAYS"]. Edit
  • " + data += "
  • New players: [GLOB.config.access_deny_new_players ? SPAN_WARNING("DENIED") : "ALLOWED"]. Toggle
  • " + data += "
  • Account age restriction: [GLOB.config.access_deny_new_accounts == -1 ? SPAN_WARNING("DISABLED") : "[GLOB.config.access_deny_new_accounts] DAYS"]. Edit
  • " data += "

" data += "

VM Detection Settings:


    " - data += "
  • VM identifier count to warn on: [GLOB.config.access_warn_vms ? "[GLOB.config.access_warn_vms]" : "DISABLED"]. Edit
  • " - data += "
  • VM identifier count to kick on: [GLOB.config.access_deny_vms ? "[GLOB.config.access_deny_vms]" : "DISABLED"]. Edit
  • " + data += "
  • VM identifier count to warn on: [GLOB.config.access_warn_vms ? "[GLOB.config.access_warn_vms]" : SPAN_WARNING("DISABLED")]. Edit
  • " + data += "
  • VM identifier count to kick on: [GLOB.config.access_deny_vms ? "[GLOB.config.access_deny_vms]" : SPAN_WARNING("DISABLED")]. Edit
  • " data += "
" data += "

Guest join settings:


    " - data += "
  • Guests [(GLOB.config.guests_allowed || GLOB.config.external_auth) ? "CAN" : "CAN NOT"] join.
  • " - data += "
  • Guests [GLOB.config.guests_allowed ? "CAN" : "CAN NOT"] play. Toggle
  • " - data += "
  • External authetification: [GLOB.config.external_auth ? "ENABLED" : "DISABLED"]. Toggle
  • " + data += "
  • Guests [(GLOB.config.guests_allowed || GLOB.config.external_auth) ? "CAN" : SPAN_WARNING("CAN NOT")] join.
  • " + data += "
  • Guests [GLOB.config.guests_allowed ? "CAN" : SPAN_WARNING("CAN NOT")] play. Toggle
  • " + data += "
  • External authetification: [GLOB.config.external_auth ? "ENABLED" : SPAN_WARNING("DISABLED")]. Toggle
  • " data += "
" config_window.set_user(src.mob) @@ -42,7 +42,7 @@ /datum/admins/proc/access_control_topic(control) if (!control) - to_chat(usr, "No control option sent. Cancelling.") + to_chat(usr, SPAN_WARNING("No control option sent. Cancelling.")) return if (!check_rights(R_SERVER)) @@ -53,7 +53,7 @@ if ("intel_bad") var/num = input("Please set the new threshold for warning based on IPintel (0 to disable).", "New Threshold", GLOB.config.ipintel_rating_kick) as num if (num < 0 || num > 1) - to_chat(usr, "Invalid number. Cancelling.") + to_chat(usr, SPAN_WARNING("Invalid number. Cancelling.")) return GLOB.config.ipintel_rating_bad = num @@ -64,7 +64,7 @@ if ("intel_kick") var/num = input("Please set the new threshold for kicking based on IPintel (0 to disable).", "New Threshold", GLOB.config.ipintel_rating_kick) as num if (num < 0 || num > 1) - to_chat(usr, "Invalid number. Cancelling.") + to_chat(usr, SPAN_WARNING("Invalid number. Cancelling.")) return GLOB.config.ipintel_rating_kick = num @@ -78,7 +78,7 @@ if ("new_accounts") var/num = input("Please set the new threshold for denying access based on BYOND account age. (-1 to disable.)", "New Threshold", GLOB.config.access_deny_new_accounts) as num if (num < 0 && num != -1) - to_chat(usr, "Invalid number. Cancelling.") + to_chat(usr, SPAN_WARNING("Invalid number. Cancelling.")) return GLOB.config.access_deny_new_accounts = num @@ -109,6 +109,6 @@ if ("guest") GLOB.config.guests_allowed = !GLOB.config.guests_allowed else - to_chat(usr, "Unknown control message sent. Cancelling.") + to_chat(usr, SPAN_DANGER("Unknown control message sent. Cancelling.")) owner.configure_access_control() diff --git a/code/modules/admin/verbs/adminhelp.dm b/code/modules/admin/verbs/adminhelp.dm index 3c2370ebaed..d4ad5a9ba39 100644 --- a/code/modules/admin/verbs/adminhelp.dm +++ b/code/modules/admin/verbs/adminhelp.dm @@ -67,7 +67,7 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an","of","monkey"," set name = "Adminhelp" if(say_disabled) //This is here to try to identify lag problems - to_chat(usr, "Speech is currently admin-disabled.") + to_chat(usr, SPAN_WARNING("Speech is currently admin-disabled.")) return adminhelped = ADMINHELPED @@ -103,7 +103,7 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an","of","monkey"," src.cmd_admin_pm(admin_client, original_msg, ticket) break if(!admin_found) - to_chat(src, "Error: Private-Message: Client not found. They may have lost connection, so please be patient!") + to_chat(src, SPAN_WARNING("Error: Private-Message: Client not found. They may have lost connection, so please be patient!")) return ticket.append_message(src.ckey, null, original_msg) @@ -111,7 +111,7 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an","of","monkey"," //Options bar: mob, details ( admin = 2, undibbsed admin = 3, mentor = 4, character name (0 = just ckey, 1 = ckey and character name), link? (0 no don't make it a link, 1 do so), // highlight special roles (0 = everyone has same looking name, 1 = antags / special roles get a golden name) - msg = "[create_text_tag("HELP")][get_options_bar(mob, 2, 1, 1, 1, ticket)] ([(ticket.status == TICKET_OPEN) ? "TAKE" : "JOIN"]) (CLOSE): [msg]" + msg = SPAN_NOTICE("[create_text_tag("HELP")][get_options_bar(mob, 2, 1, 1, 1, ticket)] ([(ticket.status == TICKET_OPEN) ? "TAKE" : "JOIN"]) (CLOSE): [msg]") var/admin_number_present = 0 var/admin_number_afk = 0 @@ -128,7 +128,7 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an","of","monkey"," to_chat(C, msg) //show it to the person adminhelping too - to_chat(src, "PM to-Staff : [original_msg]") + to_chat(src, SPAN_NOTICE("PM to-Staff : [original_msg]")) var/admin_number_active = admin_number_present - admin_number_afk log_admin("HELP: [key_name(src)]: [original_msg] - heard by [admin_number_present] non-AFK admins.",admin_key=key_name(src)) diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm index a0253a89dbb..b42dbbf3c4c 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -3,7 +3,7 @@ set category = null set name = "Admin PM Mob" if(!holder) - to_chat(src, "Error: Admin-PM-Context: Only administrators may use this command.") + to_chat(src, SPAN_WARNING("Error: Admin-PM-Context: Only administrators may use this command.")) return if( !ismob(M) || !M.client ) return cmd_admin_pm(M.client,null) @@ -14,7 +14,7 @@ set category = "Admin" set name = "Admin PM" if(!holder) - to_chat(src, "Error: Admin-PM-Panel: Only administrators may use this command.") + to_chat(src, SPAN_WARNING("Error: Admin-PM-Panel: Only administrators may use this command.")) return var/list/client/targets[0] for(var/p in GLOB.clients) @@ -41,8 +41,8 @@ /client/proc/cmd_admin_pm(var/client/C, var/msg = null, var/datum/ticket/ticket = null) if(!istype(C, /client)) - if(holder) to_chat(src, "Error: Private-Message: Client not found.") - else to_chat(src, "Error: Private-Message: Client not found. They may have lost connection, so try using an adminhelp!") + if(holder) to_chat(src, SPAN_WARNING("Error: Private-Message: Client not found.")) + else to_chat(src, SPAN_WARNING("Error: Private-Message: Client not found. They may have lost connection, so try using an adminhelp!")) return var/receive_pm_type = "Player" @@ -55,7 +55,7 @@ receive_pm_type = holder.rank else if(!C.holder) - to_chat(src, "Error: Admin-PM: Non-admin to non-admin PM communication is forbidden.") + to_chat(src, SPAN_WARNING("Error: Admin-PM: Non-admin to non-admin PM communication is forbidden.")) return //get message text, limit it's length.and clean/escape html @@ -67,9 +67,9 @@ return if(!C) if(holder) - to_chat(src, "Error: Admin-PM: Client not found.") + to_chat(src, SPAN_WARNING("Error: Admin-PM: Client not found.")) else - to_chat(src, "Error: Private-Message: Client not found. They may have lost connection, so try using an adminhelp!") + to_chat(src, SPAN_WARNING("Error: Private-Message: Client not found. They may have lost connection, so try using an adminhelp!")) return if(!check_rights(R_SERVER|R_DEBUG, 0)) @@ -94,10 +94,10 @@ ticket = new /datum/ticket(C.ckey) ticket.take(src) else - to_chat(src, "You do not have an open ticket. Please use the adminhelp verb to open a ticket.") + to_chat(src, SPAN_NOTICE("You do not have an open ticket. Please use the adminhelp verb to open a ticket.")) return else if(ticket.status != TICKET_ASSIGNED && src.ckey == ticket.owner) - to_chat(src, "Your ticket is not open for conversation. Please wait for an administrator to receive your adminhelp.") + to_chat(src, SPAN_NOTICE("Your ticket is not open for conversation. Please wait for an administrator to receive your adminhelp.")) return // if the sender is an admin and they're not assigned to the ticket, ask them if they want to take/join it, unless the admin is responding to their own ticket @@ -164,7 +164,7 @@ /client/proc/cmd_admin_discord_pm(sender) if(prefs.muted & MUTE_ADMINHELP) - to_chat(src, "Error: Private-Message: You are unable to use PM-s (muted).") + to_chat(src, SPAN_WARNING("Error: Private-Message: You are unable to use PM-s (muted).")) return var/msg = input(src,"Message:", "Reply private message to [sender] on Discord") as text|null diff --git a/code/modules/admin/verbs/antag-ooc.dm b/code/modules/admin/verbs/antag-ooc.dm index e4df56294e0..d76ea162cae 100644 --- a/code/modules/admin/verbs/antag-ooc.dm +++ b/code/modules/admin/verbs/antag-ooc.dm @@ -4,7 +4,7 @@ set desc = "Antagonist OOC" if (istype(src.mob, /mob/abstract/observer) && !check_rights(R_ADMIN|R_MOD|R_CCIAA, 0)) - to_chat(src, "You cannot use AOOC while ghosting/observing!") + to_chat(src, SPAN_WARNING("You cannot use AOOC while ghosting/observing!")) return if (handle_spam_prevention(msg, MUTE_AOOC)) diff --git a/code/modules/admin/verbs/bluespacetech.dm b/code/modules/admin/verbs/bluespacetech.dm index bdadc8ae2c8..ce7dc830f72 100644 --- a/code/modules/admin/verbs/bluespacetech.dm +++ b/code/modules/admin/verbs/bluespacetech.dm @@ -438,7 +438,7 @@ vision_flags = 0 see_invisible = -1 - to_chat(usr, "\The [src]'s vision mode is now [mode].") + to_chat(usr, SPAN_NOTICE("\The [src]'s vision mode is now [mode].")) /obj/item/clothing/glasses/sunglasses/bst/attack_hand() if(!usr) diff --git a/code/modules/admin/verbs/custom_event.dm b/code/modules/admin/verbs/custom_event.dm index 048bc2720c1..5432def3582 100644 --- a/code/modules/admin/verbs/custom_event.dm +++ b/code/modules/admin/verbs/custom_event.dm @@ -21,7 +21,7 @@ to_world("

Custom Event

") to_world("

A custom event is starting. OOC Info:

") - to_world("[GLOB.custom_event_msg]") + to_world(SPAN_ALERT("[GLOB.custom_event_msg]")) to_world("
") // normal verb for players to view info @@ -36,5 +36,5 @@ to_chat(src, "

Custom Event

") to_chat(src, "

A custom event is taking place. OOC Info:

") - to_chat(src, "[GLOB.custom_event_msg]") + to_chat(src, SPAN_ALERT("[GLOB.custom_event_msg]")) to_chat(src, "
") diff --git a/code/modules/admin/verbs/deadsay.dm b/code/modules/admin/verbs/deadsay.dm index 8306d141372..aeb578e8813 100644 --- a/code/modules/admin/verbs/deadsay.dm +++ b/code/modules/admin/verbs/deadsay.dm @@ -11,7 +11,7 @@ if(!(prefs.toggles & CHAT_DEAD)) - to_chat(src, "You have deadchat muted.") + to_chat(src, SPAN_WARNING("You have deadchat muted.")) return if (src.handle_spam_prevention(msg,MUTE_DEADCHAT)) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index 6116aa254ae..b8d55c4c443 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -55,11 +55,11 @@ var/datum/gas_mixture/env = T.return_air() - var/t = "Coordinates: [T.x],[T.y],[T.z]\n" - t += "Temperature: [env.temperature]\n" - t += "Pressure: [env.return_pressure()]kPa\n" + var/t = SPAN_NOTICE("Coordinates: [T.x],[T.y],[T.z]\n") + t += SPAN_WARNING("Temperature: [env.temperature]\n") + t += SPAN_WARNING("Pressure: [env.return_pressure()]kPa\n") for(var/g in env.gas) - t += "[g]: [env.gas[g]] / [env.gas[g] * R_IDEAL_GAS_EQUATION * env.temperature / env.volume]kPa\n" + t += SPAN_NOTICE("[g]: [env.gas[g]] / [env.gas[g] * R_IDEAL_GAS_EQUATION * env.temperature / env.volume]kPa\n") usr.show_message(t, 1) feedback_add_details("admin_verb","ASL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -165,7 +165,7 @@ alert("Invalid mob") feedback_add_details("admin_verb","GFA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! log_admin("[key_name(src)] has granted [M.key] full access.",admin_key=key_name(usr),ckey=key_name(M)) - message_admins("[key_name_admin(usr)] has granted [M.key] full access.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] has granted [M.key] full access."), 1) /client/proc/cmd_assume_direct_control(var/mob/M in GLOB.mob_list) set category = "Admin" @@ -179,7 +179,7 @@ else var/mob/abstract/observer/ghost = new/mob/abstract/observer(M,1) ghost.ckey = M.ckey - message_admins("[key_name_admin(usr)] assumed direct control of [M].", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] assumed direct control of [M]."), 1) log_admin("[key_name(usr)] assumed direct control of [M].",admin_key=key_name(usr)) var/mob/adminmob = src.mob M.ckey = src.ckey @@ -378,7 +378,7 @@ M.regenerate_icons() log_admin("[key_name(usr)] changed the equipment of [key_name(M)] to [chosen_outfit].",admin_key=key_name(usr),ckey=key_name(M)) - message_admins("[key_name_admin(usr)] changed the equipment of [key_name_admin(M)] to [chosen_outfit].", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] changed the equipment of [key_name_admin(M)] to [chosen_outfit]."), 1) return /client/proc/cmd_debug_mob_lists() diff --git a/code/modules/admin/verbs/mapping.dm b/code/modules/admin/verbs/mapping.dm index 9c67c09709d..0eaf0f53355 100644 --- a/code/modules/admin/verbs/mapping.dm +++ b/code/modules/admin/verbs/mapping.dm @@ -221,7 +221,7 @@ var/list/debug_verbs = list ( var/turf/simulated/location = get_turf(usr) if(!istype(location, /turf/simulated)) // We're in space, let's not cause runtimes. - to_chat(usr, "this debug tool cannot be used from space") + to_chat(usr, SPAN_WARNING("this debug tool cannot be used from space")) return var/icon/red = new('icons/misc/debug_group.dmi', "red") //created here so we don't have to make thousands of these. @@ -347,7 +347,7 @@ var/global/prevent_airgroup_regroup = 0 set category = "Mapping" set name = "Regroup All Airgroups Attempt" - to_chat(usr, "Proc disabled.") + to_chat(usr, SPAN_WARNING("Proc disabled.")) /*prevent_airgroup_regroup = 0 for(var/datum/air_group/AG in SSair.air_groups) @@ -358,7 +358,7 @@ var/global/prevent_airgroup_regroup = 0 set category = "Mapping" set name = "Kill pipe processing" - to_chat(usr, "Proc disabled.") + to_chat(usr, SPAN_WARNING("Proc disabled.")) /*pipe_processing_killed = !pipe_processing_killed if(pipe_processing_killed) @@ -370,7 +370,7 @@ var/global/prevent_airgroup_regroup = 0 set category = "Mapping" set name = "Kill air processing" - to_chat(usr, "Proc disabled.") + to_chat(usr, SPAN_WARNING("Proc disabled.")) //This proc is intended to detect lag problems relating to communication procs var/global/say_disabled = 0 @@ -378,7 +378,7 @@ var/global/say_disabled = 0 set category = "Mapping" set name = "Disable all communication verbs" - to_chat(usr, "Proc disabled.") + to_chat(usr, SPAN_WARNING("Proc disabled.")) /*say_disabled = !say_disabled if(say_disabled) @@ -393,7 +393,7 @@ var/global/movement_disabled_exception //This is the client that calls the proc, set category = "Mapping" set name = "Disable all movement" - to_chat(usr, "Proc disabled.") + to_chat(usr, SPAN_WARNING("Proc disabled.")) /*movement_disabled = !movement_disabled if(movement_disabled) diff --git a/code/modules/admin/verbs/modifyvariables.dm b/code/modules/admin/verbs/modifyvariables.dm index 40e15ff3ebf..1c01ce7f46f 100644 --- a/code/modules/admin/verbs/modifyvariables.dm +++ b/code/modules/admin/verbs/modifyvariables.dm @@ -405,7 +405,7 @@ var/list/VVdynamic_lock = list( if(!check_rights(R_VAREDIT|R_DEV)) return if(istype(O, /client) && (param_var_name == "ckey" || param_var_name == "key")) - to_chat(usr, "You cannot edit ckeys on client objects.") + to_chat(usr, SPAN_DANGER("You cannot edit ckeys on client objects.")) return if(!O.can_vv_get(param_var_name)) diff --git a/code/modules/admin/verbs/ntsl.dm b/code/modules/admin/verbs/ntsl.dm index f52f6acfafa..a19cd59cd67 100644 --- a/code/modules/admin/verbs/ntsl.dm +++ b/code/modules/admin/verbs/ntsl.dm @@ -11,7 +11,7 @@ feedback_add_details("admin_verb","DNT") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! else - to_chat(src, "NTSL2+ Daemon is already disconnected.") + to_chat(src, SPAN_WARNING("NTSL2+ Daemon is already disconnected.")) /client/proc/connect_ntsl() set name = "NTSL Connect" @@ -26,4 +26,4 @@ feedback_add_details("admin_verb","CNT") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! else - to_chat(src, "NTSL2+ Daemon is already connected.") + to_chat(src, SPAN_WARNING("NTSL2+ Daemon is already connected.")) diff --git a/code/modules/admin/verbs/pray.dm b/code/modules/admin/verbs/pray.dm index a43af25659d..afb32611658 100644 --- a/code/modules/admin/verbs/pray.dm +++ b/code/modules/admin/verbs/pray.dm @@ -3,7 +3,7 @@ set name = "Pray" if(say_disabled) //This is here to try to identify lag problems - to_chat(usr, "Speech is currently admin-disabled.") + to_chat(usr, SPAN_WARNING("Speech is currently admin-disabled.")) return msg = sanitize(msg) @@ -13,7 +13,7 @@ return var/image/cross = image('icons/obj/library.dmi',"bible") - msg = "[icon2html(cross, src)] PRAY: [key_name(src, 1)] (?) (PP) (VV) (SM) ([admin_jump_link(src, src)]) (CA) (SC): [msg]" + msg = SPAN_NOTICE("[icon2html(cross, src)] PRAY: [key_name(src, 1)] (?) (PP) (VV) (SM) ([admin_jump_link(src, src)]) (CA) (SC): [msg]") for(var/s in GLOB.staff) var/client/C = s @@ -26,8 +26,8 @@ log_admin("PRAYER: [key_name(src)]: [msg]") /proc/Centcomm_announce(var/msg, var/mob/Sender, var/iamessage) - var/msg_cciaa = "[uppertext(SSatlas.current_map.boss_short)][iamessage ? " IA" : ""]:[key_name(Sender, 1)] (RPLY): [msg]" - var/msg_admin = "[uppertext(SSatlas.current_map.boss_short)][iamessage ? " IA" : ""]:[key_name(Sender, 1)] (PP) (VV) (SM) ([admin_jump_link(Sender)]) (CA) (BSA) (RPLY): [msg]" + var/msg_cciaa = SPAN_NOTICE("[uppertext(SSatlas.current_map.boss_short)][iamessage ? " IA" : ""]:[key_name(Sender, 1)] (RPLY): [msg]") + var/msg_admin = SPAN_NOTICE("[uppertext(SSatlas.current_map.boss_short)][iamessage ? " IA" : ""]:[key_name(Sender, 1)] (PP) (VV) (SM) ([admin_jump_link(Sender)]) (CA) (BSA) (RPLY): [msg]") var/cciaa_present = 0 var/cciaa_afk = 0 @@ -56,7 +56,7 @@ SSdiscord.post_webhook_event(WEBHOOK_CCIAA_EMERGENCY_MESSAGE, list("message"=msg, "sender"="[Sender]", "cciaa_present"=cciaa_present, "cciaa_afk"=cciaa_afk)) /proc/Syndicate_announce(var/msg, var/mob/Sender) - msg = "ILLEGAL:[key_name(Sender, 1)] (PP) (VV) (SM) ([admin_jump_link(Sender)]) (CA) (BSA) (RPLY): [msg]" + msg = SPAN_NOTICE("ILLEGAL:[key_name(Sender, 1)] (PP) (VV) (SM) ([admin_jump_link(Sender)]) (CA) (BSA) (RPLY): [msg]") for(var/s in GLOB.staff) var/client/C = s if(R_ADMIN & C.holder.rights) diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index f7b833f6294..b7336598c6a 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -36,7 +36,7 @@ to_chat(M, "You hear a voice in your head... [msg]") log_admin("SubtlePM: [key_name(usr)] -> [key_name(M)] : [msg]",admin_key=key_name(usr),ckey=key_name(M)) - message_admins("SubtleMessage: [key_name_admin(usr)] -> [key_name_admin(M)] : [msg]", 1) + message_admins(SPAN_NOTICE("SubtleMessage: [key_name_admin(usr)] -> [key_name_admin(M)] : [msg]"), 1) feedback_add_details("admin_verb","SMS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/cmd_mentor_check_new_players() //Allows mentors / admins to determine who the newer players are. @@ -89,7 +89,7 @@ return to_world("[msg]") log_admin("GlobalNarrate: [key_name(usr)] : [msg]",admin_key=key_name(usr)) - message_admins("\bold GlobalNarrate: [key_name_admin(usr)] : [msg]
", 1) + message_admins(SPAN_NOTICE("\bold GlobalNarrate: [key_name_admin(usr)] : [msg]
"), 1) feedback_add_details("admin_verb","GLN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/cmd_admin_local_narrate() @@ -116,7 +116,7 @@ for(var/M in message_mobs) to_chat(M, msg) log_admin("LocalNarrate: [key_name(usr)] : [msg]", admin_key = key_name(usr)) - message_admins("\bold LocalNarrate: [key_name_admin(usr)] : [msg]
", 1) + message_admins(SPAN_NOTICE("\bold LocalNarrate: [key_name_admin(usr)] : [msg]
"), 1) feedback_add_details("admin_verb", "LCLN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/cmd_admin_direct_narrate(var/mob/M) // Targetted narrate -- TLE @@ -140,7 +140,7 @@ to_chat(M, msg) log_admin("DirectNarrate: [key_name(usr)] to ([M.name]/[M.key]): [msg]",admin_key=key_name(usr),ckey=key_name(M)) - message_admins("\bold DirectNarrate: [key_name(usr)] to ([M.name]/[M.key]): [msg]
", 1) + message_admins(SPAN_NOTICE("\bold DirectNarrate: [key_name(usr)] to ([M.name]/[M.key]): [msg]
"), 1) feedback_add_details("admin_verb","DIRN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/cmd_admin_godmode(mob/M as mob in GLOB.mob_list) @@ -150,7 +150,7 @@ to_chat(src, "Only administrators may use this command.") return M.status_flags ^= GODMODE - to_chat(usr, "Toggled [(M.status_flags & GODMODE) ? "ON" : "OFF"]") + to_chat(usr, SPAN_NOTICE("Toggled [(M.status_flags & GODMODE) ? "ON" : "OFF"]")) log_admin("[key_name(usr)] has toggled [key_name(M)]'s nodamage to [(M.status_flags & GODMODE) ? "On" : "Off"]",admin_key=key_name(usr),ckey=key_name(M)) message_admins("[key_name_admin(usr)] has toggled [key_name_admin(M)]'s nodamage to [(M.status_flags & GODMODE) ? "On" : "Off"]", 1) @@ -164,12 +164,12 @@ if(!usr || !usr.client) return if(!usr.client.holder) - to_chat(usr, "Error: cmd_admin_mute: You don't have permission to do this.") + to_chat(usr, SPAN_WARNING("Error: cmd_admin_mute: You don't have permission to do this.")) return if(!M.client) - to_chat(usr, "Error: cmd_admin_mute: This mob doesn't have a client tied to it.") + to_chat(usr, SPAN_WARNING("Error: cmd_admin_mute: This mob doesn't have a client tied to it.")) if(M.client.holder) - to_chat(usr, "Error: cmd_admin_mute: You cannot mute an admin/mod.") + to_chat(usr, SPAN_WARNING("Error: cmd_admin_mute: You cannot mute an admin/mod.")) if(!M.client) return if(M.client.holder) return @@ -293,7 +293,7 @@ Ccomp's first proc. G.has_enabled_antagHUD = 2 G.can_reenter_corpse = 1 - G:show_message(text("You may now respawn. You should roleplay as if you learned nothing about the round during your time with the dead."), 1) + G:show_message(SPAN_NOTICE("You may now respawn. You should roleplay as if you learned nothing about the round during your time with the dead."), 1) log_admin("[key_name(usr)] allowed [key_name(G)] to bypass the [GLOB.config.respawn_delay] minute respawn limit", admin_key=key_name(usr), ckey=key_name(G)) message_admins("Admin [key_name_admin(usr)] allowed [key_name_admin(G)] to bypass the [GLOB.config.respawn_delay] minute respawn limit", 1) @@ -336,18 +336,18 @@ Ccomp's first proc. if(g.antagHUD) g.antagHUD = 0 // Disable it on those that have it enabled g.has_enabled_antagHUD = 2 // We'll allow them to respawn - to_chat(g, "The Administrator has disabled AntagHUD. ") + to_chat(g, SPAN_WARNING("The Administrator has disabled AntagHUD.")) GLOB.config.antag_hud_allowed = 0 - to_chat(src, "AntagHUD usage has been disabled.") + to_chat(src, SPAN_DANGER("AntagHUD usage has been disabled.")) action = "disabled" else for(var/mob/abstract/observer/g in get_ghosts()) if(!g.client.holder) // Add the verb back for all non-admin ghosts add_verb(g, /mob/abstract/observer/verb/toggle_antagHUD) - to_chat(g, "The Administrator has enabled AntagHUD.") // Notify all observers they can now use AntagHUD) + to_chat(g, SPAN_NOTICE("The Administrator has enabled AntagHUD.")) // Notify all observers they can now use AntagHUD) GLOB.config.antag_hud_allowed = 1 action = "enabled" - to_chat(src, "AntagHUD usage has been enabled.") + to_chat(src, SPAN_NOTICE("AntagHUD usage has been enabled.")) log_admin("[key_name(usr)] has [action] antagHUD usage for observers",admin_key=key_name(usr)) @@ -364,19 +364,19 @@ Ccomp's first proc. var/action="" if(GLOB.config.antag_hud_restricted) for(var/mob/abstract/observer/g in get_ghosts()) - to_chat(g, "The administrator has lifted restrictions on joining the round if you use AntagHUD") + to_chat(g, SPAN_NOTICE("The administrator has lifted restrictions on joining the round if you use AntagHUD")) action = "lifted restrictions" GLOB.config.antag_hud_restricted = 0 - to_chat(src, "AntagHUD restrictions have been lifted") + to_chat(src, SPAN_NOTICE("AntagHUD restrictions have been lifted")) else for(var/mob/abstract/observer/g in get_ghosts()) - to_chat(g, "The administrator has placed restrictions on joining the round if you use AntagHUD") - to_chat(g, "Your AntagHUD has been disabled, you may choose to re-enabled it but will be under restrictions ") + to_chat(g, SPAN_DANGER("The administrator has placed restrictions on joining the round if you use AntagHUD")) + to_chat(g, SPAN_DANGER("Your AntagHUD has been disabled, you may choose to re-enabled it but will be under restrictions ")) g.antagHUD = 0 g.has_enabled_antagHUD = 0 action = "placed restrictions" GLOB.config.antag_hud_restricted = 1 - to_chat(src, "AntagHUD restrictions have been enabled") + to_chat(src, SPAN_DANGER("AntagHUD restrictions have been enabled")) log_admin("[key_name(usr)] has [action] on joining the round if they use AntagHUD",admin_key=key_name(usr)) message_admins("Admin [key_name_admin(usr)] has [action] on joining the round if they use AntagHUD", 1) @@ -405,7 +405,7 @@ Traitors and the like can also be revived with the previous role mostly intact. break if(!G_found)//If a ghost was not found. - to_chat(usr, "There is no active key like that in the game or the person is not currently a ghost.") + to_chat(usr, SPAN_WARNING("There is no active key like that in the game or the person is not currently a ghost.")) return var/mob/living/carbon/human/new_character = new(pick(GLOB.latejoin))//The mob being spawned. @@ -489,7 +489,7 @@ Traitors and the like can also be revived with the previous role mostly intact. if(alert(new_character,"Would you like an active AI to announce this character?",,"No","Yes")=="Yes") call(/proc/AnnounceArrival)(new_character, new_character.mind.assigned_role) - message_admins("[admin] has respawned [player_key] as [new_character.real_name].", 1) + message_admins(SPAN_NOTICE("[admin] has respawned [player_key] as [new_character.real_name]."), 1) new_character << "You have been fully respawned. Enjoy the game." @@ -511,7 +511,7 @@ Traitors and the like can also be revived with the previous role mostly intact. else M.add_ion_law(input) for(var/mob/living/silicon/ai/O in GLOB.mob_list) - to_chat(O, "" + input + "...LAWS UPDATED") + to_chat(O, SPAN_DANGER("" + input + "...LAWS UPDATED")) O.show_laws() log_admin("Admin [key_name(usr)] has added a new AI law - [input]",admin_key=key_name(usr)) @@ -537,7 +537,7 @@ Traitors and the like can also be revived with the previous role mostly intact. M.revive() log_admin("[key_name(usr)] healed / revived [key_name(M)]",admin_key=key_name(usr),ckey=key_name(M)) - message_admins("Admin [key_name_admin(usr)] healed / revived [key_name_admin(M)]!", 1) + message_admins(SPAN_DANGER("Admin [key_name_admin(usr)] healed / revived [key_name_admin(M)]!"), 1) else alert("Admin revive disabled") feedback_add_details("admin_verb","REJU") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -559,7 +559,7 @@ Traitors and the like can also be revived with the previous role mostly intact. switch(reporttype) if("Template") if (!establish_db_connection(GLOB.dbcon)) - to_chat(src, "Unable to connect to the database.") + to_chat(src, SPAN_NOTICE("Unable to connect to the database.")) return var/DBQuery/query = GLOB.dbcon.NewQuery("SELECT title, message FROM ss13_ccia_general_notice_list WHERE deleted_at IS NULL") query.Execute() @@ -573,7 +573,7 @@ Traitors and the like can also be revived with the previous role mostly intact. // Catch empty list if (!templates.len) - to_chat(src, "There are no templates in the database.") + to_chat(src, SPAN_NOTICE("There are no templates in the database.")) return reporttitle = tgui_input_list(usr, "Please select a command report template.", "Create Command Report", template_names) @@ -601,7 +601,7 @@ Traitors and the like can also be revived with the previous role mostly intact. if("Yes") command_announcement.Announce("[reportbody]", reporttitle, new_sound = 'sound/AI/commandreport.ogg', msg_sanitized = 1); if("No") - to_world("New [SSatlas.current_map.company_name] Update available at all communication consoles.") + to_world(SPAN_WARNING("New [SSatlas.current_map.company_name] Update available at all communication consoles.")) sound_to(world, ('sound/AI/commandreport.ogg')) log_admin("[key_name(src)] has created a command report: [reportbody]",admin_key=key_name(usr)) @@ -739,7 +739,7 @@ Traitors and the like can also be revived with the previous role mostly intact. mob.gib() log_admin("[key_name(usr)] used gibself.",admin_key=key_name(usr)) - message_admins("[key_name_admin(usr)] used gibself.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] used gibself."), 1) feedback_add_details("admin_verb","GIBS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/cmd_admin_dust(mob/M as mob in GLOB.mob_list) @@ -912,7 +912,7 @@ Traitors and the like can also be revived with the previous role mostly intact. feedback_add_details("admin_verb","CSHUT") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! log_admin("[key_name(usr)] admin-called an evacuation.",admin_key=key_name(usr)) - message_admins("[key_name_admin(usr)] admin-called an evacuation", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] admin-called an evacuation"), 1) return /client/proc/admin_cancel_shuttle() @@ -942,7 +942,7 @@ Traitors and the like can also be revived with the previous role mostly intact. evacuation_controller.cancel_evacuation() feedback_add_details("admin_verb","CCSHUT") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! log_admin("[key_name(usr)] admin-cancelled the evacuation.",admin_key=key_name(usr)) - message_admins("[key_name_admin(usr)] admin-cancelled the evacuation.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] admin-cancelled the evacuation."), 1) return @@ -965,7 +965,7 @@ Traitors and the like can also be revived with the previous role mostly intact. set category = "Special Verbs" set name = "Attack Log" - to_chat(usr, text("Attack Log for []", mob)) + to_chat(usr, SPAN_DANGER("Attack Log for [mob]")) for(var/t in M.attack_log) to_chat(usr, t) feedback_add_details("admin_verb","ATTL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! @@ -997,7 +997,7 @@ Traitors and the like can also be revived with the previous role mostly intact. message_admins("Admin [key_name_admin(usr)] has forced the players to have random appearances.", 1) if(notifyplayers == "Yes") - to_world("Admin [usr.key] has forced the players to have completely random identities!") + to_world(SPAN_NOTICE("Admin [usr.key] has forced the players to have completely random identities!")) to_chat(usr, "Remember: you can always disable the randomness by using the verb again, assuming the round hasn't started yet.") diff --git a/code/modules/admin/verbs/tripAI.dm b/code/modules/admin/verbs/tripAI.dm index 2511c674b06..f63a8b4cdf2 100644 --- a/code/modules/admin/verbs/tripAI.dm +++ b/code/modules/admin/verbs/tripAI.dm @@ -13,8 +13,8 @@ if(SSticker.triai) SSticker.triai = 0 to_chat(usr, "Only one AI will be spawned at round start.") - message_admins("[key_name_admin(usr)] has toggled off triple AIs at round start.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] has toggled off triple AIs at round start."), 1) else SSticker.triai = 1 to_chat(usr, "There will be an AI Triumvirate at round start.") - message_admins("[key_name_admin(usr)] has toggled on triple AIs at round start.", 1) + message_admins(SPAN_NOTICE("[key_name_admin(usr)] has toggled on triple AIs at round start."), 1) diff --git a/code/modules/admin/verbs/warning.dm b/code/modules/admin/verbs/warning.dm index 5e6022c3150..73605190223 100644 --- a/code/modules/admin/verbs/warning.dm +++ b/code/modules/admin/verbs/warning.dm @@ -10,7 +10,7 @@ return if (!establish_db_connection(GLOB.dbcon)) - to_chat(usr, "Error: warn(): Database Connection failed, reverting to legacy systems.") + to_chat(usr, SPAN_WARNING("Error: warn(): Database Connection failed, reverting to legacy systems.")) usr.client.warn_legacy(warned_ckey) return @@ -49,7 +49,7 @@ feedback_add_details("admin_verb", "WARN-DB") if (C) - to_chat(C, "You have been warned by an administrator.
Click here to review and acknowledge them!
") + to_chat(C, SPAN_WARNING("You have been warned by an administrator.
Click here to review and acknowledge them!")) message_admins("[key_name_admin(src)] has warned [warned_ckey] for: [warning_reason].") @@ -62,7 +62,7 @@ /client/proc/warn_legacy(warned_ckey) if (!warned_ckey) - to_chat(usr, "Error: warn_legacy(): No ckey passed!") + to_chat(usr, SPAN_WARNING("Error: warn_legacy(): No ckey passed!")) return var/datum/preferences/D @@ -71,14 +71,14 @@ else D = preferences_datums[warned_ckey] if(!D) - to_chat(src, "Error: warn_legacy(): No such ckey found.") + to_chat(src, SPAN_WARNING("Error: warn_legacy(): No such ckey found.")) return if(++D.warns >= MAX_WARNS) //uh ohhhh...you'reee iiiiin trouuuubble O:) ban_unban_log_save("[ckey] warned [warned_ckey], resulting in a [AUTOBANTIME] minute autoban.") if(C) message_admins("[key_name_admin(src)] has warned [key_name_admin(C)] resulting in a [AUTOBANTIME] minute ban.") - to_chat_immediate(C, "You have been autobanned due to a warning by [ckey].
This is a temporary ban, it will be removed in [AUTOBANTIME] minutes.
") + to_chat_immediate(C, SPAN_WARNING("You have been autobanned due to a warning by [ckey].
This is a temporary ban, it will be removed in [AUTOBANTIME] minutes.")) qdel(C) else message_admins("[key_name_admin(src)] has warned [warned_ckey] resulting in a [AUTOBANTIME] minute ban.") @@ -86,7 +86,7 @@ feedback_inc("ban_warn",1) else if(C) - to_chat(C, "You have been warned by an administrator.
Further warnings will result in an autoban.
") + to_chat(C, SPAN_WARNING("You have been warned by an administrator.
Further warnings will result in an autoban.")) message_admins("[key_name_admin(src)] has warned [key_name_admin(C)]. They have [MAX_WARNS-D.warns] strikes remaining.") else message_admins("[key_name_admin(src)] has warned [warned_ckey] (DC). They have [MAX_WARNS-D.warns] strikes remaining.") @@ -484,12 +484,12 @@ count++ if (count == 0) - to_chat(usr, "Database update failed due to a warning id not being present in the database.") + to_chat(usr, SPAN_WARNING("Database update failed due to a warning id not being present in the database.")) log_world("ERROR: Database update failed due to a warning id not being present in the database.") return if (count > 1) - to_chat(usr, "Database update failed due to multiple warnings having the same ID. Contact the database admin.") + to_chat(usr, SPAN_WARNING("Database update failed due to multiple warnings having the same ID. Contact the database admin.")) log_world("ERROR: Database update failed due to multiple warnings having the same ID. Contact the database admin.") return @@ -499,7 +499,7 @@ var/DBQuery/deleteQuery = GLOB.dbcon.NewQuery("UPDATE ss13_warnings SET visible = 0 WHERE id = :warning_id:") deleteQuery.Execute(query_details) - message_admins("[key_name_admin(usr)] deleted one of [ckey]'s warnings.") + message_admins(SPAN_NOTICE("[key_name_admin(usr)] deleted one of [ckey]'s warnings.")) log_admin("[key_name(usr)] deleted one of [ckey]'s warnings.", admin_key=key_name(usr), ckey=ckey) else to_chat(usr, "Cancelled") @@ -515,7 +515,7 @@ var/DBQuery/reason_query = GLOB.dbcon.NewQuery("UPDATE ss13_warnings SET reason = :new_reason:, edited = 1, lasteditor = :a_ckey:, lasteditdate = NOW() WHERE id = :warning_id:") reason_query.Execute(query_details) - message_admins("[key_name_admin(usr)] edited one of [ckey]'s warning reasons.") + message_admins(SPAN_NOTICE("[key_name_admin(usr)] edited one of [ckey]'s warning reasons.")) log_admin("[key_name(usr)] edited one of [ckey]'s warning reasons.", admin_key=key_name(usr), ckey=ckey) if("editNotes") @@ -528,5 +528,5 @@ var/DBQuery/notes_query = GLOB.dbcon.NewQuery("UPDATE ss13_warnings SET notes = :new_notes:, edited = 1, lasteditor = :a_ckey:, lasteditdate = NOW() WHERE id = :warning_id:") notes_query.Execute(query_details) - message_admins("[key_name_admin(usr)] edited one of [ckey]'s warning notes.") + message_admins(SPAN_NOTICE("[key_name_admin(usr)] edited one of [ckey]'s warning notes.")) log_admin("[key_name(usr)] edited one of [ckey]'s warning notes.", admin_key=key_name(usr), ckey=ckey) diff --git a/code/modules/admin/view_variables/topic.dm b/code/modules/admin/view_variables/topic.dm index 62b554097e4..982c48c9f9f 100644 --- a/code/modules/admin/view_variables/topic.dm +++ b/code/modules/admin/view_variables/topic.dm @@ -191,7 +191,7 @@ to_chat(usr, "No objects of this type exist") return log_admin("[key_name(usr)] deleted all objects of type [O_type] ([i] objects deleted)", admin_key=key_name(usr)) - message_admins("[key_name(usr)] deleted all objects of type [O_type] ([i] objects deleted)") + message_admins(SPAN_NOTICE("[key_name(usr)] deleted all objects of type [O_type] ([i] objects deleted)")) if("Type and subtypes") var/i = 0 for(var/obj/Obj in world) @@ -206,7 +206,7 @@ to_chat(usr, "No objects of this type exist") return log_admin("[key_name(usr)] deleted all objects of type or subtype of [O_type] ([i] objects deleted)", admin_key=key_name(usr)) - message_admins("[key_name(usr)] deleted all objects of type or subtype of [O_type] ([i] objects deleted)") + message_admins(SPAN_NOTICE("[key_name(usr)] deleted all objects of type or subtype of [O_type] ([i] objects deleted)")) else if(href_list["explode"]) if(!check_rights(R_DEBUG|R_FUN)) return @@ -504,7 +504,7 @@ if(amount != 0) log_admin("[key_name(usr)] dealt [amount] amount of [Text] damage to [L]", admin_key=key_name(usr), ckey=key_name(L)) - message_admins("[key_name(usr)] dealt [amount] amount of [Text] damage to [L]") + message_admins(SPAN_NOTICE("[key_name(usr)] dealt [amount] amount of [Text] damage to [L]")) href_list["datumrefresh"] = href_list["mobToDamage"] else if(href_list["call_proc"]) diff --git a/code/modules/assembly/bomb.dm b/code/modules/assembly/bomb.dm index 7000240c95e..d2ab915a5ae 100644 --- a/code/modules/assembly/bomb.dm +++ b/code/modules/assembly/bomb.dm @@ -49,11 +49,11 @@ status = TRUE GLOB.bombers += "[key_name(user)] welded a single tank bomb. Temp: [bombtank.air_contents.temperature-T0C]" message_admins("[key_name_admin(user)] welded a single tank bomb. Temp: [bombtank.air_contents.temperature-T0C]") - to_chat(user, "A pressure hole has been bored to [bombtank] valve. \The [bombtank] can now be ignited.") + to_chat(user, SPAN_NOTICE("A pressure hole has been bored to [bombtank] valve. \The [bombtank] can now be ignited.")) else status = FALSE GLOB.bombers += "[key_name(user)] unwelded a single tank bomb. Temp: [bombtank.air_contents.temperature-T0C]" - to_chat(user, "The hole has been closed.") + to_chat(user, SPAN_NOTICE("The hole has been closed.")) add_fingerprint(user) ..() diff --git a/code/modules/atmospherics/components/binary_devices/passive_gate.dm b/code/modules/atmospherics/components/binary_devices/passive_gate.dm index 478478ad395..af523916234 100644 --- a/code/modules/atmospherics/components/binary_devices/passive_gate.dm +++ b/code/modules/atmospherics/components/binary_devices/passive_gate.dm @@ -223,7 +223,7 @@ return src.add_fingerprint(usr) if(!src.allowed(user)) - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) return usr.set_machine(src) ui_interact(user) @@ -325,20 +325,20 @@ if (!attacking_item.iswrench()) return ..() if (unlocked) - to_chat(user, "You cannot unwrench \the [src], turn it off first.") + to_chat(user, SPAN_WARNING("You cannot unwrench \the [src], turn it off first.")) return TRUE var/datum/gas_mixture/int_air = return_air() if (!loc) return FALSE var/datum/gas_mixture/env_air = loc.return_air() if ((int_air.return_pressure()-env_air.return_pressure()) > PRESSURE_EXERTED) - to_chat(user, "You cannot unwrench \the [src], it too exerted due to internal pressure.") + to_chat(user, SPAN_WARNING("You cannot unwrench \the [src], it too exerted due to internal pressure.")) add_fingerprint(user) return TRUE - to_chat(user, "You begin to unfasten \the [src]...") + to_chat(user, SPAN_NOTICE("You begin to unfasten \the [src]...")) if(attacking_item.use_tool(src, user, istype(attacking_item, /obj/item/pipewrench) ? 80 : 40, volume = 50)) user.visible_message( \ - "\The [user] unfastens \the [src].", \ - "You have unfastened \the [src].", \ + SPAN_NOTICE("\The [user] unfastens \the [src]."), \ + SPAN_NOTICE("You have unfastened \the [src]."), \ "You hear ratchet.") new /obj/item/pipe(loc, make_from=src) qdel(src) diff --git a/code/modules/atmospherics/components/binary_devices/pump.dm b/code/modules/atmospherics/components/binary_devices/pump.dm index 1f8ab600d67..80531682b13 100644 --- a/code/modules/atmospherics/components/binary_devices/pump.dm +++ b/code/modules/atmospherics/components/binary_devices/pump.dm @@ -237,7 +237,7 @@ Thus, the two variables affect pump operation are set in New(): return src.add_fingerprint(usr) if(!src.allowed(user)) - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) return usr.set_machine(src) ui_interact(user) @@ -273,22 +273,22 @@ Thus, the two variables affect pump operation are set in New(): if (!attacking_item.iswrench() && !istype(attacking_item, /obj/item/pipewrench)) return ..() if (!(stat & NOPOWER) && use_power) - to_chat(user, "You cannot unwrench this [src], turn it off first.") + to_chat(user, SPAN_WARNING("You cannot unwrench this [src], turn it off first.")) return TRUE var/datum/gas_mixture/int_air = return_air() if (!loc) return FALSE var/datum/gas_mixture/env_air = loc.return_air() if ((int_air.return_pressure()-env_air.return_pressure()) > PRESSURE_EXERTED && !istype(attacking_item, /obj/item/pipewrench)) - to_chat(user, "You cannot unwrench this [src], it's too exerted due to internal pressure.") + to_chat(user, SPAN_WARNING("You cannot unwrench this [src], it's too exerted due to internal pressure.")) add_fingerprint(user) return TRUE else - to_chat(user, "You struggle to unwrench \the [src] with your pipe wrench.") - to_chat(user, "You begin to unfasten \the [src]...") + to_chat(user, SPAN_WARNING("You struggle to unwrench \the [src] with your pipe wrench.")) + to_chat(user, SPAN_NOTICE("You begin to unfasten \the [src]...")) if(attacking_item.use_tool(src, user, istype(attacking_item, /obj/item/pipewrench) ? 80 : 40, volume = 50)) user.visible_message( \ - "\The [user] unfastens \the [src].", \ - "You have unfastened \the [src].", \ + SPAN_NOTICE("\The [user] unfastens \the [src]."), \ + SPAN_NOTICE("You have unfastened \the [src]."), \ "You hear a ratchet.") new /obj/item/pipe(loc, make_from=src) qdel(src) diff --git a/code/modules/atmospherics/components/omni_devices/omni_base.dm b/code/modules/atmospherics/components/omni_devices/omni_base.dm index ca945a80166..eabd0e451ab 100644 --- a/code/modules/atmospherics/components/omni_devices/omni_base.dm +++ b/code/modules/atmospherics/components/omni_devices/omni_base.dm @@ -92,14 +92,14 @@ if(!loc) return FALSE var/datum/gas_mixture/env_air = loc.return_air() if ((int_pressure - env_air.return_pressure()) > PRESSURE_EXERTED) - to_chat(user, "You cannot unwrench \the [src], it is too exerted due to internal pressure.") + to_chat(user, SPAN_WARNING("You cannot unwrench \the [src], it is too exerted due to internal pressure.")) add_fingerprint(user) return TRUE - to_chat(user, "You begin to unfasten \the [src]...") + to_chat(user, SPAN_NOTICE("You begin to unfasten \the [src]...")) if(attacking_item.use_tool(src, user, 40, volume = 50)) user.visible_message( \ - "\The [user] unfastens \the [src].", \ - "You have unfastened \the [src].", \ + SPAN_NOTICE("\The [user] unfastens \the [src]."), \ + SPAN_NOTICE("You have unfastened \the [src]."), \ "You hear a ratchet.") new /obj/item/pipe(loc, make_from=src) qdel(src) diff --git a/code/modules/atmospherics/components/portables_connector.dm b/code/modules/atmospherics/components/portables_connector.dm index a78073b6809..7d734c7c9d3 100644 --- a/code/modules/atmospherics/components/portables_connector.dm +++ b/code/modules/atmospherics/components/portables_connector.dm @@ -156,7 +156,7 @@ if (!attacking_item.iswrench()) return ..() if (connected_device) - to_chat(user, "You cannot unwrench \the [src], dettach \the [connected_device] first.") + to_chat(user, SPAN_WARNING("You cannot unwrench \the [src], dettach \the [connected_device] first.")) return TRUE if (locate(/obj/machinery/portable_atmospherics, src.loc)) return TRUE @@ -164,14 +164,14 @@ if(!loc) return FALSE var/datum/gas_mixture/env_air = loc.return_air() if ((int_air.return_pressure()-env_air.return_pressure()) > PRESSURE_EXERTED) - to_chat(user, "You cannot unwrench \the [src], it too exerted due to internal pressure.") + to_chat(user, SPAN_WARNING("You cannot unwrench \the [src], it too exerted due to internal pressure.")) add_fingerprint(user) return TRUE - to_chat(user, "You begin to unfasten \the [src]...") + to_chat(user, SPAN_NOTICE("You begin to unfasten \the [src]...")) if(attacking_item.use_tool(src, user, istype(attacking_item, /obj/item/pipewrench) ? 80 : 40, volume = 50)) user.visible_message( \ - "\The [user] unfastens \the [src].", \ - "You have unfastened \the [src].", \ + SPAN_NOTICE("\The [user] unfastens \the [src]."), \ + SPAN_NOTICE("You have unfastened \the [src]."), \ "You hear a ratchet.") new /obj/item/pipe(loc, make_from=src) qdel(src) diff --git a/code/modules/atmospherics/components/tvalve.dm b/code/modules/atmospherics/components/tvalve.dm index ffb07a7b87a..31198a2b6a6 100644 --- a/code/modules/atmospherics/components/tvalve.dm +++ b/code/modules/atmospherics/components/tvalve.dm @@ -305,7 +305,7 @@ if(!powered()) return if(!src.allowed(user)) - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) return ..() @@ -347,7 +347,7 @@ if (!attacking_item.iswrench()) return ..() if (istype(src, /obj/machinery/atmospherics/tvalve/digital)) - to_chat(user, "You cannot unwrench \the [src], it's too complicated.") + to_chat(user, SPAN_WARNING("You cannot unwrench \the [src], it's too complicated.")) return TRUE var/datum/gas_mixture/int_air = return_air() if(!loc) return FALSE @@ -356,11 +356,11 @@ to_chat(user, "You cannot unwrench \the [src], it too exerted due to internal pressure.") add_fingerprint(user) return TRUE - to_chat(user, "You begin to unfasten \the [src]...") + to_chat(user, SPAN_NOTICE("You begin to unfasten \the [src]...")) if(attacking_item.use_tool(src, user, istype(attacking_item, /obj/item/pipewrench) ? 80 : 40, volume = 50)) user.visible_message( \ - "\The [user] unfastens \the [src].", \ - "You have unfastened \the [src].", \ + SPAN_NOTICE("\The [user] unfastens \the [src]."), \ + SPAN_NOTICE("You have unfastened \the [src]."), \ "You hear a ratchet.") new /obj/item/pipe(loc, make_from=src) qdel(src) @@ -448,7 +448,7 @@ if(!powered()) return if(!src.allowed(user)) - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) return ..() diff --git a/code/modules/atmospherics/components/valve.dm b/code/modules/atmospherics/components/valve.dm index 478da8609ee..66e182bccea 100644 --- a/code/modules/atmospherics/components/valve.dm +++ b/code/modules/atmospherics/components/valve.dm @@ -238,11 +238,11 @@ if(!powered()) return if(!src.allowed(user)) - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) return ..() - log_and_message_admins("has [open ? "OPENED" : "closed"] [name].", user) + log_and_message_admins("has [open ? SPAN_WARNING("OPENED") : "closed"] [name].", user) /obj/machinery/atmospherics/valve/digital/AltClick(var/mob/abstract/observer/admin) if (istype(admin)) @@ -305,20 +305,20 @@ if (!attacking_item.iswrench()) return ..() if (istype(src, /obj/machinery/atmospherics/valve/digital)) - to_chat(user, "You cannot unwrench \the [src], it's too complicated.") + to_chat(user, SPAN_WARNING("You cannot unwrench \the [src], it's too complicated.")) return TRUE var/datum/gas_mixture/int_air = return_air() if (!loc) return FALSE var/datum/gas_mixture/env_air = loc.return_air() if ((int_air.return_pressure()-env_air.return_pressure()) > PRESSURE_EXERTED) - to_chat(user, "You cannot unwrench \the [src], it is too exerted due to internal pressure.") + to_chat(user, SPAN_WARNING("You cannot unwrench \the [src], it is too exerted due to internal pressure.")) add_fingerprint(user) return TRUE - to_chat(user, "You begin to unfasten \the [src]...") + to_chat(user, SPAN_NOTICE("You begin to unfasten \the [src]...")) if(attacking_item.use_tool(src, user, istype(attacking_item, /obj/item/pipewrench) ? 80 : 40, volume = 50)) user.visible_message( \ - "\The [user] unfastens \the [src].", \ - "You have unfastened \the [src].", \ + SPAN_NOTICE("\The [user] unfastens \the [src]."), \ + SPAN_NOTICE("You have unfastened \the [src]."), \ "You hear a ratchet.") new /obj/item/pipe(loc, make_from=src) qdel(src) diff --git a/code/modules/atmospherics/pipes.dm b/code/modules/atmospherics/pipes.dm index 5c8e910207d..10a6953414e 100644 --- a/code/modules/atmospherics/pipes.dm +++ b/code/modules/atmospherics/pipes.dm @@ -107,16 +107,16 @@ var/datum/gas_mixture/env_air = loc.return_air() if ((int_air.return_pressure()-env_air.return_pressure()) > PRESSURE_EXERTED) if(!istype(attacking_item, /obj/item/pipewrench)) - to_chat(user, "You cannot unwrench \the [src], it is too exerted due to internal pressure.") + to_chat(user, SPAN_WARNING("You cannot unwrench \the [src], it is too exerted due to internal pressure.")) add_fingerprint(user) return TRUE else - to_chat(user, "You struggle to unwrench \the [src] with your pipe wrench.") - to_chat(user, "You begin to unfasten \the [src]...") + to_chat(user, SPAN_WARNING("You struggle to unwrench \the [src] with your pipe wrench.")) + to_chat(user, SPAN_NOTICE("You begin to unfasten \the [src]...")) if(attacking_item.use_tool(src, user, istype(attacking_item, /obj/item/pipewrench) ? 80 : 40, volume = 50)) user.visible_message( \ - "\The [user] unfastens \the [src].", \ - "You have unfastened \the [src].", \ + SPAN_NOTICE("\The [user] unfastens \the [src]."), \ + SPAN_NOTICE("You have unfastened \the [src]."), \ "You hear a ratchet.") new /obj/item/pipe(loc, make_from=src) for (var/obj/machinery/meter/meter in T) @@ -242,7 +242,7 @@ else return 1 /obj/machinery/atmospherics/pipe/simple/proc/burst() - src.visible_message("\The [src] bursts!"); + src.visible_message(SPAN_DANGER("\The [src] bursts!")); playsound(src.loc, 'sound/effects/bang.ogg', 25, 1) var/datum/effect/effect/system/smoke_spread/smoke = new smoke.set_up(1,0, src.loc, 0) diff --git a/code/modules/awaymissions/gateway.dm b/code/modules/awaymissions/gateway.dm index b526f90d3ab..dbad85f2835 100644 --- a/code/modules/awaymissions/gateway.dm +++ b/code/modules/awaymissions/gateway.dm @@ -83,10 +83,10 @@ if(linked_gateways.len != 8) return if(!powered()) return if(!awaygate) - to_chat(user, "Error: No destination found.") + to_chat(user, SPAN_NOTICE("Error: No destination found.")) return if(world.time < wait) - to_chat(user, "Error: Warpspace triangulation in progress. Estimated time to completion: [round(((wait - world.time) / 10) / 60)] minutes.") + to_chat(user, SPAN_NOTICE("Error: Warpspace triangulation in progress. Estimated time to completion: [round(((wait - world.time) / 10) / 60)] minutes.")) return for(var/obj/machinery/gateway/G in linked_gateways) @@ -187,7 +187,7 @@ if(!ready) return if(linked_gateways.len != 8) return if(!stationgate) - to_chat(user, "Error: No destination found.") + to_chat(user, SPAN_NOTICE("Error: No destination found.")) return for(var/obj/machinery/gateway/G in linked_gateways) @@ -234,6 +234,6 @@ to_chat(user, "\black The gate is already calibrated, there is no work for you to do here.") return else - to_chat(user, "Recalibration successful!: \black This gate's systems have been fine tuned. Travel to this gate will now be on target.") + to_chat(user, SPAN_NOTICE("Recalibration successful!: \black This gate's systems have been fine tuned. Travel to this gate will now be on target.")) calibrated = 1 return diff --git a/code/modules/awaymissions/zlevel.dm b/code/modules/awaymissions/zlevel.dm index b19ca1b6f11..98282baaf77 100644 --- a/code/modules/awaymissions/zlevel.dm +++ b/code/modules/awaymissions/zlevel.dm @@ -3,7 +3,7 @@ return var/list/potentialRandomZlevels = list() - admin_notice("Searching for away missions...", R_DEBUG) + admin_notice(SPAN_DANGER("Searching for away missions..."), R_DEBUG) var/list/Lines = file2list("maps/RandomZLevels/fileList.txt") if(!Lines.len) return for (var/t in Lines) @@ -36,7 +36,7 @@ var/static/dmm_suite/loader = new if(potentialRandomZlevels.len) - admin_notice("Loading away mission...", R_DEBUG) + admin_notice(SPAN_DANGER("Loading away mission..."), R_DEBUG) var/map = pick(potentialRandomZlevels) var/file = file(map) @@ -49,8 +49,8 @@ continue GLOB.awaydestinations.Add(L) - admin_notice("Away mission loaded.", R_DEBUG) + admin_notice(SPAN_DANGER("Away mission loaded."), R_DEBUG) else - admin_notice("No away missions found.", R_DEBUG) + admin_notice(SPAN_DANGER("No away missions found."), R_DEBUG) return diff --git a/code/modules/cargo/export_scanner.dm b/code/modules/cargo/export_scanner.dm index a3691a036d7..801b50d01ad 100644 --- a/code/modules/cargo/export_scanner.dm +++ b/code/modules/cargo/export_scanner.dm @@ -15,8 +15,8 @@ var/price = SScargo.export_item_and_contents(O, FALSE, FALSE, dry_run=TRUE) if(price) - to_chat(user, "Scanned [O], value: [price] credits[O.contents.len ? " (contents included)" : ""].") + to_chat(user, SPAN_NOTICE("Scanned [O], value: [price] credits[O.contents.len ? " (contents included)" : ""].")) else - to_chat(user, "Scanned [O], no export value.") + to_chat(user, SPAN_WARNING("Scanned [O], no export value.")) if(SScargo.bounty_ship_item_and_contents(O, dry_run=TRUE)) - to_chat(user, "Scanned item is eligible for one or more bounties.") + to_chat(user, SPAN_NOTICE("Scanned item is eligible for one or more bounties.")) diff --git a/code/modules/cargo/randomstock.dm b/code/modules/cargo/randomstock.dm index 188f570eed0..192dd2ed997 100644 --- a/code/modules/cargo/randomstock.dm +++ b/code/modules/cargo/randomstock.dm @@ -88,7 +88,7 @@ var/list/global/random_stock_large = list() /proc/spawn_cargo_stock() var/start_time = world.timeofday new /datum/cargospawner() - admin_notice("Cargo Stock generation completed in [round(0.1*(world.timeofday-start_time),0.1)] seconds.", R_DEBUG) + admin_notice(SPAN_DANGER("Cargo Stock generation completed in [round(0.1*(world.timeofday-start_time),0.1)] seconds."), R_DEBUG) /datum/cargospawner var/list/containers = list() @@ -125,7 +125,7 @@ var/list/global/random_stock_large = list() /datum/cargospawner/proc/start() if (!SSatlas.current_map.warehouse_basearea || !warehouse || !warehouseturfs.len) - admin_notice("ERROR: Cargo spawner failed to locate warehouse. Terminating.", R_DEBUG) + admin_notice(SPAN_DANGER("ERROR: Cargo spawner failed to locate warehouse. Terminating."), R_DEBUG) qdel(src) return diff --git a/code/modules/cciaa/cciaa.dm b/code/modules/cciaa/cciaa.dm index b356862f59a..345675d99a0 100644 --- a/code/modules/cciaa/cciaa.dm +++ b/code/modules/cciaa/cciaa.dm @@ -4,7 +4,7 @@ set category = "Special Verbs" if (!check_rights(R_ADMIN|R_CCIAA|R_FUN)) - to_chat(usr, "You do not have enough powers to do this.") + to_chat(usr, SPAN_WARNING("You do not have enough powers to do this.")) return var/list/faxes = list() @@ -18,19 +18,19 @@ var/department = tgui_input_list(usr, "Pick a fax machine.", "Send Admin Fax", faxes) var/obj/machinery/photocopier/faxmachine/fax = faxes[department] if (!istype(fax)) - to_chat(usr, "Couldn't find a fax machine to send this to!") + to_chat(usr, SPAN_WARNING("Couldn't find a fax machine to send this to!")) return //todo: sanitize var/input = tgui_input_text(usr, "Please enter a message to reply to via secure connection. BBCode and HTML allowed.", \ "Outgoing message from Centcomm", "", MAX_BOOK_MESSAGE_LEN, TRUE) if (!input) - to_chat(usr, "Cancelled.") + to_chat(usr, SPAN_WARNING("Cancelled.")) return var/customname = tgui_input_text(usr, "Pick a title for the report.", "Title") if (!customname) - to_chat(usr, "Cancelled.") + to_chat(usr, SPAN_WARNING("Cancelled.")) return var/announce = alert(usr, "Do you wish to announce the fax being sent?", "Announce Fax", "Yes", "No") @@ -53,12 +53,12 @@ if(fax.receivefax(P)) if(announce == 1) command_announcement.Announce("A fax has been sent to the [department] fax machine.", "Fax Sent") - to_chat(usr, "Message transmitted successfully.") + to_chat(usr, SPAN_NOTICE("Message transmitted successfully.")) log_and_message_admins("sent a fax message to the [department] fax machine. (JMP)") sent_faxes += P else - to_chat(usr, "Message reply failed.") + to_chat(usr, SPAN_WARNING("Message reply failed.")) qdel(P) return @@ -68,7 +68,7 @@ set category = "Special Verbs" if (!check_rights(R_ADMIN|R_CCIAA|R_FUN)) - to_chat(usr, "You do not have enough powers to do this.") + to_chat(usr, SPAN_WARNING("You do not have enough powers to do this.")) return var/data = "
Send New Fax
" diff --git a/code/modules/cciaa/cciaa_items.dm b/code/modules/cciaa/cciaa_items.dm index bf815bde965..7cc4846873b 100644 --- a/code/modules/cciaa/cciaa_items.dm +++ b/code/modules/cciaa/cciaa_items.dm @@ -46,12 +46,12 @@ set category = "Recorder" if(!check_rights(R_CCIAA,FALSE)) - to_chat(usr, "The device beeps and flashes \"Unauthorised user.\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Unauthorised user.\".")) return if(use_check_and_message(usr)) return if(recording) - to_chat(usr, "The device beeps and flashes \"Already recording, Aborting\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Already recording, Aborting\".")) return //If nothing has been done with the device yet @@ -68,20 +68,20 @@ var/selection = input(usr, "Select Report","Report Name") as null|anything in reports if(!selection) - to_chat(usr, "The device beeps and flashes \"No data entered, Aborting\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"No data entered, Aborting\".")) return selected_report = reports[selection] - to_chat(usr,"The device flashes \"Report [selected_report.title] selected, fingerprint of interviewee required\"") + to_chat(usr,SPAN_NOTICE("The device flashes \"Report [selected_report.title] selected, fingerprint of interviewee required\"")) if(selected_report.internal_topic) send_link(usr, selected_report.internal_topic) else var/report_name = input(usr, "Select Report Name","Report Name") as null|text if(!report_name || report_name == "") - to_chat(usr, "The device beeps and flashes \"No data entered, Aborting\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"No data entered, Aborting\".")) return var/report_id = input(usr, "Select Report ID","Report ID") as null|text if(!report_id || report_id == "") - to_chat(usr, "The device beeps and flashes \"No data entered, Aborting\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"No data entered, Aborting\".")) return selected_report = new(report_id, time2text(world.realtime, "YYYY_MM_DD"), report_name) var/mob/living/carbon/human/H = usr @@ -90,7 +90,7 @@ return //If we are ready to record, but no interviewee is selected else if(selected_report && !interviewee_id) - to_chat(usr,"The device beeps and flashes \"Fingerprint of interviewee required\"") + to_chat(usr,SPAN_NOTICE("The device beeps and flashes \"Fingerprint of interviewee required\"")) return //If the report has been selected and the person scanned their frinterprint else if(selected_report && interviewee_id) @@ -122,7 +122,7 @@ recording = 1 icon_state = "taperecorderrecording" - to_chat(usr, "The device beeps and flashes \"Writing to [fileName]\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Writing to [fileName]\".")) return @@ -133,10 +133,10 @@ if(use_check_and_message(usr)) return if(!check_rights(R_CCIAA,FALSE)) - to_chat(usr, "The device beeps and flashes \"Unauthorised user.\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Unauthorised user.\".")) return if(!recording) - to_chat(usr, "The device beeps and flashes \"Not recording, Aborting\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Not recording, Aborting\".")) return recording = FALSE @@ -172,7 +172,7 @@ //Check if we need to update the status to review required if(antag_involvement && selected_report.status == "in progress") - to_chat(usr, "The device beeps and flashes \"Liaison Review Required. Interviewee claimed antag involvement.\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Liaison Review Required. Interviewee claimed antag involvement.\".")) var/DBQuery/update_db = GLOB.dbcon.NewQuery("UPDATE ss13_ccia_reports SET status = 'review required' WHERE id = :id:") update_db.Execute(list("id" = selected_report.id)) @@ -182,7 +182,7 @@ interviewee_name = null date_string = null antag_involvement = null - to_chat(usr, "The device beeps and flashes \"Recording stopped log saved.\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Recording stopped log saved.\".")) icon_state = "taperecorderidle" return @@ -192,7 +192,7 @@ set category = "Recorder" if(!check_rights(R_CCIAA,FALSE)) - to_chat(usr, "The device beeps and flashes \"Unauthorised user.\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Unauthorised user.\".")) return var/confirmation = alert("Do you want to reset the recorder without saving?", "Reset Recorder", "Yes", "No") @@ -205,7 +205,7 @@ interviewee_name = null date_string = null antag_involvement = null - to_chat(usr, "The device beeps and flashes \"Recorder Reset.\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Recorder Reset.\".")) icon_state = "taperecorderidle" /obj/item/device/taperecorder/cciaa/proc/get_last_transcript() @@ -234,10 +234,10 @@ if(use_check_and_message(usr)) return if(!check_rights(R_CCIAA,FALSE)) - to_chat(usr, "The device beeps and flashes \"Unauthorised user\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Unauthorised user\".")) return if(recording) - to_chat(usr, "The device beeps and flashes \"Device recording, Aborting\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Device recording, Aborting\".")) return message_admins("[key_name_admin(usr)] accessed file: [last_file_loc]") @@ -252,22 +252,22 @@ if(use_check_and_message(usr)) return if(!check_rights(R_CCIAA,FALSE)) - to_chat(usr, "The device beeps and flashes \"Unauthorised user\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Unauthorised user\".")) return if(!recording) - to_chat(usr, "The device beeps and flashes \"Not recording, Aborting\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Not recording, Aborting\".")) return if(!paused) sLogFile << "--------------------------------" sLogFile << "Recorder paused at: [get_time()]" - to_chat(usr, "The device beeps and flashes \"Recording paused\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Recording paused\".")) paused = TRUE icon_state = "taperecorderpause" else sLogFile << "Recorder resumed at: [get_time()]" sLogFile << "--------------------------------" - to_chat(usr, "The device beeps and flashes \"Recording resumed\".") + to_chat(usr, SPAN_NOTICE("The device beeps and flashes \"Recording resumed\".")) paused = FALSE icon_state = "taperecorderrecording" return @@ -280,17 +280,17 @@ //Otherwise check if we already registered a interviewee if(interviewee_id) - to_chat(user,"The device beeps and flashes \"A interviewee has already been associated with this interview\".") + to_chat(user,SPAN_NOTICE("The device beeps and flashes \"A interviewee has already been associated with this interview\".")) return if(ishuman(user)) var/mob/living/carbon/human/H = user if(!H.character_id) - to_chat(user,"The device beeps and flashes \"Fingerprint is not recognized\".") + to_chat(user,SPAN_NOTICE("The device beeps and flashes \"Fingerprint is not recognized\".")) return if(H.character_id == interviewer_id) - to_chat(user,"You need to pass the recorder to the interviewee to scan their fingerprint.") + to_chat(user,SPAN_NOTICE("You need to pass the recorder to the interviewee to scan their fingerprint.")) return //Sync the intervieweee_id and interviewee_name @@ -311,12 +311,12 @@ else antag_involvement = FALSE - to_chat(user,"The device beeps and flashes \"Fingerprint recognized, Employee: [interviewee_name], ID: [interviewee_id]\".") + to_chat(user,SPAN_NOTICE("The device beeps and flashes \"Fingerprint recognized, Employee: [interviewee_name], ID: [interviewee_id]\".")) playsound(src.loc, 'sound/machines/ping.ogg', 50, 0) else - to_chat(user,"The device beeps and flashes \"Unrecognized entity - Aborting\".") + to_chat(user,SPAN_NOTICE("The device beeps and flashes \"Unrecognized entity - Aborting\".")) return //redundent for now diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 73f914adac6..ff3c94741d5 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -102,7 +102,7 @@ var/list/localhost_addresses = list( if(href_list["discord_msg"]) if(!holder && received_discord_pm < world.time - 6000) //Worse they can do is spam IRC for 10 minutes - to_chat(usr, "You are no longer able to use this, it's been more then 10 minutes since an admin on Discord has responded to you") + to_chat(usr, SPAN_WARNING("You are no longer able to use this, it's been more then 10 minutes since an admin on Discord has responded to you")) return if(mute_discord) to_chat(usr, "") @@ -145,7 +145,7 @@ var/list/localhost_addresses = list( var/request_id = text2num(href_list["linkingrequest"]) if (!establish_db_connection(GLOB.dbcon)) - to_chat(src, "Action failed! Database link could not be established!") + to_chat(src, SPAN_WARNING("Action failed! Database link could not be established!")) return @@ -153,11 +153,11 @@ var/list/localhost_addresses = list( check_query.Execute(list("id" = request_id)) if (!check_query.NextRow()) - to_chat(src, "No request found!") + to_chat(src, SPAN_WARNING("No request found!")) return if (ckey(check_query.item[1]) != ckey || check_query.item[2] != "new") - to_chat(src, "Request authentication failed!") + to_chat(src, SPAN_WARNING("Request authentication failed!")) return var/query_contents = "" @@ -169,15 +169,15 @@ var/list/localhost_addresses = list( query_details["new_status"] = "confirmed" query_details["id"] = request_id - feedback_message = "Account successfully linked!" + feedback_message = SPAN_DANGER("Account successfully linked!") if ("deny") query_contents = "UPDATE ss13_player_linking SET status = :new_status:, deleted_at = NOW() WHERE id = :id:" query_details["new_status"] = "rejected" query_details["id"] = request_id - feedback_message = "Link request rejected!" + feedback_message = SPAN_WARNING("Link request rejected!") else - to_chat(src, "Invalid command sent.") + to_chat(src, SPAN_WARNING("Invalid command sent.")) return var/DBQuery/update_query = GLOB.dbcon.NewQuery(query_contents) @@ -216,7 +216,7 @@ var/list/localhost_addresses = list( // Forum link from various panels. if ("github") if (!GLOB.config.githuburl) - to_chat(src, "GitHub URL not set in the config. Unable to open the site.") + to_chat(src, SPAN_DANGER("GitHub URL not set in the config. Unable to open the site.")) else if (alert("This will open the GitHub page in your browser. Are you sure?",, "Yes", "No") == "Yes") if (href_list["pr"]) var/pr_link = "[GLOB.config.githuburl]pull/[href_list["pr"]]" @@ -272,7 +272,7 @@ var/list/localhost_addresses = list( if (spam_alert > 3 && !(prefs.muted & mute_type)) cmd_admin_mute(src.mob, mute_type, 1) - to_chat(src, "You have tripped the macro-trigger. An auto-mute was applied.") + to_chat(src, SPAN_DANGER("You have tripped the macro-trigger. An auto-mute was applied.")) LOG_DEBUG("SPAM_PROTECT: [src] tripped macro-trigger, now muted.") return TRUE @@ -290,13 +290,13 @@ var/list/localhost_addresses = list( LOG_DEBUG("SPAM_PROTECT: [src] tripped duplicate message filter. Last message count: [last_message_count]. Message: [message]") if(last_message_count >= SPAM_TRIGGER_AUTOMUTE) - to_chat(src, "You have exceeded the spam filter limit for identical messages. An auto-mute was applied.") + to_chat(src, SPAN_DANGER("You have exceeded the spam filter limit for identical messages. An auto-mute was applied.")) cmd_admin_mute(mob, mute_type, 1) LOG_DEBUG("SPAM_PROTECT: [src] tripped duplicate message filter, now muted.") last_message_count = 0 return TRUE else if(last_message_count >= SPAM_TRIGGER_WARNING) - to_chat(src, "You are nearing the spam filter limit for identical messages.") + to_chat(src, SPAN_DANGER("You are nearing the spam filter limit for identical messages.")) LOG_DEBUG("SPAM_PROTECT: [src] tripped duplicate message filter, now warned.") return FALSE else @@ -308,7 +308,7 @@ var/list/localhost_addresses = list( . = FALSE if (prefs.muted & mute_type) - to_chat(src, "You are muted and cannot send messages.") + to_chat(src, SPAN_WARNING("You are muted and cannot send messages.")) . = TRUE else if (GLOB.config.automute_on && !holder && length(message)) . = . || automute_by_time(mute_type) @@ -321,13 +321,13 @@ var/list/localhost_addresses = list( //This stops files larger than UPLOAD_LIMIT being sent from client to server via input(), client.Import() etc. /client/AllowUpload(filename, filelength) if(filelength > UPLOAD_LIMIT) - to_chat(src, "Error: AllowUpload(): File Upload too large. Upload Limit: [UPLOAD_LIMIT/1024]KiB.") + to_chat(src, SPAN_WARNING("Error: AllowUpload(): File Upload too large. Upload Limit: [UPLOAD_LIMIT/1024]KiB.")) return 0 /* //Don't need this at the moment. But it's here if it's needed later. //Helps prevent multiple files being uploaded at once. Or right after eachother. var/time_to_wait = fileaccess_timer - world.time if(time_to_wait > 0) - to_chat(src, "Error: AllowUpload(): Spam prevention. Please wait [round(time_to_wait/10)] seconds.") + to_chat(src, SPAN_WARNING("Error: AllowUpload(): Spam prevention. Please wait [round(time_to_wait/10)] seconds.")) return 0 fileaccess_timer = world.time + FTPDELAY */ return 1 @@ -360,7 +360,7 @@ var/list/localhost_addresses = list( if (LAZYLEN(GLOB.config.client_blacklist_version)) var/client_version = "[byond_version].[byond_build]" if (client_version in GLOB.config.client_blacklist_version) - to_chat_immediate(src, "Your version of BYOND is explicitly blacklisted from joining this server!") + to_chat_immediate(src, SPAN_DANGER("Your version of BYOND is explicitly blacklisted from joining this server!")) to_chat_immediate(src, "Your current version: [client_version].") to_chat_immediate(src, "Visit http://www.byond.com/download/ to download a different version. Try looking for a newer one, or go one lower.") log_access("Failed Login: [key] [computer_id] [address] - Blacklisted BYOND version: [client_version].") @@ -450,7 +450,7 @@ var/list/localhost_addresses = list( log_client_to_db() if (byond_version < GLOB.config.client_error_version) - to_chat_immediate(src, "Your version of BYOND is too old!") + to_chat_immediate(src, SPAN_DANGER("Your version of BYOND is too old!")) to_chat_immediate(src, GLOB.config.client_error_message) to_chat_immediate(src, "Your version: [byond_version].") to_chat_immediate(src, "Required version: [GLOB.config.client_error_version] or later.") @@ -467,7 +467,7 @@ var/list/localhost_addresses = list( if (GLOB.config.access_deny_new_players && player_age == -1) log_access("Failed Login: [key] [computer_id] [address] - New player attempting connection during panic bunker.", ckey = ckey) message_admins("Failed Login: [key] [computer_id] [address] - New player attempting connection during panic bunker.") - to_chat_immediate(src, "Apologies, but the server is currently not accepting connections from never before seen players.") + to_chat_immediate(src, SPAN_DANGER("Apologies, but the server is currently not accepting connections from never before seen players.")) del(src) return 0 @@ -475,7 +475,7 @@ var/list/localhost_addresses = list( if (GLOB.config.access_deny_new_accounts != -1 && account_age != -1 && account_age <= GLOB.config.access_deny_new_accounts) log_access("Failed Login: [key] [computer_id] [address] - Account too young to play. [account_age] days.", ckey = ckey) message_admins("Failed Login: [key] [computer_id] [address] - Account too young to play. [account_age] days.") - to_chat_immediate(src, "Apologies, but the server is currently not accepting connections from BYOND accounts this young.") + to_chat_immediate(src, SPAN_DANGER("Apologies, but the server is currently not accepting connections from BYOND accounts this young.")) del(src) return 0 @@ -792,7 +792,7 @@ var/list/localhost_addresses = list( if (!holder) message_admins("Proxy Detection: [key_name_admin(src)] IP intel rated [res.intel*100]% likely to be a proxy/VPN. They are being kicked because of this.") log_admin("Proxy Detection: [key_name_admin(src)] IP intel rated [res.intel*100]% likely to be a proxy/VPN. They are being kicked because of this.") - to_chat(src, "Usage of proxies is not permitted by the rules. You are being kicked because of this.") + to_chat(src, SPAN_DANGER("Usage of proxies is not permitted by the rules. You are being kicked because of this.")) del(src) else message_admins("Proxy Detection: [key_name_admin(src)] IP intel rated [res.intel*100]% likely to be a Proxy/VPN.") diff --git a/code/modules/client/preference_setup/antagonism/01_candidacy.dm b/code/modules/client/preference_setup/antagonism/01_candidacy.dm index c51801cfd6f..37d696a258d 100644 --- a/code/modules/client/preference_setup/antagonism/01_candidacy.dm +++ b/code/modules/client/preference_setup/antagonism/01_candidacy.dm @@ -49,9 +49,9 @@ dat += "
[antag.role_text]: " var/ban_reason = jobban_isbanned(preference_mob(), antag.bantype) if(ban_reason == "AGE WHITELISTED") - dat += "\[IN [player_old_enough_for_role(preference_mob(), antag.bantype)] DAYS\]
" + dat += SPAN_DANGER("\[IN [player_old_enough_for_role(preference_mob(), antag.bantype)] DAYS\]
") else if(is_global_banned || ban_reason) - dat += "\[BANNED\]
" + dat += SPAN_DANGER("\[BANNED\]
") else if(establish_db_connection(GLOB.dbcon) && antag.required_age && antag.required_age > user.client?.player_age) dat += "ACC TOO YOUNG
" else if(antag.role_type in pref.be_special_role) diff --git a/code/modules/client/preference_setup/general/02_language.dm b/code/modules/client/preference_setup/general/02_language.dm index 93a1c1f0a97..805699cdf45 100644 --- a/code/modules/client/preference_setup/general/02_language.dm +++ b/code/modules/client/preference_setup/general/02_language.dm @@ -57,7 +57,7 @@ if (pref.alternate_languages.len > S.num_alternate_languages) if(pref.client) - to_chat(pref.client, "You have too many languages saved for [pref.species].
The list has been reset. Please check your languages in character creation!
") + to_chat(pref.client, SPAN_WARNING("You have too many languages saved for [pref.species].
The list has been reset. Please check your languages in character creation!")) pref.alternate_languages.Cut() return @@ -70,11 +70,11 @@ var/list/bad_langs = pref.alternate_languages - langs if (bad_langs.len) if(pref.client) - to_chat(pref.client, "[bad_langs.len] invalid language\s were found in your character setup! Please save your character again to stop this error from repeating!") + to_chat(pref.client, SPAN_WARNING("[bad_langs.len] invalid language\s were found in your character setup! Please save your character again to stop this error from repeating!")) for (var/L in bad_langs) if(pref.client) - to_chat(pref.client, "Removing the language \"[L]\" from your character.") + to_chat(pref.client, SPAN_NOTICE("Removing the language \"[L]\" from your character.")) pref.alternate_languages -= L var/datum/category_group/player_setup_category/cat = category diff --git a/code/modules/client/preference_setup/general/03_body.dm b/code/modules/client/preference_setup/general/03_body.dm index d9345f5b73d..31a7e5d562c 100644 --- a/code/modules/client/preference_setup/general/03_body.dm +++ b/code/modules/client/preference_setup/general/03_body.dm @@ -765,7 +765,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O limb = BP_HEAD carries_organs = 1 else - to_chat(user, "Cancelled.") + to_chat(user, SPAN_NOTICE("Cancelled.")) return TOPIC_NOACTION var/list/available_states = mob_species.possible_external_organs_modifications @@ -965,9 +965,9 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O if(restricted) if(restricted == 1) - dat += "You cannot play as this species.
If you wish to be whitelisted, you can make an application post on the forums.

" + dat += SPAN_WARNING("You cannot play as this species.
If you wish to be whitelisted, you can make an application post on the forums.

") else if(restricted == 2) - dat += "You cannot play as this species.
This species is not available for play as a station race.

" + dat += SPAN_WARNING("You cannot play as this species.
This species is not available for play as a station race.

") if(!restricted || check_rights(R_ADMIN, 0)) dat += "\[select\]" dat += "" diff --git a/code/modules/client/preference_setup/general/05_background.dm b/code/modules/client/preference_setup/general/05_background.dm index 2f18a92bdc7..104f731cd22 100644 --- a/code/modules/client/preference_setup/general/05_background.dm +++ b/code/modules/client/preference_setup/general/05_background.dm @@ -53,7 +53,7 @@ var/list/dat = list("
Records:
") if(jobban_isbanned(user, "Records")) - dat += "You are banned from using character records.
" + dat += SPAN_DANGER("You are banned from using character records.
") else dat += "Medical Records:
" dat += "[TextPreview(pref.med_record,40)]Clear

" diff --git a/code/modules/client/preference_setup/loadout/loadout.dm b/code/modules/client/preference_setup/loadout/loadout.dm index 70a117eb999..3c2e7934307 100644 --- a/code/modules/client/preference_setup/loadout/loadout.dm +++ b/code/modules/client/preference_setup/loadout/loadout.dm @@ -159,16 +159,16 @@ var/list/gear_datums = list() var/list/player_valid_gear_choices = valid_gear_choices() for(var/gear_name in pref.gear) if(!gear_datums[gear_name]) - to_chat(preference_mob, "You cannot have more than one of the \the [gear_name]") + to_chat(preference_mob, SPAN_WARNING("You cannot have more than one of the \the [gear_name]")) pref.gear -= gear_name else if(!(gear_name in player_valid_gear_choices)) - to_chat(preference_mob, "You cannot take \the [gear_name] as you are not whitelisted for the species.") + to_chat(preference_mob, SPAN_WARNING("You cannot take \the [gear_name] as you are not whitelisted for the species.")) pref.gear -= gear_name else var/datum/gear/G = gear_datums[gear_name] if(total_cost + G.cost > GLOB.config.loadout_cost) pref.gear -= gear_name - to_chat(preference_mob, "You cannot afford to take \the [gear_name]") + to_chat(preference_mob, SPAN_WARNING("You cannot afford to take \the [gear_name]")) else total_cost += G.cost diff --git a/code/modules/client/preference_setup/occupation/occupation.dm b/code/modules/client/preference_setup/occupation/occupation.dm index 737dfaaa791..bd86e08925c 100644 --- a/code/modules/client/preference_setup/occupation/occupation.dm +++ b/code/modules/client/preference_setup/occupation/occupation.dm @@ -501,14 +501,14 @@ var/datum/faction/faction = SSjobs.name_factions[selected_faction] if (!faction) - to_client_chat("Invalid faction chosen. Resetting to default.") + to_client_chat(SPAN_DANGER("Invalid faction chosen. Resetting to default.")) selected_faction = SSjobs.default_faction.name ResetJobs() // How to be horribly lazy. pref.faction = selected_faction - to_client_chat("New faction chosen. Job preferences reset.") + to_client_chat(SPAN_NOTICE("New faction chosen. Job preferences reset.")) /datum/preferences/proc/GetPlayerAltTitle(datum/job/job) return player_alt_titles[job.title] || job.title diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 06c22aa1d30..9e9b63d82f0 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -337,7 +337,7 @@ var/list/preferences_datums = list() if(GLOB.config.forumurl) send_link(user, GLOB.config.forumurl) else - to_chat(user, "The forum URL is not set in the server configuration.") + to_chat(user, SPAN_DANGER("The forum URL is not set in the server configuration.")) return return 1 @@ -363,7 +363,7 @@ var/list/preferences_datums = list() close_load_dialog(usr) else if(href_list["new_character_sql"]) new_setup(1) - to_chat(usr, "Your setup has been refreshed.") + to_chat(usr, SPAN_NOTICE("Your setup has been refreshed.")) usr.client.prefs.update_preview_icon() close_load_dialog(usr) else if(href_list["close_load_dialog"]) @@ -687,11 +687,11 @@ var/list/preferences_datums = list() return if (!current_character) - to_chat(C, "You do not have a character loaded.") + to_chat(C, SPAN_NOTICE("You do not have a character loaded.")) return if (!establish_db_connection(GLOB.dbcon)) - to_chat(C, "Unable to establish database connection.") + to_chat(C, SPAN_NOTICE("Unable to establish database connection.")) return var/DBQuery/query = GLOB.dbcon.NewQuery("UPDATE ss13_characters SET deleted_at = NOW(), deleted_by = \"player\" WHERE id = :char_id:") @@ -700,7 +700,7 @@ var/list/preferences_datums = list() // Create a new character. new_setup(1) - to_chat(C, "Character successfully deleted! Please make a new one or load an existing setup.") + to_chat(C, SPAN_WARNING("Character successfully deleted! Please make a new one or load an existing setup.")) /datum/preferences/proc/get_species_datum() if (species) diff --git a/code/modules/client/preferences_notification.dm b/code/modules/client/preferences_notification.dm index 003671849b6..dfe9c02f1f0 100644 --- a/code/modules/client/preferences_notification.dm +++ b/code/modules/client/preferences_notification.dm @@ -205,7 +205,7 @@ if(panel_notification) new_notification("warning","You have [notification_count] unread notifications! Click here to review and acknowledge them!") if(chat_notification) - to_chat(user,"You have unacknowledged notifications.
Click here to review and acknowledge them!
") + to_chat(user,SPAN_WARNING("You have unacknowledged notifications.
Click here to review and acknowledge them!")) /* * Helper proc for getting a count of active CCIA actions against the player's characters. diff --git a/code/modules/client/ui_style.dm b/code/modules/client/ui_style.dm index a5691b8417b..073b0515a86 100644 --- a/code/modules/client/ui_style.dm +++ b/code/modules/client/ui_style.dm @@ -26,7 +26,7 @@ var/all_tooltip_styles = list( set desc = "Configure your user interface" if(!ishuman(usr)) - to_chat(usr, "You must be human to use this verb.") + to_chat(usr, SPAN_WARNING("You must be human to use this verb.")) return var/UI_style_new = input(usr, "Select a style. White is recommended for customization") as null|anything in all_ui_styles diff --git a/code/modules/clothing/clothing_accessories.dm b/code/modules/clothing/clothing_accessories.dm index 6ee7efaf1e2..8b0b9649831 100644 --- a/code/modules/clothing/clothing_accessories.dm +++ b/code/modules/clothing/clothing_accessories.dm @@ -18,7 +18,7 @@ else if(istype(attacking_item, /obj/item/clothing/accessory)) if(!valid_accessory_slots || !valid_accessory_slots.len) - to_chat(usr, "You cannot attach accessories of any kind to \the [src].") + to_chat(usr, SPAN_WARNING("You cannot attach accessories of any kind to \the [src].")) return var/obj/item/clothing/accessory/A = attacking_item @@ -27,7 +27,7 @@ attach_accessory(user, A) return else - to_chat(user, "You cannot attach more accessories of this type to [src].") + to_chat(user, SPAN_WARNING("You cannot attach more accessories of this type to [src].")) return if(LAZYLEN(accessories)) diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index b0ff0de5b93..2f590a9e4e8 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -1037,7 +1037,7 @@ BLIND // can't see anything if(istype(src.loc, /mob/living/carbon/human)) var/mob/living/carbon/human/M = src.loc - to_chat(M, "\The [src] overloads and blinds you!") + to_chat(M, SPAN_DANGER("\The [src] overloads and blinds you!")) if(M.glasses == src) M.eye_blind = 3 M.eye_blurry = 5 diff --git a/code/modules/clothing/gloves/attackby.dm b/code/modules/clothing/gloves/attackby.dm index 1dd126cbb04..8872d9a7f83 100644 --- a/code/modules/clothing/gloves/attackby.dm +++ b/code/modules/clothing/gloves/attackby.dm @@ -24,11 +24,11 @@ return if(istype(src, /obj/item/clothing/gloves/boxing)) //quick fix for stunglove overlay not working nicely with boxing gloves. - to_chat(user, "That won't work.") //i'm not putting my lips on that!) + to_chat(user, SPAN_NOTICE("That won't work.")) //i'm not putting my lips on that!) ..() return else if(istype(src, /obj/item/clothing/gloves/force)) - to_chat(user, "That seems like a terrible idea.") + to_chat(user, SPAN_NOTICE("That seems like a terrible idea.")) ..() return @@ -36,33 +36,33 @@ if(attacking_item.iscoil()) var/obj/item/stack/cable_coil/C = attacking_item if (clipped) - to_chat(user, "The [src] are too badly mangled for wiring.") + to_chat(user, SPAN_NOTICE("The [src] are too badly mangled for wiring.")) return if(wired) - to_chat(user, "The [src] are already wired.") + to_chat(user, SPAN_NOTICE("The [src] are already wired.")) return if(C.amount < 2) - to_chat(user, "There is not enough wire to cover the [src].") + to_chat(user, SPAN_NOTICE("There is not enough wire to cover the [src].")) return C.use(2) wired = 1 siemens_coefficient = 3.0 - to_chat(user, "You wrap some wires around the [src].") + to_chat(user, SPAN_NOTICE("You wrap some wires around the [src].")) update_icon() return //add cell else if(wired && istype(attacking_item, /obj/item/cell)) if(cell) - to_chat(user, "\A [cell] is already attached to the [src].") + to_chat(user, SPAN_NOTICE("\A [cell] is already attached to the [src].")) return user.drop_from_inventory(attacking_item, src) cell = attacking_item w_class = ITEMSIZE_NORMAL - to_chat(user, "You attach \the [cell] to the [src].") + to_chat(user, SPAN_NOTICE("You attach \the [cell] to the [src].")) update_icon() return @@ -71,7 +71,7 @@ //stunglove stuff if(cell) cell.update_icon() - to_chat(user, "You cut \the [cell] away from the [src].") + to_chat(user, SPAN_NOTICE("You cut \the [cell] away from the [src].")) cell.forceMove(get_turf(src.loc)) cell = null w_class = ITEMSIZE_SMALL @@ -80,7 +80,7 @@ if(wired) //wires disappear into the void because fuck that shit wired = 0 siemens_coefficient = initial(siemens_coefficient) - to_chat(user, "You cut the wires away from the [src].") + to_chat(user, SPAN_NOTICE("You cut the wires away from the [src].")) update_icon() return diff --git a/code/modules/clothing/gloves/boxing.dm b/code/modules/clothing/gloves/boxing.dm index 74ef5141f70..9843c4395d7 100644 --- a/code/modules/clothing/gloves/boxing.dm +++ b/code/modules/clothing/gloves/boxing.dm @@ -7,7 +7,7 @@ /obj/item/clothing/gloves/boxing/attackby(obj/item/attacking_item, mob/user) if(attacking_item.iswirecutter() || istype(attacking_item, /obj/item/surgery/scalpel)) - to_chat(user, "That won't work.") //Nope) + to_chat(user, SPAN_NOTICE("That won't work.")) //Nope) return ..() diff --git a/code/modules/clothing/gloves/miscellaneous.dm b/code/modules/clothing/gloves/miscellaneous.dm index a120dd56646..3e72ec0c2ff 100644 --- a/code/modules/clothing/gloves/miscellaneous.dm +++ b/code/modules/clothing/gloves/miscellaneous.dm @@ -73,10 +73,10 @@ if(C.use(1)) var/obj/item/L = new src.balloon user.drop_from_inventory(L,get_turf(src)) - to_chat(user, "You make a balloon.") + to_chat(user, SPAN_NOTICE("You make a balloon.")) qdel(src) else - to_chat(user, "You need one length of cable to finish the balloon!") + to_chat(user, SPAN_WARNING("You need one length of cable to finish the balloon!")) . = ..() /obj/item/clothing/gloves/latex/nitrile @@ -245,7 +245,7 @@ if(prob(50) && (user.a_intent == I_HURT)) playsound(user, 'sound/weapons/beartrap_shut.ogg', 50, 1, -1) - user.visible_message("\The [user] slams \the [L] away with \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] slams \the [L] away with \the [src]!")) var/T = get_turf(user) spark(T, 3, GLOB.alldirs) L.throw_at(get_edge_target_turf(loc, loc.dir), 5, 1) diff --git a/code/modules/clothing/rings/rings.dm b/code/modules/clothing/rings/rings.dm index fbc9748ddd0..48b812a014d 100644 --- a/code/modules/clothing/rings/rings.dm +++ b/code/modules/clothing/rings/rings.dm @@ -9,7 +9,7 @@ if(!proximity) return if(ishuman(A) && user != A) - user.visible_message("\The [user] gets down on one knee, presenting \the [src] to [A].","You get down on one knee, presenting \the [src] to [A].") + user.visible_message(SPAN_WARNING("\The [user] gets down on one knee, presenting \the [src] to [A]."), SPAN_WARNING("You get down on one knee, presenting \the [src] to [A].")) //Reagent Rings @@ -27,7 +27,7 @@ if(istype(H) && H.gloves==src) if(reagents.total_volume) - to_chat(H, "You feel a prick as you slip on \the [src].") + to_chat(H, SPAN_DANGER("You feel a prick as you slip on \the [src].")) if(H.reagents) var/contained_reagents = reagents.get_reagents() var/trans = reagents.trans_to_mob(H, 15, CHEM_BLOOD) @@ -58,10 +58,10 @@ /obj/item/clothing/ring/seal/signet/attack_self(mob/user) if(nameset) - to_chat(user, "\The [src] has already been claimed!") + to_chat(user, SPAN_NOTICE("\The [src] has already been claimed!")) return - to_chat(user, "You claim \the [src] as your own!") + to_chat(user, SPAN_NOTICE("You claim \the [src] as your own!")) change_name(user) nameset = 1 diff --git a/code/modules/clothing/spacesuits/breaches.dm b/code/modules/clothing/spacesuits/breaches.dm index b1cc6c452aa..453f2cd8bec 100644 --- a/code/modules/clothing/spacesuits/breaches.dm +++ b/code/modules/clothing/spacesuits/breaches.dm @@ -186,7 +186,7 @@ var/global/list/breach_burn_descriptors = list( return if(istype(src.loc,/mob/living)) - to_chat(user, "How do you intend to patch a voidsuit while someone is wearing it?") + to_chat(user, SPAN_WARNING("How do you intend to patch a voidsuit while someone is wearing it?")) return if(!damage || !burn_damage) @@ -202,7 +202,7 @@ var/global/list/breach_burn_descriptors = list( else if(attacking_item.iswelder()) if(istype(src.loc,/mob/living)) - to_chat(user, "How do you intend to patch a voidsuit while someone is wearing it?") + to_chat(user, SPAN_WARNING("How do you intend to patch a voidsuit while someone is wearing it?")) return if (!damage || ! brute_damage) @@ -211,7 +211,7 @@ var/global/list/breach_burn_descriptors = list( var/obj/item/weldingtool/WT = attacking_item if(!WT.use(5)) - to_chat(user, "You need more welding fuel to repair this suit.") + to_chat(user, SPAN_WARNING("You need more welding fuel to repair this suit.")) return repair_breaches(DAMAGE_BRUTE, 3, user) @@ -223,7 +223,7 @@ var/global/list/breach_burn_descriptors = list( . = ..() if(can_breach && breaches && breaches.len) for(var/datum/breach/B in breaches) - . += "It has \a [B.descriptor]." + . += SPAN_DANGER("It has \a [B.descriptor].") /obj/item/clothing/suit/space/get_pressure_weakness(pressure) . = ..() diff --git a/code/modules/clothing/spacesuits/rig/modules/computer.dm b/code/modules/clothing/spacesuits/rig/modules/computer.dm index 2f1496f8682..833260b19d3 100644 --- a/code/modules/clothing/spacesuits/rig/modules/computer.dm +++ b/code/modules/clothing/spacesuits/rig/modules/computer.dm @@ -208,8 +208,8 @@ else user.drop_from_inventory(ai,src) ai_card = ai - to_chat(ai_mob, "You have been transferred to \the [holder]'s [src].") - to_chat(user, "You load [ai_mob] into \the [holder]'s [src].") + to_chat(ai_mob, SPAN_NOTICE("You have been transferred to \the [holder]'s [src].")) + to_chat(user, SPAN_NOTICE("You load [ai_mob] into \the [holder]'s [src].")) integrated_ai = ai_mob diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm index 7a55dcc371a..6d71d102c5a 100644 --- a/code/modules/clothing/spacesuits/rig/rig.dm +++ b/code/modules/clothing/spacesuits/rig/rig.dm @@ -113,7 +113,7 @@ if(src.loc == usr) . += "The maintenance panel is [open ? "open" : "closed"]." - . += "Hardsuit systems are [offline ? "offline" : "online"]." + . += "Hardsuit systems are [offline ? SPAN_WARNING("offline") : SPAN_GOOD("online")]." /obj/item/rig/Initialize() . = ..() @@ -235,7 +235,7 @@ // Seal toggling can be initiated by the suit AI, too if(!wearer) - to_chat(initiator, "Cannot toggle suit: The suit is currently not being worn by anyone.") + to_chat(initiator, SPAN_DANGER("Cannot toggle suit: The suit is currently not being worn by anyone.")) return 0 if(!check_power_cost(wearer)) @@ -269,9 +269,11 @@ if(!failed_to_seal) if(!instant) - wearer.visible_message("[wearer]'s suit emits a quiet hum as it begins to adjust its seals.","With a quiet hum, the suit begins running checks and adjusting components.") + wearer.visible_message(SPAN_NOTICE("[wearer]'s suit emits a quiet hum as it begins to adjust its seals."), + SPAN_NOTICE("With a quiet hum, the suit begins running checks and adjusting components.")) + if(seal_delay && !do_after(wearer, seal_delay, src, do_flags = DO_DEFAULT & ~DO_USER_SAME_HAND)) - if(wearer) to_chat(wearer, "You must remain still while the suit is adjusting the components.") + if(wearer) to_chat(wearer, SPAN_WARNING("You must remain still while the suit is adjusting the components.")) playsound(src, 'sound/items/rfd_empty.ogg', 20, FALSE) failed_to_seal = 1 @@ -293,7 +295,7 @@ continue if(!istype(wearer) || !istype(piece) || !istype(compare_piece) || !msg_type) - if(wearer) to_chat(wearer, "You must remain still while the suit is adjusting the components.") + if(wearer) to_chat(wearer, SPAN_WARNING("You must remain still while the suit is adjusting the components.")) playsound(src, 'sound/items/rfd_empty.ogg', 20, FALSE) failed_to_seal = 1 break @@ -307,13 +309,13 @@ piece.item_state = "[initial(icon_state)][!seal_target ? "_sealed" : ""]" switch(msg_type) if("boots") - to_chat(wearer, "\The [piece] [!seal_target ? "seal around your feet" : "relax their grip on your legs"].") + to_chat(wearer, SPAN_NOTICE("\The [piece] [!seal_target ? "seal around your feet" : "relax their grip on your legs"].")) wearer.update_inv_shoes() if("gloves") - to_chat(wearer, "\The [piece] [!seal_target ? "tighten around your fingers and wrists" : "become loose around your fingers"].") + to_chat(wearer, SPAN_NOTICE("\The [piece] [!seal_target ? "tighten around your fingers and wrists" : "become loose around your fingers"].")) wearer.update_inv_gloves() if("chest") - to_chat(wearer, "\The [piece] [!seal_target ? "cinches your chest tightly" : "releases your chest"].") + to_chat(wearer, SPAN_NOTICE("\The [piece] [!seal_target ? "cinches your chest tightly" : "releases your chest"].")) if(has_hidden_jumpsuit) if(!seal_target) piece.flags_inv |= HIDEJUMPSUIT @@ -321,7 +323,7 @@ piece.flags_inv &= ~HIDEJUMPSUIT wearer.update_inv_wear_suit() if("helmet") - to_chat(wearer, "\The [piece] hisses [!seal_target ? "closed" : "open"].") + to_chat(wearer, SPAN_NOTICE("\The [piece] hisses [!seal_target ? "closed" : "open"].")) wearer.update_inv_head() if(helmet) helmet.update_light(wearer) @@ -355,7 +357,7 @@ // Success! canremove = seal_target - to_chat(wearer, "Your entire suit [canremove ? "loosens as the components relax" : "tightens around you as the components lock into place"].") + to_chat(wearer, SPAN_NOTICE("Your entire suit [canremove ? "loosens as the components relax" : "tightens around you as the components lock into place"].")) playsound(src, 'sound/items/rped.ogg', 20, FALSE) if (has_sealed_state) icon_state = canremove ? initial(icon_state) : "[initial(icon_state)]_sealed" @@ -365,7 +367,7 @@ crushing = TRUE if(wearer != initiator) - to_chat(initiator, "Suit adjustment complete. Suit is now [canremove ? "unsealed" : "sealed"].") + to_chat(initiator, SPAN_NOTICE("Suit adjustment complete. Suit is now [canremove ? "unsealed" : "sealed"].")) if(canremove) for(var/obj/item/rig_module/module in installed_modules) @@ -410,13 +412,13 @@ playsound(src, 'sound/machines/rig/rig_shutdown.ogg', 20, FALSE) if(!canremove) if (offline_slowdown < 3) - to_chat(wearer, "Your suit beeps stridently, and suddenly goes dead.") + to_chat(wearer, SPAN_DANGER("Your suit beeps stridently, and suddenly goes dead.")) else - to_chat(wearer, "Your suit beeps stridently, and suddenly you're wearing a leaden mass of metal and plastic composites instead of a powered suit.") + to_chat(wearer, SPAN_DANGER("Your suit beeps stridently, and suddenly you're wearing a leaden mass of metal and plastic composites instead of a powered suit.")) if(offline_vision_restriction == 1) - to_chat(wearer, "The suit optics flicker and die, leaving you with restricted vision.") + to_chat(wearer, SPAN_DANGER("The suit optics flicker and die, leaving you with restricted vision.")) else if(offline_vision_restriction == 2) - to_chat(wearer, "The suit optics drop out completely, drowning you in darkness.") + to_chat(wearer, SPAN_DANGER("The suit optics drop out completely, drowning you in darkness.")) if(!offline) offline = 1 else @@ -464,17 +466,17 @@ if(!user_is_ai) var/mob/living/carbon/human/H = user if(istype(H) && H.back != src) - fail_msg = "You must be wearing \the [src] to do this." + fail_msg = SPAN_WARNING("You must be wearing \the [src] to do this.") else if(user.incorporeal_move) - fail_msg = "You must be solid to do this." + fail_msg = SPAN_WARNING("You must be solid to do this.") if(sealing) - fail_msg = "The hardsuit is in the process of adjusting seals and cannot be activated." + fail_msg = SPAN_WARNING("The hardsuit is in the process of adjusting seals and cannot be activated.") else if(!fail_msg && ((use_unconcious && user.stat > 1) || (!use_unconcious && user.stat))) - fail_msg = "You are in no fit state to do that." + fail_msg = SPAN_WARNING("You are in no fit state to do that.") else if(!cell) - fail_msg = "There is no cell installed in the suit." + fail_msg = SPAN_WARNING("There is no cell installed in the suit.") else if(cost && cell.charge < cost * 10) //TODO: Cellrate? - fail_msg = "Not enough stored power." + fail_msg = SPAN_WARNING("Not enough stored power.") if(fail_msg) to_chat(user, "[fail_msg]") @@ -606,11 +608,11 @@ if(user.back != src) return 0 else if(!src.allowed(user)) - to_chat(user, "Unauthorized user. Access denied.") + to_chat(user, SPAN_DANGER("Unauthorized user. Access denied.")) return 0 else if(!ai_override_enabled) - to_chat(user, "Synthetic access disabled. Please consult hardware provider.") + to_chat(user, SPAN_DANGER("Synthetic access disabled. Please consult hardware provider.")) return 0 return 1 @@ -747,11 +749,11 @@ if(!wearer.equip_to_slot_if_possible(use_obj, equip_to, 0, 1)) use_obj.forceMove(src) if(check_slot) - to_chat(initiator, "You are unable to deploy \the [piece] as \the [check_slot] [check_slot.gender == PLURAL ? "are" : "is"] in the way.") + to_chat(initiator, SPAN_DANGER("You are unable to deploy \the [piece] as \the [check_slot] [check_slot.gender == PLURAL ? "are" : "is"] in the way.")) playsound(src, 'sound/items/rfd_empty.ogg', 20, FALSE) return else - to_chat(wearer, "Your [use_obj.name] [use_obj.gender == PLURAL ? "deploy" : "deploys"] swiftly.") + to_chat(wearer, SPAN_NOTICE("Your [use_obj.name] [use_obj.gender == PLURAL ? "deploy" : "deploys"] swiftly.")) playsound(src, 'sound/machines/rig/rig_deploy.ogg', 20, FALSE) if(piece == "helmet" && helmet) @@ -888,17 +890,17 @@ if(wearer) if(dam_module.damage >= 2) - to_chat(wearer, "The [source] has disabled your [dam_module.interface_name]!") + to_chat(wearer, SPAN_DANGER("The [source] has disabled your [dam_module.interface_name]!")) else - to_chat(wearer, "The [source] has damaged your [dam_module.interface_name]!") + to_chat(wearer, SPAN_WARNING("The [source] has damaged your [dam_module.interface_name]!")) dam_module.deactivate() /obj/item/rig/proc/malfunction_check(var/mob/living/carbon/human/user) if(malfunction_delay) if(offline) - to_chat(user, "The suit is completely unresponsive.") + to_chat(user, SPAN_DANGER("The suit is completely unresponsive.")) else - to_chat(user, "ERROR: Hardware fault. Rebooting interface...") + to_chat(user, SPAN_DANGER("ERROR: Hardware fault. Rebooting interface...")) return 1 return 0 @@ -922,17 +924,17 @@ return 0 var/obj/item/rig_module/ai_container/module = user.loc.loc if(!istype(module) || module.damage >= 2) - to_chat(user, "Your host module is unable to interface with the suit.") + to_chat(user, SPAN_WARNING("Your host module is unable to interface with the suit.")) return 0 if(offline || !cell || !cell.charge || locked_down) - if(user) to_chat(user, "Your host rig is unpowered and unresponsive.") + if(user) to_chat(user, SPAN_WARNING("Your host rig is unpowered and unresponsive.")) return 0 if(!wearer || wearer.back != src) - if(user) to_chat(user, "Your host rig is not being worn.") + if(user) to_chat(user, SPAN_WARNING("Your host rig is not being worn.")) return 0 if(!wearer.stat && !control_overridden && !ai_override_enabled) - if(user) to_chat(user, "You are locked out of the suit servo controller.") + if(user) to_chat(user, SPAN_WARNING("You are locked out of the suit servo controller.")) return 0 return 1 @@ -940,7 +942,7 @@ if(!ai_can_move_suit(user, check_user_module = 1)) return wearer.lay_down() - to_chat(user, "\The [wearer] is now [wearer.resting ? "resting" : "getting up"].") + to_chat(user, SPAN_NOTICE("\The [wearer] is now [wearer.resting ? "resting" : "getting up"].")) /obj/item/rig/proc/forced_move(var/direction, var/mob/user) // Why is all this shit in client/Move()? Who knows? @@ -982,7 +984,7 @@ for(var/mob/M in range(wearer, 1)) if(M.pulling == wearer) if(!M.restrained() && M.stat == 0 && M.canmove && wearer.Adjacent(M)) - to_chat(user, "Your host is restrained! They can't move!") + to_chat(user, SPAN_NOTICE("Your host is restrained! They can't move!")) return 0 else M.stop_pulling() diff --git a/code/modules/clothing/spacesuits/rig/rig_attackby.dm b/code/modules/clothing/spacesuits/rig/rig_attackby.dm index 022b877a5cc..de51c7cb4d4 100644 --- a/code/modules/clothing/spacesuits/rig/rig_attackby.dm +++ b/code/modules/clothing/spacesuits/rig/rig_attackby.dm @@ -14,16 +14,16 @@ if(attacking_item.GetID()) if(subverted) locked = 0 - to_chat(user, "It looks like the locking system has been shorted out.") + to_chat(user, SPAN_DANGER("It looks like the locking system has been shorted out.")) return if((!req_access || !req_access.len) && (!req_one_access || !req_one_access.len)) locked = 0 - to_chat(user, "\The [src] doesn't seem to have a locking mechanism.") + to_chat(user, SPAN_DANGER("\The [src] doesn't seem to have a locking mechanism.")) return if(security_check_enabled && locked && !src.allowed(user)) - to_chat(user, "Access denied.") + to_chat(user, SPAN_DANGER("Access denied.")) return locked = !locked @@ -71,7 +71,7 @@ if(istype(src.loc,/mob/living/carbon/human)) var/mob/living/carbon/human/H = src.loc if(H.back == src) - to_chat(user, "You can't install a hardsuit module while the suit is being worn.") + to_chat(user, SPAN_DANGER("You can't install a hardsuit module while the suit is being worn.")) return 1 if(!installed_modules) installed_modules = list() @@ -215,7 +215,7 @@ req_one_access.Cut() locked = 0 subverted = 1 - to_chat(user, "You short out the access protocol for the suit.") + to_chat(user, SPAN_DANGER("You short out the access protocol for the suit.")) return 1 /obj/item/rig/proc/get_module_category(var/category) diff --git a/code/modules/clothing/spacesuits/void/void.dm b/code/modules/clothing/spacesuits/void/void.dm index 620a7949763..7e69f45b2ad 100644 --- a/code/modules/clothing/spacesuits/void/void.dm +++ b/code/modules/clothing/spacesuits/void/void.dm @@ -192,13 +192,13 @@ if(H.wear_suit != src) return if(H.head == helmet) - to_chat(H, "You retract your suit helmet.") + to_chat(H, SPAN_NOTICE("You retract your suit helmet.")) playsound(loc, helmet_retract_sound, 30) helmet.canremove = 1 H.drop_from_inventory(helmet,src) else if(H.head) - to_chat(H, "You cannot deploy your helmet while wearing \the [H.head].") + to_chat(H, SPAN_DANGER("You cannot deploy your helmet while wearing \the [H.head].")) return if(H.equip_to_slot_if_possible(helmet, slot_head)) helmet.pickup(H) diff --git a/code/modules/clothing/suits/armor.dm b/code/modules/clothing/suits/armor.dm index 0f38038ddc8..7bdfeee8071 100644 --- a/code/modules/clothing/suits/armor.dm +++ b/code/modules/clothing/suits/armor.dm @@ -152,7 +152,7 @@ /obj/item/clothing/suit/armor/reactive/handle_shield(mob/user, var/on_back, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack") if(prob(50)) - user.visible_message("The reactive teleport system flings [user] clear of the attack!") + user.visible_message(SPAN_DANGER("The reactive teleport system flings [user] clear of the attack!")) var/list/turfs = new/list() for(var/turf/T in orange(6, user)) if(istype(T,/turf/space)) continue @@ -174,11 +174,11 @@ /obj/item/clothing/suit/armor/reactive/attack_self(mob/user as mob) src.active = !( src.active ) if (src.active) - to_chat(user, "The reactive armor is now active.") + to_chat(user, SPAN_NOTICE("The reactive armor is now active.")) src.icon_state = "reactive" src.item_state = "reactive" else - to_chat(user, "The reactive armor is now inactive.") + to_chat(user, SPAN_NOTICE("The reactive armor is now inactive.")) src.icon_state = "reactiveoff" src.item_state = "reactiveoff" src.add_fingerprint(user) @@ -238,17 +238,17 @@ if(!holster.holstered) var/obj/item/W = usr.get_active_hand() if(!istype(W, /obj/item)) - to_chat(usr, "You need your gun equiped to holster it.") + to_chat(usr, SPAN_WARNING("You need your gun equiped to holster it.")) return holster.holster(W, usr) else - to_chat(usr, "There's already a gun in the holster, you need an empty hand to draw it.") + to_chat(usr, SPAN_WARNING("There's already a gun in the holster, you need an empty hand to draw it.")) return else if(holster.holstered) holster.unholster(usr) else - to_chat(usr, "There's no gun in the holster to draw.") + to_chat(usr, SPAN_WARNING("There's no gun in the holster to draw.")) //Non-hardsuit ERT armor. diff --git a/code/modules/clothing/suits/utility.dm b/code/modules/clothing/suits/utility.dm index 0840315cdb1..8e6673f5ab9 100644 --- a/code/modules/clothing/suits/utility.dm +++ b/code/modules/clothing/suits/utility.dm @@ -120,7 +120,9 @@ /obj/item/clothing/suit/bomb_suit/equipped(var/mob/user, var/slot) if (slot == slot_wear_suit) var/mob/living/carbon/human/H = user - H.visible_message("[H] starts putting on \the [src]...", "You start putting on \the [src]...") + H.visible_message(SPAN_NOTICE("[H] starts putting on \the [src]..."), + SPAN_NOTICE("You start putting on \the [src]...")) + if(!do_after(H,50)) if(H && H.wear_suit == src) H.wear_suit = null @@ -130,7 +132,7 @@ return wearer = user - to_chat(wearer, "You struggle into the [src]. It feels hot, heavy and uncomfortable") + to_chat(wearer, SPAN_NOTICE("You struggle into the [src]. It feels hot, heavy and uncomfortable")) START_PROCESSING(SSprocessing, src) else wearer = null diff --git a/code/modules/clothing/under/accessories/accessory.dm b/code/modules/clothing/under/accessories/accessory.dm index 6994c64735e..11a4d91bd0c 100644 --- a/code/modules/clothing/under/accessories/accessory.dm +++ b/code/modules/clothing/under/accessories/accessory.dm @@ -90,7 +90,7 @@ loc = has_suit has_suit.AddOverlays(get_inv_overlay()) if(user) - to_chat(user, "You attach \the [src] to \the [has_suit].") + to_chat(user, SPAN_NOTICE("You attach \the [src] to \the [has_suit].")) src.add_fingerprint(user) update_light() @@ -396,7 +396,7 @@ if(allow_tail_hiding) flags_inv ^= HIDETAIL - to_chat(usr, "[src] will now [flags_inv & HIDETAIL ? "hide" : "show"] your tail.") + to_chat(usr, SPAN_NOTICE("[src] will now [flags_inv & HIDETAIL ? "hide" : "show"] your tail.")) /obj/item/clothing/accessory/poncho/big name = "large poncho" diff --git a/code/modules/clothing/under/accessories/badges.dm b/code/modules/clothing/under/accessories/badges.dm index 9b86cdb9032..50d2452365e 100644 --- a/code/modules/clothing/under/accessories/badges.dm +++ b/code/modules/clothing/under/accessories/badges.dm @@ -66,18 +66,23 @@ if(isliving(user)) if(badge_string) if(stored_name) - user.visible_message("[user] displays their [src.name].\nIt reads: [stored_name], [badge_string].","You display your [src.name].\nIt reads: [stored_name], [badge_string].") + user.visible_message(SPAN_NOTICE("[user] displays their [src.name].\nIt reads: [stored_name], [badge_string]."), + SPAN_NOTICE("You display your [src.name].\nIt reads: [stored_name], [badge_string].")) else - user.visible_message("[user] displays their [src.name].\nIt reads: [badge_string].","You display your [src.name]. It reads: [badge_string].") + user.visible_message(SPAN_NOTICE("[user] displays their [src.name].\nIt reads: [badge_string]."), + SPAN_NOTICE("You display your [src.name]. It reads: [badge_string].")) else if(stored_name) - user.visible_message("[user] displays their [src.name].\nIt reads: [stored_name].","You display your [src.name].\nIt reads: [stored_name].") + user.visible_message(SPAN_NOTICE("[user] displays their [src.name].\nIt reads: [stored_name]."), + SPAN_NOTICE("You display your [src.name].\nIt reads: [stored_name].")) else - user.visible_message("[user] displays their [src.name].","You display your [src.name].") + user.visible_message(SPAN_NOTICE("[user] displays their [src.name]."), + SPAN_NOTICE("You display your [src.name].")) /obj/item/clothing/accessory/badge/attack(mob/living/carbon/human/M, mob/living/user) if(isliving(user)) - user.visible_message("[user] invades [M]'s personal space, thrusting [src] into their face insistently.","You invade [M]'s personal space, thrusting [src] into their face insistently.") + user.visible_message(SPAN_DANGER("[user] invades [M]'s personal space, thrusting [src] into their face insistently."), + SPAN_DANGER("You invade [M]'s personal space, thrusting [src] into their face insistently.")) /obj/item/clothing/accessory/badge/verb/flip_side() set category = "Object" @@ -134,11 +139,11 @@ /obj/item/clothing/accessory/badge/holo/emag_act(var/remaining_charges, var/mob/user) if (emagged) - to_chat(user, "\The [src] is already cracked.") + to_chat(user, SPAN_DANGER("\The [src] is already cracked.")) return else emagged = 1 - to_chat(user, "You crack the holobadge security checks.") + to_chat(user, SPAN_DANGER("You crack the holobadge security checks.")) return 1 /obj/item/clothing/accessory/badge/holo/attackby(obj/item/attacking_item, mob/user) diff --git a/code/modules/clothing/under/accessories/holster.dm b/code/modules/clothing/under/accessories/holster.dm index 74b34112af5..61c322b9301 100644 --- a/code/modules/clothing/under/accessories/holster.dm +++ b/code/modules/clothing/under/accessories/holster.dm @@ -29,11 +29,11 @@ /obj/item/clothing/accessory/holster/proc/holster(var/obj/item/I, var/mob/living/user) if(holstered && istype(user)) - to_chat(user, "There is already \a [holstered] holstered here!") + to_chat(user, SPAN_WARNING("There is already \a [holstered] holstered here!")) return if (!(I.slot_flags & SLOT_HOLSTER)) - to_chat(user, "[I] won't fit in [src]!") + to_chat(user, SPAN_WARNING("[I] won't fit in [src]!")) return if(sound_in) @@ -45,7 +45,8 @@ user.drop_from_inventory(holstered, src) holstered.add_fingerprint(user) w_class = max(w_class, holstered.w_class) - user.visible_message("[user] holsters \the [holstered].", "You holster \the [holstered].") + user.visible_message(SPAN_NOTICE("[user] holsters \the [holstered]."), + SPAN_NOTICE("You holster \the [holstered].")) update_name() /obj/item/clothing/accessory/holster/proc/clear_holster() @@ -57,21 +58,21 @@ return if(istype(user.get_active_hand(), /obj) && istype(user.get_inactive_hand(), /obj)) - to_chat(user, "You need an empty hand to draw \the [holstered]!") + to_chat(user, SPAN_WARNING("You need an empty hand to draw \the [holstered]!")) else if (use_check(user)) - to_chat(user, "You can't draw \the [holstered] in your current state!") + to_chat(user, SPAN_WARNING("You can't draw \the [holstered] in your current state!")) else var/sound_vol = 25 if(user.a_intent == I_HURT) sound_vol = 50 user.visible_message( - "[user] draws \the [holstered], ready to shoot!", - "You draw \the [holstered], ready to shoot!" + SPAN_DANGER("[user] draws \the [holstered], ready to shoot!"), + SPAN_WARNING("You draw \the [holstered], ready to shoot!") ) else user.visible_message( - "[user] draws \the [holstered], pointing it at the ground.", - "You draw \the [holstered], pointing it at the ground." + SPAN_NOTICE("[user] draws \the [holstered], pointing it at the ground."), + SPAN_NOTICE("You draw \the [holstered], pointing it at the ground.") ) if(sound_out) @@ -137,12 +138,12 @@ H = tacticool.holster if (!H) - to_chat(usr, "Something is very wrong.") + to_chat(usr, SPAN_WARNING("Something is very wrong.")) if(!H.holstered) var/obj/item/W = usr.get_active_hand() if(!istype(W, /obj/item)) - to_chat(usr, "You need your gun equipped to holster it.") + to_chat(usr, SPAN_WARNING("You need your gun equipped to holster it.")) return H.holster(W, usr) else diff --git a/code/modules/custom_ka/cells.dm b/code/modules/custom_ka/cells.dm index 23c54c3b10d..aa99a42c660 100644 --- a/code/modules/custom_ka/cells.dm +++ b/code/modules/custom_ka/cells.dm @@ -212,16 +212,16 @@ var/amount_to_take = 1 if(stored_charge + charge_per_sheet > cell_increase) - to_chat(user,"You can't put any more [attacking_item] into \the [src].") + to_chat(user,SPAN_NOTICE("You can't put any more [attacking_item] into \the [src].")) return amount_to_take = min(amount_to_take,the_sheet.amount) the_sheet.amount -= amount_to_take stored_charge += amount_to_take*charge_per_sheet - user.visible_message("\The [user] inserts a sheet [attacking_item] into \the [src].", \ - "You insert a sheet of [attacking_item]s into \the [src].", \ - "You hear mechanical whirring.") + user.visible_message(SPAN_NOTICE("\The [user] inserts a sheet [attacking_item] into \the [src]."), \ + SPAN_NOTICE("You insert a sheet of [attacking_item]s into \the [src]."), \ + SPAN_NOTICE("You hear mechanical whirring.")) if(the_sheet.amount <= 0) diff --git a/code/modules/custom_ka/core.dm b/code/modules/custom_ka/core.dm index bd11466cec3..5cbff55856b 100644 --- a/code/modules/custom_ka/core.dm +++ b/code/modules/custom_ka/core.dm @@ -103,7 +103,7 @@ return round(installed_cell.stored_charge / cost_increase) /obj/item/gun/custom_ka/emag_act(var/remaining_charges, var/mob/user, var/emag_source) - to_chat(user,"You override the safeties on the [src]...") + to_chat(user,SPAN_WARNING("You override the safeties on the [src]...")) is_emagged = 1 return 1 @@ -116,7 +116,7 @@ /obj/item/gun/custom_ka/Fire(atom/target, mob/living/user, clickparams, pointblank=0, reflex=0) if(require_wield && !wielded) - to_chat(user,"\The [src] is too heavy to fire with one hand!") + to_chat(user,SPAN_WARNING("\The [src] is too heavy to fire with one hand!")) return if(!fire_checks(target,user,clickparams,pointblank,reflex)) @@ -181,13 +181,13 @@ else switch(disaster) if("spark") - to_chat(user,"\The [src] sparks!") + to_chat(user,SPAN_DANGER("\The [src] sparks!")) spark(src.loc, 3, GLOB.alldirs) if("overheat") - to_chat(user,"\The [src] turns red hot!") + to_chat(user,SPAN_DANGER("\The [src] turns red hot!")) user.IgniteMob() if("explode") - to_chat(user,"\The [src] violently explodes!") + to_chat(user,SPAN_DANGER("\The [src] violently explodes!")) explosion(get_turf(src.loc), 0, 1, 2, 4) qdel(src) @@ -389,7 +389,7 @@ . = ..() if(!wielded) - to_chat(user,"You must be holding \the [src] with two hands to do this!") + to_chat(user,SPAN_WARNING("You must be holding \the [src] with two hands to do this!")) return if(installed_cell) @@ -577,8 +577,8 @@ /obj/item/device/kinetic_analyzer/afterattack(var/atom/target, var/mob/living/user, proximity, params) user.visible_message( - "\The [user] scans \the [target] with \the [src].", - "You scan \the [target] with \the [src].") + SPAN_WARNING("\The [user] scans \the [target] with \the [src]."), + SPAN_ALERT("You scan \the [target] with \the [src].")) if(istype(target,/obj/item/gun/custom_ka)) playsound(src, 'sound/machines/ping.ogg', 10, 1) @@ -596,8 +596,8 @@ Software Version: [ka.mod_limit_increase].[ka.mod_limit_increase*32 % 10].[ka.mod_limit_increase*64 % 324]
\ Available Power Flow: [ka.capacity_increase*10]kW
" - to_chat(user,"[total_message]") + to_chat(user,SPAN_NOTICE("[total_message]")) else - to_chat(user,"Nothing happens.") + to_chat(user,SPAN_NOTICE("Nothing happens.")) user.setClickCooldown(DEFAULT_QUICK_COOLDOWN) diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm index a2daeecad01..26a6f584b32 100644 --- a/code/modules/customitems/item_defines.dm +++ b/code/modules/customitems/item_defines.dm @@ -146,9 +146,9 @@ All custom items with worn sprites must follow the contained sprite system: http /obj/item/clothing/mask/fluff/corvo_cigarette/attack_self(mob/user) active= !active if(active) - to_chat(user, "You turn \the [src] on.") + to_chat(user, SPAN_NOTICE("You turn \the [src] on.")) else - to_chat(user, "You turn \the [src] off.") + to_chat(user, SPAN_NOTICE("You turn \the [src] off.")) update_icon() user.update_inv_l_hand(FALSE) @@ -379,12 +379,12 @@ All custom items with worn sprites must follow the contained sprite system: http active= !active if(active) playsound(user, 'sound/weapons/saberon.ogg', 50, 1) - to_chat(user, "\The [src] is now energised.") + to_chat(user, SPAN_NOTICE("\The [src] is now energised.")) item_state = icon_state w_class = ITEMSIZE_LARGE else playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) - to_chat(user, "\The [src] is now de-energised..") + to_chat(user, SPAN_NOTICE("\The [src] is now de-energised..")) w_class = initial(w_class) update_icon() @@ -495,7 +495,7 @@ All custom items with worn sprites must follow the contained sprite system: http /obj/item/fluff/tokash_spear/attackby(var/obj/item/W, var/mob/user) if(!has_spear && istype(W, /obj/item/fluff/tokash_spearhead)) - to_chat(user, "You place \the [W] on the [src].") + to_chat(user, SPAN_NOTICE("You place \the [W] on the [src].")) user.drop_from_inventory(W,src) qdel(W) has_spear = TRUE @@ -582,7 +582,7 @@ All custom items with worn sprites must follow the contained sprite system: http /obj/item/device/synthesized_instrument/guitar/multi/fluff/akinyi_symphette/AltClick(var/mob/user) deployed = !deployed - to_chat(user, "You [deployed ? "expand" : "collapse"] \the [src].") + to_chat(user, SPAN_NOTICE("You [deployed ? "expand" : "collapse"] \the [src].")) update_icon() user.update_inv_l_hand() user.update_inv_r_hand() @@ -832,7 +832,7 @@ All custom items with worn sprites must follow the contained sprite system: http if(!proximity) return if (istype(A, /turf/simulated/floor)) - user.visible_message("[user] loudly taps their [src.name] against the floor.") + user.visible_message(SPAN_NOTICE("[user] loudly taps their [src.name] against the floor.")) playsound(user.loc, 'sound/effects/shieldbash.ogg', 50, 1) return @@ -860,9 +860,9 @@ All custom items with worn sprites must follow the contained sprite system: http /obj/item/fluff/cress_book/attack_self(mob/user) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) - user.visible_message("[user] begins searching through \the [src]'s pages...") + user.visible_message(SPAN_NOTICE("[user] begins searching through \the [src]'s pages...")) if(do_after(user, 25)) - to_chat(user, "You pick out a song in the folder and read the lyrics: [pick(lyrics)]") + to_chat(user, SPAN_NOTICE("You pick out a song in the folder and read the lyrics: [pick(lyrics)]")) /obj/item/clothing/accessory/poncho/fluff/ozuha_cape //Victory Cape - Skavoss Ozuha - dronzthewolf diff --git a/code/modules/detectivework/microscope/dnascanner.dm b/code/modules/detectivework/microscope/dnascanner.dm index ebc303ab0a4..70c1e4fc7e2 100644 --- a/code/modules/detectivework/microscope/dnascanner.dm +++ b/code/modules/detectivework/microscope/dnascanner.dm @@ -18,11 +18,11 @@ /obj/machinery/dnaforensics/attackby(obj/item/attacking_item, mob/user) if(bloodsamp) - to_chat(user, "There is already a sample in the machine.") + to_chat(user, SPAN_WARNING("There is already a sample in the machine.")) return if(closed) - to_chat(user, "Open the cover before inserting the sample.") + to_chat(user, SPAN_WARNING("Open the cover before inserting the sample.")) return var/obj/item/forensics/swab/swab = attacking_item @@ -30,9 +30,9 @@ user.unEquip(attacking_item) src.bloodsamp = swab swab.forceMove(src) - to_chat(user, "You insert \the [attacking_item] into \the [src].") + to_chat(user, SPAN_NOTICE("You insert \the [attacking_item] into \the [src].")) else - to_chat(user, "\The [src] only accepts used swabs.") + to_chat(user, SPAN_WARNING("\The [src] only accepts used swabs.")) return /obj/machinery/dnaforensics/ui_interact(mob/user, ui_key = "main",var/datum/nanoui/ui = null) @@ -67,12 +67,12 @@ if(closed == 1) scanner_progress = 0 scanning = 1 - to_chat(usr, "Scan initiated.") + to_chat(usr, SPAN_NOTICE("Scan initiated.")) update_icon() else - to_chat(usr, "Please close sample lid before initiating scan.") + to_chat(usr, SPAN_NOTICE("Please close sample lid before initiating scan.")) else - to_chat(usr, "Insert an item to scan.") + to_chat(usr, SPAN_WARNING("Insert an item to scan.")) if(href_list["ejectItem"]) if(bloodsamp) @@ -142,7 +142,7 @@ return if(scanning) - to_chat(usr, "You can't do that while [src] is scanning!") + to_chat(usr, SPAN_WARNING("You can't do that while [src] is scanning!")) return closed = !closed diff --git a/code/modules/detectivework/tools/evidencebag.dm b/code/modules/detectivework/tools/evidencebag.dm index 84b06e6e09b..bc46cc4b06b 100644 --- a/code/modules/detectivework/tools/evidencebag.dm +++ b/code/modules/detectivework/tools/evidencebag.dm @@ -48,15 +48,15 @@ return if(istype(I, /obj/item/evidencebag)) - to_chat(user, "You find putting a plastic bag in another plastic bag to be slightly absurd and think better of it.") + to_chat(user, SPAN_NOTICE("You find putting a plastic bag in another plastic bag to be slightly absurd and think better of it.")) return if(I.w_class > 3) - to_chat(user, "[I] won't fit in [src].") + to_chat(user, SPAN_NOTICE("[I] won't fit in [src].")) return if(contents.len) - to_chat(user, "[src] already has something inside it.") + to_chat(user, SPAN_NOTICE("[src] already has something inside it.")) return user.visible_message("[user] puts \the [I] into \the [src].", SPAN_NOTICE("You put \the [I] inside \the [src]."),\ @@ -106,7 +106,7 @@ if(length(tmp_label) > MAX_NAME_LEN) to_chat(user, SPAN_NOTICE("The label can be at most [MAX_NAME_LEN] characters long.")) else - to_chat(user, "You set the label to \"[tmp_label]\".") + to_chat(user, SPAN_NOTICE("You set the label to \"[tmp_label]\".")) label_text = tmp_label update_name_label() return diff --git a/code/modules/economy/cash.dm b/code/modules/economy/cash.dm index eef5655309f..12dd5bc7251 100644 --- a/code/modules/economy/cash.dm +++ b/code/modules/economy/cash.dm @@ -38,7 +38,7 @@ h_user.drop_from_inventory(src) h_user.drop_from_inventory(bundle) h_user.put_in_hands(bundle) - to_chat(user, "You add [src.worth] credits worth of money to the bundles.
It holds [bundle.worth] credits now.
") + to_chat(user, SPAN_NOTICE("You add [src.worth] credits worth of money to the bundles.
It holds [bundle.worth] credits now.")) qdel(src) /obj/item/spacecash/bundle @@ -202,16 +202,16 @@ /obj/item/spacecash/ewallet/lotto/attack_self(mob/user) if(scratches_remaining <= 0) - to_chat(user, "The card flashes: \"No scratches remaining!\"") + to_chat(user, SPAN_WARNING("The card flashes: \"No scratches remaining!\"")) return if(next_scratch > world.time) - to_chat(user, "The card flashes: \"Please wait!\"") + to_chat(user, SPAN_WARNING("The card flashes: \"Please wait!\"")) return next_scratch = world.time + 6 SECONDS - to_chat(user, "You initiate the simulated scratch action process on the [src]...") + to_chat(user, SPAN_NOTICE("You initiate the simulated scratch action process on the [src]...")) playsound(src.loc, 'sound/items/drumroll.ogg', 20, 0, -4) if(do_after(user,4.5 SECONDS)) var/won = 0 @@ -252,9 +252,9 @@ worth += won sleep(1 SECONDS) if(scratches_remaining > 0) - to_chat(user, "The card flashes: You have: [scratches_remaining] SCRATCHES remaining! Scratch again!") + to_chat(user, SPAN_NOTICE("The card flashes: You have: [scratches_remaining] SCRATCHES remaining! Scratch again!")) else - to_chat(user, "The card flashes: You have: [scratches_remaining] SCRATCHES remaining! You won a total of: [worth] CREDITS. Thanks for playing the space lottery!") + to_chat(user, SPAN_NOTICE("The card flashes: You have: [scratches_remaining] SCRATCHES remaining! You won a total of: [worth] CREDITS. Thanks for playing the space lottery!")) owner_name = user.name diff --git a/code/modules/emotes/definitions/audible.dm b/code/modules/emotes/definitions/audible.dm index 5f98e5c617e..67c3c8ed6de 100644 --- a/code/modules/emotes/definitions/audible.dm +++ b/code/modules/emotes/definitions/audible.dm @@ -200,9 +200,9 @@ /singleton/emote/audible/slap key = "slap" - emote_message_1p_target = "You slap TARGET across the face!" + emote_message_1p_target = SPAN_WARNING("You slap TARGET across the face!") emote_message_1p = "You slap yourself across the face!" - emote_message_3p_target = "USER slaps TARGET across the face!" + emote_message_3p_target = SPAN_WARNING("USER slaps TARGET across the face!") emote_message_3p = "USER slaps USER_SELF across the face!" emote_sound = 'sound/effects/snap.ogg' diff --git a/code/modules/emotes/emote_define.dm b/code/modules/emotes/emote_define.dm index c87c7beaf95..0803b2d5a75 100644 --- a/code/modules/emotes/emote_define.dm +++ b/code/modules/emotes/emote_define.dm @@ -39,7 +39,7 @@ if(ismob(user) && check_restraints) var/mob/M = user if(M.restrained()) - to_chat(user, "You are restrained and cannot do that.") + to_chat(user, SPAN_WARNING("You are restrained and cannot do that.")) return var/atom/target diff --git a/code/modules/emotes/emote_mob.dm b/code/modules/emotes/emote_mob.dm index 14ae2f3fc57..b3e8da95d48 100644 --- a/code/modules/emotes/emote_mob.dm +++ b/code/modules/emotes/emote_mob.dm @@ -57,7 +57,7 @@ if(usr == src) //client-called emote if (client && (client.prefs.muted & MUTE_IC)) - to_chat(src, "You cannot send IC messages (muted).") + to_chat(src, SPAN_WARNING("You cannot send IC messages (muted).")) return if(act == "help") @@ -74,7 +74,7 @@ return if(!can_emote(m_type)) - to_chat(src, "You cannot currently [m_type == AUDIBLE_MESSAGE ? "audibly" : "visually"] emote!") + to_chat(src, SPAN_WARNING("You cannot currently [m_type == AUDIBLE_MESSAGE ? "audibly" : "visually"] emote!")) return if(act == "me") @@ -118,7 +118,7 @@ // Oh shit, we got this far! Let's see... did the user attempt to use more than one token? if(findtext(subtext, anchor_char)) // abort abort! - to_chat(emoter, "You may use only one \"[anchor_char]\" symbol in your emote.") + to_chat(emoter, SPAN_WARNING("You may use only one \"[anchor_char]\" symbol in your emote.")) return if(pretext) @@ -190,7 +190,7 @@ if(src.client) if(src.client.prefs.muted & (MUTE_DEADCHAT|MUTE_IC)) - to_chat(src, "You cannot emote in deadchat (muted).") + to_chat(src, SPAN_WARNING("You cannot emote in deadchat (muted).")) return . = src.emote_dead(message) diff --git a/code/modules/events/comms_blackout.dm b/code/modules/events/comms_blackout.dm index 6aaad221dce..d2e4ed3a712 100644 --- a/code/modules/events/comms_blackout.dm +++ b/code/modules/events/comms_blackout.dm @@ -6,7 +6,7 @@ else // AIs will always know if there's a comm blackout, rogue AIs could then lie about comm blackouts in the future while they shutdown comms for(var/mob/living/silicon/ai/A in GLOB.player_list) to_chat(A, "
") - to_chat(A, "Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you-BZZT") + to_chat(A, SPAN_WARNING("Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you-BZZT")) to_chat(A, "
") for(var/obj/machinery/telecomms/T in SSmachinery.all_telecomms) T.emp_act(EMP_HEAVY) diff --git a/code/modules/events/communications_blackout.dm b/code/modules/events/communications_blackout.dm index cf824d15305..84d2d90439c 100644 --- a/code/modules/events/communications_blackout.dm +++ b/code/modules/events/communications_blackout.dm @@ -12,7 +12,7 @@ for(var/mob/living/silicon/ai/A in GLOB.player_list) //AIs are always aware of communication blackouts. if(A.z in affecting_z) to_chat(A, "
") - to_chat(A, "[alert]") + to_chat(A, SPAN_WARNING("[alert]")) to_chat(A, "
") if(prob(30)) //most of the time, we don't want an announcement, so as to allow AIs to fake blackouts. diff --git a/code/modules/events/prison_break.dm b/code/modules/events/prison_break.dm index 5c2e5550c93..5b449e0a56f 100644 --- a/code/modules/events/prison_break.dm +++ b/code/modules/events/prison_break.dm @@ -55,7 +55,7 @@ for(var/obj/machinery/telecomms/message_server/MS in SSmachinery.all_telecomms) MS.send_rc_message("Engineering", my_department, rc_message, "", "", 2) for(var/mob/living/silicon/ai/A in GLOB.player_list) - to_chat(A, "Malicious program detected in the [english_list(areaName)] lighting and airlock control systems by [my_department].") + to_chat(A, SPAN_DANGER("Malicious program detected in the [english_list(areaName)] lighting and airlock control systems by [my_department].")) else log_world("ERROR: Could not initate grey-tide. Unable to find suitable containment area.") diff --git a/code/modules/flufftext/Dreaming.dm b/code/modules/flufftext/Dreaming.dm index ca8126b41b9..7a1a4488214 100644 --- a/code/modules/flufftext/Dreaming.dm +++ b/code/modules/flufftext/Dreaming.dm @@ -19,7 +19,7 @@ var/list/dreams = list( spawn(0) for(var/i = rand(1,4),i > 0, i--) - to_chat(src, "... [pick(dreams)] ...") + to_chat(src, SPAN_NOTICE("... [pick(dreams)] ...")) sleep(rand(40,70)) if(paralysis <= 0) break diff --git a/code/modules/ghostroles/spawner/human/responseteams/response_team.dm b/code/modules/ghostroles/spawner/human/responseteams/response_team.dm index ae3f965264b..5f01f9ff3a1 100644 --- a/code/modules/ghostroles/spawner/human/responseteams/response_team.dm +++ b/code/modules/ghostroles/spawner/human/responseteams/response_team.dm @@ -21,5 +21,5 @@ /datum/ghostspawner/human/ert/post_spawn(mob/user) if(name) - to_chat(user, "You are [max_count > 1 ? "a" : "the"] [name]!") + to_chat(user, SPAN_DANGER("You are [max_count > 1 ? "a" : "the"] [name]!")) return ..() diff --git a/code/modules/ghostroles/spawner/simplemob/maintdrone.dm b/code/modules/ghostroles/spawner/simplemob/maintdrone.dm index 8e178cf9f6f..c1d29b1e405 100644 --- a/code/modules/ghostroles/spawner/simplemob/maintdrone.dm +++ b/code/modules/ghostroles/spawner/simplemob/maintdrone.dm @@ -46,7 +46,7 @@ all_fabricators[DF.fabricator_tag] = DF if(!all_fabricators.len) - to_chat(user, "There are no available drone spawn points, sorry.") + to_chat(user, SPAN_DANGER("There are no available drone spawn points, sorry.")) return FALSE var/choice = tgui_input_list(user, "Which fabricator do you wish to use?", "Fabricator Selection", all_fabricators) diff --git a/code/modules/ghostroles/spawner/simplemob/simplemob.dm b/code/modules/ghostroles/spawner/simplemob/simplemob.dm index 5ee662bdc21..72278b1c290 100644 --- a/code/modules/ghostroles/spawner/simplemob/simplemob.dm +++ b/code/modules/ghostroles/spawner/simplemob/simplemob.dm @@ -6,7 +6,7 @@ if (T) S = new spawn_mob(T) else - to_chat(user, "Unable to find any spawn point. ") + to_chat(user, SPAN_WARNING("Unable to find any spawn point. ")) return if(S) @@ -17,7 +17,7 @@ else var/mob/living/simple_animal/S = select_spawnatom() if(!S) - to_chat(user, "Unable to find any spawn mob. ") + to_chat(user, SPAN_WARNING("Unable to find any spawn mob. ")) return announce_ghost_joinleave(user, 0, "They are now a [name].") diff --git a/code/modules/ghostroles/spawnpoint/spawnpoint.dm b/code/modules/ghostroles/spawnpoint/spawnpoint.dm index dc8b76ff707..414595eb802 100644 --- a/code/modules/ghostroles/spawnpoint/spawnpoint.dm +++ b/code/modules/ghostroles/spawnpoint/spawnpoint.dm @@ -51,13 +51,13 @@ /obj/effect/ghostspawpoint/attack_ghost(mob/user) if(!ROUND_IS_STARTED) - to_chat(usr, "The round hasn't started yet!") + to_chat(usr, SPAN_DANGER("The round hasn't started yet!")) return ui_interact(user) /obj/effect/ghostspawpoint/attack_hand(mob/user) if(!ROUND_IS_STARTED) - to_chat(usr, "The round hasn't started yet!") + to_chat(usr, SPAN_DANGER("The round hasn't started yet!")) return ui_interact(user) diff --git a/code/modules/hallucinations/types/basic.dm b/code/modules/hallucinations/types/basic.dm index 8d4cc7b3f86..2c364248a05 100644 --- a/code/modules/hallucinations/types/basic.dm +++ b/code/modules/hallucinations/types/basic.dm @@ -266,7 +266,7 @@ "[pal] will keep you safe.", "You feel captivated by [pal]'s charisma.", "[pal] might as well be family to you.") - to_chat(holder, "[pick(halpal_emotes)]") + to_chat(holder, SPAN_DANGER("[pick(halpal_emotes)]")) /datum/hallucination/passive duration = 600 //minute fallback diff --git a/code/modules/heavy_vehicle/equipment/_equipment.dm b/code/modules/heavy_vehicle/equipment/_equipment.dm index cc6a1f26e14..f7ad42b91f5 100644 --- a/code/modules/heavy_vehicle/equipment/_equipment.dm +++ b/code/modules/heavy_vehicle/equipment/_equipment.dm @@ -45,7 +45,7 @@ return 0 if(!(owner.get_cell()?.check_charge(active_power_use * CELLRATE))) - to_chat(user, "The power indicator flashes briefly as you attempt to use \the [src].") + to_chat(user, SPAN_WARNING("The power indicator flashes briefly as you attempt to use \the [src].")) return 0 return 1 else @@ -54,7 +54,7 @@ /obj/item/mecha_equipment/attack_self(var/mob/user) if (owner && loc == owner && ((user in owner.pilots) || user == owner)) if(!(owner.get_cell()?.check_charge(active_power_use * CELLRATE))) - to_chat(user, "The power indicator flashes briefly as you attempt to use \the [src].") + to_chat(user, SPAN_WARNING("The power indicator flashes briefly as you attempt to use \the [src].")) return 0 return 1 else diff --git a/code/modules/heavy_vehicle/equipment/medical.dm b/code/modules/heavy_vehicle/equipment/medical.dm index f6d487a2f98..5e069b3762c 100644 --- a/code/modules/heavy_vehicle/equipment/medical.dm +++ b/code/modules/heavy_vehicle/equipment/medical.dm @@ -56,7 +56,7 @@ return //All good, load the person - visible_message("\The [src] begins loading \the [target] into \the [src].") + visible_message(SPAN_NOTICE("\The [src] begins loading \the [target] into \the [src].")) sleeper.go_in(person_to_load, user) /obj/item/mecha_equipment/sleeper/get_hardpoint_maptext() @@ -94,9 +94,13 @@ if(beaker) beaker.forceMove(get_turf(src)) - user.visible_message("\The [user] removes \the [beaker] from \the [src].", "You remove \the [beaker] from \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] removes \the [beaker] from \the [src]."), + SPAN_NOTICE("You remove \the [beaker] from \the [src].")) + beaker = attacking_item - user.visible_message("\The [user] adds \a [attacking_item] to \the [src].", "You add \a [attacking_item] to \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] adds \a [attacking_item] to \the [src]."), + SPAN_NOTICE("You add \a [attacking_item] to \the [src].")) + return TRUE /obj/item/mecha_equipment/crisis_drone @@ -225,7 +229,7 @@ /obj/item/mecha_equipment/crisis_drone/proc/shut_down() if(enabled) - owner.visible_message("\The [owner]'s [src] buzzes as its drone returns to port.") + owner.visible_message(SPAN_NOTICE("\The [owner]'s [src] buzzes as its drone returns to port.")) toggle_drone() if(!isnull(Target)) Target = null diff --git a/code/modules/heavy_vehicle/equipment/utility.dm b/code/modules/heavy_vehicle/equipment/utility.dm index e7cb579383e..ac5c0d27bee 100644 --- a/code/modules/heavy_vehicle/equipment/utility.dm +++ b/code/modules/heavy_vehicle/equipment/utility.dm @@ -299,7 +299,7 @@ . = ..() if(.) mode = mode == CATAPULT_SINGLE ? CATAPULT_AREA : CATAPULT_SINGLE - to_chat(user, "You set \the [src] to [mode == CATAPULT_SINGLE ? "single" : "multi"]-target mode.") + to_chat(user, SPAN_NOTICE("You set \the [src] to [mode == CATAPULT_SINGLE ? "single" : "multi"]-target mode.")) update_icon() /obj/item/mecha_equipment/catapult/afterattack(var/atom/target, var/mob/living/user, var/inrange, var/params) @@ -412,7 +412,7 @@ . = ..() if(.) if(drill_head) - owner.visible_message("[owner] revs the [drill_head], menacingly.") + owner.visible_message(SPAN_WARNING("[owner] revs the [drill_head], menacingly.")) playsound(get_turf(src), 'sound/mecha/mechdrill.ogg', 50, 1) /obj/item/mecha_equipment/drill/get_hardpoint_maptext() @@ -430,19 +430,19 @@ if(istype(target,/obj/item/material/drill_head)) var/obj/item/material/drill_head/DH = target if(drill_head) - owner.visible_message("\The [owner] detaches the [drill_head] mounted on the [src].") + owner.visible_message(SPAN_NOTICE("\The [owner] detaches the [drill_head] mounted on the [src].")) drill_head.forceMove(owner.loc) DH.forceMove(src) drill_head = DH - owner.visible_message("\The [owner] mounts the [drill_head] on the [src].") + owner.visible_message(SPAN_NOTICE("\The [owner] mounts the [drill_head] on the [src].")) return if(drill_head == null) - to_chat(user, "Your drill doesn't have a head!") + to_chat(user, SPAN_WARNING("Your drill doesn't have a head!")) return owner.use_cell_power(active_power_use * CELLRATE) - owner.visible_message("\The [owner] starts to drill \the [target]", "You hear a large drill.") + owner.visible_message(SPAN_DANGER("\The [owner] starts to drill \the [target]"), SPAN_WARNING("You hear a large drill.")) var/T = target.loc @@ -458,7 +458,7 @@ if(istype(target, /turf/simulated/wall)) var/turf/simulated/wall/W = target if(max(W.material.hardness, W.reinf_material ? W.reinf_material.hardness : 0) > drill_head.material.hardness) - to_chat(user, "\The [target] is too hard to drill through with this drill head.") + to_chat(user, SPAN_WARNING("\The [target] is too hard to drill through with this drill head.")) target.ex_act(2) drill_head.durability -= 1 log_and_message_admins("used [src] on the wall [W].", user, owner.loc) diff --git a/code/modules/heavy_vehicle/mech_construction.dm b/code/modules/heavy_vehicle/mech_construction.dm index f86d23156e8..ff23673e472 100644 --- a/code/modules/heavy_vehicle/mech_construction.dm +++ b/code/modules/heavy_vehicle/mech_construction.dm @@ -119,12 +119,12 @@ if(user) var/delay = 30 if(delay > 0) - user.visible_message("\The [user] begins trying to install \the [system] into \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] begins trying to install \the [system] into \the [src].")) if(!do_after(user, delay, src) || user.get_active_hand() != system) return FALSE if(user.unEquip(system)) - to_chat(user, "You install \the [system] in \the [src]'s [system_hardpoint].") + to_chat(user, SPAN_NOTICE("You install \the [system] in \the [src]'s [system_hardpoint].")) playsound(user.loc, 'sound/items/Screwdriver.ogg', 100, 1) else return FALSE var/obj/item/mecha_equipment/ME = system @@ -168,7 +168,7 @@ if(user) var/delay = 30 if(delay > 0) - user.visible_message("\The [user] begins trying to remove \the [system] from \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] begins trying to remove \the [system] from \the [src].")) if(!do_after(user, delay, src) || hardpoints[system_hardpoint] != system) return FALSE @@ -177,7 +177,7 @@ if(user) system.forceMove(get_turf(user)) user.put_in_hands(system) - to_chat(user, "You remove \the [system] in \the [src]'s [system_hardpoint].") + to_chat(user, SPAN_NOTICE("You remove \the [system] in \the [src]'s [system_hardpoint].")) playsound(user.loc, 'sound/items/Screwdriver.ogg', 100, 1) /mob/living/heavy_vehicle/proc/remove_system(var/system_hardpoint, var/force) diff --git a/code/modules/heavy_vehicle/mech_helpers.dm b/code/modules/heavy_vehicle/mech_helpers.dm index 78a624c1754..71d26009650 100644 --- a/code/modules/heavy_vehicle/mech_helpers.dm +++ b/code/modules/heavy_vehicle/mech_helpers.dm @@ -8,13 +8,13 @@ if(!legs) if(user) - to_chat(user, "\The [src] has no means of propulsion!") + to_chat(user, SPAN_WARNING("\The [src] has no means of propulsion!")) next_mecha_move = world.time + 3 // Just to stop them from getting spammed with messages. return if(!legs.motivator || legs.total_damage > 45) if(user) - to_chat(user, "Your motivators are damaged! You can't move!") + to_chat(user, SPAN_WARNING("Your motivators are damaged! You can't move!")) next_mecha_move = world.time + 15 return @@ -22,13 +22,13 @@ if(maintenance_protocols) if(user) - to_chat(user, "Maintenance protocols are in effect.") + to_chat(user, SPAN_WARNING("Maintenance protocols are in effect.")) return var/obj/item/cell/C = get_cell() if(!C || !C.check_charge(legs.power_use * CELLRATE)) if(user) - to_chat(user, "The power indicator flashes briefly.") + to_chat(user, SPAN_WARNING("The power indicator flashes briefly.")) return return TRUE diff --git a/code/modules/heavy_vehicle/mech_interaction.dm b/code/modules/heavy_vehicle/mech_interaction.dm index 7de648a2581..ac04c662f05 100644 --- a/code/modules/heavy_vehicle/mech_interaction.dm +++ b/code/modules/heavy_vehicle/mech_interaction.dm @@ -6,7 +6,7 @@ if(M.enter(src)) return else - to_chat(usr, "You cannot pilot a mech of this size.") + to_chat(usr, SPAN_WARNING("You cannot pilot a mech of this size.")) return return ..() @@ -54,12 +54,12 @@ return if(!arms) - to_chat(user, "\The [src] has no manipulators!") + to_chat(user, SPAN_WARNING("\The [src] has no manipulators!")) setClickCooldown(3) return if(!arms.motivator || !arms.motivator.is_functional()) - to_chat(user, "Your motivators are damaged! You can't use your manipulators!") + to_chat(user, SPAN_WARNING("Your motivators are damaged! You can't use your manipulators!")) setClickCooldown(15) return @@ -77,7 +77,7 @@ // You may attack the target with your exosuit FIST if you're malfunctioning. var/failed = FALSE if(emp_damage > EMP_ATTACK_DISRUPT && prob(emp_damage*2)) - to_chat(user, "The wiring sparks as you attempt to control the exosuit!") + to_chat(user, SPAN_WARNING("The wiring sparks as you attempt to control the exosuit!")) failed = TRUE if(!failed) @@ -201,30 +201,30 @@ if(!user.Adjacent(src)) return if(hatch_locked) - to_chat(user, "The [body.hatch_descriptor] is locked.") + to_chat(user, SPAN_WARNING("The [body.hatch_descriptor] is locked.")) return if(hatch_closed) - to_chat(user, "The [body.hatch_descriptor] is closed.") + to_chat(user, SPAN_WARNING("The [body.hatch_descriptor] is closed.")) return if(LAZYLEN(pilots) >= LAZYLEN(body.pilot_positions)) - to_chat(user, "\The [src] is occupied.") + to_chat(user, SPAN_WARNING("\The [src] is occupied.")) return if(!instant) - to_chat(user, "You start climbing into \the [src]...") + to_chat(user, SPAN_NOTICE("You start climbing into \the [src]...")) if(!do_after(user, entry_speed)) return if(!user || user.incapacitated()) return if(hatch_locked) - to_chat(user, "The [body.hatch_descriptor] is locked.") + to_chat(user, SPAN_WARNING("The [body.hatch_descriptor] is locked.")) return if(hatch_closed) - to_chat(user, "The [body.hatch_descriptor] is closed.") + to_chat(user, SPAN_WARNING("The [body.hatch_descriptor] is closed.")) return if(LAZYLEN(pilots) >= LAZYLEN(body.pilot_positions)) - to_chat(user, "\The [src] is occupied.") + to_chat(user, SPAN_WARNING("\The [src] is occupied.")) return - to_chat(user, "You climb into \the [src].") + to_chat(user, SPAN_NOTICE("You climb into \the [src].")) user.forceMove(src) LAZYDISTINCTADD(pilots, user) RegisterSignal(user, COMSIG_MOB_FACEDIR, PROC_REF(handle_user_turn)) @@ -240,14 +240,14 @@ return if(hatch_closed) if(hatch_locked) - if(!silent) to_chat(user, "The [body.hatch_descriptor] is locked.") + if(!silent) to_chat(user, SPAN_WARNING("The [body.hatch_descriptor] is locked.")) return hud_open.toggled(FALSE) if(!silent) - to_chat(user, "You open the hatch and climb out of \the [src].") + to_chat(user, SPAN_NOTICE("You open the hatch and climb out of \the [src].")) else if(!silent) - to_chat(user, "You climb out of \the [src].") + to_chat(user, SPAN_NOTICE("You climb out of \the [src].")) user.forceMove(get_turf(src)) LAZYREMOVE(user.additional_vision_handlers, src) @@ -321,7 +321,7 @@ /mob/living/heavy_vehicle/attackby(obj/item/attacking_item, mob/user) if(user.a_intent != I_HURT && istype(attacking_item, /obj/item/mecha_equipment)) if(hardpoints_locked) - to_chat(user, "Hardpoint system access is disabled.") + to_chat(user, SPAN_WARNING("Hardpoint system access is disabled.")) return var/obj/item/mecha_equipment/realThing = attacking_item @@ -335,7 +335,7 @@ var/to_place = tgui_input_list(user, "Where would you like to install it?", "Install Hardpoint", (realThing.restricted_hardpoints & free_hardpoints)) if(install_system(attacking_item, to_place, user)) return - to_chat(user, "\The [attacking_item] could not be installed in that hardpoint.") + to_chat(user, SPAN_WARNING("\The [attacking_item] could not be installed in that hardpoint.")) return else @@ -365,7 +365,7 @@ qdel(attacking_item) else if(attacking_item.ismultitool()) if(hardpoints_locked) - to_chat(user, "Hardpoint system access is disabled.") + to_chat(user, SPAN_WARNING("Hardpoint system access is disabled.")) return var/list/parts = list() @@ -377,7 +377,7 @@ if(remove_system_interact(to_remove, user)) return - to_chat(user, "\The [src] has no hardpoint systems to remove.") + to_chat(user, SPAN_WARNING("\The [src] has no hardpoint systems to remove.")) return else if(attacking_item.iswrench()) @@ -430,37 +430,37 @@ return else if(attacking_item.iscrowbar()) if(!maintenance_protocols) - to_chat(user, "The cell compartment remains locked while maintenance protocols are disabled.") + to_chat(user, SPAN_WARNING("The cell compartment remains locked while maintenance protocols are disabled.")) return if(!body || !body.cell) - to_chat(user, "There is no cell here for you to remove!") + to_chat(user, SPAN_WARNING("There is no cell here for you to remove!")) return var/delay = 10 if(!do_after(user, delay) || !maintenance_protocols || !body || !body.cell) return user.put_in_hands(body.cell) - to_chat(user, "You remove \the [body.cell] from \the [src].") + to_chat(user, SPAN_NOTICE("You remove \the [body.cell] from \the [src].")) attacking_item.play_tool_sound(get_turf(src), 50) - visible_message("\The [user] pries out \the [body.cell] using the \the [attacking_item].") + visible_message(SPAN_NOTICE("\The [user] pries out \the [body.cell] using the \the [attacking_item].")) power = MECH_POWER_OFF hud_power_control.update_icon() body.cell = null return else if(istype(attacking_item, /obj/item/cell)) if(!maintenance_protocols) - to_chat(user, "The cell compartment remains locked while maintenance protocols are disabled.") + to_chat(user, SPAN_WARNING("The cell compartment remains locked while maintenance protocols are disabled.")) return if(!body || body.cell) - to_chat(user, "There is already a cell in there!") + to_chat(user, SPAN_WARNING("There is already a cell in there!")) return if(user.unEquip(attacking_item)) attacking_item.forceMove(body) body.cell = attacking_item - to_chat(user, "You install \the [body.cell] into \the [src].") + to_chat(user, SPAN_NOTICE("You install \the [body.cell] into \the [src].")) playsound(user.loc, 'sound/items/Screwdriver.ogg', 50, 1) - visible_message("\The [user] installs \the [body.cell] into \the [src].") + visible_message(SPAN_NOTICE("\The [user] installs \the [body.cell] into \the [src].")) return else if(istype(attacking_item, /obj/item/device/robotanalyzer)) to_chat(user, SPAN_NOTICE("Diagnostic Report for \the [src]:")) @@ -475,12 +475,12 @@ // Drag the pilot out if possible. if(user.a_intent == I_GRAB) if(!LAZYLEN(pilots)) - to_chat(user, "There is nobody inside \the [src].") + to_chat(user, SPAN_WARNING("There is nobody inside \the [src].")) else if(!hatch_closed) var/mob/pilot = pick(pilots) - user.visible_message("\The [user] is trying to pull \the [pilot] out of \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] is trying to pull \the [pilot] out of \the [src]!")) if(do_after(user, 30) && user.Adjacent(src) && (pilot in pilots) && !hatch_closed) - user.visible_message("\The [user] drags \the [pilot] out of \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] drags \the [pilot] out of \the [src]!")) eject(pilot, silent=1) return @@ -491,10 +491,10 @@ // Otherwise toggle the hatch. if(hatch_locked) - to_chat(user, "The [body.hatch_descriptor] is locked.") + to_chat(user, SPAN_WARNING("The [body.hatch_descriptor] is locked.")) return hatch_closed = !hatch_closed - to_chat(user, "You [hatch_closed ? "close" : "open"] the [body.hatch_descriptor].") + to_chat(user, SPAN_NOTICE("You [hatch_closed ? "close" : "open"] the [body.hatch_descriptor].")) hud_open.update_icon() update_icon() return @@ -539,7 +539,7 @@ if(!new_name || new_name == name || (user != src && !(user in pilots))) return name = new_name - to_chat(user, "You have redesignated this exosuit as \the [name].") + to_chat(user, SPAN_NOTICE("You have redesignated this exosuit as \the [name].")) /mob/living/heavy_vehicle/proc/trample(var/mob/living/H) if(!LAZYLEN(pilots)) @@ -554,13 +554,13 @@ D.attack_log += "\[[time_stamp()]\] Was trampled by [src]" attack_log += text("\[[time_stamp()]\] trampled [D.name] ([D.ckey]) with \the [src].") msg_admin_attack("[src] trampled [key_name(D)] at (JMP)" ) - src.visible_message("\The [src] runs over \the [D]!") + src.visible_message(SPAN_DANGER("\The [src] runs over \the [D]!")) D.apply_damage(legs.trample_damage, DAMAGE_BRUTE) return TRUE else var/mob/living/L = H - src.visible_message("\The [src] runs over \the [L]!") + src.visible_message(SPAN_DANGER("\The [src] runs over \the [L]!")) if(isanimal(L)) if(issmall(L) && (L.stat == DEAD)) L.gib() @@ -571,9 +571,9 @@ /mob/living/heavy_vehicle/proc/ToggleLockdown() lockdown = !lockdown if(lockdown) - src.visible_message("\The [src] beeps loudly as its servos sieze up, and it enters lockdown mode!") + src.visible_message(SPAN_WARNING("\The [src] beeps loudly as its servos sieze up, and it enters lockdown mode!")) else - src.visible_message("\The [src] hums with life as it is released from its lockdown mode!") + src.visible_message(SPAN_WARNING("\The [src] hums with life as it is released from its lockdown mode!")) /mob/living/heavy_vehicle/get_floating_chat_x_offset() return -offset_x // reverse the offset diff --git a/code/modules/heavy_vehicle/mech_life.dm b/code/modules/heavy_vehicle/mech_life.dm index 5bd0df9264c..4980d15fa0c 100644 --- a/code/modules/heavy_vehicle/mech_life.dm +++ b/code/modules/heavy_vehicle/mech_life.dm @@ -106,7 +106,7 @@ apply_damage(damage = environment.temperature /5 , damagetype = DAMAGE_BURN) //A possibility is to hook up interface icons here. But this works pretty well in my experience if(prob(5)) - visible_message("\The [src]'s hull bends and buckles under the intense heat!") + visible_message(SPAN_DANGER("\The [src]'s hull bends and buckles under the intense heat!")) /mob/living/heavy_vehicle/death(var/gibbed) // Salvage moves into the wreck unless we're exploding violently. diff --git a/code/modules/heavy_vehicle/mech_wreckage.dm b/code/modules/heavy_vehicle/mech_wreckage.dm index 9b2b0e63ca1..84031390b41 100644 --- a/code/modules/heavy_vehicle/mech_wreckage.dm +++ b/code/modules/heavy_vehicle/mech_wreckage.dm @@ -49,7 +49,7 @@ if(WT.isOn()) cutting = TRUE else - to_chat(user, "Turn the torch on, first.") + to_chat(user, SPAN_WARNING("Turn the torch on, first.")) return else if(istype(attacking_item, /obj/item/gun/energy/plasmacutter)) cutting = TRUE @@ -57,21 +57,21 @@ if(cutting) if(!prepared) prepared = 1 - to_chat(user, "You partially dismantle \the [src].") + to_chat(user, SPAN_NOTICE("You partially dismantle \the [src].")) else - to_chat(user, "\The [src] has already been weakened.") + to_chat(user, SPAN_WARNING("\The [src] has already been weakened.")) return 1 else if(attacking_item.iswrench()) if(prepared) - to_chat(user, "You finish dismantling \the [src].") + to_chat(user, SPAN_NOTICE("You finish dismantling \the [src].")) new /obj/item/stack/material/steel(get_turf(src),rand(5,10)) qdel(src) else - to_chat(user, "It's too solid to dismantle. Try cutting through some of the bigger bits.") + to_chat(user, SPAN_WARNING("It's too solid to dismantle. Try cutting through some of the bigger bits.")) return 1 else if(istype(attacking_item) && attacking_item.force > 20) - visible_message("\The [src] has been smashed with \the [attacking_item] by \the [user]!") + visible_message(SPAN_DANGER("\The [src] has been smashed with \the [attacking_item] by \the [user]!")) if(prob(20)) new /obj/item/stack/material/steel(get_turf(src),rand(1,3)) qdel(src) diff --git a/code/modules/heavy_vehicle/mecha.dm b/code/modules/heavy_vehicle/mecha.dm index cede65cd8da..2d8e63375bd 100644 --- a/code/modules/heavy_vehicle/mecha.dm +++ b/code/modules/heavy_vehicle/mecha.dm @@ -151,10 +151,10 @@ else . += "It is being piloted by [pilot]." if(hardpoints.len) - . += "It has the following hardpoints:" + . += SPAN_NOTICE("It has the following hardpoints:") for(var/hardpoint in hardpoints) var/obj/item/I = hardpoints[hardpoint] - . += "- [hardpoint]: [istype(I) ? "[I]" : "nothing"]." + . += "- [hardpoint]: [istype(I) ? SPAN_NOTICE("[I]") : "nothing"]." else . += "It has no visible hardpoints." @@ -166,11 +166,11 @@ if(1) damage_string = "undamaged" if(2) - damage_string = "damaged" + damage_string = SPAN_WARNING("damaged") if(3) - damage_string = "badly damaged" + damage_string = SPAN_WARNING("badly damaged") if(4) - damage_string = "destroyed" + damage_string = SPAN_DANGER("destroyed") . += "Its [thing.name] [thing.gender == PLURAL ? "are" : "is"] [damage_string]." /mob/living/heavy_vehicle/Topic(href,href_list[]) @@ -289,7 +289,7 @@ user.set_machine(src) interact(user) else - to_chat(user, "The radio is too damaged to function.") + to_chat(user, SPAN_WARNING("The radio is too damaged to function.")) /obj/item/device/radio/exosuit/CanUseTopic() . = ..() diff --git a/code/modules/holidays/christmas/props.dm b/code/modules/holidays/christmas/props.dm index e59155ff82d..c190cd40133 100644 --- a/code/modules/holidays/christmas/props.dm +++ b/code/modules/holidays/christmas/props.dm @@ -10,7 +10,10 @@ /obj/item/toy/xmas_cracker/attack(mob/target, mob/user, var/target_zone) if( !cracked && istype(target,/mob/living/carbon/human) && (target.stat == CONSCIOUS) && !target.get_active_hand() ) - target.visible_message("[user] and [target] pop \an [src]! *pop*", "You pull \an [src] with [target]! *pop*", "You hear a *pop*.") + target.visible_message(SPAN_NOTICE("[user] and [target] pop \an [src]! *pop*"), + SPAN_NOTICE("You pull \an [src] with [target]! *pop*"), + SPAN_NOTICE("You hear a *pop*.")) + var/obj/item/paper/Joke = new /obj/item/paper(user.loc) var/title = "[pick("awful","terrible","unfunny")] joke" var/content = pick("What did one snowman say to the other?\n\n'Is it me or can you smell carrots?'", @@ -65,7 +68,7 @@ user.put_in_hands(gift) src.gift.add_fingerprint(user) else - to_chat(user, "The gift was empty!") + to_chat(user, SPAN_WARNING("The gift was empty!")) qdel(src) return @@ -76,16 +79,16 @@ /obj/effect/spresent/relaymove(mob/user as mob) if (user.stat) return - to_chat(user, "You can't move.") + to_chat(user, SPAN_WARNING("You can't move.")) /obj/effect/spresent/attackby(obj/item/attacking_item, mob/user) ..() if (!attacking_item.iswirecutter()) - to_chat(user, "I need wirecutters for that.") + to_chat(user, SPAN_WARNING("I need wirecutters for that.")) return - to_chat(user, "You cut open the present.") + to_chat(user, SPAN_NOTICE("You cut open the present.")) for(var/mob/M in src) //Should only be one but whatever. M.forceMove(src.loc) @@ -170,7 +173,7 @@ "Lord-Regent Not'zar","Jesus Christ","Santa Claus","Mrs. Claus","Sandy Claws","Buddha","Gary","Jesus Christ!","the True Queen of Biesel, God-Lady Seon-rin von Illdenberg, First of Her Name", "Admiral Frost","Pirate King Frost", "The Secret NanoTrasen Cabal of Duty Officers", "The Society for the Preservation of Rats", "Officer Beepsky","Lieutenant Columbo","Crew of the NSS Upsilon","Runtime", "Bones","Chauncey","Ian","Pun Pun","Nup Nup","Waldo","Odlaw","Crew of the NSS Exodus", "Custodial Staff of the NTCC Odin","ERT Phoenix","grey slime (357)","Bob the Blob","People for the Ethical Treatment of Bluespace Bears", - "Mr. Clown and Mrs. Mime from New Puerto Rico","the Grinch","the Krampus","Satan","Mega-Satan","\[BENEFACTOR REDACTED]\","Bluespace Cat","Union of Bluespace Technicians Tau Ceti","the New Kingdom of Adhomai", + "Mr. Clown and Mrs. Mime from New Puerto Rico","the Grinch","the Krampus","Satan","Mega-Satan","Bluespace Cat","Union of Bluespace Technicians Tau Ceti","the New Kingdom of Adhomai", "Ginny", "Boleslaw Keesler", "The Queen in Blue", "Cuban Pete", "Ceres' Lance", "the real Odin Killer (Still out here, guys!)", "the K'lax Hive", "the C'thur Hive") var/pick_emotion = pick("love","platonic admiration","approval","love (not in a sexual way or anything, though)","apathy", "schadenfreude","love","God's blessing","Santa's blessing","Non-demoninational deity's blessing","love","compassion","appreciation", "respect","begrudging respect","love", "seasonal obligation") diff --git a/code/modules/holodeck/HolodeckControl.dm b/code/modules/holodeck/HolodeckControl.dm index 449a60321f9..179b1d808a0 100644 --- a/code/modules/holodeck/HolodeckControl.dm +++ b/code/modules/holodeck/HolodeckControl.dm @@ -49,13 +49,13 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont dat += "
Current Loaded Programs:
" if(!linkedholodeck) - dat += "Warning: Unable to locate holodeck.
" + dat += SPAN_DANGER("Warning: Unable to locate holodeck.
") user << browse(dat, "window=computer;size=400x500") onclose(user, "computer") return if(!SSatlas.current_map.holodeck_supported_programs.len) - dat += "Warning: No supported holo-programs loaded.
" + dat += SPAN_DANGER("Warning: No supported holo-programs loaded.
") user << browse(dat, "window=computer;size=400x500") onclose(user, "computer") return @@ -151,7 +151,7 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont safety_disabled = 1 req_one_access = list() update_projections() - to_chat(user, "You vastly increase projector power and override the safety and security protocols.") + to_chat(user, SPAN_NOTICE("You vastly increase projector power and override the safety and security protocols.")) to_chat(user, "Warning. Automatic shutoff and derezing protocols have been corrupted. Please call [SSatlas.current_map.company_name] maintenance and do not use the simulator.") log_game("[key_name(usr)] emagged the Holodeck Control Computer",ckey=key_name(usr)) src.updateUsrDialog() @@ -370,10 +370,10 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont /obj/machinery/computer/holodeck_control/proc/togglelock(var/mob/user) if(allowed(user)) locked = !locked - visible_message("\The [src] emits a series of beeps to announce it has been [locked ? null : "un"]locked.", range = 3) + visible_message(SPAN_NOTICE("\The [src] emits a series of beeps to announce it has been [locked ? null : "un"]locked."), range = 3) return FALSE else - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) return TRUE /obj/machinery/computer/holodeck_control/proc/load_random_program() diff --git a/code/modules/holodeck/HolodeckObjects.dm b/code/modules/holodeck/HolodeckObjects.dm index 9fa6d1c613a..d5fead03d73 100644 --- a/code/modules/holodeck/HolodeckObjects.dm +++ b/code/modules/holodeck/HolodeckObjects.dm @@ -174,11 +174,11 @@ if(attacking_item.item_flags & ITEM_FLAG_NO_BLUDGEON) return if(attacking_item.isscrewdriver()) - to_chat(user, ("It's a holowindow, you can't unfasten it!")) + to_chat(user, (SPAN_NOTICE("It's a holowindow, you can't unfasten it!"))) else if(attacking_item.iscrowbar() && reinf && state <= 1) - to_chat(user, ("It's a holowindow, you can't pry it!")) + to_chat(user, (SPAN_NOTICE("It's a holowindow, you can't pry it!"))) else if(attacking_item.iswrench() && !anchored && (!state || !reinf)) - to_chat(user, ("It's a holowindow, you can't dismantle it!")) + to_chat(user, (SPAN_NOTICE("It's a holowindow, you can't dismantle it!"))) else if(attacking_item.damtype == DAMAGE_BRUTE || attacking_item.damtype == DAMAGE_BURN) hit(attacking_item.force) @@ -212,7 +212,7 @@ if(src.density && istype(attacking_item, /obj/item) && !istype(attacking_item, /obj/item/card)) var/aforce = attacking_item.force playsound(src.loc, 'sound/effects/glass_hit.ogg', 75, 1) - visible_message("[src] was hit by [attacking_item].") + visible_message(SPAN_DANGER("[src] was hit by [attacking_item].")) if(attacking_item.damtype == DAMAGE_BRUTE || attacking_item.damtype == DAMAGE_BURN) take_damage(aforce) return @@ -247,7 +247,7 @@ /obj/structure/bed/stool/chair/holochair/attackby(obj/item/attacking_item, mob/user) if(attacking_item.iswrench()) - to_chat(user, ("It's a holochair, you can't dismantle it!")) + to_chat(user, (SPAN_NOTICE("It's a holochair, you can't dismantle it!"))) return /obj/item/holo @@ -280,7 +280,7 @@ /obj/item/holo/esword/handle_shield(mob/user, var/on_back, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack") if(active && default_parry_check(user, attacker, damage_source) && prob(50)) - user.visible_message("\The [user] parries [attack_text] with \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] parries [attack_text] with \the [src]!")) spark(user.loc, 5) playsound(user.loc, 'sound/weapons/blade.ogg', 50, 1) @@ -298,13 +298,13 @@ icon_state = "sword[item_color]" w_class = ITEMSIZE_LARGE playsound(user, 'sound/weapons/saberon.ogg', 50, 1) - to_chat(user, "[src] is now active.") + to_chat(user, SPAN_NOTICE("[src] is now active.")) else force = 3 icon_state = "sword0" w_class = ITEMSIZE_SMALL playsound(user, 'sound/weapons/saberoff.ogg', 50, 1) - to_chat(user, "[src] can now be concealed.") + to_chat(user, SPAN_NOTICE("[src] can now be concealed.")) if(istype(user,/mob/living/carbon/human)) var/mob/living/carbon/human/H = user @@ -339,16 +339,16 @@ if (istype(attacking_item, /obj/item/grab) && get_dist(src,user)<2) var/obj/item/grab/G = attacking_item if(G.state<2) - to_chat(user, "You need a better grip to do that!") + to_chat(user, SPAN_WARNING("You need a better grip to do that!")) return G.affecting.forceMove(src.loc) G.affecting.Weaken(5) - visible_message("[G.assailant] dunks [G.affecting] into the [src]!", range = 3) + visible_message(SPAN_WARNING("[G.assailant] dunks [G.affecting] into the [src]!"), range = 3) qdel(attacking_item) return else if (istype(attacking_item, /obj/item) && get_dist(src,user)<2) user.drop_from_inventory(attacking_item, get_turf(src)) - visible_message("[user] dunks [attacking_item] into the [src]!", range = 3) + visible_message(SPAN_NOTICE("[user] dunks [attacking_item] into the [src]!"), range = 3) return /obj/structure/holohoop/CanPass(atom/movable/mover, turf/target, height=0, air_group=0) @@ -358,9 +358,9 @@ return if(prob(50)) I.forceMove(src.loc) - visible_message("Swish! \the [I] lands in \the [src].", range = 3) + visible_message(SPAN_NOTICE("Swish! \the [I] lands in \the [src]."), range = 3) else - visible_message("\The [I] bounces off of \the [src]'s rim!", range = 3) + visible_message(SPAN_WARNING("\The [I] bounces off of \the [src]'s rim!"), range = 3) return 0 else return ..(mover, target, height, air_group) @@ -467,7 +467,7 @@ derez() /mob/living/simple_animal/hostile/carp/holodeck/proc/derez() - visible_message("\The [src] fades away!") + visible_message(SPAN_NOTICE("\The [src] fades away!")) qdel(src) //Holo-penguin @@ -505,5 +505,5 @@ derez() /mob/living/simple_animal/penguin/holodeck/proc/derez() - visible_message("\The [src] fades away!") + visible_message(SPAN_NOTICE("\The [src] fades away!")) qdel(src) diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index 4af24c1e788..b6f1dee9f9a 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -28,7 +28,7 @@ return if(!SSplants) - to_world("Plant controller does not exist and [src] requires it. Aborting.") + to_world(SPAN_DANGER("Plant controller does not exist and [src] requires it. Aborting.")) qdel(src) return @@ -66,7 +66,7 @@ if(!seed) return if(!SSplants) - to_world("Plant controller does not exist and [src] requires it. Aborting.") + to_world(SPAN_DANGER("Plant controller does not exist and [src] requires it. Aborting.")) qdel(src) return @@ -159,7 +159,7 @@ return M.stop_pulling() - to_chat(M, "You slipped on the [name]!") + to_chat(M, SPAN_NOTICE("You slipped on the [name]!")) playsound(src.loc, 'sound/misc/slip.ogg', 50, 1, -3) M.Stun(8) M.Weaken(5) @@ -195,7 +195,7 @@ var/obj/item/stack/cable_coil/C = attacking_item if(C.use(5)) //TODO: generalize this. - to_chat(user, "You add some cable to the [src.name] and slide it inside the battery casing.") + to_chat(user, SPAN_NOTICE("You add some cable to the [src.name] and slide it inside the battery casing.")) var/obj/item/cell/potato/pocell = new /obj/item/cell/potato(get_turf(user)) if(src.loc == user && !(user.l_hand && user.r_hand) && istype(user,/mob/living/carbon/human)) user.put_in_hands(pocell) @@ -205,13 +205,13 @@ return else if(attacking_item.sharp && !attacking_item.noslice) if(seed.kitchen_tag == "pumpkin") // Ugggh these checks are awful. - user.show_message("You carve a face into [src]!", 1) + user.show_message(SPAN_NOTICE("You carve a face into [src]!"), 1) user.put_in_hands(new /obj/item/clothing/head/pumpkin) qdel(src) return else if(seed.chems) if(istype(attacking_item,/obj/item/material/hatchet) && !isnull(seed.chems[/singleton/reagent/woodpulp])) - user.show_message("You make planks out of \the [src]!", 1) + user.show_message(SPAN_NOTICE("You make planks out of \the [src]!"), 1) playsound(loc, 'sound/effects/woodcutting.ogg', 50, 1) var/flesh_colour = seed.get_trait(TRAIT_FLESH_COLOUR) if(!flesh_colour) flesh_colour = seed.get_trait(TRAIT_PRODUCT_COLOUR) @@ -274,7 +274,7 @@ return if(prob(35)) if(user) - to_chat(user, "\The [src] has fallen to bits.") + to_chat(user, SPAN_DANGER("\The [src] has fallen to bits.")) qdel(src) /obj/item/reagent_containers/food/snacks/grown/attack_self(mob/user as mob) @@ -286,14 +286,14 @@ return if(user.a_intent == I_HURT) - user.visible_message("\The [user] squashes \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] squashes \the [src]!")) seed.thrown_at(src,user) sleep(-1) if(src) qdel(src) return if(seed.kitchen_tag == "grass") - user.show_message("You make a grass tile out of \the [src]!", 1) + user.show_message(SPAN_NOTICE("You make a grass tile out of \the [src]!"), 1) var/flesh_colour = seed.get_trait(TRAIT_FLESH_COLOUR) if(!flesh_colour) flesh_colour = seed.get_trait(TRAIT_PRODUCT_COLOUR) for(var/i=0,i<2,i++) @@ -311,7 +311,7 @@ return if(seed.get_trait(TRAIT_SPREAD) > 0) - to_chat(user, "You plant the [src.name].") + to_chat(user, SPAN_NOTICE("You plant the [src.name].")) new /obj/machinery/portable_atmospherics/hydroponics/soil/invisible(get_turf(user),src.seed) qdel(src) return @@ -322,13 +322,13 @@ if("shand") var/obj/item/stack/medical/bruise_pack/tajaran/poultice = new /obj/item/stack/medical/bruise_pack/tajaran(user.loc) poultice.heal_brute = potency - to_chat(user, "You mash the leaves into a poultice.") + to_chat(user, SPAN_NOTICE("You mash the leaves into a poultice.")) qdel(src) return if("mtear") var/obj/item/stack/medical/ointment/tajaran/poultice = new /obj/item/stack/medical/ointment/tajaran(user.loc) poultice.heal_burn = potency - to_chat(user, "You mash the petals into a poultice.") + to_chat(user, SPAN_NOTICE("You mash the petals into a poultice.")) qdel(src) return */ diff --git a/code/modules/hydroponics/grown_inedible.dm b/code/modules/hydroponics/grown_inedible.dm index 3070209ce8f..06b2f9e78ec 100644 --- a/code/modules/hydroponics/grown_inedible.dm +++ b/code/modules/hydroponics/grown_inedible.dm @@ -51,7 +51,7 @@ if(istype(attacking_item, /obj/item/surgery/circular_saw) || istype(attacking_item, /obj/item/material/hatchet) || \ istype(attacking_item, /obj/item/material/kitchen/utensil/knife) || istype(attacking_item, /obj/item/material/knife) || \ istype(attacking_item, /obj/item/material/knife/ritual)) - to_chat(user, "You use [attacking_item] to fashion a pipe out of the corn cob!") + to_chat(user, SPAN_NOTICE("You use [attacking_item] to fashion a pipe out of the corn cob!")) new /obj/item/clothing/mask/smokable/pipe/cobpipe (user.loc) qdel(src) return diff --git a/code/modules/hydroponics/seed.dm b/code/modules/hydroponics/seed.dm index 9300f58a8fe..a9f68e6661b 100644 --- a/code/modules/hydroponics/seed.dm +++ b/code/modules/hydroponics/seed.dm @@ -125,15 +125,15 @@ if(get_trait(TRAIT_CARNIVOROUS)) if(get_trait(TRAIT_CARNIVOROUS) == 2) if(affecting) - to_chat(target, "\The [fruit]'s thorns pierce your [affecting.name] greedily!") + to_chat(target, SPAN_DANGER("\The [fruit]'s thorns pierce your [affecting.name] greedily!")) else - to_chat(target, "\The [fruit]'s thorns pierce your flesh greedily!") + to_chat(target, SPAN_DANGER("\The [fruit]'s thorns pierce your flesh greedily!")) damage = get_trait(TRAIT_POTENCY)/2 else if(affecting) - to_chat(target, "\The [fruit]'s thorns dig deeply into your [affecting.name]!") + to_chat(target, SPAN_DANGER("\The [fruit]'s thorns dig deeply into your [affecting.name]!")) else - to_chat(target, "\The [fruit]'s thorns dig deeply into your flesh!") + to_chat(target, SPAN_DANGER("\The [fruit]'s thorns dig deeply into your flesh!")) damage = get_trait(TRAIT_POTENCY)/5 else return @@ -162,7 +162,7 @@ if(!body_coverage) return - to_chat(target, "You are stung by \the [fruit]!") + to_chat(target, SPAN_DANGER("You are stung by \the [fruit]!")) for(var/rid in chems) var/injecting = min(5,max(1,get_trait(TRAIT_POTENCY)/5)) target.reagents.add_reagent(rid,injecting) @@ -246,7 +246,7 @@ apply_special_effect(M) splatter(T,thrown) if(origin_turf) - origin_turf.visible_message("The [thrown.name] explodes!") + origin_turf.visible_message(SPAN_DANGER("The [thrown.name] explodes!")) qdel(thrown) return @@ -260,7 +260,7 @@ if(get_trait(TRAIT_JUICY) && splatted) splatter(origin_turf,thrown) if(origin_turf) - origin_turf.visible_message("The [thrown.name] splatters against [target]!") + origin_turf.visible_message(SPAN_DANGER("The [thrown.name] splatters against [target]!")) qdel(thrown) if(get_trait(TRAIT_TELEPORTING)) @@ -539,7 +539,7 @@ if(!degree || get_trait(TRAIT_IMMUTABLE) > 0) return - source_turf.visible_message("\The [display_name] quivers!") + source_turf.visible_message(SPAN_NOTICE("\The [display_name] quivers!")) //This looks like shit, but it's a lot easier to read/change this way. var/total_mutations = rand(1,1+degree) @@ -547,7 +547,7 @@ switch(rand(0,11)) if(0) //Plant cancer! set_trait(TRAIT_ENDURANCE,get_trait(TRAIT_ENDURANCE)-rand(10,20),null,0) - source_turf.visible_message("\The [display_name] withers rapidly!") + source_turf.visible_message(SPAN_DANGER("\The [display_name] withers rapidly!")) if(1) set_trait(TRAIT_NUTRIENT_CONSUMPTION,get_trait(TRAIT_NUTRIENT_CONSUMPTION)+rand(-(degree*0.1),(degree*0.1)),5,0) set_trait(TRAIT_WATER_CONSUMPTION, get_trait(TRAIT_WATER_CONSUMPTION) +rand(-degree,degree),50,0) @@ -569,7 +569,7 @@ if(prob(degree*5)) set_trait(TRAIT_CARNIVOROUS, get_trait(TRAIT_CARNIVOROUS)+rand(-degree,degree),2, 0) if(get_trait(TRAIT_CARNIVOROUS)) - source_turf.visible_message("\The [display_name] shudders hungrily.") + source_turf.visible_message(SPAN_NOTICE("\The [display_name] shudders hungrily.")) if(6) set_trait(TRAIT_WEED_TOLERANCE, get_trait(TRAIT_WEED_TOLERANCE)+(rand(-2,2)*degree),10, 0) if(prob(degree*5)) @@ -583,7 +583,7 @@ set_trait(TRAIT_POTENCY, get_trait(TRAIT_POTENCY)+(rand(-20,20)*degree),200, 0) if(prob(degree*5)) set_trait(TRAIT_SPREAD, get_trait(TRAIT_SPREAD)+rand(-1,1),2, 0) - source_turf.visible_message("\The [display_name] spasms visibly, shifting in the tray.") + source_turf.visible_message(SPAN_NOTICE("\The [display_name] spasms visibly, shifting in the tray.")) if(prob(degree*5)) set_trait(TRAIT_SPOROUS, !get_trait(TRAIT_SPOROUS)) if(9) @@ -594,12 +594,12 @@ if(prob(degree*2)) set_trait(TRAIT_BIOLUM, !get_trait(TRAIT_BIOLUM)) if(get_trait(TRAIT_BIOLUM)) - source_turf.visible_message("\The [display_name] begins to glow!") + source_turf.visible_message(SPAN_NOTICE("\The [display_name] begins to glow!")) if(prob(degree*2)) set_trait(TRAIT_BIOLUM_COLOUR,get_random_colour(0,75,190)) source_turf.visible_message("\The [display_name]'s glow changes colour!") else - source_turf.visible_message("\The [display_name]'s glow dims...") + source_turf.visible_message(SPAN_NOTICE("\The [display_name]'s glow dims...")) if(11) set_trait(TRAIT_TELEPORTING,1) @@ -711,7 +711,7 @@ return if(!force_amount && get_trait(TRAIT_YIELD) == 0 && !harvest_sample) - if(istype(user)) to_chat(user, "You fail to harvest anything useful.") + if(istype(user)) to_chat(user, SPAN_DANGER("You fail to harvest anything useful.")) else if(istype(user)) to_chat(user, "You [harvest_sample ? "take a sample" : "harvest"] from the [display_name].") @@ -768,7 +768,7 @@ //Handle spawning in living, mobile products (like dionaea). if(istype(product,/mob/living)) - product.visible_message("The pod disgorges [product]!") + product.visible_message(SPAN_NOTICE("The pod disgorges [product]!")) handle_living_product(product) if(istype(product,/mob/living/simple_animal/mushroom)) // Gross. var/mob/living/simple_animal/mushroom/mush = product diff --git a/code/modules/hydroponics/seed_gene_mut.dm b/code/modules/hydroponics/seed_gene_mut.dm index 68bc9cfadcd..06344fe28c6 100644 --- a/code/modules/hydroponics/seed_gene_mut.dm +++ b/code/modules/hydroponics/seed_gene_mut.dm @@ -4,7 +4,7 @@ return src var/datum/seed/S = diverge() //Let's not modify all of the seeds. - T.visible_message("\The [S.display_name] quivers!") //Mimicks the normal mutation. + T.visible_message(SPAN_NOTICE("\The [S.display_name] quivers!")) //Mimicks the normal mutation. G.mutate(S, T) return S @@ -95,12 +95,12 @@ if(prob(50)) S.set_trait(TRAIT_BIOLUM, !S.get_trait(TRAIT_BIOLUM)) if(S.get_trait(TRAIT_BIOLUM)) - T.visible_message("\The [S.display_name] begins to glow!") + T.visible_message(SPAN_NOTICE("\The [S.display_name] begins to glow!")) if(prob(50)) S.set_trait(TRAIT_BIOLUM_COLOUR,get_random_colour(0,75,190)) T.visible_message("\The [S.display_name]'s glow changes colour!") else - T.visible_message("\The [S.display_name]'s glow dims...") + T.visible_message(SPAN_NOTICE("\The [S.display_name]'s glow dims...")) if(prob(60)) S.set_trait(TRAIT_PRODUCES_POWER, !S.get_trait(TRAIT_PRODUCES_POWER)) @@ -121,7 +121,7 @@ S.set_trait(TRAIT_MATURATION, S.get_trait(TRAIT_MATURATION)+rand(-1,1),30,0) if(prob(55)) S.set_trait(TRAIT_SPREAD, S.get_trait(TRAIT_SPREAD)+rand(-1,1),2,0) - T.visible_message("\The [S.display_name] spasms visibly, shifting in the tray.") + T.visible_message(SPAN_NOTICE("\The [S.display_name] spasms visibly, shifting in the tray.")) /singleton/plantgene/fruit/mutate(var/datum/seed/S) if(prob(65)) diff --git a/code/modules/hydroponics/seed_machines.dm b/code/modules/hydroponics/seed_machines.dm index 56a6273492a..ef91a4a45b5 100644 --- a/code/modules/hydroponics/seed_machines.dm +++ b/code/modules/hydroponics/seed_machines.dm @@ -96,7 +96,7 @@ if(attacking_item.isscrewdriver()) open = !open - to_chat(user, "You [open ? "open" : "close"] the maintenance panel.") + to_chat(user, SPAN_NOTICE("You [open ? "open" : "close"] the maintenance panel.")) return if(open) diff --git a/code/modules/hydroponics/seed_mobs.dm b/code/modules/hydroponics/seed_mobs.dm index d3752e6c770..c8e25ff1885 100644 --- a/code/modules/hydroponics/seed_mobs.dm +++ b/code/modules/hydroponics/seed_mobs.dm @@ -16,7 +16,7 @@ SSghostroles.remove_spawn_atom(product_spawner_type, host) host.death() // This seems redundant, but a lot of mobs don't host.stat = DEAD // handle death() properly. Better safe than etc. - host.visible_message("[host] is malformed and unable to survive. It expires pitifully, leaving behind some seeds.") + host.visible_message(SPAN_DANGER("[host] is malformed and unable to survive. It expires pitifully, leaving behind some seeds.")) var/total_yield = rand(1,3) for(var/j = 0;j<=total_yield;j++) diff --git a/code/modules/hydroponics/spreading/spreading.dm b/code/modules/hydroponics/spreading/spreading.dm index 4f77f821cd2..801eeb81749 100644 --- a/code/modules/hydroponics/spreading/spreading.dm +++ b/code/modules/hydroponics/spreading/spreading.dm @@ -19,7 +19,7 @@ log_and_message_admins("Spacevines spawned at \the [get_area(T)]", location = T) return - log_and_message_admins("Event: Spacevines failed to find a viable turf.") + log_and_message_admins(SPAN_NOTICE("Event: Spacevines failed to find a viable turf.")) /obj/effect/dead_plant anchored = 1 @@ -88,7 +88,7 @@ parent = newparent if(!SSplants) - to_world("Plant controller does not exist and [src] requires it. Aborting.") + to_world(SPAN_DANGER("Plant controller does not exist and [src] requires it. Aborting.")) qdel(src) return @@ -244,16 +244,16 @@ if(attacking_item.iswirecutter() || istype(attacking_item, /obj/item/surgery/scalpel)) if(sampled) - to_chat(user, "\The [src] has already been sampled recently.") + to_chat(user, SPAN_WARNING("\The [src] has already been sampled recently.")) return if(!is_mature()) - to_chat(user, "\The [src] is not mature enough to yield a sample yet.") + to_chat(user, SPAN_WARNING("\The [src] is not mature enough to yield a sample yet.")) return if(!seed) - to_chat(user, "There is nothing to take a sample from.") + to_chat(user, SPAN_WARNING("There is nothing to take a sample from.")) return if(sampled) - to_chat(user, "You cannot take another sample from \the [src].") + to_chat(user, SPAN_DANGER("You cannot take another sample from \the [src].")) return if(prob(70)) sampled = 1 diff --git a/code/modules/hydroponics/spreading/spreading_response.dm b/code/modules/hydroponics/spreading/spreading_response.dm index 3e47f51c2db..7854826d5c5 100644 --- a/code/modules/hydroponics/spreading/spreading_response.dm +++ b/code/modules/hydroponics/spreading/spreading_response.dm @@ -44,21 +44,21 @@ if(buckled.buckled_to == src) if(buckled != user) buckled.visible_message(\ - "[user.name] frees [buckled.name] from \the [src].",\ - "[user.name] frees you from \the [src].",\ - "You hear shredding and ripping.") + SPAN_NOTICE("[user.name] frees [buckled.name] from \the [src]."),\ + SPAN_NOTICE("[user.name] frees you from \the [src]."),\ + SPAN_WARNING("You hear shredding and ripping.")) else buckled.visible_message(\ - "[buckled.name] struggles free of \the [src].",\ - "You untangle \the [src] from around yourself.",\ - "You hear shredding and ripping.") + SPAN_NOTICE("[buckled.name] struggles free of \the [src]."),\ + SPAN_NOTICE("You untangle \the [src] from around yourself."),\ + SPAN_WARNING("You hear shredding and ripping.")) unbuckle() else var/text = pick("rip","tear","pull") user.visible_message(\ - "[user.name] [text]s at \the [src].",\ - "You [text] at \the [src].",\ - "You hear shredding and ripping.") + SPAN_NOTICE("[user.name] [text]s at \the [src]."),\ + SPAN_NOTICE("You [text] at \the [src]."),\ + SPAN_WARNING("You hear shredding and ripping.")) return /obj/effect/plant/proc/entangle(var/mob/living/victim) @@ -77,11 +77,11 @@ if(H.Check_Shoegrip(FALSE)) can_grab = 0 if(can_grab) - src.visible_message("Tendrils lash out from \the [src] and drag \the [victim] in!") + src.visible_message(SPAN_DANGER("Tendrils lash out from \the [src] and drag \the [victim] in!")) victim.forceMove(src.loc) //entangling people if(victim.loc == src.loc) buckle(victim) victim.set_dir(pick(GLOB.cardinal)) - to_chat(victim, "Tendrils tighten around you!") + to_chat(victim, SPAN_DANGER("Tendrils tighten around you!")) diff --git a/code/modules/hydroponics/trays/tray.dm b/code/modules/hydroponics/trays/tray.dm index 22947091ebd..448fcedbb4d 100644 --- a/code/modules/hydroponics/trays/tray.dm +++ b/code/modules/hydroponics/trays/tray.dm @@ -145,7 +145,8 @@ if(nymph.nutrition > 100 && nutrilevel < 10) nymph.adjustNutritionLoss((10-nutrilevel)*5) nutrilevel = 10 - nymph.visible_message("[nymph] secretes a trickle of green liquid, refilling [src].","You secrete a trickle of green liquid, refilling [src].") + nymph.visible_message(SPAN_NOTICE("[nymph] secretes a trickle of green liquid, refilling [src]."), + SPAN_NOTICE("You secrete a trickle of green liquid, refilling [src].")) return//Nymphs cant open and close lids if(mechanical && !usr.incapacitated() && Adjacent(usr)) close_lid(usr) @@ -180,18 +181,21 @@ if(weedlevel > 0) nymph.ingested.add_reagent(/singleton/reagent/nutriment, weedlevel/6) weedlevel = 0 - nymph.visible_message("[nymph] roots through [src], ripping out weeds and eating them noisily.","You root through [src], ripping out weeds and eating them noisily.") + nymph.visible_message(SPAN_NOTICE("[nymph] roots through [src], ripping out weeds and eating them noisily."), + SPAN_NOTICE("You root through [src], ripping out weeds and eating them noisily.")) return if (dead)//Let nymphs eat dead plants nymph.ingested.add_reagent(/singleton/reagent/nutriment, 1) - nymph.visible_message("[nymph] rips out the dead plants from [src], and loudly munches them.","You root out the dead plants in [src], eating them with loud chewing sounds.") + nymph.visible_message(SPAN_NOTICE("[nymph] rips out the dead plants from [src], and loudly munches them."), + SPAN_NOTICE("You root out the dead plants in [src], eating them with loud chewing sounds.")) remove_dead(user) return if (harvest) harvest(user) return else - nymph.visible_message("[nymph] rolls around in [src] for a bit.","You roll around in [src] for a bit.") + nymph.visible_message(SPAN_NOTICE("[nymph] rolls around in [src] for a bit."), + SPAN_NOTICE("You roll around in [src] for a bit.")) return /obj/machinery/portable_atmospherics/hydroponics/New() @@ -248,7 +252,7 @@ if(prob(min(25,max(1,seed.get_trait(TRAIT_POTENCY/2))))) if(seed.get_trait(TRAIT_SPOROUS) && !closed_system) seed.create_spores(get_turf(src)) - visible_message("\The [src] releases its spores!") + visible_message(SPAN_DANGER("\The [src] releases its spores!")) //Process reagents being input into the tray. /obj/machinery/portable_atmospherics/hydroponics/proc/process_reagents() @@ -319,7 +323,7 @@ // Reset values. if(seed.get_trait(TRAIT_SPOROUS)) seed.create_spores(get_turf(src)) - visible_message("\The [src] releases its spores!") + visible_message(SPAN_DANGER("\The [src] releases its spores!")) harvest = 0 lastproduce = age @@ -372,7 +376,7 @@ pestlevel = 0 sampled = 0 update_icon() - visible_message("[src] has been overtaken by [seed.display_name].") + visible_message(SPAN_NOTICE("[src] has been overtaken by [seed.display_name].")) return @@ -450,7 +454,7 @@ weedlevel = 0 update_icon() - visible_message("The [previous_plant] has suddenly mutated into [seed.display_name]!") + visible_message(SPAN_DANGER("The
[previous_plant] has suddenly mutated into [seed.display_name]!")) return @@ -552,16 +556,18 @@ check_health() else - to_chat(user, "\The [src] already has seeds in it!") + to_chat(user, SPAN_DANGER("\The [src] already has seeds in it!")) else if (istype(attacking_item, /obj/item/material/minihoe)) // The minihoe if(weedlevel > 0) - user.visible_message("[user] starts uprooting the weeds.", "You remove the weeds from the [src].") + user.visible_message(SPAN_DANGER("[user] starts uprooting the weeds."), + SPAN_DANGER("You remove the weeds from the [src].")) + weedlevel = 0 update_icon() else - to_chat(user, "This plot is completely devoid of weeds. It doesn't need uprooting.") + to_chat(user, SPAN_DANGER("This plot is completely devoid of weeds. It doesn't need uprooting.")) else if (istype(attacking_item, /obj/item/storage/bag/plants)) @@ -597,7 +603,7 @@ else if(attacking_item.force && seed) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) - user.visible_message("\The [seed.display_name] has been attacked by [user] with \the [attacking_item]!") + user.visible_message(SPAN_DANGER("\The [seed.display_name] has been attacked by [user] with \the [attacking_item]!")) if(!dead) var/total_damage = attacking_item.force if ((attacking_item.sharp) || (attacking_item.damtype == "fire")) //fire and sharp things are more effective when dealing with plants @@ -628,7 +634,7 @@ . += "[src] is empty." return - . += "[seed.display_name] are growing here." + . += SPAN_NOTICE("[seed.display_name] are growing here.") if(!is_adjacent) return @@ -642,7 +648,7 @@ . += "\The [src] is infested with tiny worms!" if(dead) - . += "The plant is dead." + . += SPAN_DANGER("The plant is dead.") else if(health <= (seed.get_trait(TRAIT_ENDURANCE)/ 2)) . += "The plant looks unhealthy." diff --git a/code/modules/hydroponics/trays/tray_process.dm b/code/modules/hydroponics/trays/tray_process.dm index 1d78868aa8b..94289260199 100644 --- a/code/modules/hydroponics/trays/tray_process.dm +++ b/code/modules/hydroponics/trays/tray_process.dm @@ -120,7 +120,7 @@ lastproduce = age if(seed.get_trait(TRAIT_SPOROUS) && !closed_system) seed.create_spores(get_turf(src)) - visible_message("\The [src] releases its spores!") + visible_message(SPAN_DANGER("\The [src] releases its spores!")) // If we're a vine which is not in a closed tray and is at least half mature, and there's no vine currently on our turf: make one (maybe) if(!closed_system && seed.get_trait(TRAIT_SPREAD) == 2 && 2 * age >= seed.get_trait(TRAIT_MATURATION) && !(locate(/obj/effect/plant) in get_turf(src)) && \ diff --git a/code/modules/hydroponics/trays/tray_soil.dm b/code/modules/hydroponics/trays/tray_soil.dm index f8e50f417e7..4d55086b2fb 100644 --- a/code/modules/hydroponics/trays/tray_soil.dm +++ b/code/modules/hydroponics/trays/tray_soil.dm @@ -30,7 +30,7 @@ if(istype(attacking_item, /obj/item/shovel)) if(attacking_item.use_tool(src, user, 50, volume = 50)) new /obj/item/stack/material/sandstone{amount = 3}(loc) - to_chat(user, "You remove the soil from the bed and dismantle the sandstone base.") + to_chat(user, SPAN_NOTICE("You remove the soil from the bed and dismantle the sandstone base.")) playsound(src, 'sound/effects/stonedoor_openclose.ogg', 40, 1) qdel(src) else diff --git a/code/modules/hydroponics/trays/tray_tools.dm b/code/modules/hydroponics/trays/tray_tools.dm index 50a90e82bd5..a77064e75a5 100644 --- a/code/modules/hydroponics/trays/tray_tools.dm +++ b/code/modules/hydroponics/trays/tray_tools.dm @@ -92,12 +92,12 @@ grown_reagents = H.reagents if(!grown_seed) - to_chat(user, "[src] can tell you nothing about \the [target].") + to_chat(user, SPAN_DANGER("[src] can tell you nothing about \the [target].")) return form_title = "[grown_seed.seed_name] (#[grown_seed.uid])" var/dat = "

Plant data for [form_title]

" - user.visible_message("[user] runs the scanner over \the [target].") + user.visible_message(SPAN_NOTICE("[user] runs the scanner over \the [target].")) dat += "

General Data

" diff --git a/code/modules/hydroponics/trays/tray_update_icons.dm b/code/modules/hydroponics/trays/tray_update_icons.dm index 01477ed9592..710607e484c 100644 --- a/code/modules/hydroponics/trays/tray_update_icons.dm +++ b/code/modules/hydroponics/trays/tray_update_icons.dm @@ -30,7 +30,7 @@ if(!seed.growth_stages) seed.update_growth_stages() if(!seed.growth_stages) - to_world("Seed type [seed.get_trait(TRAIT_PLANT_ICON)] cannot find a growth stage value.") + to_world(SPAN_DANGER("Seed type [seed.get_trait(TRAIT_PLANT_ICON)] cannot find a growth stage value.")) return var/overlay_stage = 1 if(age >= seed.get_trait(TRAIT_MATURATION)) diff --git a/code/modules/integrated_electronics/core/assemblies.dm b/code/modules/integrated_electronics/core/assemblies.dm index a916df22211..ef31f5c2ac7 100644 --- a/code/modules/integrated_electronics/core/assemblies.dm +++ b/code/modules/integrated_electronics/core/assemblies.dm @@ -92,7 +92,7 @@ if(battery) HTML += "[round(battery.charge, 0.1)]/[battery.maxcharge] ([round(battery.percent(), 0.1)]%) cell charge. Remove" else - HTML += "No powercell detected!" + HTML += SPAN_DANGER("No powercell detected!") HTML += "

" HTML += "Components:
" HTML += "Built in:
" @@ -127,7 +127,7 @@ if(..()) return 1 if(!opened) - to_chat(usr, "\The [src] is not open!") + to_chat(usr, SPAN_WARNING("\The [src] is not open!")) return if(href_list["rename"]) @@ -135,12 +135,12 @@ if(href_list["remove_cell"]) if(!battery) - to_chat(usr, "There's no power cell to remove from \the [src].") + to_chat(usr, SPAN_WARNING("There's no power cell to remove from \the [src].")) else var/turf/T = get_turf(src) battery.forceMove(T) playsound(T, 'sound/items/crowbar_pry.ogg', 50, 1) - to_chat(usr, "You pull \the [battery] out of \the [src]'s power supply.") + to_chat(usr, SPAN_NOTICE("You pull \the [battery] out of \the [src]'s power supply.")) battery = null interact(usr) // To refresh the UI. @@ -157,7 +157,7 @@ var/input = sanitizeSafe(input("What do you want to name this?", "Rename", src.name) as null|text, MAX_NAME_LEN) if(src && input) - to_chat(M, "The machine now has a label reading '[input]'.") + to_chat(M, SPAN_NOTICE("The machine now has a label reading '[input]'.")) name = input return input return null @@ -203,21 +203,21 @@ // Returns true if the circuit made it inside. /obj/item/device/electronic_assembly/proc/add_circuit(obj/item/integrated_circuit/IC, mob/user) if(!opened) - to_chat(user, "\The [src] isn't opened, so you can't put anything inside. Try using a crowbar.") + to_chat(user, SPAN_WARNING("\The [src] isn't opened, so you can't put anything inside. Try using a crowbar.")) return FALSE if(IC.w_class > w_class) - to_chat(user, "\The [IC] is way too big to fit into \the [src].") + to_chat(user, SPAN_WARNING("\The [IC] is way too big to fit into \the [src].")) return FALSE var/total_part_size = get_part_size() var/total_complexity = get_part_complexity() if((total_part_size + IC.size) > max_components) - to_chat(user, "You can't seem to add the '[IC.name]', as there's insufficient space.") + to_chat(user, SPAN_WARNING("You can't seem to add the '[IC.name]', as there's insufficient space.")) return FALSE if((total_complexity + IC.complexity) > max_complexity) - to_chat(user, "You can't seem to add the '[IC.name]', since this setup's too complicated for the case.") + to_chat(user, SPAN_WARNING("You can't seem to add the '[IC.name]', since this setup's too complicated for the case.")) return FALSE if(!IC.forceMove(src)) @@ -242,7 +242,7 @@ return FALSE if(add_circuit(attacking_item, user)) - to_chat(user, "You slide \the [attacking_item] inside \the [src].") + to_chat(user, SPAN_NOTICE("You slide \the [attacking_item] inside \the [src].")) playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) interact(user) return TRUE @@ -260,7 +260,7 @@ else if(attacking_item.iscrowbar()) attacking_item.play_tool_sound(get_turf(src), 50) opened = !opened - to_chat(user, "You [opened ? "open" : "close"] \the [src].") + to_chat(user, SPAN_NOTICE("You [opened ? "open" : "close"] \the [src].")) update_icon() return TRUE @@ -268,19 +268,20 @@ if(opened) interact(user) else - to_chat(user, "\The [src] isn't open, so you can't fiddle with the internal components. \ - Try using a crowbar.") + to_chat(user, SPAN_WARNING("\The [src] isn't open, so you can't fiddle with the internal components. \ + Try using a crowbar.")) + return TRUE else if(istype(attacking_item, /obj/item/cell/device)) if(!opened) - to_chat(user, "\The [src] isn't open, so you can't put anything inside. Try using a crowbar.") + to_chat(user, SPAN_WARNING("\The [src] isn't open, so you can't put anything inside. Try using a crowbar.")) for(var/obj/item/integrated_circuit/input/S in contents) S.attackby_react(attacking_item,user,user.a_intent) return FALSE if(battery) - to_chat(user, "\The [src] already has \a [battery] inside. Remove it first if you want to replace it.") + to_chat(user, SPAN_WARNING("\The [src] already has \a [battery] inside. Remove it first if you want to replace it.")) for(var/obj/item/integrated_circuit/input/S in contents) S.attackby_react(attacking_item,user,user.a_intent) return FALSE @@ -289,7 +290,7 @@ user.drop_from_inventory(cell,src) battery = cell playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, 1) - to_chat(user, "You slot \the [cell] inside \the [src]'s power supply.") + to_chat(user, SPAN_NOTICE("You slot \the [cell] inside \the [src]'s power supply.")) interact(user) return TRUE else if(istype(attacking_item, /obj/item/device/integrated_electronics/detailer)) diff --git a/code/modules/integrated_electronics/core/assemblies/generic.dm b/code/modules/integrated_electronics/core/assemblies/generic.dm index bb534befdd8..aef4d75da68 100644 --- a/code/modules/integrated_electronics/core/assemblies/generic.dm +++ b/code/modules/integrated_electronics/core/assemblies/generic.dm @@ -199,11 +199,11 @@ return var/turf/T = get_turf(user) if(!istype(T, /turf/simulated/floor)) - to_chat(user, "You cannot place \the [src] on this spot!") + to_chat(user, SPAN_WARNING("You cannot place \the [src] on this spot!")) return playsound(src.loc, 'sound/machines/click.ogg', 75, 1) user.visible_message("\The [user] attaches \the [src] to the wall.", - "You attach \the [src] to the wall.", + SPAN_NOTICE("You attach \the [src] to the wall."), "You hear clicking.") if(isrobot(user)) //Robots cannot unequip/drop items, for Safety Reasons. forceMove(T) diff --git a/code/modules/integrated_electronics/core/device.dm b/code/modules/integrated_electronics/core/device.dm index 2b3c6ee55d6..c7051265018 100644 --- a/code/modules/integrated_electronics/core/device.dm +++ b/code/modules/integrated_electronics/core/device.dm @@ -29,7 +29,7 @@ playsound(get_turf(src), 'sound/items/crowbar_pry.ogg', 50, 1) opened = !opened EA.opened = opened - to_chat(user, "You [opened ? "open" : "close"] \the [src].") + to_chat(user, SPAN_NOTICE("You [opened ? "open" : "close"] \the [src].")) secured = 1 update_icon() diff --git a/code/modules/integrated_electronics/core/integrated_circuit.dm b/code/modules/integrated_electronics/core/integrated_circuit.dm index 3edf6478e2b..233d3931b60 100644 --- a/code/modules/integrated_electronics/core/integrated_circuit.dm +++ b/code/modules/integrated_electronics/core/integrated_circuit.dm @@ -78,7 +78,7 @@ a creative player the means to solve many problems. Circuits are held inside an var/input = sanitizeSafe(input("What do you want to name the circuit?", "Rename", src.name) as null|text, MAX_NAME_LEN) if(src && input && assembly.check_interactivity(M)) - to_chat(M, "The circuit '[src.name]' is now labeled '[input]'.") + to_chat(M, SPAN_NOTICE("The circuit '[src.name]' is now labeled '[input]'.")) displayed_name = input /obj/item/integrated_circuit/interact(mob/user) @@ -184,7 +184,7 @@ a creative player the means to solve many problems. Circuits are held inside an if(!check_interactivity(usr)) return if (assembly && !assembly.opened) - to_chat(usr, "\The [assembly] is not open!") + to_chat(usr, SPAN_WARNING("\The [assembly] is not open!")) return if(..()) return 1 @@ -248,7 +248,7 @@ a creative player the means to solve many problems. Circuits are held inside an if(pin) debugger.write_data(pin, usr) else - to_chat(usr, "You can't do a whole lot without the proper tools.") + to_chat(usr, SPAN_WARNING("You can't do a whole lot without the proper tools.")) if(href_list["examine"]) var/obj/item/integrated_circuit/examined @@ -275,23 +275,23 @@ a creative player the means to solve many problems. Circuits are held inside an if(D.accepting_refs) D.afterattack(src, usr, TRUE) else - to_chat(usr, "The Debugger's 'ref scanner' needs to be on.") + to_chat(usr, SPAN_WARNING("The Debugger's 'ref scanner' needs to be on.")) else - to_chat(usr, "You need a multitool/debugger set to 'ref' mode to do that.") + to_chat(usr, SPAN_WARNING("You need a multitool/debugger set to 'ref' mode to do that.")) if(href_list["return"]) if(A) update_to_assembly = 1 usr << browse(null, "window=circuit-\ref[src]") else - to_chat(usr, "This circuit is not in an assembly!") + to_chat(usr, SPAN_WARNING("This circuit is not in an assembly!")) if(href_list["remove"]) if(!A) - to_chat(usr, "This circuit is not in an assembly!") + to_chat(usr, SPAN_WARNING("This circuit is not in an assembly!")) return if(!removable) - to_chat(usr, "\The [src] seems to be permanently attached to the case.") + to_chat(usr, SPAN_WARNING("\The [src] seems to be permanently attached to the case.")) return var/obj/item/device/electronic_assembly/ea = loc disconnect_all() @@ -299,7 +299,7 @@ a creative player the means to solve many problems. Circuits are held inside an forceMove(T) assembly = null playsound(T, 'sound/items/crowbar_pry.ogg', 50, 1) - to_chat(usr, "You pop \the [src] out of the case, and slide it out.") + to_chat(usr, SPAN_NOTICE("You pop \the [src] out of the case, and slide it out.")) if(istype(ea)) ea.interact(usr) diff --git a/code/modules/integrated_electronics/core/pins.dm b/code/modules/integrated_electronics/core/pins.dm index c363d65d535..8c25f70fea0 100644 --- a/code/modules/integrated_electronics/core/pins.dm +++ b/code/modules/integrated_electronics/core/pins.dm @@ -153,18 +153,18 @@ list[]( if("string") new_data = tgui_input_text(user, "Now type in a string.", "[src] string writing", istext(default) ? default : "", MAX_MESSAGE_LEN) if(istext(new_data) && holder.check_interactivity(user) ) - to_chat(user, "You input [new_data] into the pin.") + to_chat(user, SPAN_NOTICE("You input [new_data] into the pin.")) return new_data if("number") new_data = tgui_input_number(user, "Now type in a number.", "[src] number writing", isnum(default) ? default : 0) if(isnum(new_data) && holder.check_interactivity(user) ) - to_chat(user, "You input [new_data] into the pin.") + to_chat(user, SPAN_NOTICE("You input [new_data] into the pin.")) return new_data if("null") if(holder.check_interactivity(user)) - to_chat(user, "You clear the pin's memory.") + to_chat(user, SPAN_NOTICE("You clear the pin's memory.")) return new_data // Basically a null check @@ -178,7 +178,7 @@ list[]( /datum/integrated_io/activate/ask_for_pin_data(mob/user) // This just pulses the pin. holder.check_then_do_work(ignore_power = TRUE) - to_chat(user, "You pulse \the [holder]'s [src] pin.") + to_chat(user, SPAN_NOTICE("You pulse \the [holder]'s [src] pin.")) /datum/integrated_io/activate name = "activation pin" diff --git a/code/modules/integrated_electronics/core/printer.dm b/code/modules/integrated_electronics/core/printer.dm index 1cb616a126b..b5093ade512 100644 --- a/code/modules/integrated_electronics/core/printer.dm +++ b/code/modules/integrated_electronics/core/printer.dm @@ -22,15 +22,15 @@ if(stack.material.name == DEFAULT_WALL_MATERIAL) var/num = min((max_metal - metal) / metal_per_sheet, stack.amount) if(num < 1) - to_chat(user, "\The [src] is too full to add more metal.") + to_chat(user, SPAN_WARNING("\The [src] is too full to add more metal.")) return if(stack.use(num)) - to_chat(user, "You add [num] sheet\s to \the [src].") + to_chat(user, SPAN_NOTICE("You add [num] sheet\s to \the [src].")) metal += num * metal_per_sheet return TRUE if(istype(attacking_item,/obj/item/integrated_circuit)) - to_chat(user, "You insert the circuit into \the [src]. ") + to_chat(user, SPAN_NOTICE("You insert the circuit into \the [src]. ")) user.unEquip(attacking_item) metal = min(metal + attacking_item.w_class, max_metal) qdel(attacking_item) @@ -38,17 +38,17 @@ if(istype(attacking_item,/obj/item/disk/integrated_circuit/upgrade/advanced)) if(upgraded) - to_chat(user, "\The [src] already has this upgrade. ") + to_chat(user, SPAN_WARNING("\The [src] already has this upgrade. ")) return TRUE - to_chat(user, "You install \the [attacking_item] into \the [src]. ") + to_chat(user, SPAN_NOTICE("You install \the [attacking_item] into \the [src]. ")) upgraded = TRUE return TRUE if(istype(attacking_item,/obj/item/disk/integrated_circuit/upgrade/clone)) if(can_clone) - to_chat(user, "\The [src] already has this upgrade. ") + to_chat(user, SPAN_WARNING("\The [src] already has this upgrade. ")) return TRUE - to_chat(user, "You install \the [attacking_item] into \the [src]. ") + to_chat(user, SPAN_NOTICE("You install \the [attacking_item] into \the [src]. ")) can_clone = TRUE return TRUE diff --git a/code/modules/integrated_electronics/core/special_pins/char_pin.dm b/code/modules/integrated_electronics/core/special_pins/char_pin.dm index 8f919d9117c..d20eb38f56e 100644 --- a/code/modules/integrated_electronics/core/special_pins/char_pin.dm +++ b/code/modules/integrated_electronics/core/special_pins/char_pin.dm @@ -5,7 +5,7 @@ /datum/integrated_io/char/ask_for_pin_data(mob/user) var/new_data = sanitize(input("Please type in one character.","[src] char writing") as null|text) if(holder.check_interactivity(user) ) - to_chat(user, "You input [new_data ? "'[new_data]'" : "NULL"] into the pin.") + to_chat(user, SPAN_NOTICE("You input [new_data ? "'[new_data]'" : "NULL"] into the pin.")) write_data_to_pin(new_data) /datum/integrated_io/char/write_data_to_pin(var/new_data) diff --git a/code/modules/integrated_electronics/core/special_pins/color_pin.dm b/code/modules/integrated_electronics/core/special_pins/color_pin.dm index 47460cfd16e..c5fe37ffe51 100644 --- a/code/modules/integrated_electronics/core/special_pins/color_pin.dm +++ b/code/modules/integrated_electronics/core/special_pins/color_pin.dm @@ -5,7 +5,7 @@ /datum/integrated_io/color/ask_for_pin_data(mob/user) var/new_data = input("Please select a color.","[src] color writing") as null|color if(holder.check_interactivity(user) ) - to_chat(user, "You input a new color into the pin.") + to_chat(user, SPAN_NOTICE("You input a new color into the pin.")) write_data_to_pin(new_data) /datum/integrated_io/color/write_data_to_pin(new_data) diff --git a/code/modules/integrated_electronics/core/special_pins/dir_pin.dm b/code/modules/integrated_electronics/core/special_pins/dir_pin.dm index 7526d5fdd7d..25a6c5c7c31 100644 --- a/code/modules/integrated_electronics/core/special_pins/dir_pin.dm +++ b/code/modules/integrated_electronics/core/special_pins/dir_pin.dm @@ -16,7 +16,7 @@ Up = [UP],\n\ Down = [DOWN]","[src] dir writing") as null|num if(isnum(new_data) && holder.check_interactivity(user) ) - to_chat(user, "You input [new_data] into the pin.") + to_chat(user, SPAN_NOTICE("You input [new_data] into the pin.")) write_data_to_pin(new_data) /datum/integrated_io/dir/write_data_to_pin(var/new_data) diff --git a/code/modules/integrated_electronics/core/special_pins/list_pin.dm b/code/modules/integrated_electronics/core/special_pins/list_pin.dm index c4f9f67a145..db15f6155f1 100644 --- a/code/modules/integrated_electronics/core/special_pins/list_pin.dm +++ b/code/modules/integrated_electronics/core/special_pins/list_pin.dm @@ -47,7 +47,7 @@ /datum/integrated_io/list/proc/remove_from_list_by_position(mob/user, position) var/list/my_list = data if(!my_list.len) - to_chat(user, "The list is empty, there's nothing to remove.") + to_chat(user, SPAN_WARNING("The list is empty, there's nothing to remove.")) return if(!position) return @@ -60,7 +60,7 @@ /datum/integrated_io/list/proc/remove_from_list(mob/user, target_entry) var/list/my_list = data if(!my_list.len) - to_chat(user, "The list is empty, there's nothing to remove.") + to_chat(user, SPAN_WARNING("The list is empty, there's nothing to remove.")) return if(!target_entry) target_entry = input("Which piece of data do you want to remove?", "Remove") as null|anything in my_list @@ -70,7 +70,7 @@ /datum/integrated_io/list/proc/edit_in_list(mob/user, target_entry) var/list/my_list = data if(!my_list.len) - to_chat(user, "The list is empty, there's nothing to modify.") + to_chat(user, SPAN_WARNING("The list is empty, there's nothing to modify.")) return if(!target_entry) target_entry = input("Which piece of data do you want to edit?", "Edit") as null|anything in my_list @@ -83,7 +83,7 @@ /datum/integrated_io/list/proc/edit_in_list_by_position(mob/user, var/position) var/list/my_list = data if(!my_list.len) - to_chat(user, "The list is empty, there's nothing to modify.") + to_chat(user, SPAN_WARNING("The list is empty, there's nothing to modify.")) return if(!position) return @@ -98,7 +98,7 @@ /datum/integrated_io/list/proc/swap_inside_list(mob/user, var/first_target, var/second_target) var/list/my_list = data if(my_list.len <= 1) - to_chat(user, "The list is empty, or too small to do any meaningful swapping.") + to_chat(user, SPAN_WARNING("The list is empty, or too small to do any meaningful swapping.")) return if(!first_target) first_target = input("Which piece of data do you want to swap? (1)", "Swap") as null|anything in my_list diff --git a/code/modules/integrated_electronics/core/special_pins/number_pin.dm b/code/modules/integrated_electronics/core/special_pins/number_pin.dm index e864c3c7891..49feea1d36b 100644 --- a/code/modules/integrated_electronics/core/special_pins/number_pin.dm +++ b/code/modules/integrated_electronics/core/special_pins/number_pin.dm @@ -5,7 +5,7 @@ /datum/integrated_io/number/ask_for_pin_data(mob/user) var/new_data = input("Please type in a number.","[src] number writing") as null|num if(isnum(new_data) && holder.check_interactivity(user) ) - to_chat(user, "You input [new_data] into the pin.") + to_chat(user, SPAN_NOTICE("You input [new_data] into the pin.")) write_data_to_pin(new_data) /datum/integrated_io/number/write_data_to_pin(var/new_data) diff --git a/code/modules/integrated_electronics/core/special_pins/string_pin.dm b/code/modules/integrated_electronics/core/special_pins/string_pin.dm index c364347669a..8b1320469b5 100644 --- a/code/modules/integrated_electronics/core/special_pins/string_pin.dm +++ b/code/modules/integrated_electronics/core/special_pins/string_pin.dm @@ -5,7 +5,7 @@ /datum/integrated_io/string/ask_for_pin_data(mob/user) var/new_data = sanitize(input("Please type in a string.","[src] string writing") as null|text, MAX_MESSAGE_LEN, 1, 0, 1) if(holder.check_interactivity(user) ) - to_chat(user, "You input [new_data ? "new_data" : "NULL"] into the pin.") + to_chat(user, SPAN_NOTICE("You input [new_data ? "new_data" : "NULL"] into the pin.")) write_data_to_pin(new_data) /datum/integrated_io/string/write_data_to_pin(var/new_data) diff --git a/code/modules/integrated_electronics/core/tools.dm b/code/modules/integrated_electronics/core/tools.dm index 46ed80f67a2..98075c587ff 100644 --- a/code/modules/integrated_electronics/core/tools.dm +++ b/code/modules/integrated_electronics/core/tools.dm @@ -21,31 +21,32 @@ /obj/item/device/integrated_electronics/wirer/proc/wire(var/datum/integrated_io/io, mob/user) if(!io.holder.assembly) - to_chat(user, "\The [io.holder] needs to be secured inside an assembly first.") + to_chat(user, SPAN_WARNING("\The [io.holder] needs to be secured inside an assembly first.")) return switch (mode) if (WIRE) selected_io = io - to_chat(user, "You attach a data wire to \the [selected_io.holder]'s [selected_io.name] data channel.") + to_chat(user, SPAN_NOTICE("You attach a data wire to \the [selected_io.holder]'s [selected_io.name] data channel.")) mode = WIRING update_icon() if (WIRING) if(io == selected_io) - to_chat(user, "Wiring \the [selected_io.holder]'s [selected_io.name] into itself is rather pointless.") + to_chat(user, SPAN_WARNING("Wiring \the [selected_io.holder]'s [selected_io.name] into itself is rather pointless.")) return if(io.io_type != selected_io.io_type) - to_chat(user, "Those two types of channels are incompatable. The first is a [selected_io.io_type], \ - while the second is a [io.io_type].") + to_chat(user, SPAN_WARNING("Those two types of channels are incompatable. The first is a [selected_io.io_type], \ + while the second is a [io.io_type].")) + return if(io.holder.assembly && io.holder.assembly != selected_io.holder.assembly) - to_chat(user, "Both \the [io.holder] and \the [selected_io.holder] need to be inside the same assembly.") + to_chat(user, SPAN_WARNING("Both \the [io.holder] and \the [selected_io.holder] need to be inside the same assembly.")) return selected_io.linked |= io io.linked |= selected_io - to_chat(user, "You connect \the [selected_io.holder]'s [selected_io.name] to \the [io.holder]'s [io.name].") + to_chat(user, SPAN_NOTICE("You connect \the [selected_io.holder]'s [selected_io.name] to \the [io.holder]'s [io.name].")) mode = WIRE update_icon() selected_io.holder.interact(user) // This is to update the UI. @@ -54,17 +55,18 @@ if (UNWIRE) selected_io = io if(!io.linked.len) - to_chat(user, "There is nothing connected to \the [selected_io] data channel.") + to_chat(user, SPAN_WARNING("There is nothing connected to \the [selected_io] data channel.")) selected_io = null return - to_chat(user, "You prepare to detach a data wire from \the [selected_io.holder]'s [selected_io.name] data channel.") + to_chat(user, SPAN_NOTICE("You prepare to detach a data wire from \the [selected_io.holder]'s [selected_io.name] data channel.")) mode = UNWIRING update_icon() if (UNWIRING) if(io == selected_io) - to_chat(user, "You can't wire a pin into each other, so unwiring \the [selected_io.holder] from \ - the same pin is rather moot.") + to_chat(user, SPAN_WARNING("You can't wire a pin into each other, so unwiring \the [selected_io.holder] from \ + the same pin is rather moot.")) + return if(selected_io in io.linked) io.linked.Remove(selected_io) @@ -76,8 +78,9 @@ mode = UNWIRE update_icon() else - to_chat(user, "\The [selected_io.holder]'s [selected_io.name] and \the [io.holder]'s \ - [io.name] are not connected.") + to_chat(user, SPAN_WARNING("\The [selected_io.holder]'s [selected_io.name] and \the [io.holder]'s \ + [io.name] are not connected.")) + /obj/item/device/integrated_electronics/wirer/attack_self(mob/user) switch(mode) @@ -85,18 +88,18 @@ mode = UNWIRE if(WIRING) if(selected_io) - to_chat(user, "You decide not to wire the data channel.") + to_chat(user, SPAN_NOTICE("You decide not to wire the data channel.")) selected_io = null mode = WIRE if(UNWIRE) mode = WIRE if(UNWIRING) if(selected_io) - to_chat(user, "You decide not to disconnect the data channel.") + to_chat(user, SPAN_NOTICE("You decide not to disconnect the data channel.")) selected_io = null mode = UNWIRE update_icon() - to_chat(user, "You set \the [src] to [mode].") + to_chat(user, SPAN_NOTICE("You set \the [src] to [mode].")) #undef WIRE #undef WIRING @@ -127,25 +130,25 @@ new_data = sanitize(input("Now type in a string.","[src] string writing") as null|text, MAX_MESSAGE_LEN, 1, 0, 1) if(istext(new_data) && CanInteract(user, GLOB.physical_state)) data_to_write = new_data - to_chat(user, "You set \the [src]'s memory to \"[new_data]\".") + to_chat(user, SPAN_NOTICE("You set \the [src]'s memory to \"[new_data]\".")) if("number") accepting_refs = 0 new_data = input("Now type in a number.","[src] number writing") as null|num if(isnum(new_data) && CanInteract(user, GLOB.physical_state)) data_to_write = new_data - to_chat(user, "You set \the [src]'s memory to [new_data].") + to_chat(user, SPAN_NOTICE("You set \the [src]'s memory to [new_data].")) if("ref") accepting_refs = 1 to_chat(user, "You turn \the [src]'s ref scanner on. Slide it across \ an object for a ref of that object to save it in memory.") if("null") data_to_write = null - to_chat(user, "You set \the [src]'s memory to absolutely nothing.") + to_chat(user, SPAN_NOTICE("You set \the [src]'s memory to absolutely nothing.")) /obj/item/device/integrated_electronics/debugger/afterattack(atom/target, mob/living/user, proximity) if(accepting_refs && proximity) data_to_write = WEAKREF(target) - visible_message("[user] slides [src]'s ref scanner over \the [target].") + visible_message(SPAN_NOTICE("[user] slides [src]'s ref scanner over \the [target].")) to_chat(user, "You set \the [src]'s memory to a reference to [target.name] \[Ref\]. The ref scanner is \ now off.") accepting_refs = 0 @@ -159,10 +162,10 @@ var/datum/weakref/w = data_to_write var/atom/A = w.resolve() data_to_show = A.name - to_chat(user, "You write '[data_to_write ? data_to_show : "NULL"]' to the '[io]' pin of \the [io.holder].") + to_chat(user, SPAN_NOTICE("You write '[data_to_write ? data_to_show : "NULL"]' to the '[io]' pin of \the [io.holder].")) if (PULSE_CHANNEL) io.holder.check_then_do_work(ignore_power = TRUE) - to_chat(user, "You pulse \the [io.holder]'s '[io]' pin.") + to_chat(user, SPAN_NOTICE("You pulse \the [io.holder]'s '[io]' pin.")) io.holder.interact(user) // This is to update the UI. diff --git a/code/modules/integrated_electronics/subtypes/input.dm b/code/modules/integrated_electronics/subtypes/input.dm index 989867c89a2..97f6d9b7287 100644 --- a/code/modules/integrated_electronics/subtypes/input.dm +++ b/code/modules/integrated_electronics/subtypes/input.dm @@ -18,7 +18,7 @@ spawn_flags = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH /obj/item/integrated_circuit/input/button/ask_for_input(mob/user) //Bit misleading name for this specific use. - to_chat(user, "You press the button labeled '[src.name]'.") + to_chat(user, SPAN_NOTICE("You press the button labeled '[src.name]'.")) activate_pin(1) /obj/item/integrated_circuit/input/toggle_button @@ -36,7 +36,7 @@ set_pin_data(IC_OUTPUT, 1, !get_pin_data(IC_OUTPUT, 1)) push_data() activate_pin(1) - to_chat(user, "You toggle the button labeled '[src.name]' [get_pin_data(IC_OUTPUT, 1) ? "on" : "off"].") + to_chat(user, SPAN_NOTICE("You toggle the button labeled '[src.name]' [get_pin_data(IC_OUTPUT, 1) ? "on" : "off"].")) /obj/item/integrated_circuit/input/numberpad name = "number pad" @@ -1022,7 +1022,7 @@ user.drop_from_inventory(A) set_pin_data(IC_OUTPUT, 1, A) push_data() - to_chat(user, "You let [assembly] scan [A].") + to_chat(user, SPAN_NOTICE("You let [assembly] scan [A].")) activate_pin(1) return TRUE diff --git a/code/modules/integrated_electronics/subtypes/insert_slot.dm b/code/modules/integrated_electronics/subtypes/insert_slot.dm index 21530d97e9a..463288e180d 100644 --- a/code/modules/integrated_electronics/subtypes/insert_slot.dm +++ b/code/modules/integrated_electronics/subtypes/insert_slot.dm @@ -29,7 +29,7 @@ /obj/item/integrated_circuit/insert_slot/do_work() for(var/obj/item/O in items_contained) O.forceMove(get_turf(src)) - visible_message("\The [src] drops [O] on the ground.") + visible_message(SPAN_NOTICE("\The [src] drops [O] on the ground.")) items_contained -= O set_pin_data(IC_OUTPUT, 1, FALSE) push_data() @@ -38,11 +38,11 @@ /obj/item/integrated_circuit/insert_slot/proc/insert(var/obj/item/O, var/mob/user) if(is_type_in_list(O, allowed_types)) if(items_contained.len >= capacity) - to_chat(user, "\The [src] is too full to add [O].") + to_chat(user, SPAN_WARNING("\The [src] is too full to add [O].")) return FALSE items_contained += O user.drop_from_inventory(O,src) - to_chat(user, "You add [O] to \the [src].") + to_chat(user, SPAN_NOTICE("You add [O] to \the [src].")) set_pin_data(IC_OUTPUT, 1, TRUE) return TRUE diff --git a/code/modules/integrated_electronics/subtypes/manipulation.dm b/code/modules/integrated_electronics/subtypes/manipulation.dm index 3e7d005f904..243e1e7b338 100644 --- a/code/modules/integrated_electronics/subtypes/manipulation.dm +++ b/code/modules/integrated_electronics/subtypes/manipulation.dm @@ -32,12 +32,12 @@ if(istype(attacking_item, /obj/item/gun)) var/obj/item/gun/gun = attacking_item if(installed_gun) - to_chat(user, "There's already a weapon installed.") + to_chat(user, SPAN_WARNING("There's already a weapon installed.")) return user.drop_from_inventory(gun,src) installed_gun = gun size += gun.w_class - to_chat(user, "You slide \the [gun] into the firing mechanism.") + to_chat(user, SPAN_NOTICE("You slide \the [gun] into the firing mechanism.")) playsound(src.loc, /singleton/sound_category/crowbar_sound, 50, 1) else ..() @@ -45,12 +45,12 @@ /obj/item/integrated_circuit/manipulation/weapon_firing/attack_self(var/mob/user) if(installed_gun) installed_gun.forceMove(get_turf(src)) - to_chat(user, "You slide \the [installed_gun] out of the firing mechanism.") + to_chat(user, SPAN_NOTICE("You slide \the [installed_gun] out of the firing mechanism.")) size = initial(size) playsound(loc, /singleton/sound_category/crowbar_sound, 50, 1) installed_gun = null else - to_chat(user, "There's no weapon to remove from the mechanism.") + to_chat(user, SPAN_NOTICE("There's no weapon to remove from the mechanism.")) /obj/item/integrated_circuit/manipulation/weapon_firing/do_work() if(!installed_gun) @@ -142,9 +142,9 @@ var/obj/item/grenade/G = attacking_item if(istype(G)) if(attached_grenade) - to_chat(user, "There is already a grenade attached!") + to_chat(user, SPAN_WARNING("There is already a grenade attached!")) else if(user.unEquip(G, force=1)) - user.visible_message("\The [user] attaches \a [G] to \the [src]!", "You attach \the [G] to \the [src].") + user.visible_message(SPAN_WARNING("\The [user] attaches \a [G] to \the [src]!"), SPAN_NOTICE("You attach \the [G] to \the [src].")) attach_grenade(G) G.forceMove(src) else @@ -152,7 +152,7 @@ /obj/item/integrated_circuit/manipulation/grenade/attack_self(var/mob/user) if(attached_grenade) - user.visible_message("\The [user] removes \an [attached_grenade] from \the [src]!", "You remove \the [attached_grenade] from \the [src].") + user.visible_message(SPAN_WARNING("\The [user] removes \an [attached_grenade] from \the [src]!"), SPAN_NOTICE("You remove \the [attached_grenade] from \the [src].")) user.put_in_any_hand_if_possible(attached_grenade) || attached_grenade.dropInto(loc) detach_grenade() else @@ -336,10 +336,10 @@ if(!T.Adjacent(M)) return //Can't reach if(shocktime + (5 SECONDS) > world.time) - to_chat(M, "You feel a light tingle from [src]. Luckily it was charging!") + to_chat(M, SPAN_DANGER("You feel a light tingle from [src]. Luckily it was charging!")) return else - to_chat(M, "You feel a sharp shock from the [src]!") + to_chat(M, SPAN_DANGER("You feel a sharp shock from the [src]!")) spark(get_turf(M), 3, 1) M.stun_effect_act(0, Clamp(get_pin_data(IC_INPUT, 2),0,20), null) shocktime = world.time diff --git a/code/modules/integrated_electronics/subtypes/memory.dm b/code/modules/integrated_electronics/subtypes/memory.dm index 086505bf726..070bd3fea58 100644 --- a/code/modules/integrated_electronics/subtypes/memory.dm +++ b/code/modules/integrated_electronics/subtypes/memory.dm @@ -101,26 +101,26 @@ new_data = sanitize(input("Now type in a string.","[src] string writing") as null|text, MAX_MESSAGE_LEN, 1, 0, 1) if(istext(new_data) && CanInteract(user, GLOB.physical_state)) data = new_data - to_chat(user, "You set \the [src]'s memory to [O.display_data(data)].") + to_chat(user, SPAN_NOTICE("You set \the [src]'s memory to [O.display_data(data)].")) if("number") accepting_refs = 0 new_data = input("Now type in a number.","[src] number writing") as null|num if(isnum(new_data) && CanInteract(user, GLOB.physical_state)) data = new_data - to_chat(user, "You set \the [src]'s memory to [O.display_data(data)].") + to_chat(user, SPAN_NOTICE("You set \the [src]'s memory to [O.display_data(data)].")) if("ref") accepting_refs = 1 to_chat(user, "You turn \the [src]'s ref scanner on. Slide it across \ an object for a ref of that object to save it in memory.") if("null") data = null - to_chat(user, "You set \the [src]'s memory to absolutely nothing.") + to_chat(user, SPAN_NOTICE("You set \the [src]'s memory to absolutely nothing.")) /obj/item/integrated_circuit/memory/constant/afterattack(atom/target, mob/living/user, proximity) if(accepting_refs && proximity) var/datum/integrated_io/O = outputs[1] data = WEAKREF(target) - visible_message("[user] slides [src]'s ref scanner over \the [target].") + visible_message(SPAN_NOTICE("[user] slides [src]'s ref scanner over \the [target].")) to_chat(user, "You set \the [src]'s memory to a reference to [O.display_data(data)]. The ref scanner is \ now off.") accepting_refs = 0 diff --git a/code/modules/integrated_electronics/subtypes/output.dm b/code/modules/integrated_electronics/subtypes/output.dm index a84dedc7518..fa0dff0c3ec 100644 --- a/code/modules/integrated_electronics/subtypes/output.dm +++ b/code/modules/integrated_electronics/subtypes/output.dm @@ -44,7 +44,7 @@ var/list/nearby_things = range(0, get_turf(src)) for(var/mob/M in nearby_things) var/obj/O = assembly ? assembly : src - to_chat(M, "[icon2html(O, viewers(get_turf(src)))] [stuff_to_display]") + to_chat(M, SPAN_NOTICE("[icon2html(O, viewers(get_turf(src)))] [stuff_to_display]")) /obj/item/integrated_circuit/output/screen/large name = "large screen" @@ -55,7 +55,7 @@ /obj/item/integrated_circuit/output/screen/large/do_work() ..() var/obj/O = assembly ? loc : assembly - O.visible_message("[icon2html(O, viewers(get_turf(src)))] [stuff_to_display]") + O.visible_message(SPAN_NOTICE("[icon2html(O, viewers(get_turf(src)))] [stuff_to_display]")) /obj/item/integrated_circuit/output/light name = "light" @@ -399,12 +399,12 @@ stuff_to_print = copytext(stuff_to_print, MAX_PAPER_MESSAGE_LEN) if(stuff_to_print || eject) paper_sheet = paper_source.get_item(TRUE) - audible_message("\The [src] buzzes and spits out a sheet of paper.") + audible_message(SPAN_NOTICE("\The [src] buzzes and spits out a sheet of paper.")) paper_sheet.forceMove(get_turf(src)) if(using_tray) paper_sheet = paper_source.get_item(FALSE) if(!paper_sheet) - audible_message("\The [src] beeps, out of paper.") + audible_message(SPAN_NOTICE("\The [src] beeps, out of paper.")) return else - audible_message("\The [src] beeps, out of paper.") + audible_message(SPAN_NOTICE("\The [src] beeps, out of paper.")) diff --git a/code/modules/integrated_electronics/subtypes/power.dm b/code/modules/integrated_electronics/subtypes/power.dm index 73209d9177a..598248a9838 100644 --- a/code/modules/integrated_electronics/subtypes/power.dm +++ b/code/modules/integrated_electronics/subtypes/power.dm @@ -85,4 +85,4 @@ if(..()) // If the above code succeeds, do this below. if(prob(2)) spark(src, 3) - visible_message("\The [assembly] makes some sparks!") + visible_message(SPAN_WARNING("\The [assembly] makes some sparks!")) diff --git a/code/modules/integrated_electronics/subtypes/reagents.dm b/code/modules/integrated_electronics/subtypes/reagents.dm index 7dafd09c74f..6afd1d5a06e 100644 --- a/code/modules/integrated_electronics/subtypes/reagents.dm +++ b/code/modules/integrated_electronics/subtypes/reagents.dm @@ -68,7 +68,7 @@ if(isliving(AM)) var/mob/living/L = AM var/turf/T = get_turf(AM) - T.visible_message("[assembly] is trying to inject [L]!") + T.visible_message(SPAN_WARNING("[assembly] is trying to inject [L]!")) sleep(3 SECONDS) if(!L.can_be_injected_by(src)) activate_pin(3) @@ -76,8 +76,8 @@ var/contained = reagents.get_reagents() var/trans = reagents.trans_to_mob(L, transfer_amount, CHEM_BLOOD) message_admins("[assembly] injected \the [L] with [trans]u of [contained].") - to_chat(AM, "You feel a tiny prick!") - visible_message("[assembly] injects [L]!") + to_chat(AM, SPAN_NOTICE("You feel a tiny prick!")) + visible_message(SPAN_WARNING("[assembly] injects [L]!")) else reagents.trans_to(AM, transfer_amount) else @@ -111,14 +111,14 @@ activate_pin(3) return T.take_blood(src,tramount) - visible_message( "[assembly] takes a blood sample from [target].") + visible_message( SPAN_NOTICE("[assembly] takes a blood sample from [target].")) else activate_pin(3) return else //if not mob if(!target.reagents.total_volume) - visible_message( "[target] is empty.") + visible_message( SPAN_NOTICE("[target] is empty.")) activate_pin(3) return target.reagents.trans_to_obj(src, tramount) diff --git a/code/modules/library/lib_items.dm b/code/modules/library/lib_items.dm index d28dfe161c1..f5cda17bb76 100644 --- a/code/modules/library/lib_items.dm +++ b/code/modules/library/lib_items.dm @@ -39,12 +39,12 @@ name = ("bookcase ([newname])") else if(attacking_item.iswrench()) attacking_item.play_tool_sound(get_turf(src), 100) - to_chat(user, (anchored ? "You unfasten \the [src] from the floor." : "You secure \the [src] to the floor.")) + to_chat(user, (anchored ? SPAN_NOTICE("You unfasten \the [src] from the floor.") : SPAN_NOTICE("You secure \the [src] to the floor."))) anchored = !anchored else if(attacking_item.isscrewdriver()) - to_chat(user, "You begin dismantling \the [src].") + to_chat(user, SPAN_NOTICE("You begin dismantling \the [src].")) if(attacking_item.use_tool(src, user, 25, volume = 50)) - to_chat(user, "You dismantle \the [src].") + to_chat(user, SPAN_NOTICE("You dismantle \the [src].")) for(var/obj/item/book/b in contents) b.forceMove((get_turf(src))) dismantle() @@ -209,12 +209,12 @@ /obj/item/book/attack_self(var/mob/user as mob) if(carved) if(store) - to_chat(user, "[store] falls out of [title]!") + to_chat(user, SPAN_NOTICE("[store] falls out of [title]!")) store.forceMove(get_turf(src.loc)) store = null return else - to_chat(user, "The pages of [title] have been cut out!") + to_chat(user, SPAN_NOTICE("The pages of [title] have been cut out!")) return if(src.dat) user << browse("Penned by [author].
" + "[dat]", "window=book") @@ -231,13 +231,13 @@ if(attacking_item.w_class < 3) user.drop_from_inventory(attacking_item,src) store = attacking_item - to_chat(user, "You put [attacking_item] in [title].") + to_chat(user, SPAN_NOTICE("You put [attacking_item] in [title].")) return else - to_chat(user, "[attacking_item] won't fit in [title].") + to_chat(user, SPAN_NOTICE("[attacking_item] won't fit in [title].")) return else - to_chat(user, "There's already something in [title]!") + to_chat(user, SPAN_NOTICE("There's already something in [title]!")) return if(attacking_item.ispen()) if(unique) @@ -300,9 +300,9 @@ to_chat(user, "[attacking_item]'s screen flashes: 'Book stored in buffer. Title added to general inventory.'") else if(istype(attacking_item, /obj/item/material/knife) || attacking_item.iswirecutter()) if(carved) return - to_chat(user, "You begin to carve out [title].") + to_chat(user, SPAN_NOTICE("You begin to carve out [title].")) if(attacking_item.use_tool(src, user, 30, volume = 50)) - to_chat(user, "You carve out the pages from [title]! You didn't want to read it anyway.") + to_chat(user, SPAN_NOTICE("You carve out the pages from [title]! You didn't want to read it anyway.")) playsound(loc, 'sound/bureaucracy/papercrumple.ogg', 50, 1) new /obj/item/shreddedp(get_turf(src)) carved = 1 @@ -312,8 +312,8 @@ /obj/item/book/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob, var/target_zone) if(target_zone == BP_EYES) - user.visible_message("You open up the book and show it to [M]. ", \ - " [user] opens up a book and shows it to [M]. ") + user.visible_message(SPAN_NOTICE("You open up the book and show it to [M]. "), \ + SPAN_NOTICE(" [user] opens up a book and shows it to [M]. ")) M << browse("Penned by [author].
" + "[dat]", "window=book") user.setClickCooldown(DEFAULT_QUICK_COOLDOWN) //to prevent spam diff --git a/code/modules/library/lib_machines.dm b/code/modules/library/lib_machines.dm index ae45c8ea398..9ad5e84cd15 100644 --- a/code/modules/library/lib_machines.dm +++ b/code/modules/library/lib_machines.dm @@ -153,8 +153,8 @@ dat += "7. Access the Forbidden Lore Vault
" if(arcanecheckout) new /obj/item/book/tome(get_turf(src)) - to_chat(user, "Your sanity barely endures the seconds spent in the vault's browsing window. The only thing to remind you of this when you stop browsing is a dusty old tome sitting on the desk. You don't really remember printing it.") - user.visible_message("\The [user] stares at the blank screen for a few moments, [user.get_pronoun("his")] expression frozen in fear. When [user.get_pronoun("he")] finally awakens from it, [user.get_pronoun("he")] looks a lot older.", range = 2) + to_chat(user, SPAN_WARNING("Your sanity barely endures the seconds spent in the vault's browsing window. The only thing to remind you of this when you stop browsing is a dusty old tome sitting on the desk. You don't really remember printing it.")) + user.visible_message(SPAN_NOTICE("\The [user] stares at the blank screen for a few moments, [user.get_pronoun("his")] expression frozen in fear. When [user.get_pronoun("he")] finally awakens from it, [user.get_pronoun("he")] looks a lot older."), range = 2) arcanecheckout = FALSE if(1) // Inventory diff --git a/code/modules/lock/key.dm b/code/modules/lock/key.dm index d0360ce6239..caa82941c2f 100644 --- a/code/modules/lock/key.dm +++ b/code/modules/lock/key.dm @@ -25,7 +25,7 @@ uses-- if(uses <= 0) user.drop_from_inventory(src,user) - to_chat(user, "\The [src] crumbles in your hands!") + to_chat(user, SPAN_WARNING("\The [src] crumbles in your hands!")) qdel(src) return ..() diff --git a/code/modules/lock/lock.dm b/code/modules/lock/lock.dm index 1dee3205dec..a2c45f6e61e 100644 --- a/code/modules/lock/lock.dm +++ b/code/modules/lock/lock.dm @@ -20,22 +20,22 @@ /datum/lock/proc/unlock(var/key = "", var/mob/user) if(status ^ LOCK_LOCKED) - to_chat(user, "Its already unlocked!") + to_chat(user, SPAN_WARNING("Its already unlocked!")) return 2 key = get_key_data(key, user) if(cmptext(lock_data,key) && (status ^ LOCK_BROKEN)) - to_chat(user, "You unlock the lock.") + to_chat(user, SPAN_WARNING("You unlock the lock.")) status &= ~LOCK_LOCKED return 1 return 0 /datum/lock/proc/lock(var/key = "", var/mob/user) if(status & LOCK_LOCKED) - to_chat(user, "Its already locked!") + to_chat(user, SPAN_WARNING("Its already locked!")) return 2 key = get_key_data(key, user) if(cmptext(lock_data,key) && (status ^ LOCK_BROKEN)) - to_chat(user, "You close the lock.") + to_chat(user, SPAN_WARNING("You close the lock.")) status |= LOCK_LOCKED return 1 return 0 @@ -70,14 +70,14 @@ if(!do_after(user, 2 SECONDS, holder)) return 0 if(prob(20*(unlock_power/getComplexity()))) - to_chat(user, "You pick open \the [holder]'s lock!") + to_chat(user, SPAN_NOTICE("You pick open \the [holder]'s lock!")) unlock(lock_data) return 1 else if(prob(5 * unlock_power)) - to_chat(user, "You accidently break \the [holder]'s lock with \the [I]!") + to_chat(user, SPAN_WARNING("You accidently break \the [holder]'s lock with \the [I]!")) status |= LOCK_BROKEN else - to_chat(user, "You fail to pick open \the [holder].") + to_chat(user, SPAN_WARNING("You fail to pick open \the [holder].")) return 0 #undef LOCK_LOCKED diff --git a/code/modules/lock/lock_construct.dm b/code/modules/lock/lock_construct.dm index 0cfc8c11934..92b9a70bc94 100644 --- a/code/modules/lock/lock_construct.dm +++ b/code/modules/lock/lock_construct.dm @@ -16,15 +16,15 @@ if(istype(attacking_item, /obj/item/key)) var/obj/item/key/K = attacking_item if(!K.key_data) - to_chat(user, "You fashion \the [attacking_item] to unlock \the [src]") + to_chat(user, SPAN_NOTICE("You fashion \the [attacking_item] to unlock \the [src]")) K.key_data = lock_data else - to_chat(user, "\The [attacking_item] already unlocks something.") + to_chat(user, SPAN_WARNING("\The [attacking_item] already unlocks something.")) return ..() /obj/item/material/lock_construct/proc/create_lock(var/atom/target, var/mob/user) . = new /datum/lock(target,lock_data) user.drop_from_inventory(src,user) - user.visible_message("\The [user] attaches \the [src] to \the [target].") + user.visible_message(SPAN_NOTICE("\The [user] attaches \the [src] to \the [target].")) qdel(src) diff --git a/code/modules/maps/planet_types/desert.dm b/code/modules/maps/planet_types/desert.dm index 513051a2431..e28ca3cdbdc 100644 --- a/code/modules/maps/planet_types/desert.dm +++ b/code/modules/maps/planet_types/desert.dm @@ -91,30 +91,30 @@ if(user == buckled) delay *=2 user.visible_message( - "\The [user] tries to climb out of \the [src].", - "You begin to pull yourself out of \the [src].", - "You hear water sloushing." + SPAN_NOTICE("\The [user] tries to climb out of \the [src]."), + SPAN_NOTICE("You begin to pull yourself out of \the [src]."), + SPAN_NOTICE("You hear water sloushing.") ) else user.visible_message( - "\The [user] begins pulling \the [buckled] out of \the [src].", - "You begin to pull \the [buckled] out of \the [src].", - "You hear water sloushing." + SPAN_NOTICE("\The [user] begins pulling \the [buckled] out of \the [src]."), + SPAN_NOTICE("You begin to pull \the [buckled] out of \the [src]."), + SPAN_NOTICE("You hear water sloushing.") ) busy = 1 if(do_after(user, delay, src)) busy = 0 if(user == buckled) if(prob(80)) - to_chat(user, "You slip and fail to get out!") + to_chat(user, SPAN_WARNING("You slip and fail to get out!")) return - user.visible_message("\The [buckled] pulls himself out of \the [src].") + user.visible_message(SPAN_NOTICE("\The [buckled] pulls himself out of \the [src].")) else - user.visible_message("\The [buckled] has been freed from \the [src] by \the [user].") + user.visible_message(SPAN_NOTICE("\The [buckled] has been freed from \the [src] by \the [user].")) unbuckle() else busy = 0 - to_chat(user, "You slip and fail to get out!") + to_chat(user, SPAN_WARNING("You slip and fail to get out!")) return /obj/structure/quicksand/unbuckle() @@ -139,7 +139,7 @@ /obj/structure/quicksand/proc/expose() if(exposed) return - visible_message("The upper crust breaks, exposing treacherous quicksands underneath!") + visible_message(SPAN_WARNING("The upper crust breaks, exposing treacherous quicksands underneath!")) name = "quicksand" desc = "There is no candy at the bottom." exposed = 1 diff --git a/code/modules/martial_arts/martial.dm b/code/modules/martial_arts/martial.dm index 237e9f75a16..9300c124fc2 100644 --- a/code/modules/martial_arts/martial.dm +++ b/code/modules/martial_arts/martial.dm @@ -41,7 +41,7 @@ var/obj/item/organ/external/affecting = D.get_organ(hit_zone) if(!affecting || affecting.is_stump()) - to_chat(A, "They are missing that limb!") + to_chat(A, SPAN_DANGER("They are missing that limb!")) return 1 switch(D.a_intent) @@ -85,7 +85,7 @@ if(!attack_message) attack.show_attack(A, D, hit_zone, rand_damage) else - D.visible_message("[attack_message]") + D.visible_message(SPAN_DANGER("[attack_message]")) playsound(D.loc, ((miss_type) ? (miss_type == 1 ? attack.miss_sound : 'sound/weapons/thudswoosh.ogg') : attack.attack_sound), 25, 1, -1) A.attack_log += text("\[[time_stamp()]\] [miss_type ? (miss_type == 1 ? "Missed" : "Blocked") : "[pick(attack.attack_verb)]"] [D.name] ([D.ckey])") diff --git a/code/modules/martial_arts/plasma_fist.dm b/code/modules/martial_arts/plasma_fist.dm index 87c6e231465..535435b4b4d 100644 --- a/code/modules/martial_arts/plasma_fist.dm +++ b/code/modules/martial_arts/plasma_fist.dm @@ -45,20 +45,20 @@ var/mob/living/M = AM M.Weaken(5) M.adjustBruteLoss(5) - to_chat(M, "You're slammed into the floor by a mystical force!") + to_chat(M, SPAN_DANGER("You're slammed into the floor by a mystical force!")) else if(istype(AM, /mob/living)) var/mob/living/M = AM M.Weaken(2) - to_chat(M, "You're thrown back by a mystical force!") + to_chat(M, SPAN_DANGER("You're thrown back by a mystical force!")) AM.throw_at(throwtarget, ((Clamp((5 - (Clamp(distfromcaster - 2, 0, distfromcaster))), 3, 5))), 1) log_and_message_admins("used tornado sweep(Plasma Fist)", "[A]") return /datum/martial_art/plasma_fist/proc/Throwback(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) - D.visible_message("[A] has hit [D] with plasma punch!", \ - "[A] has hit [D] with plasma punch!") + D.visible_message(SPAN_DANGER("[A] has hit [D] with plasma punch!"), \ + SPAN_DANGER("[A] has hit [D] with plasma punch!")) playsound(D.loc, "punch", 50, 1, -1) var/atom/throw_target = get_edge_target_turf(D, get_dir(D, get_step_away(D, A))) D.throw_at(throw_target, 200, 4,A) @@ -70,8 +70,8 @@ A.do_attack_animation(D) playsound(D.loc, 'sound/magic/Disintegrate.ogg', 50, 1, -1) A.say("PLASMA FIST!") - D.visible_message("[A] has hit [D] with the plasma fist technique!", \ - "[A] has hit [D] with the plasma fist technique!") + D.visible_message(SPAN_DANGER("[A] has hit [D] with the plasma fist technique!"), \ + SPAN_DANGER("[A] has hit [D] with the plasma fist technique!")) D.gib() log_and_message_admins("[A] gibbed [D] with the plasma fist (Plasma Fist)") return diff --git a/code/modules/martial_arts/skrell.dm b/code/modules/martial_arts/skrell.dm index 74e550fb379..19124f0713c 100644 --- a/code/modules/martial_arts/skrell.dm +++ b/code/modules/martial_arts/skrell.dm @@ -25,7 +25,7 @@ A.do_attack_animation(D) if(D.stat || D.weakened) return 0 - D.visible_message("[A] leg sweeps [D]!") + D.visible_message(SPAN_WARNING("[A] leg sweeps [D]!")) playsound(get_turf(A), /singleton/sound_category/swing_hit_sound, 50, 1, -1) D.apply_damage(5, DAMAGE_BRUTE) D.Weaken(2) @@ -33,7 +33,7 @@ /datum/martial_art/karak_virul/proc/painful_palm(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)//is actually lung punch A.do_attack_animation(D) - A.visible_message("[A] strikes [D] with their open palm!") + A.visible_message(SPAN_WARNING("[A] strikes [D] with their open palm!")) playsound(get_turf(A), /singleton/sound_category/punch_sound, 50, 1, -1) var/obj/item/organ/external/affecting = D.get_organ(ran_zone(A.zone_sel.selecting)) D.apply_damage(25, DAMAGE_PAIN, affecting) @@ -46,15 +46,15 @@ if(!organ || ORGAN_IS_DISLOCATED(organ) || organ.dislocated == -1) return 0 organ.dislocate(1) - A.visible_message("[A] strikes [D]'s [organ.name] with their closed fist!") - D.visible_message("[D]'s [organ.joint] [pick("gives way","caves in","crumbles","collapses")]!") + A.visible_message(SPAN_WARNING("[A] strikes [D]'s [organ.name] with their closed fist!")) + D.visible_message(SPAN_DANGER("[D]'s [organ.joint] [pick("gives way","caves in","crumbles","collapses")]!")) admin_attack_log(A, D, "dislocated [organ.joint].", "had his [organ.joint] dislocated.", "dislocated [organ.joint] of") playsound(get_turf(A), /singleton/sound_category/punch_sound, 50, 1, -1) return 1 else playsound(get_turf(A), /singleton/sound_category/punch_sound, 50, 1, -1) D.apply_damage(5, DAMAGE_BRUTE) - A.visible_message("[A] strikes [D] with their closed fist!") + A.visible_message(SPAN_WARNING("[A] strikes [D] with their closed fist!")) return 1 /datum/martial_art/karak_virul/grab_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) diff --git a/code/modules/martial_arts/sleeping_carp.dm b/code/modules/martial_arts/sleeping_carp.dm index 166401312f6..f8a2e4d6ed7 100644 --- a/code/modules/martial_arts/sleeping_carp.dm +++ b/code/modules/martial_arts/sleeping_carp.dm @@ -38,7 +38,7 @@ /datum/martial_art/the_sleeping_carp/proc/wristWrench(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) if(!D.stat && !D.stunned && !D.weakened) A.do_attack_animation(D) - D.visible_message("[A] grabs [D]'s wrist and wrenches it sideways!") + D.visible_message(SPAN_WARNING("[A] grabs [D]'s wrist and wrenches it sideways!")) playsound(get_turf(A), 'sound/weapons/thudswoosh.ogg', 50, 1, -1) D.drop_item() D.apply_damage(5, DAMAGE_BRUTE, pick(BP_L_ARM, BP_R_ARM)) @@ -49,7 +49,7 @@ /datum/martial_art/the_sleeping_carp/proc/backKick(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) if(A.dir == D.dir && !D.stat && !D.weakened) A.do_attack_animation(D) - D.visible_message("[A] kicks [D] in the back!") + D.visible_message(SPAN_WARNING("[A] kicks [D] in the back!")) step_to(D,get_step(D,D.dir),1) D.Weaken(4) playsound(get_turf(D), "punch", 50, 1, -1) @@ -60,8 +60,8 @@ /datum/martial_art/the_sleeping_carp/proc/kneeStomach(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) if(!D.stat && !D.weakened) A.do_attack_animation(D) - D.visible_message("[A] knees [D] in the stomach!", \ - "[A] winds you with a knee in the stomach!") + D.visible_message(SPAN_WARNING("[A] knees [D] in the stomach!"), \ + SPAN_DANGER("[A] winds you with a knee in the stomach!")) D.audible_message("[D] gags!") if (!(D.species.flags & NO_BREATHE)) D.losebreath += 3 @@ -74,8 +74,8 @@ /datum/martial_art/the_sleeping_carp/proc/headKick(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) if(!D.stat && !D.weakened) A.do_attack_animation(D) - D.visible_message("[A] kicks [D] in the head!", \ - "[A] kicks you in the jaw!") + D.visible_message(SPAN_WARNING("[A] kicks [D] in the head!"), \ + SPAN_DANGER("[A] kicks you in the jaw!")) D.apply_damage(20, DAMAGE_BRUTE, BP_HEAD) D.drop_item() playsound(get_turf(D), "punch", 50, 1, -1) @@ -87,7 +87,7 @@ /datum/martial_art/the_sleeping_carp/proc/elbowDrop(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) if(D.weakened || D.resting || D.stat) A.do_attack_animation(D) - D.visible_message("[A] elbow drops [D]!") + D.visible_message(SPAN_DANGER("[A] elbow drops [D]!")) if(D.shock_stage >= 60) D.death() //FINISH HIM! D.apply_damage(50, DAMAGE_BRUTE, BP_CHEST) diff --git a/code/modules/martial_arts/sol_combat.dm b/code/modules/martial_arts/sol_combat.dm index 8d731987462..acef8b010a4 100644 --- a/code/modules/martial_arts/sol_combat.dm +++ b/code/modules/martial_arts/sol_combat.dm @@ -41,16 +41,16 @@ var/mob/living/M = AM if(M.stat || M.incapacitated() || distfromcaster == 0) D.apply_damage(25, DAMAGE_BRUTE) - A.visible_message("[A] hits [M] with a powerful kick!") + A.visible_message(SPAN_DANGER("[A] hits [M] with a powerful kick!")) else A.spin(10,1) M.Weaken(3) - A.visible_message(M, "[A] swiftly leg sweeps [M]!") + A.visible_message(M, SPAN_DANGER("[A] swiftly leg sweeps [M]!")) AM.throw_at(sweeptarget, ((Clamp((1 - (Clamp(distfromcaster - 2, 0, distfromcaster))), 1, 1))), 1) /datum/martial_art/sol_combat/proc/quick_choke(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)//is actually lung punch A.do_attack_animation(D) - A.visible_message("[A] pounds [D] on the chest!") + A.visible_message(SPAN_WARNING("[A] pounds [D] on the chest!")) playsound(get_turf(A), "punch", 50, 1, -1) if(!(D.species.flags & NO_BREATHE)) D.losebreath += 5 @@ -59,7 +59,7 @@ /datum/martial_art/sol_combat/proc/neck_chop(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) A.do_attack_animation(D) - A.visible_message("[A] karate chops [D]'s neck!") + A.visible_message(SPAN_WARNING("[A] karate chops [D]'s neck!")) playsound(get_turf(A), /singleton/sound_category/punch_sound, 50, 1, -1) D.apply_damage(5, DAMAGE_BRUTE) D.silent += 30 @@ -87,7 +87,7 @@ else playsound(get_turf(D), /singleton/sound_category/punch_sound, 50, 1, -1) - A.visible_message("[A] [picked_hit_type] [D]!") + A.visible_message(SPAN_DANGER("[A] [picked_hit_type] [D]!")) A.attack_log += text("\[[time_stamp()]\] ["[picked_hit_type]"] [D.name] ([D.ckey])") D.attack_log += text("\[[time_stamp()]\] ["Has Been [picked_hit_type]"] by [A.name] ([A.ckey])") msg_admin_attack("[key_name(A)] ["has [picked_hit_type]"] [key_name(D)] (JMP)",ckey=key_name(A),ckey_target=key_name(D)) @@ -107,12 +107,12 @@ if(prob(60)) var/obj/item/I = D.get_active_hand() if(I) - A.visible_message("[A] has disarmed [D]!") + A.visible_message(SPAN_DANGER("[A] has disarmed [D]!")) playsound(D, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) D.drop_from_inventory(I) A.put_in_hands(I) else - A.visible_message("[A] attempted to disarm [D]!") + A.visible_message(SPAN_DANGER("[A] attempted to disarm [D]!")) playsound(D, /singleton/sound_category/punchmiss_sound, 25, 1, -1) return 1 diff --git a/code/modules/martial_arts/tajara.dm b/code/modules/martial_arts/tajara.dm index e9bbbfa1ce0..50a276879de 100644 --- a/code/modules/martial_arts/tajara.dm +++ b/code/modules/martial_arts/tajara.dm @@ -34,7 +34,7 @@ if(!istype(affecting) || affecting.is_stump()) return 0 - D.visible_message("[A] rakes their claws against [D]'s [affecting.name]!") + D.visible_message(SPAN_DANGER("[A] rakes their claws against [D]'s [affecting.name]!")) for(var/obj/item/protection in list(D.head, D.wear_mask, D.glasses)) if(protection && (protection.body_parts_covered & EYES)) @@ -54,7 +54,7 @@ /datum/martial_art/baghrar/proc/claw_punch(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)//is actually lung punch A.do_attack_animation(D) - A.visible_message("[A] lunges forwards and strikes [D] with their claws!") + A.visible_message(SPAN_DANGER("[A] lunges forwards and strikes [D] with their claws!")) playsound(get_turf(A), 'sound/weapons/slice.ogg', 50, 1, -1) var/obj/item/organ/external/affecting = D.get_organ(ran_zone(A.zone_sel.selecting)) D.apply_damage(20, DAMAGE_BRUTE, affecting, damage_flags = DAMAGE_FLAG_SHARP|DAMAGE_FLAG_EDGE) @@ -67,7 +67,7 @@ return 0 A.do_attack_animation(D) var/obj/item/organ/external/organ = D.get_organ(A.zone_sel.selecting) - A.visible_message("[A] stabs [D]'s [organ.name] with their claws!") + A.visible_message(SPAN_DANGER("[A] stabs [D]'s [organ.name] with their claws!")) D.apply_damage(organ.brute_dam, DAMAGE_BRUTE, organ, damage_flags = DAMAGE_FLAG_SHARP|DAMAGE_FLAG_EDGE) return 1 diff --git a/code/modules/martial_arts/unathi.dm b/code/modules/martial_arts/unathi.dm index 53b8668ee8a..d4a8e16b128 100644 --- a/code/modules/martial_arts/unathi.dm +++ b/code/modules/martial_arts/unathi.dm @@ -31,7 +31,7 @@ var/obj/item/grab/G = A.get_active_hand() if(G && prob(50)) G.state = GRAB_AGGRESSIVE - D.visible_message("[A] gets a strong grip on [D]!") + D.visible_message(SPAN_DANGER("[A] gets a strong grip on [D]!")) return 1 /datum/martial_art/kis_khan/harm_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) @@ -54,7 +54,7 @@ if(!isunathi(A)) return 0 TornadoAnimate(A) - A.visible_message("[A] sweeps [D] with their tail!") + A.visible_message(SPAN_WARNING("[A] sweeps [D] with their tail!")) playsound(get_turf(A), /singleton/sound_category/swing_hit_sound, 50, 1, -1) D.apply_damage(5, DAMAGE_BRUTE) D.Weaken(2) @@ -73,16 +73,16 @@ var/obj/item/I = D.r_hand D.drop_item() A.put_in_hands(I) - D.visible_message("[A] has disarmed [D]!") + D.visible_message(SPAN_DANGER("[A] has disarmed [D]!")) playsound(D, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) else - D.visible_message("[A] attempted to disarm [D]!") + D.visible_message(SPAN_DANGER("[A] attempted to disarm [D]!")) playsound(D, /singleton/sound_category/punchmiss_sound, 25, 1, -1) return 1 /datum/martial_art/kis_khan/proc/hammering_strike(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) A.do_attack_animation(D) - A.visible_message("[A] slams [D] away!") + A.visible_message(SPAN_DANGER("[A] slams [D] away!")) playsound(D.loc, "punch", 50, 1, -1) D.apply_effect(2, WEAKEN) var/atom/throw_target = get_edge_target_turf(D, get_dir(D, get_step_away(D, A))) diff --git a/code/modules/martial_arts/vaurca.dm b/code/modules/martial_arts/vaurca.dm index b7a428e5ab8..372180542aa 100644 --- a/code/modules/martial_arts/vaurca.dm +++ b/code/modules/martial_arts/vaurca.dm @@ -47,8 +47,8 @@ return 0 A.do_attack_animation(D) var/atk_verb = pick("slices", "pinches", "chops", "bites", "claws") - D.visible_message("[A] [atk_verb] [D]!", \ - "[A] [atk_verb] you!") + D.visible_message(SPAN_DANGER("[A] [atk_verb] [D]!"), \ + SPAN_DANGER("[A] [atk_verb] you!")) D.apply_damage(rand(5,15), DAMAGE_BRUTE, damage_flags = DAMAGE_FLAG_SHARP) playsound(get_turf(D), 'sound/weapons/slash.ogg', 25, 1, -1) @@ -73,7 +73,7 @@ if(istype(A.get_active_hand(),/obj/item/grab)) var/obj/item/grab/G = A.get_active_hand() if(G && G.affecting == D) - A.visible_message("[A] crushes [D] with its mandibles!") + A.visible_message(SPAN_WARNING("[A] crushes [D] with its mandibles!")) D.apply_damage(30, DAMAGE_BRUTE) D.apply_effect(6, WEAKEN) qdel(G) diff --git a/code/modules/martial_arts/wrestling.dm b/code/modules/martial_arts/wrestling.dm index 28da5e4d73a..8aab408760e 100644 --- a/code/modules/martial_arts/wrestling.dm +++ b/code/modules/martial_arts/wrestling.dm @@ -12,15 +12,15 @@ var/obj/item/grab/G = A.get_active_hand() if(G && prob(50)) G.state = GRAB_AGGRESSIVE - D.visible_message("[A] has [D] in a clinch!") + D.visible_message(SPAN_DANGER("[A] has [D] in a clinch!")) else - D.visible_message("[A] fails to get [D] in a clinch!") + D.visible_message(SPAN_DANGER("[A] fails to get [D] in a clinch!")) return 1 /datum/martial_art/wrestling/proc/Suplex(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) - D.visible_message("[A] suplexes [D]!") + D.visible_message(SPAN_DANGER("[A] suplexes [D]!")) D.forceMove(A.loc) D.apply_damage(30, DAMAGE_BRUTE) D.apply_effect(6, WEAKEN) @@ -44,7 +44,7 @@ /datum/martial_art/wrestling/grab_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D) D.grabbedby(A,1) - D.visible_message("[A] holds [D] down!") + D.visible_message(SPAN_DANGER("[A] holds [D] down!")) var/obj/item/organ/external/affecting = D.get_organ(ran_zone(A.zone_sel.selecting)) D.apply_damage(40, DAMAGE_PAIN, affecting) return 1 diff --git a/code/modules/materials/material_sheets.dm b/code/modules/materials/material_sheets.dm index d534f04c29f..5b6eb712617 100644 --- a/code/modules/materials/material_sheets.dm +++ b/code/modules/materials/material_sheets.dm @@ -452,10 +452,10 @@ /obj/item/stack/material/cloth/attackby(obj/item/attacking_item, mob/user) if(is_sharp(attacking_item)) - user.visible_message("\The [user] begins cutting up [src] with [attacking_item].", - "You begin cutting up [src] with [attacking_item].") + user.visible_message(SPAN_NOTICE("\The [user] begins cutting up [src] with [attacking_item]."), + SPAN_NOTICE("You begin cutting up [src] with [attacking_item].")) if(attacking_item.use_tool(src, user, 20, volume = 50)) // takes less time than bedsheets, a second per rag produced on average - to_chat(user, "You cut [src] into pieces!") + to_chat(user, SPAN_NOTICE("You cut [src] into pieces!")) for(var/i in 1 to rand(1,3)) // average of 2 per new /obj/item/reagent_containers/glass/rag(get_turf(src)) use(1) diff --git a/code/modules/materials/materials.dm b/code/modules/materials/materials.dm index be99fdd24b2..81f6f87ae84 100644 --- a/code/modules/materials/materials.dm +++ b/code/modules/materials/materials.dm @@ -119,29 +119,29 @@ /material/proc/build_rod_product(var/mob/user, var/obj/item/stack/used_stack, var/obj/item/stack/target_stack) if(!rod_product) - to_chat(user, "You cannot make anything out of \the [target_stack]") + to_chat(user, SPAN_WARNING("You cannot make anything out of \the [target_stack]")) return if(used_stack.get_amount() < 1 || target_stack.get_amount() < 1) - to_chat(user, "You need one rod and one sheet of [display_name] to make anything useful.") + to_chat(user, SPAN_WARNING("You need one rod and one sheet of [display_name] to make anything useful.")) return used_stack.use(1) target_stack.use(1) - to_chat(user, "You attach a rod to the [display_name].") + to_chat(user, SPAN_NOTICE("You attach a rod to the [display_name].")) var/obj/item/stack/S = new rod_product(get_turf(user)) S.add_fingerprint(user) S.add_to_stacks(user) /material/proc/build_wired_product(var/mob/user, var/obj/item/stack/used_stack, var/obj/item/stack/target_stack) if(!wire_product) - to_chat(user, "You cannot make anything out of \the [target_stack]") + to_chat(user, SPAN_WARNING("You cannot make anything out of \the [target_stack]")) return if(used_stack.get_amount() < 5 || target_stack.get_amount() < 1) - to_chat(user, "You need five wires and one sheet of [display_name] to make anything useful.") + to_chat(user, SPAN_WARNING("You need five wires and one sheet of [display_name] to make anything useful.")) return used_stack.use(5) target_stack.use(1) - to_chat(user, "You attach wires to the [display_name].") + to_chat(user, SPAN_NOTICE("You attach wires to the [display_name].")) var/obj/item/product = new wire_product(get_turf(user)) if(!(user.l_hand && user.r_hand)) user.put_in_hands(product) @@ -520,12 +520,12 @@ return 0 if(!user.IsAdvancedToolUser()) - to_chat(user, "This task is too complex for your clumsy hands.") + to_chat(user, SPAN_WARNING("This task is too complex for your clumsy hands.")) return 1 var/turf/T = user.loc if(!istype(T)) - to_chat(user, "You must be standing on open flooring to build a window.") + to_chat(user, SPAN_WARNING("You must be standing on open flooring to build a window.")) return 1 var/title = "Sheet-[used_stack.name] ([used_stack.get_amount()] sheet\s left)" @@ -558,13 +558,13 @@ failed_to_build = 1 if(!failed_to_build && choice == "Windoor") if(!is_reinforced()) - to_chat(user, "This material is not reinforced enough to use for a door.") + to_chat(user, SPAN_WARNING("This material is not reinforced enough to use for a door.")) return for(var/obj/obstacle in T) if((obstacle.atom_flags & ATOM_FLAG_CHECKS_BORDER) && obstacle.dir == user.dir) failed_to_build = 1 if(failed_to_build) - to_chat(user, "There is no room in this location.") + to_chat(user, SPAN_WARNING("There is no room in this location.")) return 1 var/build_path = /obj/structure/windoor_assembly @@ -575,7 +575,7 @@ build_path = created_window if(used_stack.get_amount() < sheets_needed) - to_chat(user, "You need at least [sheets_needed] sheets to build this.") + to_chat(user, SPAN_WARNING("You need at least [sheets_needed] sheets to build this.")) return 1 // Build the structure and update sheet count etc. diff --git a/code/modules/mob/abstract/new_player/menu.dm b/code/modules/mob/abstract/new_player/menu.dm index d0d24a8d5ca..36661aca96d 100644 --- a/code/modules/mob/abstract/new_player/menu.dm +++ b/code/modules/mob/abstract/new_player/menu.dm @@ -296,7 +296,7 @@ /mob/abstract/new_player/proc/join_game(href, href_list) if(SSticker.current_state <= GAME_STATE_SETTING_UP || SSticker.current_state >= GAME_STATE_FINISHED) - to_chat(usr, "The round is either not ready, or has already finished...") + to_chat(usr, SPAN_WARNING("The round is either not ready, or has already finished...")) return LateChoices() //show the latejoin job selection menu @@ -323,10 +323,10 @@ close_spawn_windows() var/obj/O = locate("landmark*Observer-Start") in GLOB.landmarks_list if(istype(O)) - to_chat(src, "Now teleporting.") + to_chat(src, SPAN_NOTICE("Now teleporting.")) observer.forceMove(O.loc) else - to_chat(src, "Could not locate an observer spawn point. Use the Teleport verb to jump to the station map.") + to_chat(src, SPAN_DANGER("Could not locate an observer spawn point. Use the Teleport verb to jump to the station map.")) observer.timeofdeath = world.time // Set the time of death so that the respawn timer works correctly. announce_ghost_joinleave(src) diff --git a/code/modules/mob/abstract/new_player/new_player.dm b/code/modules/mob/abstract/new_player/new_player.dm index e213a90ca48..9430d45ddcc 100644 --- a/code/modules/mob/abstract/new_player/new_player.dm +++ b/code/modules/mob/abstract/new_player/new_player.dm @@ -118,7 +118,7 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player) if(href_list["late_join"]) if(SSticker.current_state != GAME_STATE_PLAYING) - to_chat(usr, "The round is either not ready, or has already finished...") + to_chat(usr, SPAN_WARNING("The round is either not ready, or has already finished...")) return // Cannot join without a saved character, if we're on SQL saves. @@ -129,11 +129,11 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player) if(!check_rights(R_ADMIN, 0)) var/datum/species/S = GLOB.all_species[client.prefs.species] if((S.spawn_flags & IS_WHITELISTED) && !is_alien_whitelisted(src, client.prefs.species) && GLOB.config.usealienwhitelist) - to_chat(usr, "You are currently not whitelisted to play [client.prefs.species].") + to_chat(usr, SPAN_DANGER("You are currently not whitelisted to play [client.prefs.species].")) return 0 if(!(S.spawn_flags & CAN_JOIN)) - to_chat(usr, "Your current species, [client.prefs.species], is not available for play on the station.") + to_chat(usr, SPAN_DANGER("Your current species, [client.prefs.species], is not available for play on the station.")) return 0 LateChoices() @@ -150,10 +150,10 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player) if(href_list["SelectedJob"]) if(!GLOB.config.enter_allowed) - to_chat(usr, "There is an administrative lock on entering the game!") + to_chat(usr, SPAN_NOTICE("There is an administrative lock on entering the game!")) return else if(SSticker.mode && SSticker.mode.explosion_in_progress) - to_chat(usr, "The station is currently exploding. Joining would go poorly.") + to_chat(usr, SPAN_DANGER("The station is currently exploding. Joining would go poorly.")) return if(client.unacked_warning_count > 0) @@ -162,11 +162,11 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player) var/datum/species/S = GLOB.all_species[client.prefs.species] if((S.spawn_flags & IS_WHITELISTED) && !is_alien_whitelisted(src, client.prefs.species) && GLOB.config.usealienwhitelist) - to_chat(usr, "You are currently not whitelisted to play [client.prefs.species].") + to_chat(usr, SPAN_DANGER("You are currently not whitelisted to play [client.prefs.species].")) return 0 if(!(S.spawn_flags & CAN_JOIN)) - to_chat(usr, "Your current species, [client.prefs.species], is not available for play on the station.") + to_chat(usr, SPAN_DANGER("Your current species, [client.prefs.species], is not available for play on the station.")) return 0 AttemptLateSpawn(href_list["SelectedJob"],client.prefs.spawnpoint) @@ -271,16 +271,16 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player) if(src != usr) return 0 if(SSticker.current_state != GAME_STATE_PLAYING) - to_chat(usr, "The round is either not ready, or has already finished...") + to_chat(usr, SPAN_WARNING("The round is either not ready, or has already finished...")) return 0 if(!GLOB.config.enter_allowed) - to_chat(usr, "There is an administrative lock on entering the game!") + to_chat(usr, SPAN_NOTICE("There is an administrative lock on entering the game!")) return 0 if(GLOB.config.sql_saves && !client.prefs.current_character) alert(usr, "You have not saved your character yet. Please do so before attempting to join.") return 0 if(!IsJobAvailable(rank)) - to_chat(usr, "[rank] is not available. Please try another.") + to_chat(usr, SPAN_NOTICE("[rank] is not available. Please try another.")) return 0 if(!(spawning_at in SSatlas.current_map.allowed_spawns)) to_chat(usr, SPAN_NOTICE("Spawn location [spawning_at] invalid for [SSatlas.current_map]. Defaulting to [SSatlas.current_map.default_spawn].")) diff --git a/code/modules/mob/abstract/new_player/poll.dm b/code/modules/mob/abstract/new_player/poll.dm index 5e32666607e..0dfd69feb15 100644 --- a/code/modules/mob/abstract/new_player/poll.dm +++ b/code/modules/mob/abstract/new_player/poll.dm @@ -70,7 +70,7 @@ break if(!found) - to_chat(usr, "Poll question details not found.") + to_chat(usr, SPAN_WARNING("Poll question details not found.")) return switch(polltype) @@ -343,7 +343,7 @@ break if(!validpoll) - to_chat(usr, "Poll is not valid.") + to_chat(usr, SPAN_WARNING("Poll is not valid.")) return var/DBQuery/select_query2 = GLOB.dbcon.NewQuery("SELECT id FROM ss13_poll_option WHERE id = [optionid] AND pollid = [pollid]") @@ -356,7 +356,7 @@ break if(!validoption) - to_chat(usr, "Poll option is not valid.") + to_chat(usr, SPAN_WARNING("Poll option is not valid.")) return var/alreadyvoted = 0 @@ -370,11 +370,11 @@ break if(!multichoice && alreadyvoted) - to_chat(usr, "You already voted in this poll.") + to_chat(usr, SPAN_WARNING("You already voted in this poll.")) return if(multichoice && (alreadyvoted >= multiplechoiceoptions)) - to_chat(usr, "You already have more than [multiplechoiceoptions] logged votes on this poll. Enough is enough. Contact the database admin if this is an error.") + to_chat(usr, SPAN_WARNING("You already have more than [multiplechoiceoptions] logged votes on this poll. Enough is enough. Contact the database admin if this is an error.")) return var/adminrank = "Player" @@ -385,7 +385,7 @@ var/DBQuery/insert_query = GLOB.dbcon.NewQuery("INSERT INTO ss13_poll_vote (id ,datetime ,pollid ,optionid ,ckey ,ip ,adminrank) VALUES (null, Now(), [pollid], [optionid], '[usr.ckey]', '[usr.client.address]', '[adminrank]')") insert_query.Execute() - to_chat(usr, "Vote successful.") + to_chat(usr, SPAN_NOTICE("Vote successful.")) usr << browse(null,"window=playerpoll") @@ -409,7 +409,7 @@ break if(!validpoll) - to_chat(usr, "Poll is not valid.") + to_chat(usr, SPAN_WARNING("Poll is not valid.")) return var/alreadyvoted = 0 @@ -422,7 +422,7 @@ break if(alreadyvoted) - to_chat(usr, "You already sent your feedback for this poll.") + to_chat(usr, SPAN_WARNING("You already sent your feedback for this poll.")) return var/adminrank = "Player" @@ -442,7 +442,7 @@ var/DBQuery/insert_query = GLOB.dbcon.NewQuery("INSERT INTO ss13_poll_textreply (id ,datetime ,pollid ,ckey ,ip ,replytext ,adminrank) VALUES (null, Now(), [pollid], '[usr.ckey]', '[usr.client.address]', '[replytext]', '[adminrank]')") insert_query.Execute() - to_chat(usr, "Feedback logging successful.") + to_chat(usr, SPAN_NOTICE("Feedback logging successful.")) usr << browse(null,"window=playerpoll") @@ -466,7 +466,7 @@ break if(!validpoll) - to_chat(usr, "Poll is not valid.") + to_chat(usr, SPAN_WARNING("Poll is not valid.")) return var/DBQuery/select_query2 = GLOB.dbcon.NewQuery("SELECT id FROM ss13_poll_option WHERE id = [optionid] AND pollid = [pollid]") @@ -479,7 +479,7 @@ break if(!validoption) - to_chat(usr, "Poll option is not valid.") + to_chat(usr, SPAN_WARNING("Poll option is not valid.")) return var/alreadyvoted = 0 @@ -492,7 +492,7 @@ break if(alreadyvoted) - to_chat(usr, "You already voted in this poll.") + to_chat(usr, SPAN_WARNING("You already voted in this poll.")) return var/adminrank = "Player" @@ -503,5 +503,5 @@ var/DBQuery/insert_query = GLOB.dbcon.NewQuery("INSERT INTO ss13_poll_vote (id ,datetime ,pollid ,optionid ,ckey ,ip ,adminrank, rating) VALUES (null, Now(), [pollid], [optionid], '[usr.ckey]', '[usr.client.address]', '[adminrank]', [(isnull(rating)) ? "null" : rating])") insert_query.Execute() - to_chat(usr, "Vote successful.") + to_chat(usr, SPAN_NOTICE("Vote successful.")) usr << browse(null,"window=playerpoll") diff --git a/code/modules/mob/abstract/observer/observer.dm b/code/modules/mob/abstract/observer/observer.dm index 36bc4675bf8..b1ee4f110a1 100644 --- a/code/modules/mob/abstract/observer/observer.dm +++ b/code/modules/mob/abstract/observer/observer.dm @@ -183,7 +183,7 @@ Works together with spawning an observer, noted above. //Teleport them back to the ghost spawn var/obj/O = locate("landmark*Observer-Start") if(istype(O)) - to_chat(src, "[message]") + to_chat(src, SPAN_NOTICE("[message]")) forceMove(O.loc) //Teleports the observer away from z-levels they shouldnt be on, if needed. @@ -284,10 +284,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp set name = "Re-enter Corpse" if(!client) return if(!(mind && mind.current && can_reenter_corpse)) - to_chat(src, "You have no body.") + to_chat(src, SPAN_WARNING("You have no body.")) return if(mind.current.key && copytext(mind.current.key,1,2)!="@") //makes sure we don't accidentally kick any clients - to_chat(usr, "Another consciousness is in your body... it is resisting you.") + to_chat(usr, SPAN_WARNING("Another consciousness is in your body... it is resisting you.")) return if(mind.current.ajourn && mind.current.stat != DEAD) //check if the corpse is astral-journeying (it's client ghosted using a cultist rune). var/found_rune @@ -315,10 +315,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp return if(medHUD) medHUD = 0 - to_chat(src, "Medical HUD Disabled") + to_chat(src, SPAN_NOTICE("Medical HUD Disabled")) else medHUD = 1 - to_chat(src, "Medical HUD Enabled") + to_chat(src, SPAN_NOTICE("Medical HUD Enabled")) /mob/abstract/observer/verb/scan_target() set category = "Ghost" @@ -345,11 +345,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp return var/aux_staff = check_rights(R_MOD|R_ADMIN, 0) if(!GLOB.config.antag_hud_allowed && (!client.holder || aux_staff)) - to_chat(src, "Admins have disabled this for this round.") + to_chat(src, SPAN_WARNING("Admins have disabled this for this round.")) return var/mob/abstract/observer/M = src if(jobban_isbanned(M, "AntagHUD")) - to_chat(src, "You have been banned from using this feature") + to_chat(src, SPAN_DANGER("You have been banned from using this feature")) return if(GLOB.config.antag_hud_restricted && !M.has_enabled_antagHUD && (!client.holder || aux_staff)) var/response = alert(src, "If you turn this on, you will not be able to take any part in the round.","Are you sure you want to turn this feature on?","Yes","No") @@ -359,10 +359,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp M.has_enabled_antagHUD = 1 if(M.antagHUD) M.antagHUD = 0 - to_chat(src, "AntagHUD Disabled") + to_chat(src, SPAN_NOTICE("AntagHUD Disabled")) else M.antagHUD = 1 - to_chat(src, "AntagHUD Enabled") + to_chat(src, SPAN_NOTICE("AntagHUD Enabled")) /mob/abstract/observer/proc/dead_tele(A in GLOB.ghostteleportlocs) set category = "Ghost" @@ -391,7 +391,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(!L || !L.len) if(holyblock) - to_chat(usr, "This area has been entirely made into sacred grounds, you cannot enter it while you are in this plane of existence!") + to_chat(usr, SPAN_WARNING("This area has been entirely made into sacred grounds, you cannot enter it while you are in this plane of existence!")) return else to_chat(usr, "No area available.") @@ -440,7 +440,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(check_holy(T)) stop_following() teleport_if_needed() - to_chat(usr, "You cannot follow something standing on holy grounds!") + to_chat(usr, SPAN_WARNING("You cannot follow something standing on holy grounds!")) return ..() @@ -473,11 +473,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp /mob/abstract/observer/memory() set hidden = 1 - to_chat(src, "You are dead! You have no mind to store memory!") + to_chat(src, SPAN_WARNING("You are dead! You have no mind to store memory!")) /mob/abstract/observer/add_memory() set hidden = 1 - to_chat(src, "You are dead! You have no mind to store memory!") + to_chat(src, SPAN_WARNING("You are dead! You have no mind to store memory!")) /mob/abstract/observer/Post_Incorpmove() stop_following() @@ -498,16 +498,16 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp var/pressure = environment.return_pressure() var/total_moles = environment.total_moles - to_chat(src, "Results:") + to_chat(src, SPAN_NOTICE("Results:")) if(abs(pressure - ONE_ATMOSPHERE) < 10) - to_chat(src, "Pressure: [round(pressure,0.1)] kPa") + to_chat(src, SPAN_NOTICE("Pressure: [round(pressure,0.1)] kPa")) else - to_chat(src, "Pressure: [round(pressure,0.1)] kPa") + to_chat(src, SPAN_WARNING("Pressure: [round(pressure,0.1)] kPa")) if(total_moles) for(var/g in environment.gas) - to_chat(src, "[gas_data.name[g]]: [round((environment.gas[g] / total_moles) * 100)]% ([round(environment.gas[g], 0.01)] moles)") - to_chat(src, "Temperature: [round(environment.temperature-T0C,0.1)]°C ([round(environment.temperature,0.1)]K)") - to_chat(src, "Heat Capacity: [round(environment.heat_capacity(),0.1)]") + to_chat(src, SPAN_NOTICE("[gas_data.name[g]]: [round((environment.gas[g] / total_moles) * 100)]% ([round(environment.gas[g], 0.01)] moles)")) + to_chat(src, SPAN_NOTICE("Temperature: [round(environment.temperature-T0C,0.1)]°C ([round(environment.temperature,0.1)]K)")) + to_chat(src, SPAN_NOTICE("Heat Capacity: [round(environment.heat_capacity(),0.1)]")) /mob/abstract/observer/verb/view_manifest() set name = "Show Crew Manifest" @@ -534,7 +534,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp /mob/abstract/observer/proc/try_possession(var/mob/living/M) if(!GLOB.config.ghosts_can_possess_animals) - to_chat(usr, "Ghosts are not permitted to possess animals.") + to_chat(usr, SPAN_WARNING("Ghosts are not permitted to possess animals.")) return 0 if(!M.can_be_possessed_by(src)) return 0 @@ -547,7 +547,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp set desc = "If the round is sufficiently spooky, write a short message in blood on the floor or a wall. Remember, no IC in OOC or OOC in IC." if(!(GLOB.config.cult_ghostwriter)) - to_chat(src, "That verb is not currently permitted.") + to_chat(src, SPAN_WARNING("That verb is not currently permitted.")) return if (!src.stat) @@ -557,7 +557,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp return 0 //something is terribly wrong if(!round_is_spooky()) - to_chat(src, "The veil is not thin enough for you to do that.") + to_chat(src, SPAN_WARNING("The veil is not thin enough for you to do that.")) return var/list/choices = list() @@ -577,7 +577,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp T = get_step(T,text2dir(direction)) if (!istype(T)) - to_chat(src, "You cannot doodle there.") + to_chat(src, SPAN_WARNING("You cannot doodle there.")) return if(!choice || choice.amount == 0 || !(src.Adjacent(choice))) @@ -589,7 +589,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp for (var/obj/effect/decal/cleanable/blood/writing/W in T) num_doodles++ if (num_doodles > 4) - to_chat(src, "There is no space to write on!") + to_chat(src, SPAN_WARNING("There is no space to write on!")) return var/max_length = 50 @@ -600,14 +600,14 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if (length(message) > max_length) message += "-" - to_chat(src, "You ran out of blood to write with!") + to_chat(src, SPAN_WARNING("You ran out of blood to write with!")) var/obj/effect/decal/cleanable/blood/writing/W = new(T) W.basecolor = doodle_color W.update_icon() W.message = message W.add_hiddenprint(src) - W.visible_message("Invisible fingers crudely paint something in blood on [T]...") + W.visible_message(SPAN_WARNING("Invisible fingers crudely paint something in blood on [T]...")) /mob/abstract/observer/pointed(atom/A as mob|obj|turf in view()) if(!..()) @@ -625,14 +625,14 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(src.invisibility != 0) user.visible_message( \ - "\The [user] drags ghost, [src], to our plane of reality!", \ - "You drag [src] to our plane of reality!" \ + SPAN_WARNING("\The [user] drags ghost, [src], to our plane of reality!"), \ + SPAN_WARNING("You drag [src] to our plane of reality!") \ ) toggle_visibility(1) else user.visible_message ( \ - "\The [user] just tried to smash [user.get_pronoun("his")] book into that ghost! It's not very effective.", \ - "You get the feeling that the ghost can't become any more visible." \ + SPAN_WARNING("\The [user] just tried to smash [user.get_pronoun("his")] book into that ghost! It's not very effective."), \ + SPAN_WARNING("You get the feeling that the ghost can't become any more visible.") \ ) @@ -689,13 +689,13 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp var/msg = sanitize(input(src, "Message:", "Spectral Whisper") as text|null) if(msg) log_say("SpectralWhisper: [key_name(usr)]->[M.key] : [msg]") - to_chat(M, " You hear a strange, unidentifiable voice in your head... [msg]") - to_chat(src, " You said: '[msg]' to [M].") + to_chat(M, SPAN_WARNING(" You hear a strange, unidentifiable voice in your head... [msg]")) + to_chat(src, SPAN_WARNING(" You said: '[msg]' to [M].")) else return return 1 else - to_chat(src, "You have not been pulled past the veil!") + to_chat(src, SPAN_DANGER("You have not been pulled past the veil!")) /mob/abstract/observer/proc/move_item() set category = "Ghost" @@ -716,7 +716,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp choices += I if(!choices.len) - to_chat(src, "There are no suitable items nearby.") + to_chat(src, SPAN_WARNING("There are no suitable items nearby.")) return var/obj/item/choice = input(src, "What item would you like to pull?") as null|anything in choices @@ -727,7 +727,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp return if(step_to(choice, T)) - choice.visible_message("\The [choice] suddenly moves!") + choice.visible_message(SPAN_WARNING("\The [choice] suddenly moves!")) ghost_cooldown = world.time + 500 @@ -805,7 +805,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp return 0 if(GLOB.config.antag_hud_restricted && has_enabled_antagHUD == 1) if(feedback) - to_chat(src, "antagHUD restrictions prevent you from respawning.") + to_chat(src, SPAN_WARNING("antagHUD restrictions prevent you from respawning.")) return 0 if (respawn_type) @@ -822,7 +822,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp return 1 else if (feedback) var/timedifference_text = time2text(respawn_time - timedifference,"mm:ss") - to_chat(src, "You must have been dead for [respawn_time/600] minute\s to respawn. You have [timedifference_text] left.") + to_chat(src, SPAN_WARNING("You must have been dead for [respawn_time/600] minute\s to respawn. You have [timedifference_text] left.")) return 0 return 1 @@ -850,7 +850,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp set name = "Ghost Spawner" if(!ROUND_IS_STARTED) - to_chat(usr, "The round hasn't started yet!") + to_chat(usr, SPAN_DANGER("The round hasn't started yet!")) return SSghostroles.ui_interact(usr) diff --git a/code/modules/mob/abstract/observer/say.dm b/code/modules/mob/abstract/observer/say.dm index aabb0de9faa..4fc470dc87a 100644 --- a/code/modules/mob/abstract/observer/say.dm +++ b/code/modules/mob/abstract/observer/say.dm @@ -6,7 +6,7 @@ if (src.client) if(src.client.prefs.muted & (MUTE_DEADCHAT|MUTE_IC)) - to_chat(src, "You cannot talk in deadchat (muted).") + to_chat(src, SPAN_WARNING("You cannot talk in deadchat (muted).")) return . = src.say_dead(message) diff --git a/code/modules/mob/abstract/unauthed/login.dm b/code/modules/mob/abstract/unauthed/login.dm index b3ba68da5f9..d6553ec63bf 100644 --- a/code/modules/mob/abstract/unauthed/login.dm +++ b/code/modules/mob/abstract/unauthed/login.dm @@ -12,7 +12,7 @@ SHOULD_CALL_PARENT(FALSE) update_Login_details() - to_chat(src, "You need to authenticate before you can continue.") + to_chat(src, SPAN_DANGER("You need to authenticate before you can continue.")) token = md5("[client.ckey][client.computer_id][world.time][rand()]") unauthed[token] = src remove_verb(client, typesof(/client/verb)) diff --git a/code/modules/mob/emote.dm b/code/modules/mob/emote.dm index d962037bc33..63910ca391c 100644 --- a/code/modules/mob/emote.dm +++ b/code/modules/mob/emote.dm @@ -4,16 +4,16 @@ /mob/proc/emote_dead(var/message) if(client.prefs.muted & MUTE_DEADCHAT) - to_chat(src, "You cannot send deadchat emotes (muted).") + to_chat(src, SPAN_DANGER("You cannot send deadchat emotes (muted).")) return if(!(client.prefs.toggles & CHAT_DEAD)) - to_chat(src, "You have deadchat muted.") + to_chat(src, SPAN_DANGER("You have deadchat muted.")) return if(!src.client.holder) if(!GLOB.config.dsay_allowed) - to_chat(src, "Deadchat is globally muted.") + to_chat(src, SPAN_DANGER("Deadchat is globally muted.")) return diff --git a/code/modules/mob/hear_say.dm b/code/modules/mob/hear_say.dm index f2e9bd42abe..f0d69c68c25 100644 --- a/code/modules/mob/hear_say.dm +++ b/code/modules/mob/hear_say.dm @@ -57,7 +57,7 @@ if(isdeaf(src)) if(!language || !(language.flags & INNATE)) // INNATE is the flag for audible-emote-language, so we don't want to show an "x talks but you cannot hear them" message if it's set if(speaker == src) - to_chat(src, "You cannot hear yourself speak!") + to_chat(src, SPAN_WARNING("You cannot hear yourself speak!")) else to_chat(src, "[speaker_name][alt_name] talks but you cannot hear them.") else @@ -228,7 +228,7 @@ formatted += part_c if(isdeaf(src)) if(prob(20)) - to_chat(src, "You feel your headset vibrate but can hear nothing from it!") + to_chat(src, SPAN_WARNING("You feel your headset vibrate but can hear nothing from it!")) else on_hear_radio(part_a, speaker_name, track, part_b, formatted, accent_icon) diff --git a/code/modules/mob/holder.dm b/code/modules/mob/holder.dm index 4b05928efb8..243309e7a7a 100644 --- a/code/modules/mob/holder.dm +++ b/code/modules/mob/holder.dm @@ -152,11 +152,11 @@ var/list/holder_mob_icon_cache = list() var/mob/living/carbon/human/H = M switch(H.a_intent) if(I_HELP) - H.visible_message("[H] pets [contained].") + H.visible_message(SPAN_NOTICE("[H] pets [contained].")) if(I_HURT) contained.adjustBruteLoss(3) - H.visible_message("[H] crushes [contained].") + H.visible_message(SPAN_ALERT("[H] crushes [contained].")) else to_chat(M, "[contained] is dead.") @@ -197,10 +197,10 @@ var/list/holder_mob_icon_cache = list() if (user == src) if (grabber.r_hand && grabber.l_hand) - to_chat(user, "They have no free hands!") + to_chat(user, SPAN_WARNING("They have no free hands!")) return else if ((grabber.hand == 0 && grabber.r_hand) || (grabber.hand == 1 && grabber.l_hand))//Checking if the hand is full - to_chat(grabber, "Your hand is full!") + to_chat(grabber, SPAN_WARNING("Your hand is full!")) return add_verb(src, /mob/living/proc/get_holder_location) //This has to be before we move the mob into the holder @@ -224,11 +224,11 @@ var/list/holder_mob_icon_cache = list() if (success) if (user == src) - to_chat(grabber, "[src.name] climbs up onto you.") - to_chat(src, "You climb up onto [grabber].") + to_chat(grabber, SPAN_NOTICE("[src.name] climbs up onto you.")) + to_chat(src, SPAN_NOTICE("You climb up onto [grabber].")) else - to_chat(grabber, "You scoop up [src].") - to_chat(src, "[grabber] scoops you up.") + to_chat(grabber, SPAN_NOTICE("You scoop up [src].")) + to_chat(src, SPAN_NOTICE("[grabber] scoops you up.")) H.sync(src) else diff --git a/code/modules/mob/inventory.dm b/code/modules/mob/inventory.dm index 9e3b9bf7872..41086377dfc 100644 --- a/code/modules/mob/inventory.dm +++ b/code/modules/mob/inventory.dm @@ -385,7 +385,7 @@ var/list/slot_equipment_priority = list( \ var/turf/end_T = get_turf(target) if(start_T && end_T) if(is_pacified()) - to_chat(src, "You gently let go of [M].") + to_chat(src, SPAN_NOTICE("You gently let go of [M].")) src.remove_from_mob(item) item.loc = src.loc return TRUE @@ -452,12 +452,12 @@ var/list/slot_equipment_priority = list( \ return TRUE if(is_pacified()) - to_chat(src, "You set [item] down gently on the ground.") + to_chat(src, SPAN_NOTICE("You set [item] down gently on the ground.")) return TRUE //actually throw it! if(item) - src.visible_message("[src] throws \a [item].") + src.visible_message(SPAN_WARNING("[src] throws \a [item].")) if(!src.lastarea) src.lastarea = get_area(src.loc) if((istype(src.loc, /turf/space)) || (src.lastarea.has_gravity() == 0)) diff --git a/code/modules/mob/living/carbon/alien/alien_attacks.dm b/code/modules/mob/living/carbon/alien/alien_attacks.dm index f8f9c6b742f..eae77767e7f 100644 --- a/code/modules/mob/living/carbon/alien/alien_attacks.dm +++ b/code/modules/mob/living/carbon/alien/alien_attacks.dm @@ -28,7 +28,7 @@ playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) for(var/mob/O in viewers(src, null)) if ((O.client && !( O.blinded ))) - O.show_message(text("[] has grabbed [] passively!", M, src), 1) + O.show_message(SPAN_WARNING("[M] has grabbed [src] passively!"), 1) else var/damage = rand(1, 9) @@ -43,17 +43,19 @@ playsound(loc, /singleton/sound_category/punch_sound, 25, 1, -1) for(var/mob/O in viewers(src, null)) if ((O.client && !( O.blinded ))) - O.show_message(text("[] has punched []!", M, src), 1) + O.show_message(SPAN_DANGER("[M] has punched [src]!"), 1) if (damage > 4.9) Weaken(rand(10,15)) for(var/mob/O in viewers(M, null)) if ((O.client && !( O.blinded ))) - O.show_message(text("[] has weakened []!", M, src), 1, " You hear someone fall.", 2) + O.show_message(SPAN_DANGER("[M] has weakened [src]!"), 1, + SPAN_WARNING(" You hear someone fall."), 2) + adjustBruteLoss(damage) updatehealth() else playsound(loc, /singleton/sound_category/punchmiss_sound, 25, 1, -1) for(var/mob/O in viewers(src, null)) if ((O.client && !( O.blinded ))) - O.show_message(text("[] has attempted to punch []!", M, src), 1) + O.show_message(SPAN_DANGER("[M] has attempted to punch [src]!"), 1) return diff --git a/code/modules/mob/living/carbon/alien/diona/diona_powers.dm b/code/modules/mob/living/carbon/alien/diona/diona_powers.dm index 86b6f83f418..57f2ef5766d 100644 --- a/code/modules/mob/living/carbon/alien/diona/diona_powers.dm +++ b/code/modules/mob/living/carbon/alien/diona/diona_powers.dm @@ -362,6 +362,6 @@ if(hat) src.drop_from_inventory(hat) hat = null - visible_message("[src] removes their hat!") + visible_message(SPAN_WARNING("[src] removes their hat!")) else to_chat(src, SPAN_WARNING("You have no hat!")) diff --git a/code/modules/mob/living/carbon/alien/life.dm b/code/modules/mob/living/carbon/alien/life.dm index 28dbc6261f1..0b502a90757 100644 --- a/code/modules/mob/living/carbon/alien/life.dm +++ b/code/modules/mob/living/carbon/alien/life.dm @@ -150,7 +150,7 @@ adjustFireLoss((environment.temperature - (T0C+66))/5) // Might be too high, check in testing. if (fire) fire.icon_state = "fire2" if(prob(20)) - to_chat(src, "You feel a searing heat!") + to_chat(src, SPAN_DANGER("You feel a searing heat!")) else if (fire) fire.icon_state = "fire0" diff --git a/code/modules/mob/living/carbon/alien/progression.dm b/code/modules/mob/living/carbon/alien/progression.dm index 73878432e96..6edcf2e82aa 100644 --- a/code/modules/mob/living/carbon/alien/progression.dm +++ b/code/modules/mob/living/carbon/alien/progression.dm @@ -12,11 +12,11 @@ return if(handcuffed || legcuffed) - to_chat(src, "You cannot evolve when you are cuffed.") + to_chat(src, SPAN_WARNING("You cannot evolve when you are cuffed.")) return if(amount_grown < max_grown) - to_chat(src, "You are not fully grown.") + to_chat(src, SPAN_WARNING("You are not fully grown.")) return // confirm_evolution() handles choices and other specific requirements. diff --git a/code/modules/mob/living/carbon/brain/emote.dm b/code/modules/mob/living/carbon/brain/emote.dm index 0ccd811f4d4..68b67d45693 100644 --- a/code/modules/mob/living/carbon/brain/emote.dm +++ b/code/modules/mob/living/carbon/brain/emote.dm @@ -17,7 +17,7 @@ return if (src.client) if (client.prefs.muted & MUTE_IC) - to_chat(src, "You cannot send IC messages (muted).") + to_chat(src, SPAN_WARNING("You cannot send IC messages (muted).")) return if (stat) return @@ -63,7 +63,7 @@ if ("help") to_chat(src, "alarm,alert,notice,flash,blink,whistle,beep,boop") else - to_chat(src, "Unusable emote '[act]'. Say *help for a list.") + to_chat(src, SPAN_NOTICE("Unusable emote '[act]'. Say *help for a list.")) if (message) log_emote("[name]/[key] : [message]",ckey=key_name(key)) diff --git a/code/modules/mob/living/carbon/brain/life.dm b/code/modules/mob/living/carbon/brain/life.dm index 266511428ae..bbb9bc85ec1 100644 --- a/code/modules/mob/living/carbon/brain/life.dm +++ b/code/modules/mob/living/carbon/brain/life.dm @@ -124,7 +124,7 @@ silent = 1 if(!alert)//Sounds an alarm, but only once per 'level' emote("alarm") - to_chat(src, "Major electrical distruption detected: System rebooting.") + to_chat(src, SPAN_WARNING("Major electrical distruption detected: System rebooting.")) alert = 1 if(prob(75)) emp_damage -= 1 @@ -140,7 +140,7 @@ ear_damage = 1 if(!alert) emote("alert") - to_chat(src, "Primary systems are now online.") + to_chat(src, SPAN_WARNING("Primary systems are now online.")) alert = 1 if(prob(50)) emp_damage -= 1 @@ -152,13 +152,13 @@ if(2 to 9)//Low level of EMP damage, has few effects(handled elsewhere) if(!alert) emote("notice") - to_chat(src, "System reboot nearly complete.") + to_chat(src, SPAN_WARNING("System reboot nearly complete.")) alert = 1 if(prob(25)) emp_damage -= 1 if(1) alert = 0 - to_chat(src, "All systems restored.") + to_chat(src, SPAN_WARNING("All systems restored.")) emp_damage -= 1 //Other diff --git a/code/modules/mob/living/carbon/brain/posibrain.dm b/code/modules/mob/living/carbon/brain/posibrain.dm index 2cb3ecb48b8..14f5b811266 100644 --- a/code/modules/mob/living/carbon/brain/posibrain.dm +++ b/code/modules/mob/living/carbon/brain/posibrain.dm @@ -76,7 +76,6 @@ . = ..() . += "This is [icon2html(src, user)] \a [src]!\n[desc]\n" - . += "" if(brainmob?.key) switch(brainmob.stat) @@ -84,12 +83,11 @@ if(!src.brainmob.client) . += "It appears to be in stand-by mode.\n" //afk if(UNCONSCIOUS) - . += "It doesn't seem to be responsive.\n" + . += SPAN_WARNING("It doesn't seem to be responsive.\n") if(DEAD) . += "It appears to be completely inactive.\n" else . += "It appears to be completely inactive.\n" - . += "" /obj/item/device/mmi/digital/posibrain/ready_for_use(var/mob/user) if(!brainmob) diff --git a/code/modules/mob/living/carbon/carbon_defense.dm b/code/modules/mob/living/carbon/carbon_defense.dm index 16dde41ff87..5d3ed6f21a7 100644 --- a/code/modules/mob/living/carbon/carbon_defense.dm +++ b/code/modules/mob/living/carbon/carbon_defense.dm @@ -37,7 +37,7 @@ show_ssd = H.species.show_ssd if(H && show_ssd && !client && !teleop) if(H.bg) - visible_message("[P] hit [src] waking [get_pronoun("him")] up!") + visible_message(SPAN_DANGER("[P] hit [src] waking [get_pronoun("him")] up!")) if(H.health / H.maxHealth < 0.5) H.bg.awaken_impl(TRUE) sleeping = 0 @@ -45,9 +45,9 @@ else to_chat(H, SPAN_DANGER("You sense great disturbance to your physical body!")) else if(!vr_mob) - visible_message("[P] hit [src], but they do not respond... Maybe they have S.S.D?") + visible_message(SPAN_DANGER("[P] hit [src], but they do not respond... Maybe they have S.S.D?")) else if(client && willfully_sleeping) - visible_message("[P] hit [src] waking [get_pronoun("him")] up!") + visible_message(SPAN_DANGER("[P] hit [src] waking [get_pronoun("him")] up!")) sleeping = 0 willfully_sleeping = FALSE @@ -66,11 +66,11 @@ else to_chat(H, SPAN_DANGER("You sense great disturbance to your physical body!")) else if(!vr_mob) - user.visible_message("[user] attacks [src] with [I] waking [get_pronoun("him")] up!", \ - "You attack [src] with [I], but they do not respond... Maybe they have S.S.D?") + user.visible_message(SPAN_DANGER("[user] attacks [src] with [I] waking [get_pronoun("him")] up!"), \ + SPAN_DANGER("You attack [src] with [I], but they do not respond... Maybe they have S.S.D?")) else if(client && willfully_sleeping) - user.visible_message("[user] attacked [src] with [I] waking [get_pronoun("him")] up!", \ - "You attack [src] with [I], waking [get_pronoun("him")] up!") + user.visible_message(SPAN_DANGER("[user] attacked [src] with [I] waking [get_pronoun("him")] up!"), \ + SPAN_DANGER("You attack [src] with [I], waking [get_pronoun("him")] up!")) sleeping = 0 willfully_sleeping = FALSE @@ -119,7 +119,7 @@ if(!(damage_flags & (DAMAGE_FLAG_SHARP|DAMAGE_FLAG_EDGE)) || W.damtype != DAMAGE_BRUTE) return FALSE //unsuitable weapon - user.visible_message("\The [user] begins to slit [src]'s throat with \the [W]!") + user.visible_message(SPAN_DANGER("\The [user] begins to slit [src]'s throat with \the [W]!")) user.next_move = world.time + 20 //also should prevent user from triggering this repeatedly if(!W.use_tool(src, user, 20, volume = 50)) @@ -149,9 +149,9 @@ if(total_damage) if(getOxyLoss() >= 40) - user.visible_message("\The [user] slices [src]'s throat open with \the [W]!") + user.visible_message(SPAN_DANGER("\The [user] slices [src]'s throat open with \the [W]!")) else - user.visible_message("\The [user] cuts [src]'s neck open with \the [W]!") + user.visible_message(SPAN_DANGER("\The [user] cuts [src]'s neck open with \the [W]!")) if(W.hitsound) playsound(loc, W.hitsound, W.get_clamped_volume(), 1, -1) diff --git a/code/modules/mob/living/carbon/diona_base.dm b/code/modules/mob/living/carbon/diona_base.dm index c7e1e617ce9..c9eafd527cc 100644 --- a/code/modules/mob/living/carbon/diona_base.dm +++ b/code/modules/mob/living/carbon/diona_base.dm @@ -526,7 +526,7 @@ var/list/diona_banned_languages = list( if (prob(chance)) add_language(L.name) else - to_chat(src, "You have forgotten the [L.name] language!") + to_chat(src, SPAN_DANGER("You have forgotten the [L.name] language!")) /mob/living/carbon/alien/diona/proc/switch_to_gestalt() set name = "Switch to Gestalt" diff --git a/code/modules/mob/living/carbon/human/death.dm b/code/modules/mob/living/carbon/human/death.dm index 558eb1d22a1..1484523787e 100644 --- a/code/modules/mob/living/carbon/human/death.dm +++ b/code/modules/mob/living/carbon/human/death.dm @@ -67,7 +67,7 @@ SSticker.mode.check_win() if(wearing_rig?.ai_override_enabled) - wearing_rig.notify_ai("Warning: user death event. Mobility control passed to integrated intelligence system.") + wearing_rig.notify_ai(SPAN_DANGER("Warning: user death event. Mobility control passed to integrated intelligence system.")) . = ..(gibbed, species.death_message, species.death_message_range) diff --git a/code/modules/mob/living/carbon/human/devour.dm b/code/modules/mob/living/carbon/human/devour.dm index 11659502533..796d8d389a9 100644 --- a/code/modules/mob/living/carbon/human/devour.dm +++ b/code/modules/mob/living/carbon/human/devour.dm @@ -17,13 +17,13 @@ eat_speed *= 3 //We want our bites to take a lot so as to not spam the chat. do_gradual_devour(victim, eat_speed) return - src.visible_message("\The [src] is attempting to devour \the [victim] whole!") + src.visible_message(SPAN_DANGER("\The [src] is attempting to devour \the [victim] whole!")) var/mob/target = victim if(isobj(victim)) target = src if(!do_mob(src,target,eat_speed)) return FALSE - src.visible_message("\The [src] devours \the [victim] whole!") + src.visible_message(SPAN_DANGER("\The [src] devours \the [victim] whole!")) if(ismob(victim)) admin_attack_log(src, victim, "Devoured.", "Was devoured by.", "devoured") else @@ -72,9 +72,9 @@ else time_needed_string = "[time_needed_seconds] seconds" - src.visible_message("[src] starts to devour [victim]!", \ - "You start devouring [victim], this will take approximately [time_needed_string]. You and the victim must remain still to continue, \ - but you can interrupt feeding anytime and leave with what you've already eaten.") + src.visible_message(SPAN_DANGER("[src] starts to devour [victim]!"), \ + SPAN_DANGER("You start devouring [victim], this will take approximately [time_needed_string]. You and the victim must remain still to continue, \ + but you can interrupt feeding anytime and leave with what you've already eaten.")) for (var/i = 0 to num_bites_needed) if(do_mob(src, victim, bite_delay * 10, extra_checks = CALLBACK(src, PROC_REF(devouring_equals), victim))) @@ -83,20 +83,21 @@ var/obj/item/organ/internal/stomach/S = internal_organs_by_name[BP_STOMACH] if(S) S.ingested.add_reagent(victim.composition_reagent, (victim.composition_reagent_quantity * 0.5) * PEPB) - visible_message("[src] bites a chunk out of [victim]!","[bitemessage(victim)]") + visible_message(SPAN_DANGER("[src] bites a chunk out of [victim]!"), + SPAN_DANGER("[bitemessage(victim)]")) if(messes < victim.mob_size - 1 && prob(50)) handle_devour_mess(src, victim) if(victim.getBruteLoss() >= victim_maxhealth) - visible_message("[src] finishes devouring [victim].","You finish devouring [victim].") + visible_message(SPAN_DANGER("[src] finishes devouring [victim]."),SPAN_WARNING("You finish devouring [victim].")) handle_devour_mess(src, victim, TRUE) qdel(victim) else if(nutrition >= (max_nutrition - 60)) - to_chat(src, "Your stomach is full!") + to_chat(src, SPAN_DANGER("Your stomach is full!")) if (victim && !QDELETED(victim) && victimloc != victim.loc) //This procs when the victim gets moved to nullspace. - to_chat(src, "[victim] moved away, you need to keep it still. Try grabbing, stunning or killing it first.") + to_chat(src, SPAN_DANGER("[victim] moved away, you need to keep it still. Try grabbing, stunning or killing it first.")) else if (ourloc != src.loc) - to_chat(src, "You moved! Devouring cancelled.") + to_chat(src, SPAN_DANGER("You moved! Devouring cancelled.")) break /mob/living/carbon/human/proc/devouring_equals(var/mob/victim) diff --git a/code/modules/mob/living/carbon/human/diona_gestalt.dm b/code/modules/mob/living/carbon/human/diona_gestalt.dm index 079928db163..fdc5a540e33 100644 --- a/code/modules/mob/living/carbon/human/diona_gestalt.dm +++ b/code/modules/mob/living/carbon/human/diona_gestalt.dm @@ -351,7 +351,7 @@ //In this unfathomably rare case, the gestalt player simply dies as its mob is qdel'd. //We will generally prevent this from happening by ensuring any nymph-joining functions leave one free for the host - visible_message("\The [src] quivers slightly, then splits apart with a wet slithering noise.") + visible_message(SPAN_WARNING("\The [src] quivers slightly, then splits apart with a wet slithering noise.")) qdel(src) #undef COLD_DAMAGE_LEVEL_1 diff --git a/code/modules/mob/living/carbon/human/examine.dm b/code/modules/mob/living/carbon/human/examine.dm index 05b706896f8..91c7ec2af92 100644 --- a/code/modules/mob/living/carbon/human/examine.dm +++ b/code/modules/mob/living/carbon/human/examine.dm @@ -80,14 +80,14 @@ tie_msg_warn += " [lowertext(english_list(accessory_descs))]" if(w_uniform.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(w_uniform, user)] [w_uniform.gender==PLURAL?"some":"a"] [fluid_color_type_map(w_uniform.blood_color)]-stained [w_uniform.name][tie_msg_warn].\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(w_uniform, user)] [w_uniform.gender==PLURAL?"some":"a"] [fluid_color_type_map(w_uniform.blood_color)]-stained [w_uniform.name][tie_msg_warn].\n") else msg += "[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(w_uniform, user)] \a [w_uniform][tie_msg].\n" //head if(head) if(head.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(head, user)] [head.gender==PLURAL?"some":"a"] [fluid_color_type_map(head.blood_color)]-stained [head.name] [head.get_head_examine_text(src)]!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(head, user)] [head.gender==PLURAL?"some":"a"] [fluid_color_type_map(head.blood_color)]-stained [head.name] [head.get_head_examine_text(src)]!\n") else msg += "[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(head, user)] \a [head] [head.get_head_examine_text(src)].\n" @@ -108,40 +108,40 @@ tie_msg_warn += " [lowertext(english_list(accessory_descs))]" if(wear_suit.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(wear_suit, user)] [wear_suit.gender==PLURAL?"some":"a"] [fluid_color_type_map(wear_suit.blood_color)]-stained [wear_suit.name][tie_msg_warn].\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(wear_suit, user)] [wear_suit.gender==PLURAL?"some":"a"] [fluid_color_type_map(wear_suit.blood_color)]-stained [wear_suit.name][tie_msg_warn].\n") else msg += "[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(wear_suit, user)] \a [wear_suit][tie_msg].\n" //suit/armor storage if(s_store && !skipsuitstorage) if(s_store.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("is")] carrying [icon2html(s_store, user)] [s_store.gender==PLURAL?"some":"a"] [fluid_color_type_map(s_store.blood_color)]-stained [s_store.name] on [get_pronoun("his")] [wear_suit.name]!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] carrying [icon2html(s_store, user)] [s_store.gender==PLURAL?"some":"a"] [fluid_color_type_map(s_store.blood_color)]-stained [s_store.name] on [get_pronoun("his")] [wear_suit.name]!\n") else msg += "[get_pronoun("He")] [get_pronoun("is")] carrying [icon2html(s_store, user)] \a [s_store] on [get_pronoun("his")] [wear_suit.name].\n" else if(s_store && !skipsuitstorage) if(s_store.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("is")] carrying [icon2html(s_store, user)] [s_store.gender==PLURAL?"some":"a"] [fluid_color_type_map(s_store.blood_color)]-stained [s_store.name] on [get_pronoun("his")] chest!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] carrying [icon2html(s_store, user)] [s_store.gender==PLURAL?"some":"a"] [fluid_color_type_map(s_store.blood_color)]-stained [s_store.name] on [get_pronoun("his")] chest!\n") else msg += "[get_pronoun("He")] [get_pronoun("is")] carrying [icon2html(s_store, user)] \a [s_store] on [get_pronoun("his")] chest.\n" //back if(back) if(back.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(back, user)] [fluid_color_type_map(back.blood_color)]-stained [back] on [get_pronoun("his")] back.\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [icon2html(back, user)] [fluid_color_type_map(back.blood_color)]-stained [back] on [get_pronoun("his")] back.\n") else msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(back, user)] \a [back] on [get_pronoun("his")] back.\n" //left hand if(l_hand) if(l_hand.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("is")] holding [icon2html(l_hand, user)] [l_hand.gender==PLURAL?"some":"a"] [fluid_color_type_map(l_hand.blood_color)]-stained [l_hand.name] in [get_pronoun("his")] left hand!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] holding [icon2html(l_hand, user)] [l_hand.gender==PLURAL?"some":"a"] [fluid_color_type_map(l_hand.blood_color)]-stained [l_hand.name] in [get_pronoun("his")] left hand!\n") else msg += "[get_pronoun("He")] [get_pronoun("is")] holding [icon2html(l_hand, user)] \a [l_hand] in [get_pronoun("his")] left hand.\n" //right hand if(r_hand) if(r_hand.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("is")] holding [icon2html(r_hand, user)] [r_hand.gender==PLURAL?"some":"a"] [fluid_color_type_map(r_hand.blood_color)]-stained [r_hand.name] in [get_pronoun("his")] right hand!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] holding [icon2html(r_hand, user)] [r_hand.gender==PLURAL?"some":"a"] [fluid_color_type_map(r_hand.blood_color)]-stained [r_hand.name] in [get_pronoun("his")] right hand!\n") else msg += "[get_pronoun("He")] [get_pronoun("is")] holding [icon2html(r_hand, user)] \a [r_hand] in [get_pronoun("his")] right hand.\n" @@ -149,39 +149,39 @@ if(gloves && !skipgloves) var/gloves_name = gloves if(gloves.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(gloves, user)] [gloves.gender==PLURAL?"some":"a"] [fluid_color_type_map(gloves.blood_color)]-stained [gloves_name] on [get_pronoun("his")] hands!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [icon2html(gloves, user)] [gloves.gender==PLURAL?"some":"a"] [fluid_color_type_map(gloves.blood_color)]-stained [gloves_name] on [get_pronoun("his")] hands!\n") else msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(gloves, user)] \a [gloves_name] on [get_pronoun("his")] hands.\n" else if(blood_color) - msg += "[get_pronoun("He")] [get_pronoun("has")] [fluid_color_type_map(hand_blood_color)]-stained hands!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [fluid_color_type_map(hand_blood_color)]-stained hands!\n") //belt if(belt) if(belt.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(belt, user)] [belt.gender==PLURAL?"some":"a"] [fluid_color_type_map(belt.blood_color)]-stained [belt.name] about [get_pronoun("his")] waist!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [icon2html(belt, user)] [belt.gender==PLURAL?"some":"a"] [fluid_color_type_map(belt.blood_color)]-stained [belt.name] about [get_pronoun("his")] waist!\n") else msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(belt, user)] \a [belt] about [get_pronoun("his")] waist.\n" //shoes if(shoes && !skipshoes) if(shoes.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(shoes, user)] [shoes.gender==PLURAL?"some":"a"] [fluid_color_type_map(shoes.blood_color)]-stained [shoes.name] on [get_pronoun("his")] feet!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(shoes, user)] [shoes.gender==PLURAL?"some":"a"] [fluid_color_type_map(shoes.blood_color)]-stained [shoes.name] on [get_pronoun("his")] feet!\n") else msg += "[get_pronoun("He")] [get_pronoun("is")] wearing [icon2html(shoes, user)] \a [shoes] on [get_pronoun("his")] feet.\n" else if(footprint_color) - msg += "[get_pronoun("He")] [get_pronoun("has")] [fluid_color_type_map(footprint_color)]-stained feet!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [fluid_color_type_map(footprint_color)]-stained feet!\n") //mask if(wear_mask && !skipmask) if(wear_mask.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(wear_mask, user)] [wear_mask.gender==PLURAL?"some":"a"] [fluid_color_type_map(wear_mask.blood_color)]-stained [wear_mask.name] [wear_mask.get_mask_examine_text(src)]!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [icon2html(wear_mask, user)] [wear_mask.gender==PLURAL?"some":"a"] [fluid_color_type_map(wear_mask.blood_color)]-stained [wear_mask.name] [wear_mask.get_mask_examine_text(src)]!\n") else msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(wear_mask, user)] \a [wear_mask] [wear_mask.get_mask_examine_text(src)].\n" //eyes if(glasses && !skipeyes) if(glasses.blood_color) - msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(glasses, user)] [glasses.gender==PLURAL?"some":"a"] [fluid_color_type_map(glasses.blood_color)]-stained [glasses] covering [get_pronoun("his")] eyes!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [icon2html(glasses, user)] [glasses.gender==PLURAL?"some":"a"] [fluid_color_type_map(glasses.blood_color)]-stained [glasses] covering [get_pronoun("his")] eyes!\n") else msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(glasses, user)] \a [glasses] covering [get_pronoun("his")] eyes.\n" @@ -205,20 +205,20 @@ //Jitters if(is_jittery) if(jitteriness >= 300) - msg += "[get_pronoun("He")] [get_pronoun("is")] convulsing violently!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] convulsing violently!\n") else if(jitteriness >= 200) - msg += "[get_pronoun("He")] [get_pronoun("is")] extremely jittery.\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] extremely jittery.\n") else if(jitteriness >= 100) - msg += "[get_pronoun("He")] [get_pronoun("is")] twitching ever so slightly.\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] twitching ever so slightly.\n") //splints for(var/organ in list(BP_L_LEG,BP_R_LEG,BP_L_ARM,BP_R_ARM,BP_L_HAND,BP_R_HAND,BP_R_FOOT,BP_L_FOOT)) var/obj/item/organ/external/o = get_organ(organ) if(o) if(o.status & ORGAN_SPLINTED) - msg += "[get_pronoun("He")] [get_pronoun("has")] a splint on [get_pronoun("his")] [o.name]!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] a splint on [get_pronoun("his")] [o.name]!\n") if(o.applied_pressure == src) - msg += "[get_pronoun("He")] [get_pronoun("is")] applying pressure to [get_pronoun("his")] [o.name]!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] applying pressure to [get_pronoun("his")] [o.name]!\n") if((mutations & mSmallsize)) msg += "[get_pronoun("He")] [get_pronoun("is")] small halfling!\n" @@ -232,20 +232,20 @@ //handcuffed? if(handcuffed) - msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(handcuffed, user)] cuffs around [get_pronoun("his")] wrists!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [icon2html(handcuffed, user)] cuffs around [get_pronoun("his")] wrists!\n") //handcuffed? if(legcuffed) - msg += "[get_pronoun("He")] [get_pronoun("has")] [icon2html(legcuffed, user)] cuffs around [get_pronoun("his")] ankles!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [icon2html(legcuffed, user)] cuffs around [get_pronoun("his")] ankles!\n") //Red Nightshade if(is_berserk()) - msg += "[get_pronoun("He")] [get_pronoun("has")] engorged veins, which appear a vibrant red!\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] engorged veins, which appear a vibrant red!\n") if((src.stat || (status_flags & FAKEDEATH)) && !(src.species.flags & NO_BLOOD)) // No point checking pulse of a species that doesn't have one. - msg += "[get_pronoun("He")] [get_pronoun("is")]n't responding to anything around [get_pronoun("him")] and seems to be unconscious.\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")]n't responding to anything around [get_pronoun("him")] and seems to be unconscious.\n") if(distance <= 3 && ((stat == DEAD || is_asystole() || src.losebreath) || (status_flags & FAKEDEATH))) - msg += "[get_pronoun("He")] [get_pronoun("does")] not appear to be breathing.\n" + msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("does")] not appear to be breathing.\n") else if (src.stat) msg += SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] not responding to anything around [get_pronoun("him")].\n") @@ -254,16 +254,12 @@ msg += "[get_pronoun("He")] [get_pronoun("is")] covered in some liquid.\n" if(on_fire) - msg += "[get_pronoun("He")] [get_pronoun("is")] on fire!\n" + msg += SPAN_DANGER("[get_pronoun("He")] [get_pronoun("is")] on fire!\n") //when the player is winded by an admin if(paralysis > 6000) msg += "OOC Information: This player has been winded by a member of staff! Please freeze all roleplay involving their character until the matter is resolved! Adminhelp if you have further questions.\n" - msg += "" - - msg += "" - var/have_client = client var/inactivity = client ? client.inactivity : null @@ -293,9 +289,9 @@ var/obj/item/organ/external/E = organs_by_name[organ_tag] if(!E) - wound_flavor_text["[organ_descriptor]"] = "[get_pronoun("He")] [get_pronoun("is")] missing [get_pronoun("his")] [organ_descriptor].\n" + wound_flavor_text["[organ_descriptor]"] = SPAN_WARNING("[get_pronoun("He")] [get_pronoun("is")] missing [get_pronoun("his")] [organ_descriptor].\n") else if(E.is_stump()) - wound_flavor_text["[organ_descriptor]"] = "[get_pronoun("He")] [get_pronoun("has")] a stump where [get_pronoun("his")] [organ_descriptor] should be.\n" + wound_flavor_text["[organ_descriptor]"] = SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] a stump where [get_pronoun("his")] [organ_descriptor] should be.\n") else continue @@ -312,22 +308,22 @@ if(!(temp.brute_dam + temp.burn_dam) && !(temp.open)) continue else - wound_flavor_text["[temp.name]"] = "[get_pronoun("He")] [get_pronoun("has")] [temp.get_wounds_desc()] on [get_pronoun("his")] [temp.name].
" + wound_flavor_text["[temp.name]"] = SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [temp.get_wounds_desc()] on [get_pronoun("his")] [temp.name].
") else if(length(temp.wounds) || temp.open) if(!thin_covering) if(temp.is_stump() && temp.parent_organ && organs_by_name[temp.parent_organ]) var/obj/item/organ/external/parent = organs_by_name[temp.parent_organ] - wound_flavor_text["[temp.name]"] = "[get_pronoun("He")] [get_pronoun("has")] [temp.get_wounds_desc()] on [get_pronoun("his")] [parent.name].
" + wound_flavor_text["[temp.name]"] = SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [temp.get_wounds_desc()] on [get_pronoun("his")] [parent.name].
") else - wound_flavor_text["[temp.name]"] = "[get_pronoun("He")] [get_pronoun("has")] [temp.get_wounds_desc()] on [get_pronoun("his")] [temp.name].
" + wound_flavor_text["[temp.name]"] = SPAN_WARNING("[get_pronoun("He")] [get_pronoun("has")] [temp.get_wounds_desc()] on [get_pronoun("his")] [temp.name].
") if(temp.status & ORGAN_BLEEDING) is_bleeding["[temp.name]"] = SPAN_DANGER("[get_pronoun("His")] [temp.name] is bleeding")+ "
" else wound_flavor_text["[temp.name]"] = "" if(temp.dislocated == 2) - wound_flavor_text["[temp.name]"] += "[get_pronoun("His")] [temp.joint] is dislocated!
" + wound_flavor_text["[temp.name]"] += SPAN_WARNING("[get_pronoun("His")] [temp.joint] is dislocated!
") if(((temp.status & ORGAN_BROKEN) && temp.brute_dam > temp.min_broken_damage) || (temp.status & ORGAN_MUTATED)) - wound_flavor_text["[temp.name]"] += "[get_pronoun("His")] [temp.name] is dented and swollen!
" + wound_flavor_text["[temp.name]"] += SPAN_WARNING("[get_pronoun("His")] [temp.name] is dented and swollen!
") //Handles the text strings being added to the actual description. //If they have something that covers the limb, and it is not missing, put flavortext. If it is covered but bleeding, add other flavortext. @@ -341,7 +337,7 @@ for(var/obj/item/organ/external/organ in src.organs) for(var/obj/item/O in organ.implants) if(!istype(O,/obj/item/implant) && !istype(O,/obj/item/material/shard/shrapnel)) - msg += "[src] [get_pronoun("has")] \a [O] sticking out of [get_pronoun("his")] [organ.name]!\n" + msg += SPAN_DANGER("[src] [get_pronoun("has")] \a [O] sticking out of [get_pronoun("his")] [organ.name]!\n") if(digitalcamo) msg += "[get_pronoun("He")] [get_pronoun("is")] a little difficult to identify.\n" diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 3ca624ce080..4cdf1bbc1a6 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -1925,11 +1925,11 @@ return var/datum/category_item/underwear/UWI = all_underwear[UWC.name] if(!UWI || UWI.name == "None") - to_chat(src, "You do not have [UWC.gender==PLURAL ? "[UWC.display_name]" : "any [UWC.display_name]"].") + to_chat(src, SPAN_NOTICE("You do not have [UWC.gender==PLURAL ? "[UWC.display_name]" : "any [UWC.display_name]"].")) return hide_underwear[UWC.name] = !hide_underwear[UWC.name] update_underwear(1) - to_chat(src, "You [hide_underwear[UWC.name] ? "take off" : "put on"] your [UWC.display_name].") + to_chat(src, SPAN_NOTICE("You [hide_underwear[UWC.name] ? "take off" : "put on"] your [UWC.display_name].")) /mob/living/carbon/human/verb/pull_punches() set name = "Pull Punches" @@ -2278,9 +2278,9 @@ visible_message(SPAN_NOTICE("[src] looks up."), SPAN_NOTICE("You look up.")) reset_view(z_eye) return - to_chat(src, "You can see \the [above ? above : "ceiling"].") + to_chat(src, SPAN_NOTICE("You can see \the [above ? above : "ceiling"].")) else - to_chat(src, "You can't look up right now.") + to_chat(src, SPAN_NOTICE("You can't look up right now.")) /mob/living/verb/lookdown() set name = "Look Down" @@ -2305,9 +2305,9 @@ visible_message(SPAN_NOTICE("[src] leans over to look below."), SPAN_NOTICE("You lean over to look below.")) reset_view(z_eye) return - to_chat(src, "You can see \the [T ? T : "floor"].") + to_chat(src, SPAN_NOTICE("You can see \the [T ? T : "floor"].")) else - to_chat(src, "You can't look below right now.") + to_chat(src, SPAN_NOTICE("You can't look below right now.")) /mob/living/carbon/human/get_speech_bubble_state_modifier() if(speech_bubble_type) diff --git a/code/modules/mob/living/carbon/human/human_attackhand.dm b/code/modules/mob/living/carbon/human/human_attackhand.dm index 7ffcb72f9d1..abc20fedd43 100644 --- a/code/modules/mob/living/carbon/human/human_attackhand.dm +++ b/code/modules/mob/living/carbon/human/human_attackhand.dm @@ -24,7 +24,7 @@ ..() if ((H.invisibility == INVISIBILITY_LEVEL_TWO) && M.back && (istype(M.back, /obj/item/rig))) - to_chat(H, "You are now visible.") + to_chat(H, SPAN_DANGER("You are now visible.")) H.set_invisibility(0) anim(get_turf(H), H,'icons/mob/mob.dmi',,"uncloak",,H.dir) @@ -46,7 +46,7 @@ if(M.a_intent == I_HURT)//Stungloves. Any contact will stun the alien. if(G.cell.charge >= 2500) G.cell.use(G.cell.charge) //So it drains the cell. - visible_message("[src] has been touched with the stun gloves by [M]!") + visible_message(SPAN_DANGER("[src] has been touched with the stun gloves by [M]!")) M.attack_log += text("\[[time_stamp()]\] Stungloved [src.name] ([src.ckey])") src.attack_log += text("\[[time_stamp()]\] Has been stungloved by [M.name] ([M.ckey])") @@ -57,7 +57,9 @@ if(prob(15)) playsound(src.loc, 'sound/weapons/flash.ogg', 100, 1) - M.visible_message("The power source on [M]'s stun gloves overloads in a terrific fashion!", "Your jury rigged stun gloves malfunction!", "You hear a loud sparking.") + M.visible_message(SPAN_WARNING("The power source on [M]'s stun gloves overloads in a terrific fashion!"), + SPAN_WARNING("Your jury rigged stun gloves malfunction!"), + SPAN_WARNING("You hear a loud sparking.")) if(prob(50)) M.apply_damage(rand(1,5), DAMAGE_BURN) @@ -67,8 +69,8 @@ return 1 else - to_chat(M, "Not enough charge!") - visible_message("[src] has been touched with the stun gloves by [M]!") + to_chat(M, SPAN_WARNING("Not enough charge!")) + visible_message(SPAN_DANGER("[src] has been touched with the stun gloves by [M]!")) return @@ -77,7 +79,7 @@ var/damage = rand(0, 9) if(!damage) playsound(loc, /singleton/sound_category/punchmiss_sound, 25, 1, -1) - visible_message("[H] has attempted to punch [src]!") + visible_message(SPAN_DANGER("[H] has attempted to punch [src]!")) return 0 var/obj/item/organ/external/affecting = get_organ(ran_zone(H.zone_sel.selecting)) @@ -86,11 +88,11 @@ playsound(loc, /singleton/sound_category/punch_sound, 25, 1, -1) - visible_message("[H] has punched [src]!") + visible_message(SPAN_DANGER("[H] has punched [src]!")) apply_damage(damage, DAMAGE_PAIN, affecting) if(damage >= 9) - visible_message("[H] has weakened [src]!") + visible_message(SPAN_DANGER("[H] has weakened [src]!")) apply_effect(4, WEAKEN) return @@ -114,7 +116,7 @@ if(M == src || anchored) return 0 if(M.is_pacified()) - to_chat(M, "You don't want to risk hurting [src]!") + to_chat(M, SPAN_NOTICE("You don't want to risk hurting [src]!")) return 0 if(attacker_style && attacker_style.grab_act(H, src)) @@ -122,7 +124,7 @@ for(var/obj/item/grab/G in src.grabbed_by) if(G.assailant == M) - to_chat(M, "You already grabbed [src].") + to_chat(M, SPAN_NOTICE("You already grabbed [src].")) return if (!attempt_grab(M)) @@ -133,7 +135,7 @@ var/obj/item/grab/G = new /obj/item/grab(M, M, src) if(buckled_to) - to_chat(M, "You cannot grab [src], [src.get_pronoun("he")] [get_pronoun("is")] buckled in!") + to_chat(M, SPAN_NOTICE("You cannot grab [src], [src.get_pronoun("he")] [get_pronoun("is")] buckled in!")) if(!G) //the grab will delete itself in New if affecting is anchored return M.put_in_active_hand(G) @@ -147,14 +149,14 @@ G.icon_state = "grabbed1" G.hud.icon_state = "reinforce1" G.last_action = world.time - visible_message("[M] gets a strong grip on [src]!") + visible_message(SPAN_WARNING("[M] gets a strong grip on [src]!")) return 1 - visible_message("[M] has grabbed [src] passively!") + visible_message(SPAN_WARNING("[M] has grabbed [src] passively!")) return 1 if(I_HURT) if(M.is_pacified()) - to_chat(M, "You don't want to risk hurting [src]!") + to_chat(M, SPAN_NOTICE("You don't want to risk hurting [src]!")) return 0 if(attacker_style && attacker_style.harm_act(H, src)) @@ -171,7 +173,7 @@ var/obj/item/organ/external/affecting = get_organ(hit_zone) if(!affecting || affecting.is_stump()) - to_chat(M, "They are missing that limb!") + to_chat(M, SPAN_DANGER("They are missing that limb!")) return 1 switch(src.a_intent) @@ -243,7 +245,7 @@ if(!attack_message) attack.show_attack(H, src, hit_zone, rand_damage) else - H.visible_message("[attack_message]") + H.visible_message(SPAN_DANGER("[attack_message]")) playsound(loc, ((miss_type) ? (miss_type == 1 ? attack.miss_sound : 'sound/weapons/thudswoosh.ogg') : attack.attack_sound), 25, 1, -1) H.attack_log += text("\[[time_stamp()]\] [miss_type ? (miss_type == 1 ? "Missed" : "Blocked") : "[pick(attack.attack_verb)]"] [src.name] ([src.ckey])") @@ -361,11 +363,11 @@ turfs += T if(turfs.len) var/turf/target = pick(turfs) - visible_message("[src]'s [W] goes off during the struggle!") + visible_message(SPAN_DANGER("[src]'s [W] goes off during the struggle!")) return W.afterattack(target,src) else if(M.Adjacent(src)) - visible_message("[src] retaliates against [M]'s disarm attempt with [W]!") + visible_message(SPAN_DANGER("[src] retaliates against [M]'s disarm attempt with [W]!")) return M.attackby(W,src) var/randn = rand(1, 100) @@ -400,7 +402,7 @@ if(H.gloves && istype(H.gloves,/obj/item/clothing/gloves/force)) apply_effect(6, WEAKEN) playsound(loc, 'sound/weapons/push_connect.ogg', 50, 1, -1) - visible_message("[M] hurls [src] to the floor!") + visible_message(SPAN_DANGER("[M] hurls [src] to the floor!")) step_away(src,M,15) sleep(3) step_away(src,M,15) @@ -410,17 +412,17 @@ var/armor_check = 100 * get_blocked_ratio(affecting, DAMAGE_BRUTE, damage = 20) apply_effect(3, WEAKEN, armor_check) if(armor_check < 100) - visible_message("[M] has pushed [src]!") + visible_message(SPAN_DANGER("[M] has pushed [src]!")) playsound(loc, 'sound/weapons/push_connect.ogg', 50, 1, -1) else - visible_message("[M] attempted to push [src]!") + visible_message(SPAN_WARNING("[M] attempted to push [src]!")) playsound(loc, 'sound/weapons/push.ogg', 50, 1, -1) return if(randn <= 60) if(H.gloves && istype(H.gloves,/obj/item/clothing/gloves/force)) playsound(loc, 'sound/weapons/push_connect.ogg', 50, 1, -1) - visible_message("[M] shoves, sending [src] flying!") + visible_message(SPAN_DANGER("[M] shoves, sending [src] flying!")) step_away(src,M,15) sleep(1) step_away(src,M,15) @@ -448,7 +450,7 @@ //No return here is intentional, as it will then try to disarm other items, and/or play a failed disarm message playsound(loc, /singleton/sound_category/punchmiss_sound, 25, 1, -1) - visible_message("[M] attempted to disarm [src]!") + visible_message(SPAN_DANGER("[M] attempted to disarm [src]!")) return /mob/living/carbon/human/proc/cpr(mob/living/carbon/human/H, var/starting = FALSE, var/cpr_mode) @@ -580,15 +582,15 @@ if(!organ || ORGAN_IS_DISLOCATED(organ) || organ.dislocated == -1) return 0 - user.visible_message("[user] begins to dislocate [src]'s [organ.joint]!") + user.visible_message(SPAN_WARNING("[user] begins to dislocate [src]'s [organ.joint]!")) user.limb_breaking = TRUE if(do_after(user, 100)) organ.dislocate(1) admin_attack_log(user, src, "dislocated [organ.joint].", "had his [organ.joint] dislocated.", "dislocated [organ.joint] of") - src.visible_message("[src]'s [organ.joint] [pick("gives way","caves in","crumbles","collapses")]!") + src.visible_message(SPAN_DANGER("[src]'s [organ.joint] [pick("gives way","caves in","crumbles","collapses")]!")) user.limb_breaking = FALSE return 1 - user.visible_message("[user] fails to dislocate [src]'s [organ.joint]!") + user.visible_message(SPAN_WARNING("[user] fails to dislocate [src]'s [organ.joint]!")) user.limb_breaking = FALSE return 0 @@ -596,21 +598,21 @@ /mob/living/carbon/human/proc/break_all_grabs(mob/living/carbon/user) var/success = 0 if(pulling) - visible_message("[user] has broken [src]'s grip on [pulling]!") + visible_message(SPAN_DANGER("[user] has broken [src]'s grip on [pulling]!")) success = 1 stop_pulling() if(istype(l_hand, /obj/item/grab)) var/obj/item/grab/lgrab = l_hand if(lgrab.affecting) - visible_message("[user] has broken [src]'s grip on [lgrab.affecting]!") + visible_message(SPAN_DANGER("[user] has broken [src]'s grip on [lgrab.affecting]!")) success = 1 spawn(1) qdel(lgrab) if(istype(r_hand, /obj/item/grab)) var/obj/item/grab/rgrab = r_hand if(rgrab.affecting) - visible_message("[user] has broken [src]'s grip on [rgrab.affecting]!") + visible_message(SPAN_DANGER("[user] has broken [src]'s grip on [rgrab.affecting]!")) success = 1 spawn(1) qdel(rgrab) @@ -623,14 +625,16 @@ return 0 if(organ.applied_pressure) - var/message = "[ismob(organ.applied_pressure)? "Someone" : "\A [organ.applied_pressure]"] is already applying pressure to [user == src? "your [organ.name]" : "[src]'s [organ.name]"]." + var/message = SPAN_WARNING("[ismob(organ.applied_pressure)? "Someone" : "\A [organ.applied_pressure]"] is already applying pressure to [user == src? "your [organ.name]" : "[src]'s [organ.name]"].") to_chat(user, message) return 0 if(user == src) - user.visible_message("\The [user] starts applying pressure to [user.get_pronoun("his")] [organ.name]!", "You start applying pressure to your [organ.name]!") + user.visible_message(SPAN_NOTICE("\The [user] starts applying pressure to [user.get_pronoun("his")] [organ.name]!"), + SPAN_NOTICE("You start applying pressure to your [organ.name]!")) else - user.visible_message("\The [user] starts applying pressure to [src]'s [organ.name]!", "You start applying pressure to [src]'s [organ.name]!") + user.visible_message(SPAN_NOTICE("\The [user] starts applying pressure to [src]'s [organ.name]!"), + SPAN_NOTICE("You start applying pressure to [src]'s [organ.name]!")) spawn(0) organ.applied_pressure = user @@ -640,9 +644,11 @@ organ.applied_pressure = null if(user == src) - user.visible_message("\The [user] stops applying pressure to [user.get_pronoun("his")] [organ.name]!", "You stop applying pressure to your [organ.name]!") + user.visible_message(SPAN_NOTICE("\The [user] stops applying pressure to [user.get_pronoun("his")] [organ.name]!"), + SPAN_NOTICE("You stop applying pressure to your [organ.name]!")) else - user.visible_message("\The [user] stops applying pressure to [src]'s [organ.name]!", "You stop applying pressure to [src]'s [organ.name]!") + user.visible_message(SPAN_NOTICE("\The [user] stops applying pressure to [src]'s [organ.name]!"), + SPAN_NOTICE("You stop applying pressure to [src]'s [organ.name]!")) return 1 diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm index 65a44bbc957..787697ed1b1 100644 --- a/code/modules/mob/living/carbon/human/human_damage.dm +++ b/code/modules/mob/living/carbon/human/human_damage.dm @@ -120,7 +120,7 @@ return // Notify our AI if they can now control the suit. if(wearing_rig?.ai_override_enabled && !stat && paralysis < amount) //We are passing out right this second. - wearing_rig.notify_ai("Warning: user consciousness failure. Mobility control passed to integrated intelligence system.") + wearing_rig.notify_ai(SPAN_DANGER("Warning: user consciousness failure. Mobility control passed to integrated intelligence system.")) ..() /mob/living/carbon/human/update_canmove() @@ -424,7 +424,7 @@ This function restores all organs. /mob/living/carbon/human/apply_damage(damage = 0, damagetype = DAMAGE_BRUTE, def_zone, blocked, used_weapon, damage_flags = 0, armor_pen, silent = FALSE) if (invisibility == INVISIBILITY_LEVEL_TWO && back && (istype(back, /obj/item/rig))) if(damage > 0) - to_chat(src, "You are now visible.") + to_chat(src, SPAN_DANGER("You are now visible.")) set_invisibility(0) var/obj/item/organ/external/organ = isorgan(def_zone) ? def_zone : get_organ(def_zone, TRUE) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index 48cc49b72f4..1f38ae71c6d 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -206,7 +206,7 @@ emp_act target_zone = user.zone_sel.selecting if(!hit_zone) - visible_message("[user] misses [src] with \the [I]!") + visible_message(SPAN_DANGER("[user] misses [src] with \the [I]!")) return if(check_shields(I.force, I, user, target_zone, "the [I.name]")) @@ -214,7 +214,7 @@ emp_act var/obj/item/organ/external/affecting = get_organ(hit_zone) if (!affecting || affecting.is_stump()) - to_chat(user, "They are missing that limb!") + to_chat(user, SPAN_DANGER("They are missing that limb!")) return return hit_zone @@ -224,7 +224,7 @@ emp_act if(!affecting) return //should be prevented by attacked_with_item() but for sanity. - visible_message("[src] has been [LAZYPICK(I.attack_verb, "attacked")] in the [affecting.name] with [I] by [user]!") + visible_message(SPAN_DANGER("[src] has been [LAZYPICK(I.attack_verb, "attacked")] in the [affecting.name] with [I] by [user]!")) return standard_weapon_hit_effects(I, user, effective_force, hit_zone) /mob/living/carbon/human/standard_weapon_hit_effects(obj/item/I, mob/living/user, var/effective_force, var/hit_zone) @@ -261,7 +261,7 @@ emp_act if(headcheck(hit_zone)) //Harder to score a stun but if you do it lasts a bit longer if(prob(effective_force) && head && !istype(head, /obj/item/clothing/head/helmet)) - visible_message("[src] [species.knockout_message]") + visible_message(SPAN_DANGER("[src] [species.knockout_message]")) apply_effect(20, PARALYZE, blocked) //Apply blood @@ -312,7 +312,7 @@ emp_act var/blocked_ratio = get_blocked_ratio(organ.limb_name, W.damtype, W.damage_flags(), W.armor_penetration, W.force) if(prob(W.force * (1 - blocked_ratio))) - visible_message("[src]'s [organ.joint] [pick("gives way","caves in","crumbles","collapses")]!") + visible_message(SPAN_DANGER("[src]'s [organ.joint] [pick("gives way","caves in","crumbles","collapses")]!")) organ.dislocate(1) return 1 return 0 @@ -320,12 +320,12 @@ emp_act /mob/living/carbon/human/emag_act(var/remaining_charges, mob/user, var/emag_source) var/obj/item/organ/external/affecting = get_organ(user.zone_sel.selecting) if(!affecting || !(affecting.status & ORGAN_ROBOT)) - to_chat(user, "That limb isn't robotic.") + to_chat(user, SPAN_WARNING("That limb isn't robotic.")) return -1 if(affecting.sabotaged) - to_chat(user, "[src]'s [affecting.name] is already sabotaged!") + to_chat(user, SPAN_WARNING("[src]'s [affecting.name] is already sabotaged!")) return -1 - to_chat(user, "You sneakily slide [emag_source] into the dataport on [src]'s [affecting.name] and short out the safeties.") + to_chat(user, SPAN_NOTICE("You sneakily slide [emag_source] into the dataport on [src]'s [affecting.name] and short out the safeties.")) affecting.sabotaged = 1 return 1 @@ -338,7 +338,7 @@ emp_act if(canmove && !restrained()) if(isturf(O.loc)) put_in_active_hand(O) - visible_message("[src] catches [O]!") + visible_message(SPAN_WARNING("[src] catches [O]!")) throw_mode_off() return @@ -367,7 +367,7 @@ emp_act return if(!zone) - visible_message("\The [O] misses [src] narrowly!") + visible_message(SPAN_NOTICE("\The [O] misses [src] narrowly!")) playsound(src, 'sound/effects/throw_miss.ogg', rand(10, 50), 1) return @@ -376,7 +376,8 @@ emp_act var/obj/item/organ/external/affecting = get_organ(zone) var/hit_area = affecting.name - src.visible_message("[src] has been hit in the [hit_area] by [O].", "You're hit in the [hit_area] by [O]!") + src.visible_message(SPAN_WARNING("[src] has been hit in the [hit_area] by [O]."), + SPAN_WARNING("You're hit in the [hit_area] by [O]!")) apply_damage(throw_damage, dtype, zone, used_weapon = O, damage_flags = O.damage_flags(), armor_pen = O.armor_penetration) if(ismob(O.thrower)) @@ -415,7 +416,8 @@ emp_act if(O.throw_source && momentum >= THROWNOBJ_KNOCKBACK_SPEED) var/dir = get_dir(O.throw_source, src) - visible_message("[src] staggers under the impact!"," You stagger under the impact!") + visible_message(SPAN_WARNING("[src] staggers under the impact!"), + SPAN_WARNING("You stagger under the impact!")) src.throw_at(get_edge_target_turf(src,dir),1,momentum) if(!O || !src) return @@ -523,12 +525,12 @@ emp_act if(user == src || anchored) return 0 if(user.is_pacified()) - to_chat(user, "You don't want to risk hurting [src]!") + to_chat(user, SPAN_NOTICE("You don't want to risk hurting [src]!")) return 0 for(var/obj/item/grab/G in user.grabbed_by) if(G.assailant == user) - to_chat(user, "You already grabbed [src].") + to_chat(user, SPAN_NOTICE("You already grabbed [src].")) return if (!attempt_grab(user)) @@ -539,7 +541,7 @@ emp_act var/obj/item/grab/G = new /obj/item/grab(user, user, src) if(buckled_to) - to_chat(user, "You cannot grab [src], [get_pronoun("he")] [get_pronoun("is")] buckled in!") + to_chat(user, SPAN_NOTICE("You cannot grab [src], [get_pronoun("he")] [get_pronoun("is")] buckled in!")) if(!G) //the grab will delete itself in New if affecting is anchored return user.put_in_active_hand(G) @@ -553,9 +555,9 @@ emp_act G.icon_state = "grabbed1" G.hud.icon_state = "reinforce1" G.last_action = world.time - visible_message("[user] gets a strong grip on [src]!") + visible_message(SPAN_WARNING("[user] gets a strong grip on [src]!")) return 1 - visible_message("[user] has grabbed [src] passively!") + visible_message(SPAN_WARNING("[user] has grabbed [src] passively!")) return 1 /mob/living/carbon/human/set_on_fire() diff --git a/code/modules/mob/living/carbon/human/human_helpers.dm b/code/modules/mob/living/carbon/human/human_helpers.dm index 2123025a992..e93b23a6c08 100644 --- a/code/modules/mob/living/carbon/human/human_helpers.dm +++ b/code/modules/mob/living/carbon/human/human_helpers.dm @@ -15,7 +15,7 @@ if(status[1] == HUMAN_EATING_NO_MOUTH) to_chat(src, "Where do you intend to put \the [food]? You don't have a mouth!") else if(status[1] == HUMAN_EATING_BLOCKED_MOUTH) - to_chat(src, "\The [status[2]] is in the way!") + to_chat(src, SPAN_WARNING("\The [status[2]] is in the way!")) return 0 /mob/living/carbon/human/can_force_feed(var/feeder, var/food, var/feedback = 1) @@ -26,7 +26,7 @@ if(status[1] == HUMAN_EATING_NO_MOUTH) to_chat(feeder, "Where do you intend to put \the [food]? \The [src] doesn't have a mouth!") else if(status[1] == HUMAN_EATING_BLOCKED_MOUTH) - to_chat(feeder, "\The [status[2]] is in the way!") + to_chat(feeder, SPAN_WARNING("\The [status[2]] is in the way!")) return 0 /mob/living/carbon/human/proc/can_eat_status() diff --git a/code/modules/mob/living/carbon/human/human_organs.dm b/code/modules/mob/living/carbon/human/human_organs.dm index 9d24071edce..1bc5b9109d0 100644 --- a/code/modules/mob/living/carbon/human/human_organs.dm +++ b/code/modules/mob/living/carbon/human/human_organs.dm @@ -107,7 +107,7 @@ for(var/limb_tag in list(BP_L_HAND,BP_L_ARM)) var/obj/item/organ/external/E = get_organ(limb_tag) if(!E) - visible_message("Lacking a functioning left hand, \the [src] drops \the [l_hand].") + visible_message(SPAN_DANGER("Lacking a functioning left hand, \the [src] drops \the [l_hand].")) drop_from_inventory(l_hand) break @@ -115,7 +115,7 @@ for(var/limb_tag in list(BP_R_HAND,BP_R_ARM)) var/obj/item/organ/external/E = get_organ(limb_tag) if(!E) - visible_message("Lacking a functioning right hand, \the [src] drops \the [r_hand].") + visible_message(SPAN_DANGER("Lacking a functioning right hand, \the [src] drops \the [r_hand].")) drop_from_inventory(r_hand) break @@ -216,12 +216,12 @@ var/brain_result = get_brain_result() switch(brain_result) if(0) - brain_result = "none, patient is braindead" + brain_result = SPAN_BAD("none, patient is braindead") if(-1) brain_result = "ERROR - Nonstandard biology" else if(brain_result <= 50) - brain_result = "[brain_result]%" + brain_result = SPAN_BAD("[brain_result]%") else if(brain_result <= 80) brain_result = "[brain_result]%" else diff --git a/code/modules/mob/living/carbon/human/human_powers.dm b/code/modules/mob/living/carbon/human/human_powers.dm index 63033f7b6e6..67207f5def3 100644 --- a/code/modules/mob/living/carbon/human/human_powers.dm +++ b/code/modules/mob/living/carbon/human/human_powers.dm @@ -25,7 +25,7 @@ if(selected_string && h_style != selected_string) h_style = selected_string regenerate_icons() - visible_message("[src] pauses a moment to style their hair.") + visible_message(SPAN_NOTICE("[src] pauses a moment to style their hair.")) else to_chat(src, "You're already using that style.") @@ -50,7 +50,7 @@ if(selected_string && h_style != selected_string) h_style = selected_string regenerate_icons() - visible_message("[src] adjusts [src.get_pronoun("his")] headtails.") + visible_message(SPAN_NOTICE("[src] adjusts [src.get_pronoun("his")] headtails.")) else to_chat(src, "You're already using that style.") @@ -71,7 +71,7 @@ if(selected_string && f_style != selected_string) f_style = selected_string regenerate_icons() - visible_message("[src]'s screen switches to a different display.") + visible_message(SPAN_NOTICE("[src]'s screen switches to a different display.")) else to_chat(src, "You're already using that screen.") @@ -121,7 +121,7 @@ for(var/mob/O in viewers(src, null)) if ((O.client && !( O.blinded ))) - O.show_message(text("[] [failed ? "tried to tackle" : "has tackled"] down []!", src, T), 1) + O.show_message(SPAN_DANGER("[src] [failed ? "tried to tackle" : "has tackled"] down [T]!"), 1) /mob/living/carbon/human/proc/leap(mob/living/T as mob in oview(4)) set category = "Abilities" @@ -132,15 +132,15 @@ /mob/living/carbon/human/proc/do_leap(mob/living/T, max_range = 4, restrict_special = TRUE) if(restrict_special && last_special > world.time) - to_chat(src, "You're too tired to leap!") + to_chat(src, SPAN_NOTICE("You're too tired to leap!")) return FALSE if (status_flags & LEAPING) - to_chat(src, "You're already leaping!") + to_chat(src, SPAN_WARNING("You're already leaping!")) return FALSE if(stat || paralysis || stunned || weakened || lying || restrained() || buckled_to) - to_chat(src, "You cannot leap in your current state.") + to_chat(src, SPAN_WARNING("You cannot leap in your current state.")) return FALSE if (!T || issilicon(T)) // Silicon targets require us to rebuild the list. @@ -156,7 +156,7 @@ return FALSE if(get_dist(get_turf(T), get_turf(src)) > max_range) - to_chat(src, "[T] is too far away!") + to_chat(src, SPAN_WARNING("[T] is too far away!")) return FALSE if (restrict_special) @@ -164,7 +164,9 @@ status_flags |= LEAPING - visible_message("[src] leaps at [T]!", "You leap at [T]!") + visible_message(SPAN_DANGER("[src] leaps at [T]!"), + SPAN_DANGER("You leap at [T]!")) + throw_at(get_step(get_turf(T), get_turf(src)), 4, 1, src, do_throw_animation = FALSE) sleep(5) @@ -173,7 +175,7 @@ status_flags &= ~LEAPING if(!src.Adjacent(T)) - to_chat(src, "You miss!") + to_chat(src, SPAN_WARNING("You miss!")) return FALSE T.Weaken(3) @@ -181,12 +183,13 @@ var/use_hand = "left" if(l_hand) if(r_hand) - to_chat(src, "You need to have one hand free to grab someone.") + to_chat(src, SPAN_DANGER("You need to have one hand free to grab someone.")) return TRUE else use_hand = "right" - visible_message("[src] seizes [T] aggressively!", "You aggressively seize [T]!") + visible_message(SPAN_WARNING("[src] seizes [T] aggressively!"), + SPAN_WARNING("You aggressively seize [T]!")) var/obj/item/grab/G = new(src,T) if(use_hand == "left") @@ -209,21 +212,21 @@ return if(stat || paralysis || stunned || weakened || lying) - to_chat(src, "You cannot do that in your current state.") + to_chat(src, SPAN_WARNING("You cannot do that in your current state.")) return var/obj/item/grab/G = locate() in src if(!G || !istype(G)) - to_chat(src, "You are not grabbing anyone.") + to_chat(src, SPAN_WARNING("You are not grabbing anyone.")) return if(G.state < GRAB_AGGRESSIVE) - to_chat(src, "You must have an aggressive grab to gut your prey!") + to_chat(src, SPAN_WARNING("You must have an aggressive grab to gut your prey!")) return last_special = world.time + 50 - visible_message("[src] rips viciously at \the [G.affecting]'s body with its claws!") + visible_message(SPAN_WARNING("[src] rips viciously at \the [G.affecting]'s body with its claws!")) if(istype(G.affecting,/mob/living/carbon/human)) var/mob/living/carbon/human/H = G.affecting @@ -258,24 +261,24 @@ var/obj/item/organ/external/rhand = src.get_organ(BP_R_HAND) var/obj/item/organ/external/lhand = src.get_organ(BP_L_HAND) if((!rhand || !rhand.is_usable()) && (!lhand || !lhand.is_usable())) - to_chat(src,"You can't communicate without the ability to use your hands!") + to_chat(src,SPAN_WARNING("You can't communicate without the ability to use your hands!")) return if((lhand.is_stump()) && (rhand.is_stump())) - to_chat(src,"You can't communicate without functioning hands!") + to_chat(src,SPAN_WARNING("You can't communicate without functioning hands!")) return if(src.r_hand != null && src.l_hand != null) - to_chat(src,"You can't communicate while your hands are full!") + to_chat(src,SPAN_WARNING("You can't communicate while your hands are full!")) return if(stat || paralysis || stunned || weakened || restrained()) - to_chat(src,"You can't communicate while unable to move your hands to your head!") + to_chat(src,SPAN_WARNING("You can't communicate while unable to move your hands to your head!")) return if(last_special > world.time) - to_chat(src,"Your mind requires rest!") + to_chat(src,SPAN_NOTICE("Your mind requires rest!")) return last_special = world.time + 100 - visible_message("[src] touches their fingers to their temple.") + visible_message(SPAN_NOTICE("[src] touches their fingers to their temple.")) var/list/targets = list() for(var/mob/living/M in view(client.view, client.eye)) @@ -296,11 +299,11 @@ return if(target.stat == DEAD) - to_chat(src,"Not even a [src.species.name] can speak to the dead.") + to_chat(src,SPAN_CULT("Not even a [src.species.name] can speak to the dead.")) return if (target.isSynthetic()) - to_chat(src,"This can only be used on living organisms.") + to_chat(src,SPAN_WARNING("This can only be used on living organisms.")) return if (target.is_diona()) @@ -308,11 +311,11 @@ return if (isvaurca(target)) - to_chat (src, "You feel your thoughts pass right through a mind empty of psychic energy.") + to_chat (src, SPAN_CULT("You feel your thoughts pass right through a mind empty of psychic energy.")) return if(!(target in view(client.view, client.eye))) - to_chat(src,"[target] is too far for your mind to grasp!") + to_chat(src,SPAN_WARNING("[target] is too far for your mind to grasp!")) return log_say("[key_name(src)] communed to [key_name(target)]: [text]",ckey=key_name(src)) @@ -334,12 +337,12 @@ if (target.has_psionics()) return if(prob(10) && !(H.species.flags & NO_BLOOD)) - to_chat(H,"Your nose begins to bleed...") + to_chat(H,SPAN_WARNING("Your nose begins to bleed...")) H.drip(3) else if(prob(25) && (H.can_feel_pain())) - to_chat(H,"Your head hurts...") + to_chat(H,SPAN_WARNING("Your head hurts...")) else if(prob(50)) - to_chat(H,"Your mind buzzes...") + to_chat(H,SPAN_WARNING("Your mind buzzes...")) /mob/living/carbon/human/proc/psychic_whisper(mob/M as mob in oview()) set name = "Psychic Whisper" @@ -413,7 +416,7 @@ set desc = "Detonate all explosive flechettes in a range of seven meters." if(stat || paralysis || stunned || weakened || lying) - to_chat(src, "You cannot do that in your current state.") + to_chat(src, SPAN_WARNING("You cannot do that in your current state.")) return for(var/mob/living/M in range(7, src)) @@ -439,7 +442,7 @@ set desc = "State your laws aloud." if(stat) - to_chat(src, "You cannot do that in your current state.") + to_chat(src, SPAN_WARNING("You cannot do that in your current state.")) return if(last_special > world.time) @@ -458,11 +461,11 @@ var/obj/item/grab/G = locate() in src if(!G || !istype(G)) - to_chat(src, "You are not grabbing anyone.") + to_chat(src, SPAN_WARNING("You are not grabbing anyone.")) return if(G.state < GRAB_AGGRESSIVE) - to_chat(src, "You must have an aggressive grab to do this!") + to_chat(src, SPAN_WARNING("You must have an aggressive grab to do this!")) return return G @@ -473,47 +476,47 @@ set desc = "While grabbing someone aggressively, bite their head off." if(last_special > world.time) - to_chat(src, "Your mandibles still ache!") + to_chat(src, SPAN_WARNING("Your mandibles still ache!")) return if(stat || paralysis || stunned || weakened || lying) - to_chat(src, "You cannot do that in your current state.") + to_chat(src, SPAN_WARNING("You cannot do that in your current state.")) return var/obj/item/grab/G = src.get_active_hand() if(!istype(G)) - to_chat(src, "We must be grabbing a creature in our active hand to devour their head.") + to_chat(src, SPAN_WARNING("We must be grabbing a creature in our active hand to devour their head.")) return if(G.state != GRAB_KILL) - to_chat(src, "We must have a tighter grip to devour their head.") + to_chat(src, SPAN_WARNING("We must have a tighter grip to devour their head.")) return if(istype(G.affecting,/mob/living/carbon/human)) var/mob/living/carbon/human/H = G.affecting if(!H.species.has_limbs[BP_HEAD]) - to_chat(src, "\The [H] does not have a head!") + to_chat(src, SPAN_WARNING("\The [H] does not have a head!")) return var/obj/item/organ/external/affecting = H.get_organ(BP_HEAD) if(!istype(affecting) || affecting.is_stump()) - to_chat(src, "\The [H] does not have a head!") + to_chat(src, SPAN_WARNING("\The [H] does not have a head!")) return - visible_message("\The [src] pulls \the [H] close, sticking \the [H]'s head into its maw!") + visible_message(SPAN_DANGER("\The [src] pulls \the [H] close, sticking \the [H]'s head into its maw!")) sleep(10) if(!src.Adjacent(G.affecting)) return - visible_message("\The [src] closes their jaws around \the [H]'s head!") + visible_message(SPAN_DANGER("\The [src] closes their jaws around \the [H]'s head!")) playsound(H.loc, 'sound/effects/blobattack.ogg', 50, 1) affecting.droplimb(0, DROPLIMB_BLUNT) else var/mob/living/M = G.affecting if(istype(M)) - visible_message("\The [src] rips viciously at \the [M]'s body with its claws!") + visible_message(SPAN_DANGER("\The [src] rips viciously at \the [M]'s body with its claws!")) playsound(M.loc, 'sound/effects/blobattack.ogg', 50, 1) M.gib() @@ -525,12 +528,12 @@ set desc = "When all else has failed, bite the bullet." if(stat || paralysis || stunned || weakened || lying) - to_chat(src, "You cannot do that in your current state.") + to_chat(src, SPAN_WARNING("You cannot do that in your current state.")) return src.visible_message( - "\The [src] begins to beep ominously!", - "WARNING: SELF-DESTRUCT ENGAGED. Unit termination finalized in three seconds!" + SPAN_DANGER("\The [src] begins to beep ominously!"), + SPAN_DANGER("WARNING: SELF-DESTRUCT ENGAGED. Unit termination finalized in three seconds!") ) sleep(10) playsound(src, 'sound/items/countdown.ogg', 125, 1) @@ -548,7 +551,7 @@ var/text = null if(!(GLOB.all_languages[LANGUAGE_VAURCA] in src.languages)) - to_chat(src, "Your mind is dark, the unity of the hive is torn from you!") + to_chat(src, SPAN_DANGER("Your mind is dark, the unity of the hive is torn from you!")) return targets += getmobs() @@ -565,25 +568,25 @@ var/mob/M = targets[target] if(istype(M, /mob/abstract/observer) || M.stat == DEAD) - to_chat(src, "[M]'s hivenet implant is inactive!") + to_chat(src, SPAN_DANGER("[M]'s hivenet implant is inactive!")) return if(!(GLOB.all_languages[LANGUAGE_VAURCA] in M.languages)) - to_chat(src, "[M]'s hivenet implant is inactive!") + to_chat(src, SPAN_DANGER("[M]'s hivenet implant is inactive!")) return log_say("[key_name(src)] issued a hivenet order to [key_name(M)]: [text]",ckey=key_name(src)) if(istype(M, /mob/living/carbon/human) && isvaurca(M)) - to_chat(M, "You feel a buzzing in the back of your head, and your mind fills with the authority of [src.real_name], your ruler:") - to_chat(M, " [text]") + to_chat(M, SPAN_DANGER("You feel a buzzing in the back of your head, and your mind fills with the authority of [src.real_name], your ruler:")) + to_chat(M, SPAN_NOTICE(" [text]")) else - to_chat(M, "Like lead slabs crashing into the ocean, alien thoughts drop into your mind: [text]") + to_chat(M, SPAN_DANGER("Like lead slabs crashing into the ocean, alien thoughts drop into your mind: [text]")) if(istype(M,/mob/living/carbon/human)) var/mob/living/carbon/human/H = M if(H.species.name == src.species.name) return - to_chat(H, "Your nose begins to bleed...") + to_chat(H, SPAN_DANGER("Your nose begins to bleed...")) H.drip(1) /mob/living/carbon/human/proc/quillboar(mob/target as mob in oview()) @@ -592,7 +595,7 @@ set category = "Abilities" if(last_special > world.time) - to_chat(src, "Your spine still aches!") + to_chat(src, SPAN_DANGER("Your spine still aches!")) return if(stat || paralysis || stunned || weakened || lying || restrained() || buckled_to) @@ -601,7 +604,7 @@ last_special = world.time + 30 - visible_message("[src] launches a spine-quill at [target]!") + visible_message(SPAN_WARNING("[src] launches a spine-quill at [target]!")) src.apply_damage(10,DAMAGE_BRUTE) playsound(src.loc, 'sound/weapons/bladeslice.ogg', 50, 1) @@ -625,12 +628,12 @@ set desc = "Shatter all lights around yourself." if(last_special > world.time) - to_chat(src, "You're still regaining your strength!") + to_chat(src, SPAN_DANGER("You're still regaining your strength!")) return last_special = world.time + 50 - visible_message("\The [src] shrieks!") + visible_message(SPAN_DANGER("\The [src] shrieks!")) playsound(src.loc, 'sound/species/revenant/grue_screech.ogg', 100, 1) for (var/mob/living/carbon/human/T in hearers(4, src) - src) if(T.get_hearing_protection() >= EAR_PROTECTION_MAJOR) @@ -650,7 +653,7 @@ set desc = "Create a field of darkness around yourself." if(last_special > world.time) - to_chat(src, "You're still regaining your strength!") + to_chat(src, SPAN_DANGER("You're still regaining your strength!")) return last_special = world.time + 100 @@ -667,12 +670,12 @@ set desc = "Toggle between seeing shadows or not." if (!stop_sight_update) - to_chat(src, "Your eyes shift around, allowing you to see in the dark.") + to_chat(src, SPAN_NOTICE("Your eyes shift around, allowing you to see in the dark.")) src.stop_sight_update = 1 src.see_invisible = SEE_INVISIBLE_NOLIGHTING else - to_chat(src, "You return your vision to normal.") + to_chat(src, SPAN_NOTICE("You return your vision to normal.")) src.stop_sight_update = 0 /mob/living/carbon/human/proc/shadow_step(var/turf/T in world) @@ -681,28 +684,28 @@ set desc = "Travel from place to place using the shadows." if(last_special > world.time) - to_chat(src, "You're still regaining your strength!") + to_chat(src, SPAN_DANGER("You're still regaining your strength!")) return if (!T || T.density || T.contains_dense_objects()) - to_chat(src, "You cannot do that.") + to_chat(src, SPAN_WARNING("You cannot do that.")) return if(!isturf(loc)) - to_chat(src, "You cannot teleport out of your current location.") + to_chat(src, SPAN_WARNING("You cannot teleport out of your current location.")) return if (T.z != src.z || get_dist(T, get_turf(src)) > world.view) - to_chat(src, "Your powers are not capable of taking you that far.") + to_chat(src, SPAN_WARNING("Your powers are not capable of taking you that far.")) return if (T.get_lumcount() > 0.1) - to_chat(src, "The destination is too bright.") + to_chat(src, SPAN_WARNING("The destination is too bright.")) return last_special = world.time + 200 - visible_message("\The [src] vanishes into the shadows!") + visible_message(SPAN_DANGER("\The [src] vanishes into the shadows!")) anim(get_turf(loc), loc,'icons/mob/mob.dmi',,"shadow", null ,loc.dir) @@ -720,20 +723,20 @@ set desc = "Charge forward, trampling anything in your path until you hit something more stubborn than you are." if(last_special > world.time) - to_chat(src, "You are too tired to charge!") + to_chat(src, SPAN_DANGER("You are too tired to charge!")) return if(stat || paralysis || stunned || weakened || lying || restrained() || buckled_to) - to_chat(src, "You cannot charge in your current state!") + to_chat(src, SPAN_DANGER("You cannot charge in your current state!")) return last_special = world.time + 100 - src.visible_message("\The [src] takes a step backwards and rears up.", - "You take a step backwards and then...") + src.visible_message(SPAN_WARNING("\The [src] takes a step backwards and rears up."), + SPAN_NOTICE("You take a step backwards and then...")) if(do_after(src,5)) playsound(loc, 'sound/species/revenant/grue_screech.ogg', 100, 1) - src.visible_message("\The [src] charges!") + src.visible_message(SPAN_DANGER("\The [src] charges!")) trampling() @@ -779,7 +782,7 @@ step(src, dir) playsound(src,'sound/mecha/mechstep.ogg',25,1) if (brokesomething) - src.visible_message("[src.name] breaks through!") + src.visible_message(SPAN_DANGER("[src.name] breaks through!")) addtimer(CALLBACK(src, PROC_REF(trampling)), 1) else @@ -802,7 +805,7 @@ sleep(1) if (A && !(A.gc_destroyed) && A.type == oldtype) - src.visible_message("[src.name] plows into \the [aname]!") + src.visible_message(SPAN_DANGER("[src.name] plows into \the [aname]!")) return 0 return 1 @@ -865,18 +868,18 @@ set desc = "Spew a cone of ignited napalm in front of you" if(last_special > world.time) - to_chat(src,"You are too tired to spray napalm!") + to_chat(src,SPAN_NOTICE("You are too tired to spray napalm!")) return if(stat || paralysis || stunned || weakened || lying || restrained() || buckled_to) - to_chat(src,"You cannot spray napalm in your current state.") + to_chat(src,SPAN_NOTICE("You cannot spray napalm in your current state.")) return last_special = world.time + 100 playsound(loc, 'sound/species/revenant/grue_screech.ogg', 100, 1) - visible_message("\The [src] unleashes a torrent of raging flame!", - "You unleash a gust of fire!", - "You hear the roar of an inferno!") + visible_message(SPAN_DANGER("\The [src] unleashes a torrent of raging flame!"), + SPAN_DANGER("You unleash a gust of fire!"), + SPAN_DANGER("You hear the roar of an inferno!")) var/turf/T = get_step(get_step(src, dir), dir) var/turf/T1 = get_step(T, dir) @@ -911,10 +914,10 @@ return if(stat || paralysis || stunned || weakened || lying) - to_chat(src,"You cannot do that in your current state!") + to_chat(src,SPAN_WARNING("You cannot do that in your current state!")) return - visible_message("\The [src] crackles with energy!") + visible_message(SPAN_DANGER("\The [src] crackles with energy!")) playsound(src, 'sound/magic/LightningShock.ogg', 75, 1) @@ -931,14 +934,14 @@ return if(stat || paralysis || stunned || weakened || lying) - to_chat(src,"You cannot do that in your current state!") + to_chat(src,SPAN_WARNING("You cannot do that in your current state!")) return var/obj/item/stack/material/O = src.get_active_hand() if(istype(O, /obj/item/stack/material)) if(O.material.golem == src.species.name) - to_chat(src,"You incorporate \the [O] into your mass, repairing damage to your structure.") + to_chat(src,SPAN_DANGER("You incorporate \the [O] into your mass, repairing damage to your structure.")) adjustBruteLoss(-10*O.amount) adjustFireLoss(-10*O.amount) if(!(species.flags & NO_BLOOD)) @@ -955,7 +958,7 @@ return if(stat || paralysis || stunned || weakened || lying) - to_chat(src,"You cannot do that in your current state!") + to_chat(src,SPAN_WARNING("You cannot do that in your current state!")) return var/obj/item/organ/internal/brain/golem/O = src.get_active_hand() @@ -963,20 +966,20 @@ if(istype(O)) if(O.health <= 0) - to_chat(src,"The spark of life already left \the [O]!") + to_chat(src,SPAN_WARNING("The spark of life already left \the [O]!")) return if(!O.brainmob) - to_chat(src,"\The [O] remains silent.") + to_chat(src,SPAN_WARNING("\The [O] remains silent.")) return if(!O.dna) - to_chat(src,"\The [O] is blank, you can not bring it back to life.") + to_chat(src,SPAN_WARNING("\The [O] is blank, you can not bring it back to life.")) var/mob/living/carbon/human/G = new(src.loc) G.key = O.brainmob.key INVOKE_ASYNC(G, TYPE_PROC_REF(/mob/living/carbon/human, set_species), O.dna.species) - to_chat(src,"You blow life back in \the [O], returning its past owner to life!") + to_chat(src,SPAN_NOTICE("You blow life back in \the [O], returning its past owner to life!")) qdel(O) last_special = world.time + 200 @@ -989,29 +992,29 @@ return if(stat || paralysis || stunned || weakened || lying || restrained()) - to_chat(src,"You can not do that in your current state!") + to_chat(src,SPAN_WARNING("You can not do that in your current state!")) return var/obj/item/organ/external/E = get_organ(zone_sel.selecting) if(!E) - to_chat(src,"You are missing that limb.") + to_chat(src,SPAN_WARNING("You are missing that limb.")) return if(!E.robotic) - to_chat(src,"You can only detach robotic limbs.") + to_chat(src,SPAN_WARNING("You can only detach robotic limbs.")) return if(E.robotize_type != PROSTHETIC_AUTAKH) - to_chat(src,"Your body fails to interface with this alien technology.") + to_chat(src,SPAN_WARNING("Your body fails to interface with this alien technology.")) return if(E.is_stump() || (E.status & ORGAN_DESTROYED) || E.is_broken()) - to_chat(src,"The limb is too damaged to be removed manually!") + to_chat(src,SPAN_WARNING("The limb is too damaged to be removed manually!")) return if(E.vital && !E.sabotaged) - to_chat(src,"Your safety system stops you from removing \the [E].") + to_chat(src,SPAN_WARNING("Your safety system stops you from removing \the [E].")) return last_special = world.time + 20 @@ -1023,8 +1026,8 @@ updatehealth() UpdateDamageIcon() - visible_message("\The [src] detaches [get_pronoun("his")] [E]!", - "You detach your [E]!") + visible_message(SPAN_NOTICE("\The [src] detaches [get_pronoun("his")] [E]!"), + SPAN_NOTICE("You detach your [E]!")) /mob/living/carbon/human/proc/attach_limb() set category = "Abilities" @@ -1035,7 +1038,7 @@ return if(stat || paralysis || stunned || weakened || lying || restrained()) - to_chat(src,"You can not do that in your current state!") + to_chat(src,SPAN_WARNING("You can not do that in your current state!")) return var/obj/item/organ/external/O = src.get_active_hand() @@ -1043,19 +1046,19 @@ if(istype(O)) if(!O.robotic) - to_chat(src,"You are unable to interface with organic matter.") + to_chat(src,SPAN_WARNING("You are unable to interface with organic matter.")) return if(O.robotize_type != PROSTHETIC_AUTAKH) - to_chat(src,"Your body fails to interface with this alien technology.") + to_chat(src,SPAN_WARNING("Your body fails to interface with this alien technology.")) return if(organs_by_name[O.limb_name]) - to_chat(src,"You already have a limb of this type.") + to_chat(src,SPAN_WARNING("You already have a limb of this type.")) return if(!organs_by_name[O.parent_organ]) - to_chat(src,"You are unable to find a place to attach \the [O] to your body.") + to_chat(src,SPAN_WARNING("You are unable to find a place to attach \the [O] to your body.")) return last_special = world.time + 20 @@ -1070,8 +1073,8 @@ updatehealth() UpdateDamageIcon() - visible_message("\The [src] attaches \the [O] to [get_pronoun("his")] body!", - "You attach \the [O] to your body!") + visible_message(SPAN_NOTICE("\The [src] attaches \the [O] to [get_pronoun("his")] body!"), + SPAN_NOTICE("You attach \the [O] to your body!")) /mob/living/carbon/human/proc/self_diagnostics() set name = "Self-Diagnostics" @@ -1080,9 +1083,9 @@ if(stat == DEAD) return - to_chat(src, "Performing self-diagnostic, please wait...") + to_chat(src, SPAN_NOTICE("Performing self-diagnostic, please wait...")) if (do_after(src, 10)) - var/output = "Self-Diagnostic Results:\n" + var/output = SPAN_NOTICE("Self-Diagnostic Results:\n") output += "Internal Temperature: [convert_k2c(bodytemperature)] Degrees Celsius\n" @@ -1135,15 +1138,15 @@ set category = "Abilities" if(incapacitated()) - to_chat(src, "You need to recover before you can use this ability.") + to_chat(src, SPAN_WARNING("You need to recover before you can use this ability.")) return if(last_special > world.time) - to_chat(src,"Your mind requires rest!") + to_chat(src,SPAN_NOTICE("Your mind requires rest!")) return last_special = world.time + 25 - to_chat(src, "You take a moment to tune into the local Nlom...") + to_chat(src, SPAN_NOTICE("You take a moment to tune into the local Nlom...")) var/list/dirs = list() for(var/mob/living/L in range(20)) var/turf/T = get_turf(L) @@ -1364,8 +1367,8 @@ say(",9!an enormous surge of encrypted data, surging out into the wider Hivenet.") - var/ccia_msg = "[uppertext(selected_hive)]: [key_name(src, 1)] (RPLY): [msg]" - var/admin_msg = "[uppertext(selected_hive)]: [key_name(src, 1)] (PP) (VV) (SM) ([admin_jump_link(src)]) (CA) (BSA) (RPLY): [msg]" + var/ccia_msg = SPAN_NOTICE("[uppertext(selected_hive)]: [key_name(src, 1)] (RPLY): [msg]") + var/admin_msg = SPAN_NOTICE("[uppertext(selected_hive)]: [key_name(src, 1)] (PP) (VV) (SM) ([admin_jump_link(src)]) (CA) (BSA) (RPLY): [msg]") var/cciaa_present = 0 var/cciaa_afk = 0 diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm index 06f89a2ed49..fb8ff156431 100644 --- a/code/modules/mob/living/carbon/human/inventory.dm +++ b/code/modules/mob/living/carbon/human/inventory.dm @@ -28,7 +28,7 @@ This saves us from having to call add_fingerprint() any time something is put in else update_inv_r_hand(0) else - to_chat(H, "You are unable to equip that.") + to_chat(H, SPAN_WARNING("You are unable to equip that.")) /mob/living/carbon/human/proc/equip_in_one_of_slots(obj/item/W, list/slots, del_on_fail = FALSE, disable_warning = FALSE, redraw_mob = TRUE, ignore_blocked = FALSE) for(var/slot in slots) @@ -362,7 +362,7 @@ This saves us from having to call add_fingerprint() any time something is put in var/obj/item/clothing/under/uniform = src.w_uniform uniform.attackby(W,src) else - to_chat(src, "You are trying to equip this item to an unsupported inventory slot. If possible, please write a ticket with steps to reproduce. Slot was: [slot]") + to_chat(src, SPAN_DANGER("You are trying to equip this item to an unsupported inventory slot. If possible, please write a ticket with steps to reproduce. Slot was: [slot]")) return if((W == src.l_hand) && (slot != slot_l_hand)) @@ -405,7 +405,7 @@ This saves us from having to call add_fingerprint() any time something is put in check_flags = FACE //this is to stop regular hats from stopping you from changing your ears stuff, but this should work for closed ones, like space helmets if(covering && (covering.body_parts_covered & (I.body_parts_covered|check_flags))) - to_chat(user, "\The [covering] is in the way.") + to_chat(user, SPAN_WARNING("\The [covering] is in the way.")) return 0 return 1 diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index bb0f4a1bf31..029b2212598 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -175,11 +175,11 @@ if (disabilities & EPILEPSY) if ((prob(1) && paralysis < 1)) - to_chat(src, "You have a seizure!") + to_chat(src, SPAN_WARNING("You have a seizure!")) for(var/mob/O in viewers(src, null)) if(O == src) continue - O.show_message(text("[src] starts having a seizure!"), 1) + O.show_message(SPAN_DANGER("[src] starts having a seizure!"), 1) Paralyse(10) make_jittery(1000) if (disabilities & COUGHING) @@ -230,13 +230,13 @@ total_radiation -= 1 * RADIATION_SPEED_COEFFICIENT if(prob(5) && prob(100 * RADIATION_SPEED_COEFFICIENT)) src.apply_radiation(-5 * RADIATION_SPEED_COEFFICIENT) - to_chat(src, "You feel weak.") + to_chat(src, SPAN_WARNING("You feel weak.")) Weaken(3) if(!lying) emote("collapse") if(prob(5) && prob(100 * RADIATION_SPEED_COEFFICIENT) && species.name == SPECIES_HUMAN) //apes go bald if((h_style != "Bald" || f_style != "Shaved" )) - to_chat(src, "Your hair falls out.") + to_chat(src, SPAN_WARNING("Your hair falls out.")) h_style = "Bald" f_style = "Shaved" update_hair() @@ -246,9 +246,9 @@ damage = 7 if(prob(5)) take_overall_damage(0, 10 * RADIATION_SPEED_COEFFICIENT, used_weapon = "Radiation Burns") - to_chat(src, "You feel a burning sensation!") + to_chat(src, SPAN_WARNING("You feel a burning sensation!")) if(prob(1)) - to_chat(src, "You feel strange!") + to_chat(src, SPAN_WARNING("You feel strange!")) adjustCloneLoss(5 * RADIATION_SPEED_COEFFICIENT) emote("gasp") hallucination = max(hallucination, 20) //At this level, you're in a constant state of low-level hallucinations. As if you didn't have enough problems. @@ -630,7 +630,7 @@ set_see_invisible(SEE_INVISIBLE_CULT) make_jittery(5) if(prob(5)) - visible_message("[src] trembles uncontrollably.", "You tremble uncontrollably.") + visible_message("[src] trembles uncontrollably.", SPAN_WARNING("You tremble uncontrollably.")) to_chat(src, SPAN_CULT(pick("You feel fingers tracing up your back.", "You hear the distant wailing and sobbing of a departed loved one.", "You feel like you are being closely watched.", "You hear the hysterical laughter of a departed loved one.", "You no longer feel the reassuring presence of a departed loved one.", "You feel a hand taking hold of yours, digging its nails into you as it clings on."))) if(haunted >= 10) if(prob(5)) @@ -752,7 +752,7 @@ if(get_shock() >= species.total_health) if(!stat && !paralysis) - to_chat(src, "[species.halloss_message_self]") + to_chat(src, SPAN_WARNING("[species.halloss_message_self]")) src.visible_message("[src] [species.halloss_message]") Paralyse(10) diff --git a/code/modules/mob/living/carbon/human/species/species.dm b/code/modules/mob/living/carbon/human/species/species.dm index 477d9f45831..db1211d1aad 100644 --- a/code/modules/mob/living/carbon/human/species/species.dm +++ b/code/modules/mob/living/carbon/human/species/species.dm @@ -136,9 +136,9 @@ var/organ_med_pain_message = "Your %PARTNAME% hurts badly!" var/organ_high_pain_message = "Your %PARTNAME% is screaming out in pain!" - var/organ_low_burn_message = "Your %PARTNAME% burns." - var/organ_med_burn_message = "Your %PARTNAME% burns horribly!" - var/organ_high_burn_message = "Your %PARTNAME% feels like it's on fire!" + var/organ_low_burn_message = SPAN_DANGER("Your %PARTNAME% burns.") + var/organ_med_burn_message = SPAN_DANGER("Your %PARTNAME% burns horribly!") + var/organ_high_burn_message = SPAN_DANGER("Your %PARTNAME% feels like it's on fire!") var/list/stutter_verbs = list("stammers", "stutters") @@ -358,10 +358,10 @@ switch(msg_type) if("cold") if(!covered) - to_chat(H, "[pick(cold_discomfort_strings)]") + to_chat(H, SPAN_DANGER("[pick(cold_discomfort_strings)]")) if("heat") if(covered) - to_chat(H, "[pick(heat_discomfort_strings)]") + to_chat(H, SPAN_DANGER("[pick(heat_discomfort_strings)]")) /datum/species/proc/sanitize_name(var/name) return sanitizeName(name) @@ -443,12 +443,12 @@ if(H.on_fire) target.fire_stacks += 1 target.IgniteMob() - H.visible_message("[H] taps [target], setting [target.get_pronoun("his")] ablaze!", \ - "You tap [target], setting [target.get_pronoun("him")] ablaze!") + H.visible_message(SPAN_DANGER("[H] taps [target], setting [target.get_pronoun("his")] ablaze!"), \ + SPAN_WARNING("You tap [target], setting [target.get_pronoun("him")] ablaze!")) msg_admin_attack("[key_name(H)] spread fire to [target.name] ([target.ckey]) (JMP)",ckey=key_name(H),ckey_target=key_name(target)) else - H.visible_message("[H] taps [target] to get [target.get_pronoun("his")] attention!", \ - "You tap [target] to get [target.get_pronoun("his")] attention!") + H.visible_message(SPAN_NOTICE("[H] taps [target] to get [target.get_pronoun("his")] attention!"), \ + SPAN_NOTICE("You tap [target] to get [target.get_pronoun("his")] attention!")) /datum/species/proc/remove_inherent_verbs(var/mob/living/carbon/human/H) if(inherent_verbs) diff --git a/code/modules/mob/living/carbon/human/species/species_attack.dm b/code/modules/mob/living/carbon/human/species/species_attack.dm index eb8964f8ac8..19a7506f49f 100644 --- a/code/modules/mob/living/carbon/human/species/species_attack.dm +++ b/code/modules/mob/living/carbon/human/species/species_attack.dm @@ -35,7 +35,7 @@ attack_damage = Clamp(attack_damage, 1, 5) if(target == user) - user.visible_message("[user] [pick(attack_verb)] [user.get_pronoun("himself")] in the [affecting.name]!") + user.visible_message(SPAN_DANGER("[user] [pick(attack_verb)] [user.get_pronoun("himself")] in the [affecting.name]!")) return 0 switch(zone) @@ -43,20 +43,20 @@ // ----- HEAD ----- // switch(attack_damage) if(1 to 2) - user.visible_message("[user] scratched [target] across [target.get_pronoun("his")] cheek!") + user.visible_message(SPAN_DANGER("[user] scratched [target] across [target.get_pronoun("his")] cheek!")) if(3 to 4) - user.visible_message("[user] [pick(attack_verb)] [target]'s [pick(BP_HEAD, "neck")]!") //'with spread claws' sounds a little bit odd, just enough that conciseness is better here I think + user.visible_message(SPAN_DANGER("[user] [pick(attack_verb)] [target]'s [pick(BP_HEAD, "neck")]!")) //'with spread claws' sounds a little bit odd, just enough that conciseness is better here I think if(5) user.visible_message(pick( - "[user] rakes [user.get_pronoun("his")] [pick(attack_noun)] across [target]'s face!", - "[user] tears [user.get_pronoun("his")] [pick(attack_noun)] into [target]'s face!", + SPAN_DANGER("[user] rakes [user.get_pronoun("his")] [pick(attack_noun)] across [target]'s face!"), + SPAN_DANGER("[user] tears [user.get_pronoun("his")] [pick(attack_noun)] into [target]'s face!"), )) else // ----- BODY ----- // switch(attack_damage) - if(1 to 2) user.visible_message("[user] scratched [target]'s [affecting.name]!") - if(3 to 4) user.visible_message("[user] [pick(attack_verb)] [pick("", "", "the side of")] [target]'s [affecting.name]!") - if(5) user.visible_message("[user] tears [user.get_pronoun("his")] [pick(attack_noun)] [pick("deep into", "into", "across")] [target]'s [affecting.name]!") + if(1 to 2) user.visible_message(SPAN_DANGER("[user] scratched [target]'s [affecting.name]!")) + if(3 to 4) user.visible_message(SPAN_DANGER("[user] [pick(attack_verb)] [pick("", "", "the side of")] [target]'s [affecting.name]!")) + if(5) user.visible_message(SPAN_DANGER("[user] tears [user.get_pronoun("his")] [pick(attack_noun)] [pick("deep into", "into", "across")] [target]'s [affecting.name]!")) /datum/unarmed_attack/claws/unathi sparring_variant_type = /datum/unarmed_attack/pain_strike/heavy // unathi have heavier pain hits in this mode @@ -103,7 +103,7 @@ /datum/unarmed_attack/stomp/weak/show_attack(var/mob/living/carbon/human/user, var/mob/living/carbon/human/target, var/zone, var/attack_damage) var/obj/item/organ/external/affecting = target.get_organ(zone) - user.visible_message("[user] jumped up and down on \the [target]'s [affecting.name]!") + user.visible_message(SPAN_WARNING("[user] jumped up and down on \the [target]'s [affecting.name]!")) playsound(user.loc, attack_sound, 25, 1, -1) /datum/unarmed_attack/punch/ipc @@ -145,7 +145,7 @@ ..() if(prob(25) && target.mob_size <= 30) playsound(user, 'sound/weapons/push_connect.ogg', 50, 1, -1) - user.visible_message("[user] shoves hard, sending [target] flying!") + user.visible_message(SPAN_DANGER("[user] shoves hard, sending [target] flying!")) var/T = get_turf(user) spark(T, 3, GLOB.alldirs) step_away(target,user,15) @@ -176,10 +176,10 @@ if(L == target) continue L.apply_damage(rand(5,20), DAMAGE_BRUTE, zone, armor) - to_chat(L, "\The [user] [pick(attack_verb)] you with its [attack_noun]!") + to_chat(L, SPAN_DANGER("\The [user] [pick(attack_verb)] you with its [attack_noun]!")) hit_mobs++ if(hit_mobs) - to_chat(user, "You used \the [attack_noun] to attack [hit_mobs] other target\s!") + to_chat(user, SPAN_DANGER("You used \the [attack_noun] to attack [hit_mobs] other target\s!")) /datum/unarmed_attack/bite/mandibles diff --git a/code/modules/mob/living/carbon/human/species/station/diona/diona.dm b/code/modules/mob/living/carbon/human/species/station/diona/diona.dm index 5da0200d9a9..985c6050a8b 100644 --- a/code/modules/mob/living/carbon/human/species/station/diona/diona.dm +++ b/code/modules/mob/living/carbon/human/species/station/diona/diona.dm @@ -56,8 +56,8 @@ organ_high_pain_message = "The nymph making up our %PARTNAME% screams out in pain!" organ_low_burn_message = "The nymph making up our %PARTNAME% notes a burning injury." - organ_med_burn_message = "The nymph making up our %PARTNAME% burns terribly!" - organ_high_burn_message = "The nymph making up our %PARTNAME% screams in agony at the burning!" + organ_med_burn_message = SPAN_DANGER("The nymph making up our %PARTNAME% burns terribly!") + organ_high_burn_message = SPAN_DANGER("The nymph making up our %PARTNAME% screams in agony at the burning!") halloss_message = "creaks and crumbles to the floor." halloss_message_self = "We can't take this much pain..." diff --git a/code/modules/mob/living/carbon/human/species/station/golem.dm b/code/modules/mob/living/carbon/human/species/station/golem.dm index 0fae386b4a6..895874232ad 100644 --- a/code/modules/mob/living/carbon/human/species/station/golem.dm +++ b/code/modules/mob/living/carbon/human/species/station/golem.dm @@ -396,8 +396,8 @@ var/global/list/golem_types = list( if(istype(P, /obj/item/projectile/energy) || istype(P, /obj/item/projectile/beam)) var/reflectchance = 50 - round(P.damage/3) if(prob(reflectchance)) - H.visible_message("The [P.name] gets reflected by [H]!", \ - "The [P.name] gets reflected by [H]!") + H.visible_message(SPAN_DANGER("The [P.name] gets reflected by [H]!"), \ + SPAN_DANGER("The [P.name] gets reflected by [H]!")) // Find a turf near or on the original location to bounce to if(P.starting) @@ -602,8 +602,8 @@ var/global/list/golem_types = list( if(istype(P, /obj/item/projectile/energy) || istype(P, /obj/item/projectile/beam)) var/reflectchance = 80 - round(P.damage/3) if(prob(reflectchance)) - H.visible_message("The [P.name] gets reflected by [H]!", \ - "The [P.name] gets reflected by [H]!") + H.visible_message(SPAN_DANGER("The [P.name] gets reflected by [H]!"), \ + SPAN_DANGER("The [P.name] gets reflected by [H]!")) // Find a turf near or on the original location to bounce to if(P.starting) @@ -696,7 +696,7 @@ var/global/list/golem_types = list( return /datum/species/golem/sand/proc/glassify(var/mob/living/carbon/human/H) - H.visible_message("\The [H] vitrifies into a glass construct!") + H.visible_message(SPAN_WARNING("\The [H] vitrifies into a glass construct!")) H.set_species(SPECIES_GOLEM_GLASS) /datum/species/golem/plastic diff --git a/code/modules/mob/living/carbon/human/species/station/human/human_subspecies.dm b/code/modules/mob/living/carbon/human/species/station/human/human_subspecies.dm index 32b15abd45f..70566a76c09 100644 --- a/code/modules/mob/living/carbon/human/species/station/human/human_subspecies.dm +++ b/code/modules/mob/living/carbon/human/species/station/human/human_subspecies.dm @@ -94,7 +94,7 @@ "Your legs feel harder to move.", "You begin to have trouble standing upright.") - to_chat(H, "[pain_message]") + to_chat(H, SPAN_WARNING("[pain_message]")) /datum/species/human/vatgrown name = SPECIES_HUMAN_VATGROWN diff --git a/code/modules/mob/living/carbon/human/stripping.dm b/code/modules/mob/living/carbon/human/stripping.dm index 314a6309dcb..851456f992d 100644 --- a/code/modules/mob/living/carbon/human/stripping.dm +++ b/code/modules/mob/living/carbon/human/stripping.dm @@ -35,22 +35,22 @@ to_chat(user, SPAN_NOTICE("The [T] is set to release [T.distribute_pressure] kPA.")) return TRUE if("pockets") - visible_message("\The [user] is trying to empty \the [src]'s pockets!") + visible_message(SPAN_DANGER("\The [user] is trying to empty \the [src]'s pockets!")) if(do_after(user, HUMAN_STRIP_DELAY, src, do_flags = DO_EQUIP)) empty_pockets(user) return 1 if("splints") - visible_message("\The [user] is trying to remove \the [src]'s splints!") + visible_message(SPAN_DANGER("\The [user] is trying to remove \the [src]'s splints!")) if(do_after(user, HUMAN_STRIP_DELAY, src, do_flags = DO_EQUIP)) remove_splints(user) return 1 if("sensors") - visible_message("\The [user] is trying to set \the [src]'s sensors!") + visible_message(SPAN_DANGER("\The [user] is trying to set \the [src]'s sensors!")) if(do_after(user, HUMAN_STRIP_DELAY, src, do_flags = DO_EQUIP)) toggle_sensors(user) return 1 if("internals") - visible_message("\The [usr] is trying to set \the [src]'s internals!") + visible_message(SPAN_DANGER("\The [usr] is trying to set \the [src]'s internals!")) if(do_after(user, HUMAN_STRIP_DELAY, src, do_flags = DO_EQUIP)) toggle_internals(user) return 1 @@ -70,7 +70,7 @@ if(!istype(A)) return 0 - visible_message("\The [usr] is trying to remove \the [src]'s [A.name]!") + visible_message(SPAN_DANGER("\The [usr] is trying to remove \the [src]'s [A.name]!")) if(!do_after(user, HUMAN_STRIP_DELAY, src, do_flags = DO_EQUIP)) return 0 @@ -79,7 +79,7 @@ return 0 if(istype(A, /obj/item/clothing/accessory/badge) || istype(A, /obj/item/clothing/accessory/medal)) - user.visible_message("\The [user] tears off \the [A] from [src]'s [suit.name]!") + user.visible_message(SPAN_DANGER("\The [user] tears off \the [A] from [src]'s [suit.name]!")) attack_log += "\[[time_stamp()]\] Has had \the [A] removed by [user.name] ([user.ckey])" user.attack_log += "\[[time_stamp()]\] Attempted to remove [name]'s ([ckey]) [A.name]" suit.remove_accessory(user, A) @@ -91,12 +91,12 @@ if(stripping) if(!target_slot.canremove) - to_chat(user, "You cannot remove \the [src]'s [target_slot.name].") + to_chat(user, SPAN_WARNING("You cannot remove \the [src]'s [target_slot.name].")) return 0 else - visible_message("\The [user] is trying to remove \the [src]'s [target_slot.name]!") + visible_message(SPAN_DANGER("\The [user] is trying to remove \the [src]'s [target_slot.name]!")) else - visible_message("\The [user] is trying to put \a [held] on \the [src]!") + visible_message(SPAN_DANGER("\The [user] is trying to put \a [held] on \the [src]!")) if(!do_mob(user,src,HUMAN_STRIP_DELAY)) return 0 if(!stripping && held != user.get_active_hand()) @@ -117,22 +117,22 @@ // Empty out everything in the target's pockets. /mob/living/carbon/human/proc/empty_pockets(var/mob/living/user) if(!r_store && !l_store) - to_chat(user, "\The [src] has nothing in their pockets.") + to_chat(user, SPAN_WARNING("\The [src] has nothing in their pockets.")) return if(r_store) unEquip(r_store) if(l_store) unEquip(l_store) - visible_message("\The [user] empties \the [src]'s pockets!") + visible_message(SPAN_DANGER("\The [user] empties \the [src]'s pockets!")) // Modify the current target sensor level. /mob/living/carbon/human/proc/toggle_sensors(var/mob/living/user) var/obj/item/clothing/under/suit = w_uniform if(!suit) - to_chat(user, "\The [src] is not wearing a suit with sensors.") + to_chat(user, SPAN_WARNING("\The [src] is not wearing a suit with sensors.")) return if (suit.has_sensor >= 2) - to_chat(user, "\The [src]'s suit sensor controls are locked.") + to_chat(user, SPAN_WARNING("\The [src]'s suit sensor controls are locked.")) return attack_log += text("\[[time_stamp()]\] Has had their sensors toggled by [user.name] ([user.ckey])") user.attack_log += text("\[[time_stamp()]\] Attempted to toggle [name]'s ([ckey]) sensors") @@ -145,7 +145,7 @@ if(istype(wear_suit,/obj/item/clothing/suit/space)) var/obj/item/clothing/suit/space/suit = wear_suit if(suit.supporting_limbs && suit.supporting_limbs.len) - to_chat(user, "You cannot remove the splints - [src]'s [suit] is supporting some of the breaks.") + to_chat(user, SPAN_WARNING("You cannot remove the splints - [src]'s [suit] is supporting some of the breaks.")) can_reach_splints = 0 if(can_reach_splints) @@ -158,9 +158,9 @@ W.add_fingerprint(user) removed_splint = 1 if(removed_splint) - visible_message("\The [user] removes \the [src]'s splints!") + visible_message(SPAN_DANGER("\The [user] removes \the [src]'s splints!")) else - to_chat(user, "\The [src] has no splints to remove.") + to_chat(user, SPAN_WARNING("\The [src] has no splints to remove.")) // Set internals on or off. /mob/living/carbon/human/proc/toggle_internals(var/mob/living/user) @@ -182,9 +182,9 @@ internal = belt if(internal) - visible_message("\The [src] is now running on internals!") + visible_message(SPAN_WARNING("\The [src] is now running on internals!")) internal.add_fingerprint(user) if (internals) internals.icon_state = "internal1" else - visible_message("\The [user] disables \the [src]'s internals!") + visible_message(SPAN_DANGER("\The [user] disables \the [src]'s internals!")) diff --git a/code/modules/mob/living/carbon/human/unarmed_attack.dm b/code/modules/mob/living/carbon/human/unarmed_attack.dm index c70dcdcf620..eec181b54c6 100644 --- a/code/modules/mob/living/carbon/human/unarmed_attack.dm +++ b/code/modules/mob/living/carbon/human/unarmed_attack.dm @@ -73,44 +73,48 @@ GLOBAL_LIST_EMPTY(sparring_attack_cache) if(BP_HEAD, BP_MOUTH, BP_EYES) // Induce blurriness if(pain_message) - target.visible_message("[target] looks momentarily disoriented.", "You see stars.") + target.visible_message(SPAN_DANGER("[target] looks momentarily disoriented."), + SPAN_DANGER("You see stars.")) + target.apply_effect(attack_damage*2, EYE_BLUR, armor) if(BP_L_ARM, BP_L_HAND) if (target.l_hand) // Disarm left hand //Urist McAssistant dropped the macguffin with a scream just sounds odd. Plus it doesn't work with NO_PAIN - target.visible_message("\The [target.l_hand] was knocked right out of [target]'s grasp!") + target.visible_message(SPAN_DANGER("\The [target.l_hand] was knocked right out of [target]'s grasp!")) target.drop_l_hand() if(BP_R_ARM, BP_R_HAND) if (target.r_hand) // Disarm right hand - target.visible_message("\The [target.r_hand] was knocked right out of [target]'s grasp!") + target.visible_message(SPAN_DANGER("\The [target.r_hand] was knocked right out of [target]'s grasp!")) target.drop_r_hand() if(BP_CHEST) if(!target.lying) var/turf/T = get_step(get_turf(target), get_dir(get_turf(user), get_turf(target))) if(!T.density) step(target, get_dir(get_turf(user), get_turf(target))) - target.visible_message("[pick("[target] was sent flying backward!", "[target] staggers back from the impact!")]") + target.visible_message(SPAN_DANGER("[pick("[target] was sent flying backward!", "[target] staggers back from the impact!")]")) else - target.visible_message("[target] slams into [T]!") + target.visible_message(SPAN_DANGER("[target] slams into [T]!")) if(prob(50)) target.set_dir(GLOB.reverse_dir[target.dir]) target.apply_effect(attack_damage * 0.4, WEAKEN, armor) if(BP_GROIN) if(pain_message) - target.visible_message("[target] looks like [target.get_pronoun("he")] [target.get_pronoun("is")] in pain!", "[(target.gender=="female") ? "Oh god that hurt!" : "Oh no, that REALLY hurt!"]") + target.visible_message(SPAN_WARNING("[target] looks like [target.get_pronoun("he")] [target.get_pronoun("is")] in pain!"), + SPAN_WARNING("[(target.gender=="female") ? "Oh god that hurt!" : "Oh no, that REALLY hurt!"]")) + target.apply_effects(stutter = attack_damage * 2, agony = attack_damage* 3, blocked = armor) if(BP_L_LEG, BP_L_FOOT, BP_R_LEG, BP_R_FOOT) if(!target.lying) if(pain_message) - target.visible_message("[target] gives way slightly.") + target.visible_message(SPAN_WARNING("[target] gives way slightly.")) target.apply_effect(attack_damage*3, DAMAGE_PAIN, armor) else if(attack_damage >= 5 && !(target == user) && (stun_chance + attack_damage * 5 >= 100) && armor < 1) // Chance to get the usual throwdown as well (25% standard chance) if(!target.lying) - target.visible_message("[target] [pick("slumps", "falls", "drops")] down to the ground!") + target.visible_message(SPAN_DANGER("[target] [pick("slumps", "falls", "drops")] down to the ground!")) else - target.visible_message("[target] has been weakened!") + target.visible_message(SPAN_DANGER("[target] has been weakened!")) target.apply_effect(3, WEAKEN, armor*100) /datum/unarmed_attack/proc/show_attack(var/mob/living/carbon/human/user, var/mob/living/target, var/zone, var/attack_damage) @@ -143,8 +147,8 @@ GLOBAL_LIST_EMPTY(sparring_attack_cache) var/obj/item/organ/internal/eyes/eyes = target.get_eyes() eyes.take_damage(rand(3,4), 1) - user.visible_message("[user] presses [user.get_pronoun("his")] [eye_attack_text] into [target]'s [eyes.name]!") - to_chat(target, "You experience[(!target.can_feel_pain())? "" : " immense pain as you feel" ] [eye_attack_text_victim] being pressed into your [eyes.name][(!target.can_feel_pain())? "." : "!"]") + user.visible_message(SPAN_DANGER("[user] presses [user.get_pronoun("his")] [eye_attack_text] into [target]'s [eyes.name]!")) + to_chat(target, SPAN_DANGER("You experience[(!target.can_feel_pain())? "" : " immense pain as you feel" ] [eye_attack_text_victim] being pressed into your [eyes.name][(!target.can_feel_pain())? "." : "!"]")) /datum/unarmed_attack/proc/damage_flags() . = 0 @@ -192,7 +196,7 @@ GLOBAL_LIST_EMPTY(sparring_attack_cache) attack_damage = Clamp(attack_damage, 1, 5) // We expect damage input of 1 to 5 for this proc. But we leave this check juuust in case. if(target == user) - user.visible_message("[user] [pick(attack_verb)] [user.get_pronoun("himself")] in the [organ]!") + user.visible_message(SPAN_DANGER("[user] [pick(attack_verb)] [user.get_pronoun("himself")] in the [organ]!")) return 0 if(!target.lying) @@ -201,31 +205,31 @@ GLOBAL_LIST_EMPTY(sparring_attack_cache) // ----- HEAD ----- // switch(attack_damage) if(1 to 2) - user.visible_message("[user] slapped [target] across [target.get_pronoun("his")] cheek!") + user.visible_message(SPAN_DANGER("[user] slapped [target] across [target.get_pronoun("his")] cheek!")) if(3 to 4) user.visible_message(pick( - 40; "[user] [pick(attack_verb)] [target] in the head!", - 30; "[user] struck [target] in the head[pick("", " with a closed fist")]!", - 30; "[user] threw a hook against [target]'s head!" + 40; SPAN_DANGER("[user] [pick(attack_verb)] [target] in the head!"), + 30; SPAN_DANGER("[user] struck [target] in the head[pick("", " with a closed fist")]!"), + 30; SPAN_DANGER("[user] threw a hook against [target]'s head!") )) if(5) user.visible_message(pick( - 30; "[user] gave [target] a resounding [pick("slap", "punch")] to the face!", - 40; "[user] smashed [user.get_pronoun("his")] [pick(attack_noun)] into [target]'s face!", - 30; "[user] gave a strong blow against [target]'s jaw!" + 30; SPAN_DANGER("[user] gave [target] a resounding [pick("slap", "punch")] to the face!"), + 40; SPAN_DANGER("[user] smashed [user.get_pronoun("his")] [pick(attack_noun)] into [target]'s face!"), + 30; SPAN_DANGER("[user] gave a strong blow against [target]'s jaw!") )) else // ----- BODY ----- // switch(attack_damage) - if(1 to 2) user.visible_message("[user] threw a glancing punch at [target]'s [organ]!") - if(1 to 4) user.visible_message("[user] [pick(attack_verb)] [target] in [target.get_pronoun("his")] [organ]!") + if(1 to 2) user.visible_message(SPAN_DANGER("[user] threw a glancing punch at [target]'s [organ]!")) + if(1 to 4) user.visible_message(SPAN_DANGER("[user] [pick(attack_verb)] [target] in [target.get_pronoun("his")] [organ]!")) if(5) user.visible_message(pick( - 50; "[user] smashed [user.get_pronoun("his")] [pick(attack_noun)] into [target]'s [organ]!", - 50; "[user] landed a striking [pick(attack_noun)] on [target]'s [organ]!" + 50; SPAN_DANGER("[user] smashed [user.get_pronoun("his")] [pick(attack_noun)] into [target]'s [organ]!"), + 50; SPAN_DANGER("[user] landed a striking [pick(attack_noun)] on [target]'s [organ]!") )) else - user.visible_message("[user] [pick("punched", "threw a punch against", "struck", "slammed their [pick(attack_noun)] into")] [target]'s [organ]!") //why do we have a separate set of verbs for lying targets? + user.visible_message(SPAN_DANGER("[user] [pick("punched", "threw a punch against", "struck", "slammed their [pick(attack_noun)] into")] [target]'s [organ]!")) //why do we have a separate set of verbs for lying targets? /datum/unarmed_attack/palm // attacking with a fist generally gives higher DPS, this is for style points attack_verb = list("smacked") // Empty hand hurt intent verb. @@ -285,9 +289,9 @@ GLOBAL_LIST_EMPTY(sparring_attack_cache) attack_damage = Clamp(attack_damage, 1, 5) switch(attack_damage) - if(1 to 2) user.visible_message("[user] threw [target] a glancing [pick(attack_noun)] to the [organ]!") //it's not that they're kicking lightly, it's that the kick didn't quite connect - if(3 to 4) user.visible_message("[user] [pick(attack_verb)] [target] in [target.get_pronoun("his")] [organ]!") - if(5) user.visible_message("[user] landed a strong [pick(attack_noun)] against [target]'s [organ]!") + if(1 to 2) user.visible_message(SPAN_DANGER("[user] threw [target] a glancing [pick(attack_noun)] to the [organ]!")) //it's not that they're kicking lightly, it's that the kick didn't quite connect + if(3 to 4) user.visible_message(SPAN_DANGER("[user] [pick(attack_verb)] [target] in [target.get_pronoun("his")] [organ]!")) + if(5) user.visible_message(SPAN_DANGER("[user] landed a strong [pick(attack_noun)] against [target]'s [organ]!")) /datum/unarmed_attack/stomp attack_verb = null @@ -333,8 +337,8 @@ GLOBAL_LIST_EMPTY(sparring_attack_cache) attack_damage = Clamp(attack_damage, 1, 5) switch(attack_damage) - if(1 to 4) user.visible_message("[pick("[user] stomped on", "[user] slammed [user.get_pronoun("his")] [shoes ? copytext(shoes.name, 1, -1) : "foot"] down onto")] [target]'s [organ]!") - if(5) user.visible_message("[pick("[user] landed a powerful stomp on", "[user] stomped down hard on", "[user] slammed [user.get_pronoun("his")] [shoes ? copytext(shoes.name, 1, -1) : "foot"] down hard onto")] [target]'s [organ]!") //Devastated lol. No. We want to say that the stomp was powerful or forceful, not that it /wrought devastation/ + if(1 to 4) user.visible_message(SPAN_DANGER("[pick("[user] stomped on", "[user] slammed [user.get_pronoun("his")] [shoes ? copytext(shoes.name, 1, -1) : "foot"] down onto")] [target]'s [organ]!")) + if(5) user.visible_message(SPAN_DANGER("[pick("[user] landed a powerful stomp on", "[user] stomped down hard on", "[user] slammed [user.get_pronoun("his")] [shoes ? copytext(shoes.name, 1, -1) : "foot"] down hard onto")] [target]'s [organ]!")) //Devastated lol. No. We want to say that the stomp was powerful or forceful, not that it /wrought devastation/ /datum/unarmed_attack/pain_strike damage_type = DAMAGE_PAIN diff --git a/code/modules/mob/living/carbon/taste.dm b/code/modules/mob/living/carbon/taste.dm index 043dbde2a16..d1c9bb2acda 100644 --- a/code/modules/mob/living/carbon/taste.dm +++ b/code/modules/mob/living/carbon/taste.dm @@ -5,7 +5,7 @@ var/text_output = temp.generate_taste_message(src) if(text_output != last_taste_text || last_taste_time + 100 < world.time) //We dont want to spam the same message over and over again at the person. Give it a bit of a buffer. - to_chat(src, "You can taste [text_output]")//no taste means there are too many tastes and not enough flavor. + to_chat(src, SPAN_NOTICE("You can taste [text_output]"))//no taste means there are too many tastes and not enough flavor. last_taste_time = world.time last_taste_text = text_output return from.trans_to_holder(target,amount,multiplier,copy) //complete transfer diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 42a4329bc81..1627f2aa013 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -65,14 +65,14 @@ default behaviour is: for(var/mob/living/M in range(tmob, 1)) if(tmob.pinned.len || ((M.pulling == tmob && ( tmob.restrained() && !( M.restrained() ) && M.stat == 0)) || locate(/obj/item/grab, tmob.grabbed_by.len)) ) if (last_push_notif + 0.5 SECONDS <= world.time) - to_chat(src, "[tmob] is restrained, you cannot push past") + to_chat(src, SPAN_WARNING("[tmob] is restrained, you cannot push past")) last_push_notif = world.time now_pushing = FALSE return if( tmob.pulling == M && ( M.restrained() && !( tmob.restrained() ) && tmob.stat == 0) ) if (last_push_notif + 0.5 SECONDS <= world.time) - to_chat(src, "[tmob] is restraining [M], you cannot push past") + to_chat(src, SPAN_WARNING("[tmob] is restraining [M], you cannot push past")) last_push_notif = world.time now_pushing = FALSE @@ -123,7 +123,7 @@ default behaviour is: if(istype(tmob, /mob/living/carbon/human) && (tmob.mutations & FAT)) if(prob(40) && !(mutations & FAT)) - to_chat(src, "You fail to push [tmob]'s fat ass out of the way.") + to_chat(src, SPAN_DANGER("You fail to push [tmob]'s fat ass out of the way.")) now_pushing = FALSE return @@ -224,9 +224,9 @@ default behaviour is: set hidden = 1 if (health < maxHealth / 3) adjustBrainLoss(health + maxHealth * 2) // Deal 2x health in BrainLoss damage, as before but variable. - to_chat(src, "You have given up life and succumbed to death.") + to_chat(src, SPAN_NOTICE("You have given up life and succumbed to death.")) else - to_chat(src, "You are not injured enough to succumb to death!") + to_chat(src, SPAN_WARNING("You are not injured enough to succumb to death!")) /mob/living/proc/updatehealth() @@ -609,7 +609,7 @@ default behaviour is: var/obj/item/grab/G = pick(M.grabbed_by) if (istype(G, /obj/item/grab)) for(var/mob/O in viewers(M, null)) - O.show_message(text("[] has been pulled from []'s grip by []", G.affecting, G.assailant, src), 1) + O.show_message(SPAN_WARNING("[G.affecting] has been pulled from [G.assailant]'s grip by [src]"), 1) //G = null qdel(G) else @@ -631,11 +631,11 @@ default behaviour is: //pull damage with injured people if(prob(25)) M.adjustBruteLoss(1) - visible_message("\The [M]'s [M.isSynthetic() ? "state worsens": "wounds open more"] from being dragged!") + visible_message(SPAN_DANGER("\The [M]'s [M.isSynthetic() ? "state worsens": "wounds open more"] from being dragged!")) if(M.pull_damage()) if(prob(25)) M.adjustBruteLoss(2) - visible_message("\The [M]'s [M.isSynthetic() ? "state" : "wounds"] worsen terribly from being dragged!") + visible_message(SPAN_DANGER("\The [M]'s [M.isSynthetic() ? "state" : "wounds"] worsen terribly from being dragged!")) var/turf/location = M.loc if (istype(location, /turf/simulated)) location.add_blood(M) @@ -704,8 +704,8 @@ default behaviour is: if(istype(M)) M.drop_from_inventory(H) - to_chat(M, "\The [H] wriggles out of your grip!") - to_chat(src, "You wriggle out of \the [M]'s grip!") + to_chat(M, SPAN_WARNING("\The [H] wriggles out of your grip!")) + to_chat(src, SPAN_WARNING("You wriggle out of \the [M]'s grip!")) // Update whether or not this mob needs to pass emotes to contents. for(var/atom/A in M.contents) @@ -717,10 +717,10 @@ default behaviour is: var/obj/item/clothing/accessory/holster/holster = H.loc if(holster.holstered == H) holster.clear_holster() - to_chat(src, "You extricate yourself from \the [holster].") + to_chat(src, SPAN_WARNING("You extricate yourself from \the [holster].")) H.forceMove(get_turf(H)) else if(istype(H.loc,/obj/item)) - to_chat(src, "You struggle free of \the [H.loc].") + to_chat(src, SPAN_WARNING("You struggle free of \the [H.loc].")) H.forceMove(get_turf(H)) /mob/living/proc/escape_buckle() @@ -734,7 +734,7 @@ default behaviour is: return last_resist = world.time if(stunned > 10) - to_chat(src, "You can't move...") + to_chat(src, SPAN_NOTICE("You can't move...")) return var/resisting = 0 for(var/obj/O in requests) @@ -788,7 +788,7 @@ default behaviour is: return last_special = world.time resting = !resting - to_chat(src, "You are now [resting ? "resting" : "getting up"].") + to_chat(src, SPAN_NOTICE("You are now [resting ? "resting" : "getting up"].")) update_canmove() update_icon() @@ -835,7 +835,7 @@ default behaviour is: inertia_dir = 1 else if(y >= world.maxy -TRANSITIONEDGE) inertia_dir = 2 - to_chat(src, "Something you are carrying is preventing you from leaving.") + to_chat(src, SPAN_WARNING("Something you are carrying is preventing you from leaving.")) return ..() @@ -872,10 +872,10 @@ default behaviour is: if(!..()) return 0 if(!possession_candidate) - to_chat(possessor, "That animal cannot be possessed.") + to_chat(possessor, SPAN_WARNING("That animal cannot be possessed.")) return 0 if(jobban_isbanned(possessor, "Animal")) - to_chat(possessor, "You are banned from animal roles.") + to_chat(possessor, SPAN_WARNING("You are banned from animal roles.")) return 0 if(!possessor.MayRespawn(1,ANIMAL)) return 0 @@ -887,7 +887,7 @@ default behaviour is: return 0 if(src.ckey || src.client) - to_chat(possessor, "\The [src] already has a player.") + to_chat(possessor, SPAN_WARNING("\The [src] already has a player.")) return 0 message_admins("[key_name_admin(possessor)] has taken control of \the [src].") @@ -896,16 +896,16 @@ default behaviour is: qdel(possessor) if(round_is_spooky(6)) // Six or more active cultists. - to_chat(src, "You reach out with tendrils of ectoplasm and invade the mind of \the [src]...") + to_chat(src, SPAN_NOTICE("You reach out with tendrils of ectoplasm and invade the mind of \the [src]...")) to_chat(src, "You have assumed direct control of \the [src].") - to_chat(src, "Due to the spookiness of the round, you have taken control of the poor animal as an invading, possessing spirit - roleplay accordingly.") + to_chat(src, SPAN_NOTICE("Due to the spookiness of the round, you have taken control of the poor animal as an invading, possessing spirit - roleplay accordingly.")) src.universal_speak = 1 src.universal_understand = 1 //src.cultify() // Maybe another time. return to_chat(src, "You are now \the [src]!") - to_chat(src, "Remember to stay in character for a mob of this type!") + to_chat(src, SPAN_NOTICE("Remember to stay in character for a mob of this type!")) return 1 /mob/living/Initialize() diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm index 633579b2c0b..42f047d196f 100644 --- a/code/modules/mob/living/living_defense.dm +++ b/code/modules/mob/living/living_defense.dm @@ -30,7 +30,7 @@ if(C && C.active) C.attack_self(src)//Should shut it off update_icon() - to_chat(src, "Your [C.name] was disrupted!") + to_chat(src, SPAN_NOTICE("Your [C.name] was disrupted!")) Stun(2) //Being hit while using a deadman switch @@ -38,7 +38,7 @@ var/obj/item/device/assembly/signaler/signaler = get_active_hand() if(signaler.deadman && prob(80)) log_and_message_admins("has triggered a signaler deadman's switch") - src.visible_message("[src] triggers their deadman's switch!") + src.visible_message(SPAN_WARNING("[src] triggers their deadman's switch!")) signaler.signal() //Armor @@ -143,7 +143,7 @@ //Called when the mob is hit with an item in combat. Returns the blocked result /mob/living/proc/hit_with_weapon(obj/item/I, mob/living/user, var/effective_force, var/hit_zone, var/ground_zero) - visible_message("[src] has been [LAZYPICK(I.attack_verb,"attacked")] with [I] by [user]!") + visible_message(SPAN_DANGER("[src] has been [LAZYPICK(I.attack_verb,"attacked")] with [I] by [user]!")) . = standard_weapon_hit_effects(I, user, effective_force, hit_zone) @@ -180,11 +180,11 @@ miss_chance = max(15*(distance-2), 0) if (prob(miss_chance)) - visible_message("\The [O] misses [src] narrowly!") + visible_message(SPAN_NOTICE("\The [O] misses [src] narrowly!")) playsound(src, 'sound/effects/throw_miss.ogg', 50, 1) return - src.visible_message("[src] has been hit by [O].") + src.visible_message(SPAN_WARNING("[src] has been hit by [O].")) apply_damage(throw_damage, dtype, null, damage_flags = O.damage_flags(), used_weapon = O) O.throwing = 0 //it hit, so stop moving @@ -208,7 +208,9 @@ if(O.throw_source && momentum >= THROWNOBJ_KNOCKBACK_SPEED) var/dir = get_dir(O.throw_source, src) - visible_message("[src] staggers under the impact!","You stagger under the impact!") + visible_message(SPAN_WARNING("[src] staggers under the impact!"), + SPAN_WARNING("You stagger under the impact!")) + src.throw_at(get_edge_target_turf(src,dir),1,momentum) if(!O || !src) @@ -222,7 +224,9 @@ if(T) src.forceMove(T) - visible_message("[src] is pinned to the wall by [O]!","You are pinned to the wall by [O]!") + visible_message(SPAN_WARNING("[src] is pinned to the wall by [O]!"), + SPAN_WARNING("You are pinned to the wall by [O]!")) + src.anchored = 1 src.pinned += O @@ -232,7 +236,7 @@ add_verb(src, /mob/proc/yank_out_object) /mob/living/proc/turf_collision(var/atom/T, var/speed = THROWFORCE_SPEED_DIVISOR, var/sound_to_play = 'sound/effects/bangtaper.ogg') - visible_message("[src] slams into \the [T]!") + visible_message(SPAN_DANGER("[src] slams into \the [T]!")) playsound(T, sound_to_play, 50, 1, 1)//so it plays sounds on the turf instead, makes for awesome carps to hull collision and such apply_damage(speed*5, DAMAGE_BRUTE) @@ -259,7 +263,7 @@ user.attack_log += text("\[[time_stamp()]\] attacked [src.name] ([src.ckey])") src.attack_log += text("\[[time_stamp()]\] was attacked by [user.name] ([user.ckey])") if (attack_message) - src.visible_message("[user] has [attack_message] [src]!") + src.visible_message(SPAN_DANGER("[user] has [attack_message] [src]!")) user.do_attack_animation(src) apply_damage(damage, damage_type, user.zone_sel?.selecting, armor_pen = armor_penetration, damage_flags = attack_flags) diff --git a/code/modules/mob/living/living_powers.dm b/code/modules/mob/living/living_powers.dm index db76b444d78..4cd62cbb941 100644 --- a/code/modules/mob/living/living_powers.dm +++ b/code/modules/mob/living/living_powers.dm @@ -8,10 +8,10 @@ if (layer != HIDING_MOB_LAYER) layer = HIDING_MOB_LAYER //Just above cables with their 2.44 - to_chat(src, text("You are now hiding.")) + to_chat(src, SPAN_NOTICE("You are now hiding.")) else layer = MOB_LAYER - to_chat(src, text("You have stopped hiding.")) + to_chat(src, SPAN_NOTICE("You have stopped hiding.")) /mob/living/verb/set_walk_speed() set category = "IC" diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index e9408c1d5a7..92428e9c8f8 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -247,7 +247,7 @@ var/list/channel_to_radio_key = new verb = say_quote(message, speaking, is_singing, whisper) if(is_muzzled()) - to_chat(src, "You're muzzled and cannot speak!") + to_chat(src, SPAN_DANGER("You're muzzled and cannot speak!")) return message = trim_left(message) diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index c839b072207..da09619e2f0 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -406,7 +406,7 @@ var/list/ai_verbs_default = list( set name = "Examine" if((is_blind() || usr.stat) && !isobserver(src)) - to_chat(src, "Your optical sensors appear to be malfunctioning.") + to_chat(src, SPAN_NOTICE("Your optical sensors appear to be malfunctioning.")) return 1 face_atom(A) @@ -474,16 +474,16 @@ var/list/ai_verbs_default = list( if(check_unable(AI_CHECK_WIRELESS)) return if(!is_relay_online()) - to_chat(usr, "No Emergency Bluespace Relay detected. Unable to transmit message.") + to_chat(usr, SPAN_WARNING("No Emergency Bluespace Relay detected. Unable to transmit message.")) return if(emergency_message_cooldown) - to_chat(usr, "Arrays recycling. Please stand by.") + to_chat(usr, SPAN_WARNING("Arrays recycling. Please stand by.")) return var/input = sanitize(input(usr, "Please choose a message to transmit to [SSatlas.current_map.boss_short] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", "")) if(!input) return Centcomm_announce(input, usr) - to_chat(usr, "Message transmitted.") + to_chat(usr, SPAN_NOTICE("Message transmitted.")) log_say("[key_name(usr)] has made an AI [SSatlas.current_map.boss_short] announcement: [input]",ckey=key_name(usr)) emergency_message_cooldown = 1 spawn(300) @@ -528,7 +528,7 @@ var/list/ai_verbs_default = list( if(H) H.attack_ai(src) //may as well recycle else - to_chat(src, "Unable to locate the holopad.") + to_chat(src, SPAN_NOTICE("Unable to locate the holopad.")) if (href_list["track"]) var/mob/target = locate(href_list["track"]) in GLOB.mob_list @@ -536,13 +536,13 @@ var/list/ai_verbs_default = list( if(target && (!istype(target, /mob/living/carbon/human) || html_decode(href_list["trackname"]) == target:get_face_name())) ai_actual_track(target) else - to_chat(src, "System error. Cannot locate [html_decode(href_list["trackname"])].") + to_chat(src, SPAN_WARNING("System error. Cannot locate [html_decode(href_list["trackname"])].")) return if (href_list["readcapturedpaper"]) //Yep stolen from admin faxes var/entry = text2num(href_list["readcapturedpaper"]) if(!entry || !cameraRecords.len) return if(!cameraRecords[entry]) - to_chat(src, "Unable to locate visual entry.") + to_chat(src, SPAN_NOTICE("Unable to locate visual entry.")) return var/info = cameraRecords[entry] src << browse(text("[][]", info[1], info[2]), text("window=[]", html_encode(info[1]))) @@ -630,7 +630,7 @@ var/list/ai_verbs_default = list( if(network in C.network) eyeobj.setLoc(get_turf(C)) break - to_chat(src, "Switched to [network] camera network.") + to_chat(src, SPAN_NOTICE("Switched to [network] camera network.")) //End of code by Mord_Sith /mob/living/silicon/ai/proc/ai_statuschange() @@ -743,20 +743,20 @@ var/list/ai_verbs_default = list( else if(attacking_item.iswrench()) if(anchored) - user.visible_message("\The [user] starts to unbolt \the [src] from the plating...") + user.visible_message(SPAN_NOTICE("\The [user] starts to unbolt \the [src] from the plating...")) if(!attacking_item.use_tool(src, user, 40, volume = 50)) - user.visible_message("\The [user] decides not to unbolt \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] decides not to unbolt \the [src].")) return - user.visible_message("\The [user] finishes unfastening \the [src]!") + user.visible_message(SPAN_NOTICE("\The [user] finishes unfastening \the [src]!")) anchored = FALSE exit_vr() return else user.visible_message("\The [user] starts to bolt \the [src] to the plating...") if(!attacking_item.use_tool(src, user, 40, volume = 50)) - user.visible_message("\The [user] decides not to bolt \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] decides not to bolt \the [src].")) return - user.visible_message("\The [user] finishes fastening down \the [src]!") + user.visible_message(SPAN_NOTICE("\The [user] finishes fastening down \the [src]!")) anchored = 1 return else @@ -815,19 +815,19 @@ var/list/ai_verbs_default = list( /mob/living/silicon/ai/proc/check_unable(var/flags = 0, var/feedback = 1) if(stat == DEAD) - if(feedback) to_chat(src, "You are dead!") + if(feedback) to_chat(src, SPAN_WARNING("You are dead!")) return 1 if(ai_restore_power_routine) if(feedback) - to_chat(src, "You lack power!") + to_chat(src, SPAN_WARNING("You lack power!")) return 1 if((flags & AI_CHECK_WIRELESS) && src.control_disabled) - if(feedback) to_chat(src, "Wireless control is disabled!") + if(feedback) to_chat(src, SPAN_WARNING("Wireless control is disabled!")) return 1 if((flags & AI_CHECK_RADIO) && src.ai_radio.disabledAi) - if(feedback) to_chat(src, "System Error - Transceiver Disabled!") + if(feedback) to_chat(src, SPAN_WARNING("System Error - Transceiver Disabled!")) return 1 return 0 @@ -839,7 +839,7 @@ var/list/ai_verbs_default = list( set category = "AI Commands" multitool_mode = !multitool_mode - to_chat(src, "Multitool mode: [multitool_mode ? "E" : "Dise"]ngaged") + to_chat(src, SPAN_NOTICE("Multitool mode: [multitool_mode ? "E" : "Dise"]ngaged")) /mob/living/silicon/ai/update_icon() if(!selected_sprite) selected_sprite = default_ai_icon diff --git a/code/modules/mob/living/silicon/ai/examine.dm b/code/modules/mob/living/silicon/ai/examine.dm index 89e00f60592..f47e8bfc185 100644 --- a/code/modules/mob/living/silicon/ai/examine.dm +++ b/code/modules/mob/living/silicon/ai/examine.dm @@ -3,28 +3,28 @@ if (src.stat == DEAD) . += "It appears to be powered-down." else - . += "" + var/ai_status_desc if (src.getBruteLoss()) if (src.getBruteLoss() < 30) - . += "It looks slightly dented." + ai_status_desc += "It looks slightly dented." else - . += "It looks severely dented!" + ai_status_desc += "It looks severely dented!" if (src.getFireLoss()) if (src.getFireLoss() < 30) - . += "It looks slightly charred." + ai_status_desc += "It looks slightly charred." else - . += "Its casing is melted and heat-warped!" + ai_status_desc += "Its casing is melted and heat-warped!" if (src.getOxyLoss() && (ai_restore_power_routine != 0 && !APU_power)) if (src.getOxyLoss() > 175) - . += "It seems to be running on backup power. Its display is blinking a \"BACKUP POWER CRITICAL\" warning." + ai_status_desc += "It seems to be running on backup power. Its display is blinking a \"BACKUP POWER CRITICAL\" warning." else if(src.getOxyLoss() > 100) - . += "It seems to be running on backup power. Its display is blinking a \"BACKUP POWER LOW\" warning." + ai_status_desc += "It seems to be running on backup power. Its display is blinking a \"BACKUP POWER LOW\" warning." else - . += "It seems to be running on backup power." + ai_status_desc += "It seems to be running on backup power." if (src.stat == UNCONSCIOUS) - . += "It is non-responsive and displaying the text: \"RUNTIME: Sensory Overload, stack 26/3\"." - . += "" + ai_status_desc += "It is non-responsive and displaying the text: \"RUNTIME: Sensory Overload, stack 26/3\"." + . += SPAN_WARNING(ai_status_desc) if(hardware && (hardware.owner == src)) . += "
" diff --git a/code/modules/mob/living/silicon/ai/latejoin.dm b/code/modules/mob/living/silicon/ai/latejoin.dm index c484432a7f7..598351161eb 100644 --- a/code/modules/mob/living/silicon/ai/latejoin.dm +++ b/code/modules/mob/living/silicon/ai/latejoin.dm @@ -38,11 +38,11 @@ GLOBAL_LIST_EMPTY(empty_playable_ai_cores) set desc = "Wipe your core. This is functionally equivalent to cryo or robotic storage, freeing up your job slot." if(SSticker.mode && SSticker.mode.name == "AI malfunction") - to_chat(usr, "You cannot use this verb in malfunction. If you need to leave, please adminhelp.") + to_chat(usr, SPAN_DANGER("You cannot use this verb in malfunction. If you need to leave, please adminhelp.")) return if(carded) - to_chat(usr, "No connection to station intelligence storage. You must be in an AI Core to store yourself (adminhelp if you need to leave).") + to_chat(usr, SPAN_DANGER("No connection to station intelligence storage. You must be in an AI Core to store yourself (adminhelp if you need to leave).")) return // Guard against misclicks, this isn't the sort of thing we want happening accidentally diff --git a/code/modules/mob/living/silicon/ai/life.dm b/code/modules/mob/living/silicon/ai/life.dm index b98496961b1..90162d02fb0 100644 --- a/code/modules/mob/living/silicon/ai/life.dm +++ b/code/modules/mob/living/silicon/ai/life.dm @@ -35,7 +35,7 @@ malf_process() if(APU_power && (hardware_integrity() < 50)) - to_chat(src, "APU GENERATOR FAILURE! (System Damaged)") + to_chat(src, SPAN_NOTICE("APU GENERATOR FAILURE! (System Damaged)")) stop_apu(1) if (!is_blind()) diff --git a/code/modules/mob/living/silicon/ai/malf.dm b/code/modules/mob/living/silicon/ai/malf.dm index 4e8064ddacc..1d64c508f1c 100644 --- a/code/modules/mob/living/silicon/ai/malf.dm +++ b/code/modules/mob/living/silicon/ai/malf.dm @@ -17,7 +17,7 @@ // And greet user with some OOC info. to_chat(user, "You are malfunctioning, you do not have to follow any laws.") to_chat(user, "Use ai-help command to view relevant information about your abilities") - to_chat(user, "Malf AI has been severely buffed. Ensure that you use these new powers responsibly and follow a narrative.") + to_chat(user, SPAN_DANGER("Malf AI has been severely buffed. Ensure that you use these new powers responsibly and follow a narrative.")) // Safely remove malfunction status, fixing hacked APCs and resetting variables. /mob/living/silicon/ai/proc/stop_malf() @@ -84,7 +84,7 @@ return if(hardware_integrity() < 50) if(!shutup) - to_chat(src, "Starting APU... FAULT(System Damaged)") + to_chat(src, SPAN_NOTICE("Starting APU... FAULT(System Damaged)")) return if(!shutup) to_chat(src, "Starting APU... ONLINE") diff --git a/code/modules/mob/living/silicon/pai/emote.dm b/code/modules/mob/living/silicon/pai/emote.dm index 0852b1f4651..7d4f6e08504 100644 --- a/code/modules/mob/living/silicon/pai/emote.dm +++ b/code/modules/mob/living/silicon/pai/emote.dm @@ -113,7 +113,7 @@ if ("help") to_chat(src, "salute, bow, clap, flap, aflap, twitch, twitch_s, nod, beep, ping, \nbuzz, law, halt, meow, meow2, squeal, squeak, softsqueak") else - to_chat(src, "Unusable emote '[act]'. Say *help for a list.") + to_chat(src, SPAN_NOTICE("Unusable emote '[act]'. Say *help for a list.")) if ((message && src.stat == 0)) send_emote(message, m_type) diff --git a/code/modules/mob/living/silicon/pai/life.dm b/code/modules/mob/living/silicon/pai/life.dm index 554ed7bf00f..4f01bab0d75 100644 --- a/code/modules/mob/living/silicon/pai/life.dm +++ b/code/modules/mob/living/silicon/pai/life.dm @@ -7,7 +7,7 @@ if(get_dist(src, src.cable) > 1) var/turf/T = get_turf_or_move(src.loc) for (var/mob/M in viewers(T)) - M.show_message("The data cable rapidly retracts back into its spool.", 3, "You hear a click and the sound of wire spooling rapidly.", 2) + M.show_message(SPAN_WARNING("The data cable rapidly retracts back into its spool."), 3, SPAN_WARNING("You hear a click and the sound of wire spooling rapidly."), 2) qdel(src.cable) src.cable = null diff --git a/code/modules/mob/living/silicon/robot/analyzer.dm b/code/modules/mob/living/silicon/robot/analyzer.dm index 597bab774ed..4b5a7025da0 100644 --- a/code/modules/mob/living/silicon/robot/analyzer.dm +++ b/code/modules/mob/living/silicon/robot/analyzer.dm @@ -58,13 +58,11 @@ to_chat(user, SPAN_NOTICE("Localized Damage:")) if(length(damaged) > 0) for(var/datum/robot_component/org in damaged) - user.show_message(text("\t []: [][] - [] - [] - []", \ - capitalize(org.name), \ - (org.installed == -1) ? "DESTROYED " :"",\ - (org.electronics_damage > 0) ? "[org.electronics_damage]" :0, \ - (org.brute_damage > 0) ? "[org.brute_damage]" :0, \ - (org.toggled) ? "Toggled ON" : "Toggled OFF",\ - (org.powered) ? "Power ON" : "Power OFF"),1) + user.show_message(SPAN_NOTICE("\t [capitalize(org.name)]: [(org.installed == -1) ? SPAN_WARNING("DESTROYED") :""]\ + [(org.electronics_damage > 0) ? "[org.electronics_damage]" : 0] - [(org.brute_damage > 0) ? SPAN_WARNING("[org.brute_damage]") :0] - \ + [(org.toggled) ? "Toggled ON" : SPAN_WARNING("Toggled OFF")] - \ + [(org.powered) ? "Power ON" : SPAN_WARNING("Power OFF")]"),1) + else to_chat(user, SPAN_NOTICE("Components are OK.")) if(H.emagged && prob(5)) diff --git a/code/modules/mob/living/silicon/robot/drone/drone_console.dm b/code/modules/mob/living/silicon/robot/drone/drone_console.dm index e3694ae9732..e3e7a972780 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_console.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_console.dm @@ -37,7 +37,7 @@ continue else if (isNotStationLevel(src.z) && src.z != D.z) //If the console is not on the station, only list drones on the current level continue - dat += "
[D.real_name] ([D.stat == 2 ? "INACTIVE" : "ACTIVE"])" + dat += "
[D.real_name] ([D.stat == 2 ? SPAN_WARNING("INACTIVE") : "ACTIVE"])" dat += "
Cell charge: [D.cell.charge]/[D.cell.maxcharge]." dat += "
Currently located in: [get_area(D)]." dat += "
Resync | Shutdown
" diff --git a/code/modules/mob/living/silicon/robot/examine.dm b/code/modules/mob/living/silicon/robot/examine.dm index 60a71f5aa5a..e28fd3b0981 100644 --- a/code/modules/mob/living/silicon/robot/examine.dm +++ b/code/modules/mob/living/silicon/robot/examine.dm @@ -4,33 +4,34 @@ . += describe_all_modules() // describe modules - . += "" + var/robot_status_desc if(getBruteLoss()) if(getBruteLoss() < 75) - . += "It looks slightly dented." + robot_status_desc += "It looks slightly dented." else - . += "It looks severely dented!" + robot_status_desc += "It looks severely dented!" if(getFireLoss()) if(getFireLoss() < 75) - . += "It looks slightly charred." + robot_status_desc += "It looks slightly charred." else - . += "It looks severely burnt and heat-warped!" - . += "" + robot_status_desc += "It looks severely burnt and heat-warped!" + + . += SPAN_WARNING(robot_status_desc) if(opened) - . += "Its cover is open and the power cell is [cell ? "installed" : "missing"]." + . += SPAN_WARNING("Its cover is open and the power cell is [cell ? "installed" : "missing"].") else . += "Its cover is closed." if(!has_power) - . += "It appears to be running on backup power." + . += SPAN_WARNING("It appears to be running on backup power.") switch(stat) if(CONSCIOUS) if(!client) . += "It appears to be in stand-by mode." //afk if(UNCONSCIOUS) - . += "It doesn't seem to be responding." + . += SPAN_WARNING("It doesn't seem to be responding.") if(DEAD) . += "It looks completely unsalvageable." diff --git a/code/modules/mob/living/silicon/robot/inventory.dm b/code/modules/mob/living/silicon/robot/inventory.dm index aaeeee8d6ff..44c5232c322 100644 --- a/code/modules/mob/living/silicon/robot/inventory.dm +++ b/code/modules/mob/living/silicon/robot/inventory.dm @@ -207,7 +207,7 @@ if(!(locate(O) in src.module.modules) && O != src.module.emag) return if(activated(O)) - to_chat(src, "Already activated") + to_chat(src, SPAN_NOTICE("Already activated")) return if(!module_state_1) module_state_1 = O @@ -228,7 +228,7 @@ contents += O O.on_module_hotbar(src) else - to_chat(src, "You need to disable a module first!") + to_chat(src, SPAN_NOTICE("You need to disable a module first!")) /mob/living/silicon/robot/put_in_hands(var/obj/item/W) // Maybe hands. var/obj/item/gripper/G = get_active_hand() diff --git a/code/modules/mob/living/simple_animal/bees.dm b/code/modules/mob/living/simple_animal/bees.dm index 66b5829e8c7..f66d2b21ceb 100644 --- a/code/modules/mob/living/simple_animal/bees.dm +++ b/code/modules/mob/living/simple_animal/bees.dm @@ -47,13 +47,13 @@ strength -= 1 if (strength <= 0) if (prob(25))//probability to reduce spam - src.visible_message("The bee swarm completely dissipates.") + src.visible_message(SPAN_WARNING("The bee swarm completely dissipates.")) qdel(src) return else health = maxHealth if (prob(25))//probability to reduce spam - src.visible_message("The bee swarm starts to thin out a little.") + src.visible_message(SPAN_WARNING("The bee swarm starts to thin out a little.")) update_icon() else @@ -103,7 +103,7 @@ if(prob(max(80, strength * 10))) //If there's enough of a swarm, it can also cause breathing trouble. Yes, even without being allergic. M.apply_damage(venom_strength, DAMAGE_OXY) update_icon() - to_chat(M, "You have been stung!") + to_chat(M, SPAN_WARNING("You have been stung!")) M.flash_pain(5) else step_to(src, target_mob) @@ -156,7 +156,7 @@ if(range_in_typecache(src, 2, calmers)) if(feral > 0) - src.visible_message("The bees calm down!") + src.visible_message(SPAN_NOTICE("The bees calm down!")) feral = -15 target_mob = null target_turf = null @@ -216,7 +216,7 @@ if (!(DirBlocked(get_step(src, get_dir(src,target_turf)),get_dir(src,target_turf)))) // Check for windows and doors! Move(get_step(src, get_dir(src,target_turf))) if(prob(10)) - visible_message("The bees swarm after [target_mob]!") + visible_message(SPAN_NOTICE("The bees swarm after [target_mob]!")) if(get_turf(src) == target_turf) target_turf = null wander = TRUE diff --git a/code/modules/mob/living/simple_animal/constructs/soulstone.dm b/code/modules/mob/living/simple_animal/constructs/soulstone.dm index 8a0a09e935a..e5cd5242890 100644 --- a/code/modules/mob/living/simple_animal/constructs/soulstone.dm +++ b/code/modules/mob/living/simple_animal/constructs/soulstone.dm @@ -23,7 +23,7 @@ return..() if(M.has_brain_worms()) //Borer stuff - RR - to_chat(user, "This being is corrupted by an alien intelligence and cannot be soul trapped.") + to_chat(user, SPAN_WARNING("This being is corrupted by an alien intelligence and cannot be soul trapped.")) return..() M.attack_log += text("\[[time_stamp()]\] Has had their soul captured with [src.name] by [user.name] ([user.ckey])") diff --git a/code/modules/mob/living/simple_animal/friendly/carp.dm b/code/modules/mob/living/simple_animal/friendly/carp.dm index 07ea116f2ad..58e09dbd0fa 100644 --- a/code/modules/mob/living/simple_animal/friendly/carp.dm +++ b/code/modules/mob/living/simple_animal/friendly/carp.dm @@ -116,7 +116,7 @@ return if(!(ishuman(usr) && befriend_job && usr.job == befriend_job)) - to_chat(user, "[src] ignores you.") + to_chat(user, SPAN_NOTICE("[src] ignores you.")) return friend = user diff --git a/code/modules/mob/living/simple_animal/friendly/cat.dm b/code/modules/mob/living/simple_animal/friendly/cat.dm index cae60917cb4..80e0cd29e10 100644 --- a/code/modules/mob/living/simple_animal/friendly/cat.dm +++ b/code/modules/mob/living/simple_animal/friendly/cat.dm @@ -194,7 +194,7 @@ set_flee_target(AM.thrower? AM.thrower : src.loc) /mob/living/simple_animal/cat/fall_impact() - src.visible_message("\The [src] lands softly on \the [loc]!") + src.visible_message(SPAN_NOTICE("\The [src] lands softly on \the [loc]!")) return FALSE //Basic friend AI @@ -270,7 +270,7 @@ return if (!(ishuman(usr) && befriend_job && usr.job == befriend_job)) - to_chat(usr, "[src] ignores you.") + to_chat(usr, SPAN_NOTICE("[src] ignores you.")) return friend = usr diff --git a/code/modules/mob/living/simple_animal/friendly/corgi.dm b/code/modules/mob/living/simple_animal/friendly/corgi.dm index caa4d85c403..0f902a8b105 100644 --- a/code/modules/mob/living/simple_animal/friendly/corgi.dm +++ b/code/modules/mob/living/simple_animal/friendly/corgi.dm @@ -75,8 +75,8 @@ if(istype(attacking_item, /obj/item/newspaper)) if(!stat) visible_message( - "[user] baps [src] on the nose with the rolled up [attacking_item.name].", - "[user] baps you on the nose with the rolled up [attacking_item.name]!" + SPAN_NOTICE("[user] baps [src] on the nose with the rolled up [attacking_item.name]."), + SPAN_ALERT("[user] baps you on the nose with the rolled up [attacking_item.name]!") ) scan_interval = max_scan_interval movement_target = null @@ -122,7 +122,7 @@ //pupplies cannot wear anything. /mob/living/simple_animal/corgi/puppy/Topic(href, href_list) if(href_list["remove_inv"] || href_list["add_inv"]) - to_chat(usr, "You can't fit this on [src]") + to_chat(usr, SPAN_WARNING("You can't fit this on [src]")) return ..() @@ -146,7 +146,7 @@ //Lisa already has a cute bow! /mob/living/simple_animal/corgi/Lisa/Topic(href, href_list) if(href_list["remove_inv"] || href_list["add_inv"]) - to_chat(usr, "[src] already has a cute bow!") + to_chat(usr, SPAN_WARNING("[src] already has a cute bow!")) return ..() diff --git a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm index d9731b93058..8a84fcf6e36 100644 --- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm +++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm @@ -54,7 +54,7 @@ if(enemies.len && prob(10)) enemies = list() LoseTarget() - src.visible_message("[src] calms down.") + src.visible_message(SPAN_NOTICE("[src] calms down.")) if(!pulledby) var/obj/effect/plant/food = locate(/obj/effect/plant) in oview(5,loc) @@ -105,7 +105,9 @@ /mob/living/simple_animal/cow/attack_hand(mob/living/carbon/M as mob) if(!stat && M.a_intent == I_DISARM && icon_state != icon_dead) - M.visible_message("[M] tips over [src].","You tip over [src].") + M.visible_message(SPAN_WARNING("[M] tips over [src]."), + SPAN_NOTICE("You tip over [src].")) + Weaken(30) icon_state = icon_dead spawn(rand(20,50)) diff --git a/code/modules/mob/living/simple_animal/friendly/mushroom.dm b/code/modules/mob/living/simple_animal/friendly/mushroom.dm index 953ee88dc67..cbde6c1b701 100644 --- a/code/modules/mob/living/simple_animal/friendly/mushroom.dm +++ b/code/modules/mob/living/simple_animal/friendly/mushroom.dm @@ -51,15 +51,15 @@ set src = usr if(stat == 2) - to_chat(usr, "You are dead; it is too late for that.") + to_chat(usr, SPAN_DANGER("You are dead; it is too late for that.")) return if(!seed) - to_chat(usr, "You are sterile!") + to_chat(usr, SPAN_DANGER("You are sterile!")) return if(world.time < harvest_time + min_explode_time) - to_chat(usr, "You are not mature enough for that.") + to_chat(usr, SPAN_DANGER("You are not mature enough for that.")) return spore_explode() diff --git a/code/modules/mob/living/simple_animal/friendly/rat.dm b/code/modules/mob/living/simple_animal/friendly/rat.dm index eb19e17c2f8..0adaa2a67fc 100644 --- a/code/modules/mob/living/simple_animal/friendly/rat.dm +++ b/code/modules/mob/living/simple_animal/friendly/rat.dm @@ -183,7 +183,7 @@ squeals -- log_say("[key_name(src)] squeals! ",ckey=key_name(src)) else - to_chat(src, "Your hoarse rattish throat can't squeal just now, stop and take a breath!") + to_chat(src, SPAN_WARNING("Your hoarse rattish throat can't squeal just now, stop and take a breath!")) //Wrapper verbs for the squeak functions @@ -192,7 +192,7 @@ set category = "Abilities" if (usr.client.prefs.muted & MUTE_IC) - to_chat(usr, "You are muted from IC emotes.") + to_chat(usr, SPAN_DANGER("You are muted from IC emotes.")) return squeak_loud(1) @@ -202,7 +202,7 @@ set category = "Abilities" if (usr.client.prefs.muted & MUTE_IC) - to_chat(usr, "You are muted from IC emotes.") + to_chat(usr, SPAN_DANGER("You are muted from IC emotes.")) return squeak_soft(1) @@ -212,7 +212,7 @@ set category = "Abilities" if (usr.client.prefs.muted & MUTE_IC) - to_chat(usr, "You are muted from IC emotes.") + to_chat(usr, SPAN_DANGER("You are muted from IC emotes.")) return squeak(1) @@ -222,7 +222,7 @@ if( ishuman(AM) ) if(!stat) var/mob/M = AM - to_chat(M, "[icon2html(src, M)] Squeek!") + to_chat(M, SPAN_NOTICE("[icon2html(src, M)] Squeek!")) poke(1) //Wake up if stepped on if (prob(95)) squeak(0) @@ -237,8 +237,8 @@ if(!K.health) return - src.visible_message("[src] joins the [K.swarm_name] of \the [K]", \ - "We join our brethren in \the [K.swarm_name]. Long live \the [K].") + src.visible_message(SPAN_WARNING("[src] joins the [K.swarm_name] of \the [K]"), \ + SPAN_NOTICE("We join our brethren in \the [K.swarm_name]. Long live \the [K].")) K.absorb(src) ..() diff --git a/code/modules/mob/living/simple_animal/friendly/ratking.dm b/code/modules/mob/living/simple_animal/friendly/ratking.dm index e05cac290ce..8408cdfa902 100644 --- a/code/modules/mob/living/simple_animal/friendly/ratking.dm +++ b/code/modules/mob/living/simple_animal/friendly/ratking.dm @@ -38,7 +38,7 @@ body_color = "gray" say_dead_direct("An heir to the rat throne has risen, all rejoice and celebrate.") - announceToRodents("The rat king has risen! Go at once and join his kingdom, long live the king!") + announceToRodents(SPAN_NOTICE("The rat king has risen! Go at once and join his kingdom, long live the king!")) /mob/living/simple_animal/rat/king/death() while(rats.len) @@ -165,7 +165,7 @@ set name = "Decree" if( !health ) - to_chat(usr, "You are dead, you cannot use any abilities!") + to_chat(usr, SPAN_NOTICE("You are dead, you cannot use any abilities!")) return var/input = sanitize(input(usr, "Please enter the [lowertext( announce_name )] for your whole kingdom.", "What?", "") as message|null, extra = 0) @@ -183,18 +183,18 @@ set name = "Mighty Roar" if(!health) - to_chat(usr, "You are dead, you cannot use any abilities!") + to_chat(usr, SPAN_NOTICE("You are dead, you cannot use any abilities!")) return if(last_special > world.time) - to_chat(usr, "We must wait a little while before we can use this ability again!") + to_chat(usr, SPAN_WARNING("We must wait a little while before we can use this ability again!")) return if(!canRoar()) - to_chat(usr, "Our [swarm_name] must grow larger before we can use this ability!") + to_chat(usr, SPAN_WARNING("Our [swarm_name] must grow larger before we can use this ability!")) return - src.visible_message("[src] lets loose a mighty roar!") + src.visible_message(SPAN_WARNING("[src] lets loose a mighty roar!")) for( var/obj/machinery/light/L in range( 3, src )) if( canRoarBreakLights() && prob(( rats.len/RAT_EMPEROR_LEVEL )*100 )) L.broken() @@ -212,28 +212,28 @@ return if(!health) - to_chat(usr, "You are dead, you cannot use any abilities!") + to_chat(usr, SPAN_NOTICE("You are dead, you cannot use any abilities!")) return if(!canEatCorpse()) - to_chat(usr, "Our [swarm_name] must grow larger before we can use this ability!") + to_chat(usr, SPAN_WARNING("Our [swarm_name] must grow larger before we can use this ability!")) return if(last_special > world.time) - to_chat(usr, "We must wait a little while before we can use this ability again!") + to_chat(usr, SPAN_WARNING("We must wait a little while before we can use this ability again!")) return if(target.stat != DEAD) - to_chat(usr, "We can only devour the dead!") + to_chat(usr, SPAN_WARNING("We can only devour the dead!")) return - usr.visible_message("\The [usr] swarms the body of \the [target], ripping flesh from bone!" ) + usr.visible_message(SPAN_DANGER("\The [usr] swarms the body of \the [target], ripping flesh from bone!") ) if(!do_after(usr,200)) - to_chat(src, "You need to wait longer to consume the body of [target]!") + to_chat(src, SPAN_WARNING("You need to wait longer to consume the body of [target]!")) return 0 - src.visible_message("\The [usr] consumed the body of \the [target]!") + src.visible_message(SPAN_DANGER("\The [usr] consumed the body of \the [target]!")) target.gib() rejuvenate() updatehealth() diff --git a/code/modules/mob/living/simple_animal/friendly/spiderbot.dm b/code/modules/mob/living/simple_animal/friendly/spiderbot.dm index 77fd20be018..95ed51bec42 100644 --- a/code/modules/mob/living/simple_animal/friendly/spiderbot.dm +++ b/code/modules/mob/living/simple_animal/friendly/spiderbot.dm @@ -82,10 +82,10 @@ if(istype(attacking_item, /obj/item/device/mmi)) var/obj/item/device/mmi/B = attacking_item if(src.mmi) - to_chat(user, "There's already a brain in [src]!") + to_chat(user, SPAN_WARNING("There's already a brain in [src]!")) return if(!B.brainmob) - to_chat(user, "Sticking an empty MMI into the frame would sort of defeat the purpose.") + to_chat(user, SPAN_WARNING("Sticking an empty MMI into the frame would sort of defeat the purpose.")) return if(!B.brainmob.key) var/ghost_can_reenter = 0 @@ -95,18 +95,18 @@ ghost_can_reenter = 1 break if(!ghost_can_reenter) - to_chat(user, "[attacking_item] is completely unresponsive; there's no point.") + to_chat(user, SPAN_NOTICE("[attacking_item] is completely unresponsive; there's no point.")) return if(B.brainmob.stat == DEAD) - to_chat(user, "[attacking_item] is dead. Sticking it into the frame would sort of defeat the purpose.") + to_chat(user, SPAN_WARNING("[attacking_item] is dead. Sticking it into the frame would sort of defeat the purpose.")) return if(jobban_isbanned(B.brainmob, "Cyborg")) - to_chat(user, "\The [attacking_item] does not seem to fit.") + to_chat(user, SPAN_WARNING("\The [attacking_item] does not seem to fit.")) return - to_chat(user, "You install \the [attacking_item] in \the [src]!") + to_chat(user, SPAN_NOTICE("You install \the [attacking_item] in \the [src]!")) if(istype(attacking_item, /obj/item/device/mmi/digital)) positronic = 1 @@ -127,15 +127,15 @@ if(health > maxHealth) health = maxHealth add_fingerprint(user) - src.visible_message("\The [user] has spot-welded some of the damage to \the [src]!") + src.visible_message(SPAN_NOTICE("\The [user] has spot-welded some of the damage to \the [src]!")) else - to_chat(user, "\The [src] is undamaged!") + to_chat(user, SPAN_WARNING("\The [src] is undamaged!")) else - to_chat(user, "You need more welding fuel for this task!") + to_chat(user, SPAN_DANGER("You need more welding fuel for this task!")) return else if(attacking_item.GetID()) if (!mmi) - to_chat(user, "There's no reason to swipe your ID - \the [src] has no brain.") + to_chat(user, SPAN_DANGER("There's no reason to swipe your ID - \the [src] has no brain.")) return 0 var/obj/item/card/id/id_card = attacking_item.GetID() @@ -152,14 +152,14 @@ if(use_check_and_message(user)) return 0 if(ACCESS_ROBOTICS in id_card.access) - to_chat(user, "You swipe your access card and pop the brain out of \the [src].") + to_chat(user, SPAN_NOTICE("You swipe your access card and pop the brain out of \the [src].")) eject_brain() if(held_item) held_item.forceMove(src.loc) held_item = null return 1 else - to_chat(user, "You swipe your card with no effect.") + to_chat(user, SPAN_DANGER("You swipe your card with no effect.")) return 0 if("Sync") if(use_check_and_message(user)) @@ -175,12 +175,12 @@ /mob/living/simple_animal/spiderbot/emag_act(var/remaining_charges, var/mob/user) if (emagged) - to_chat(user, "[src] is already overloaded - better run.") + to_chat(user, SPAN_WARNING("[src] is already overloaded - better run.")) return 0 else - to_chat(user, "You short out the security protocols and overload [src]'s cell, priming it to explode in a short time.") - spawn(100) to_chat(src, "Your cell seems to be outputting a lot of power...") - spawn(200) to_chat(src, "Internal heat sensors are spiking! Something is badly wrong with your cell!") + to_chat(user, SPAN_NOTICE("You short out the security protocols and overload [src]'s cell, priming it to explode in a short time.")) + spawn(100) to_chat(src, SPAN_DANGER("Your cell seems to be outputting a lot of power...")) + spawn(200) to_chat(src, SPAN_DANGER("Internal heat sensors are spiking! Something is badly wrong with your cell!")) spawn(300) src.explode() /mob/living/simple_animal/spiderbot/proc/transfer_personality(var/obj/item/device/mmi/M as obj) @@ -191,7 +191,7 @@ src.voice_name = src.name /mob/living/simple_animal/spiderbot/proc/explode() //When emagged. - src.visible_message("\The [src] makes an odd warbling noise, fizzles, and explodes!") + src.visible_message(SPAN_DANGER("\The [src] makes an odd warbling noise, fizzles, and explodes!")) explosion(get_turf(loc), -1, -1, 3, 5) eject_brain() death() @@ -252,12 +252,12 @@ return if(!held_item) - to_chat(usr, "You have nothing to drop!") + to_chat(usr, SPAN_WARNING("You have nothing to drop!")) return 0 if(istype(held_item, /obj/item/grenade)) - visible_message("\The [src] launches \the [held_item]!", \ - "You launch \the [held_item]!", \ + visible_message(SPAN_DANGER("\The [src] launches \the [held_item]!"), \ + SPAN_DANGER("You launch \the [held_item]!"), \ "You hear a skittering noise and a thump!") var/obj/item/grenade/G = held_item G.forceMove(src.loc) @@ -265,8 +265,8 @@ held_item = null return 1 - visible_message("\The [src] drops \the [held_item].", \ - "You drop \the [held_item].", \ + visible_message(SPAN_NOTICE("\The [src] drops \the [held_item]."), \ + SPAN_NOTICE("You drop \the [held_item]."), \ "You hear a skittering noise and a soft thump.") held_item.forceMove(src.loc) @@ -282,7 +282,7 @@ return -1 if(held_item) - to_chat(src, "You are already holding \the [held_item]") + to_chat(src, SPAN_WARNING("You are already holding \the [held_item]")) return 1 var/list/items = list() @@ -297,14 +297,14 @@ if(selection == I) held_item = selection selection.forceMove(src) - visible_message("\The [src] scoops up \the [held_item].", \ - "You grab \the [held_item].", \ + visible_message(SPAN_NOTICE("\The [src] scoops up \the [held_item]."), \ + SPAN_NOTICE("You grab \the [held_item]."), \ "You hear a skittering noise and a clink.") return held_item - to_chat(src, "\The [selection] is too far away.") + to_chat(src, SPAN_WARNING("\The [selection] is too far away.")) return 0 - to_chat(src, "There is nothing of interest to take.") + to_chat(src, SPAN_WARNING("There is nothing of interest to take.")) return 0 /mob/living/simple_animal/spiderbot/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) diff --git a/code/modules/mob/living/simple_animal/hostile/bat.dm b/code/modules/mob/living/simple_animal/hostile/bat.dm index 37a5657e059..06adef7f2de 100644 --- a/code/modules/mob/living/simple_animal/hostile/bat.dm +++ b/code/modules/mob/living/simple_animal/hostile/bat.dm @@ -69,7 +69,7 @@ if(istype(L)) if(prob(15)) L.Stun(1) - L.visible_message("\the [src] scares \the [L]!") + L.visible_message(SPAN_DANGER("\the [src] scares \the [L]!")) /mob/living/simple_animal/hostile/scarybat/cult faction = "cult" diff --git a/code/modules/mob/living/simple_animal/hostile/changeling.dm b/code/modules/mob/living/simple_animal/hostile/changeling.dm index cb304041bfa..7fd0e1d69fd 100644 --- a/code/modules/mob/living/simple_animal/hostile/changeling.dm +++ b/code/modules/mob/living/simple_animal/hostile/changeling.dm @@ -94,38 +94,38 @@ return if(src.is_devouring) - to_chat(src, "We are already feasting on something!") + to_chat(src, SPAN_WARNING("We are already feasting on something!")) return 0 if(!health) - to_chat(src, "We are dead, we cannot use any abilities!") + to_chat(src, SPAN_NOTICE("We are dead, we cannot use any abilities!")) return if(last_special > world.time) - to_chat(src, "We must wait a little while before we can use this ability again!") + to_chat(src, SPAN_WARNING("We must wait a little while before we can use this ability again!")) return - src.visible_message("[src] begins ripping apart and feasting on [target]!") + src.visible_message(SPAN_WARNING("[src] begins ripping apart and feasting on [target]!")) src.is_devouring = TRUE target.adjustBruteLoss(35) if(!do_after(src,150)) - to_chat(src, "You need to wait longer to devour \the [target]!") + to_chat(src, SPAN_WARNING("You need to wait longer to devour \the [target]!")) src.is_devouring = FALSE return 0 - src.visible_message("[src] tears a chunk from \the [target]'s flesh!") + src.visible_message(SPAN_WARNING("[src] tears a chunk from \the [target]'s flesh!")) target.adjustBruteLoss(35) if(!do_after(src,150)) - to_chat(src, "You need to wait longer to devour \the [target]!") + to_chat(src, SPAN_WARNING("You need to wait longer to devour \the [target]!")) src.is_devouring = FALSE return 0 - src.visible_message("[target] is completely devoured by [src]!", \ - "You completely devour \the [target]!") + src.visible_message(SPAN_WARNING("[target] is completely devoured by [src]!"), \ + SPAN_DANGER("You completely devour \the [target]!")) target.gib() rejuvenate() updatehealth() @@ -222,7 +222,7 @@ occupant.client.init_verbs() occupant = null - visible_message("\The [src] explodes into a shower of gore!") + visible_message(SPAN_WARNING("\The [src] explodes into a shower of gore!")) gibs(src.loc) qdel(src) return @@ -233,7 +233,7 @@ set category = "Changeling" if(!health) - to_chat(usr, "We are dead, we cannot use any abilities!") + to_chat(usr, SPAN_NOTICE("We are dead, we cannot use any abilities!")) return if(last_special > world.time) @@ -251,6 +251,6 @@ mind.transfer_to(occupant) occupant.client.init_verbs() occupant = null - visible_message("\The [src] explodes into a shower of gore!") + visible_message(SPAN_WARNING("\The [src] explodes into a shower of gore!")) gibs(src.loc) qdel(src) diff --git a/code/modules/mob/living/simple_animal/hostile/commanded/guard_dog.dm b/code/modules/mob/living/simple_animal/hostile/commanded/guard_dog.dm index 90c193f04af..6386ed61cfc 100644 --- a/code/modules/mob/living/simple_animal/hostile/commanded/guard_dog.dm +++ b/code/modules/mob/living/simple_animal/hostile/commanded/guard_dog.dm @@ -64,7 +64,7 @@ . = 1 //already friends, but show success anyways else - to_chat(usr, "[src] ignores you.") + to_chat(usr, SPAN_NOTICE("[src] ignores you.")) return diff --git a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm index 350d04a749e..b1759b4bd20 100644 --- a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm +++ b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm @@ -250,7 +250,7 @@ var/obj/effect/spider/stickyweb/W = locate() in get_turf(src) if(!W) busy = SPINNING_WEB - src.visible_message("\The [src] begins to secrete a sticky substance.") + src.visible_message(SPAN_NOTICE("\The [src] begins to secrete a sticky substance.")) stop_automated_movement = 1 addtimer(CALLBACK(src, PROC_REF(finalize_web)), 40, TIMER_UNIQUE) else @@ -258,7 +258,7 @@ var/obj/effect/spider/eggcluster/E = locate() in get_turf(src) if(!E && fed > 0) busy = LAYING_EGGS - src.visible_message("\The [src] begins to lay a cluster of eggs.") + src.visible_message(SPAN_NOTICE("\The [src] begins to lay a cluster of eggs.")) stop_automated_movement = 1 addtimer(CALLBACK(src, PROC_REF(finalize_eggs)), 50, TIMER_UNIQUE) else @@ -278,7 +278,7 @@ else if(busy == MOVING_TO_TARGET && cocoon_target) if(get_dist(src, cocoon_target) <= 1) busy = SPINNING_COCOON - src.visible_message("\The [src] begins to secrete a sticky substance around \the [cocoon_target].") + src.visible_message(SPAN_NOTICE("\The [src] begins to secrete a sticky substance around \the [cocoon_target].")) stop_automated_movement = 1 SSmove_manager.stop_looping(src) addtimer(CALLBACK(src, PROC_REF(finalize_cocoon)), 50, TIMER_UNIQUE) @@ -323,7 +323,7 @@ continue large_cocoon = 1 fed++ - src.visible_message("\The [src] sticks a proboscis into \the [cocoon_target] and sucks a viscous substance out.") + src.visible_message(SPAN_WARNING("\The [src] sticks a proboscis into \the [cocoon_target] and sucks a viscous substance out.")) playsound(get_turf(src), 'sound/effects/lingabsorbs.ogg', 50, 1) M.forceMove(C) C.pixel_x = M.pixel_x diff --git a/code/modules/mob/living/simple_animal/hostile/krampus.dm b/code/modules/mob/living/simple_animal/hostile/krampus.dm index 3743c4192f3..640c66702b5 100644 --- a/code/modules/mob/living/simple_animal/hostile/krampus.dm +++ b/code/modules/mob/living/simple_animal/hostile/krampus.dm @@ -49,7 +49,7 @@ if(!gibbed) for (var/mob/living/A in contents) A.forceMove(get_turf(src)) - visible_message("\The [src] vanishes!") + visible_message(SPAN_WARNING("\The [src] vanishes!")) dust() return TRUE @@ -68,21 +68,21 @@ return if(last_special > world.time) - to_chat(src, "You must wait a little while before you can use this ability again!") + to_chat(src, SPAN_WARNING("You must wait a little while before you can use this ability again!")) return - src.visible_message("\The [src] starts stuffing \the [target] inside his bag!", \ - "You begin to drag \the [target] to the depths of hell!") + src.visible_message(SPAN_DANGER("\The [src] starts stuffing \the [target] inside his bag!"), \ + SPAN_DANGER("You begin to drag \the [target] to the depths of hell!")) src.is_punishing = TRUE if(!do_mob(src, target, 60)) - to_chat(src, "\The [target] has managed to escape!") + to_chat(src, SPAN_DANGER("\The [target] has managed to escape!")) src.is_punishing = FALSE return - src.visible_message("\The [target] vanishes into \the [src]'s bag!") + src.visible_message(SPAN_DANGER("\The [target] vanishes into \the [src]'s bag!")) target.forceMove(src) - to_chat(target, "You have been captured by \the [src], you will soon be punished due to your misdeeds!") + to_chat(target, SPAN_DANGER("You have been captured by \the [src], you will soon be punished due to your misdeeds!")) addtimer(CALLBACK(src, PROC_REF(send_to_hell), target), 5 MINUTES) last_special = world.time + 100 src.is_punishing = FALSE @@ -101,7 +101,7 @@ last_special = world.time + 30 - visible_message("\The [src] vomits a cloud of rancid smoke and neatly wrapped gifts!") + visible_message(SPAN_DANGER("\The [src] vomits a cloud of rancid smoke and neatly wrapped gifts!")) var/datum/effect/effect/system/smoke_spread/bad/smoke = new /datum/effect/effect/system/smoke_spread/bad smoke.attach(src) @@ -116,7 +116,7 @@ /mob/living/simple_animal/hostile/krampus/proc/send_to_hell(mob/living/M) if(!M) return - to_chat(M, "You are dragged to the depths of hell to be eternally punished for your misdeeds!") + to_chat(M, SPAN_DANGER("You are dragged to the depths of hell to be eternally punished for your misdeeds!")) qdel(M) rejuvenate() updatehealth() diff --git a/code/modules/mob/living/simple_animal/hostile/mimic.dm b/code/modules/mob/living/simple_animal/hostile/mimic.dm index 6d147654af7..6a0fb43b218 100644 --- a/code/modules/mob/living/simple_animal/hostile/mimic.dm +++ b/code/modules/mob/living/simple_animal/hostile/mimic.dm @@ -88,7 +88,7 @@ if(istype(L)) if(prob(15)) L.Weaken(2) - L.visible_message("\the [src] knocks down \the [L]!") + L.visible_message(SPAN_DANGER("\the [src] knocks down \the [L]!")) /mob/living/simple_animal/hostile/mimic/crate/proc/trigger() if(!attempt_open) @@ -182,4 +182,4 @@ var/global/list/protected_objects = list(/obj/structure/table, /obj/structure/ca if(istype(L)) if(prob(15)) L.Weaken(1) - L.visible_message("\the [src] knocks down \the [L]!") + L.visible_message(SPAN_DANGER("\the [src] knocks down \the [L]!")) diff --git a/code/modules/mob/living/simple_animal/hostile/moghes.dm b/code/modules/mob/living/simple_animal/hostile/moghes.dm index 4ae4e94442e..7d0a3313767 100644 --- a/code/modules/mob/living/simple_animal/hostile/moghes.dm +++ b/code/modules/mob/living/simple_animal/hostile/moghes.dm @@ -41,7 +41,7 @@ if(istype(L)) if(prob(25)) L.Weaken(3) - L.visible_message("\The [src] knocks down \the [L]!") + L.visible_message(SPAN_DANGER("\The [src] knocks down \the [L]!")) /mob/living/simple_animal/hostile/biglizard/death(gibbed) ..() diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/cavern.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/cavern.dm index 9daf96ac34a..99450ad1ef1 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/cavern.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/cavern.dm @@ -210,7 +210,7 @@ return /mob/living/simple_animal/hostile/retaliate/minedrone/fall_impact() - visible_message("\The [src] bounces harmlessly on its inflated wheels.") + visible_message(SPAN_DANGER("\The [src] bounces harmlessly on its inflated wheels.")) return FALSE /mob/living/simple_animal/hostile/retaliate/minedrone/get_bullet_impact_effect_type(var/def_zone) diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm index 6ea37140d09..9982b303991 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm @@ -41,7 +41,7 @@ newname = sanitizeName(newname, allow_numbers = TRUE) if(newname && !use_check_and_message(usr)) if(E.rename_species(type, newname)) - to_chat(usr,"This species will be known from now on as '[newname]'.") + to_chat(usr,SPAN_NOTICE("This species will be known from now on as '[newname]'.")) else - to_chat(usr,"This species has already been named!") + to_chat(usr,SPAN_WARNING("This species has already been named!")) return diff --git a/code/modules/mob/living/simple_animal/hostile/sarlacc.dm b/code/modules/mob/living/simple_animal/hostile/sarlacc.dm index 421ce785e75..93deb2f02f2 100644 --- a/code/modules/mob/living/simple_animal/hostile/sarlacc.dm +++ b/code/modules/mob/living/simple_animal/hostile/sarlacc.dm @@ -31,13 +31,13 @@ if(deployed && isliving(AM) && !originator.eating) var/mob/living/L = AM L.visible_message( - "[L] steps into \the [src].", - "You step into \the [src]!", + SPAN_DANGER("[L] steps into \the [src]."), + SPAN_DANGER("You step into \the [src]!"), "You hear a loud organic snap!" ) attack_mob(L) originator.eating = 1 - to_chat(L, "\The [src] begins digesting your upper body!") + to_chat(L, SPAN_DANGER("\The [src] begins digesting your upper body!")) addtimer(CALLBACK(src, PROC_REF(devour), L), 50 SECONDS) ..() @@ -54,8 +54,8 @@ if(istype(L,/mob/living/carbon/human)) var/mob/living/carbon/human/H = L H.visible_message( - "\The [src] snaps tight across [H]'s upper body, swallowing it in three grisly gulps.", - "You feel a searing pain as \the [src] severs your lower body and sends you careening into its grotesque gullet!", + SPAN_DANGER("\The [src] snaps tight across [H]'s upper body, swallowing it in three grisly gulps."), + SPAN_DANGER("You feel a searing pain as \the [src] severs your lower body and sends you careening into its grotesque gullet!"), "You hear a sick crunch!" ) var/obj/item/organ/external/G = H.get_organ(BP_GROIN) @@ -69,15 +69,15 @@ else if(istype(L,/mob/living/silicon/robot)) var/mob/living/silicon/robot/R = L L.visible_message( - "\The [src] spits [R] out with a frustrated screech after failing to swallow.", - "\The [src] scrapes and gnashes against your exoskeleton before spitting you out!", + SPAN_DANGER("\The [src] spits [R] out with a frustrated screech after failing to swallow."), + SPAN_DANGER("\The [src] scrapes and gnashes against your exoskeleton before spitting you out!"), "You hear several metallic scrapes!" ) R.apply_damage(60,DAMAGE_BRUTE) else L.visible_message( - "\The [src] eviscerates [L] with its teeth, swallowing what little remains whole!", - "\The [src] turns you into a slightly viscuous and very bloody paste.", + SPAN_DANGER("\The [src] eviscerates [L] with its teeth, swallowing what little remains whole!"), + SPAN_DANGER("\The [src] turns you into a slightly viscuous and very bloody paste."), "You hear a grisly splat!" ) L.gib() @@ -151,8 +151,8 @@ asleep = 0 icon_state = "sarlacc" visible_message( - "\The [src] awakens!", - "You awaken! You're so HUNGRY!", + SPAN_DANGER("\The [src] awakens!"), + SPAN_DANGER("You awaken! You're so HUNGRY!"), "You hear a deep, rumbling roar in the earth!" ) sarlacc.deployed = 1 @@ -184,15 +184,15 @@ if(L) L.apply_damage(rand(3,10),DAMAGE_BRUTE) L.visible_message( - "\The [src] tears at [L]'s flesh with its gruesome jaws.", - "You feel a searing pain as \the [src] tears at your flesh!", + SPAN_DANGER("\The [src] tears at [L]'s flesh with its gruesome jaws."), + SPAN_DANGER("You feel a searing pain as \the [src] tears at your flesh!"), "You hear a sick tear!" ) /mob/living/simple_animal/hostile/greatworm/death() ..() - visible_message("With a frenzy of tooth and tendril, \the [src] slides deep into the earth, leaving a gaping hole in its place!") + visible_message(SPAN_DANGER("With a frenzy of tooth and tendril, \the [src] slides deep into the earth, leaving a gaping hole in its place!")) var/turf/T = src.loc T.ChangeTurf(/turf/space) qdel(src) @@ -203,7 +203,7 @@ asleep = 1 icon_state = "sarlacc_asleep" sarlacc.deployed = 0 - visible_message("With a contented heave, \the [src] slides into the earth and begins regurgitating several treasures before shutting tight.") + visible_message(SPAN_DANGER("With a contented heave, \the [src] slides into the earth and begins regurgitating several treasures before shutting tight.")) new/obj/random/loot(get_turf(src)) /mob/living/simple_animal/hostile/greatworm/FindTarget() @@ -239,7 +239,7 @@ active_tentacles += L L.originator = src L.faction = src.faction - visible_message("\The [L] bursts from the earth under [target].") + visible_message(SPAN_DANGER("\The [L] bursts from the earth under [target].")) /mob/living/simple_animal/hostile/greatworm/Move() return @@ -293,10 +293,10 @@ if(L != src) L.apply_damage(15,DAMAGE_BRUTE) possible_targets += L - to_chat(L, "\The [src] wraps around you tightly with its spiny teeth!") + to_chat(L, SPAN_DANGER("\The [src] wraps around you tightly with its spiny teeth!")) if(Adjacent(originator) && possible_targets.len) var/mob/living/L = pick(possible_targets) - to_chat(L, "\The [src] flings you into \the [originator]'s maw!") + to_chat(L, SPAN_DANGER("\The [src] flings you into \the [originator]'s maw!")) L.Move(originator.loc) /mob/living/simple_animal/hostile/lesserworm/Move() diff --git a/code/modules/mob/living/simple_animal/hostile/space_fauna.dm b/code/modules/mob/living/simple_animal/hostile/space_fauna.dm index 500aedec0ec..63e83acc75d 100644 --- a/code/modules/mob/living/simple_animal/hostile/space_fauna.dm +++ b/code/modules/mob/living/simple_animal/hostile/space_fauna.dm @@ -86,7 +86,7 @@ if(istype(target_mob, /obj/effect/energy_field)) var/obj/effect/energy_field/e = target_mob e.Stress(rand(1,2)) - visible_message("\the [src] bites \the [e]!") + visible_message(SPAN_DANGER("\the [src] bites \the [e]!")) src.do_attack_animation(e) return e diff --git a/code/modules/mob/living/simple_animal/hostile/spider_queen.dm b/code/modules/mob/living/simple_animal/hostile/spider_queen.dm index 4677f5d3564..65c3c008623 100644 --- a/code/modules/mob/living/simple_animal/hostile/spider_queen.dm +++ b/code/modules/mob/living/simple_animal/hostile/spider_queen.dm @@ -118,7 +118,7 @@ S.layer = initial(S.layer) var/turf/target_turf = get_turf(S) if(target_turf) - S.visible_message("\The [S] lands on the [target_turf]!") + S.visible_message(SPAN_DANGER("\The [S] lands on the [target_turf]!")) for(var/mob/living/M in target_turf) if(M != src) M.apply_damage(50, DAMAGE_BRUTE) diff --git a/code/modules/mob/living/simple_animal/hostile/syndicate.dm b/code/modules/mob/living/simple_animal/hostile/syndicate.dm index 060e4967572..5abf6be6aee 100644 --- a/code/modules/mob/living/simple_animal/hostile/syndicate.dm +++ b/code/modules/mob/living/simple_animal/hostile/syndicate.dm @@ -69,13 +69,13 @@ if (attacking_item.damtype == DAMAGE_PAIN) damage = 0 health -= damage - visible_message("[src] has been attacked with the [attacking_item] by [user].") + visible_message(SPAN_DANGER("[src] has been attacked with the [attacking_item] by [user].")) else - visible_message("[src] blocks the [attacking_item] with its shield!") + visible_message(SPAN_DANGER("[src] blocks the [attacking_item] with its shield!")) //user.do_attack_animation(src) else - to_chat(usr, "This weapon is ineffective, it does no damage.") - visible_message("[user] gently taps [src] with the [attacking_item].") + to_chat(usr, SPAN_WARNING("This weapon is ineffective, it does no damage.")) + visible_message(SPAN_WARNING("[user] gently taps [src] with the [attacking_item].")) /mob/living/simple_animal/hostile/syndicate/melee/bullet_act(var/obj/item/projectile/Proj) @@ -83,7 +83,7 @@ if(prob(65)) src.health -= Proj.damage else - visible_message("[src] blocks [Proj] with its shield!") + visible_message(SPAN_DANGER("[src] blocks [Proj] with its shield!")) return 0 diff --git a/code/modules/mob/living/simple_animal/hostile/tree.dm b/code/modules/mob/living/simple_animal/hostile/tree.dm index d75c43d55ee..0ff5f57dfe2 100644 --- a/code/modules/mob/living/simple_animal/hostile/tree.dm +++ b/code/modules/mob/living/simple_animal/hostile/tree.dm @@ -52,7 +52,7 @@ if(istype(L)) if(prob(15)) L.Weaken(3) - L.visible_message("\the [src] knocks down \the [L]!") + L.visible_message(SPAN_DANGER("\the [src] knocks down \the [L]!")) /mob/living/simple_animal/hostile/tree/death() ..(null,"is hacked into pieces!") diff --git a/code/modules/mob/living/simple_animal/parrot.dm b/code/modules/mob/living/simple_animal/parrot.dm index 371f40b9a6f..d1694b6a184 100644 --- a/code/modules/mob/living/simple_animal/parrot.dm +++ b/code/modules/mob/living/simple_animal/parrot.dm @@ -166,19 +166,19 @@ if(copytext(possible_phrase,1,3) in department_radio_keys) possible_phrase = copytext(possible_phrase,3,length(possible_phrase)) else - to_chat(usr, "There is nothing to remove from its [remove_from].") + to_chat(usr, SPAN_WARNING("There is nothing to remove from its [remove_from].")) return //Adding things to inventory else if(href_list["add_inv"]) var/add_to = href_list["add_inv"] if(!usr.get_active_hand()) - to_chat(usr, "You have nothing in your hand to put on its [add_to].") + to_chat(usr, SPAN_WARNING("You have nothing in your hand to put on its [add_to].")) return switch(add_to) if("ears") if(ears) - to_chat(usr, "It's already wearing something.") + to_chat(usr, SPAN_WARNING("It's already wearing something.")) return else var/obj/item/item_to_add = usr.get_active_hand() @@ -186,7 +186,7 @@ return if( !istype(item_to_add, /obj/item/device/radio/headset) ) - to_chat(usr, "This object won't fit.") + to_chat(usr, SPAN_WARNING("This object won't fit.")) return var/obj/item/device/radio/headset/headset_to_add = item_to_add @@ -413,7 +413,7 @@ if(!parrot_perch || parrot_interest.loc != parrot_perch.loc) held_item = parrot_interest parrot_interest.forceMove(src) - visible_message("[src] grabs the [held_item]!", "You grab the [held_item]!", "You hear the sounds of wings flapping furiously.") + visible_message("[src] grabs the [held_item]!", SPAN_NOTICE("You grab the [held_item]!"), "You hear the sounds of wings flapping furiously.") parrot_interest = null parrot_state = PARROT_SWOOP | PARROT_RETURN @@ -573,7 +573,7 @@ return -1 if(held_item) - to_chat(src, "You are already holding the [held_item]") + to_chat(src, SPAN_WARNING("You are already holding the [held_item]")) return 1 for(var/obj/item/I in view(1,src)) @@ -586,10 +586,10 @@ held_item = I I.forceMove(src) - visible_message("[src] grabs the [held_item]!", "You grab the [held_item]!", "You hear the sounds of wings flapping furiously.") + visible_message("[src] grabs the [held_item]!", SPAN_NOTICE("You grab the [held_item]!"), "You hear the sounds of wings flapping furiously.") return held_item - to_chat(src, "There is nothing of interest to take.") + to_chat(src, SPAN_WARNING("There is nothing of interest to take.")) return 0 /mob/living/simple_animal/parrot/proc/steal_from_mob() @@ -601,7 +601,7 @@ return -1 if(held_item) - to_chat(src, "You are already holding the [held_item]") + to_chat(src, SPAN_WARNING("You are already holding the [held_item]")) return 1 var/obj/item/stolen_item = null @@ -617,10 +617,10 @@ C.remove_from_mob(stolen_item) held_item = stolen_item stolen_item.forceMove(src) - visible_message("[src] grabs the [held_item] out of [C]'s hand!", "You snag the [held_item] out of [C]'s hand!", "You hear the sounds of wings flapping furiously.") + visible_message("[src] grabs the [held_item] out of [C]'s hand!", SPAN_NOTICE("You snag the [held_item] out of [C]'s hand!"), "You hear the sounds of wings flapping furiously.") return held_item - to_chat(src, "There is nothing of interest to take.") + to_chat(src, SPAN_WARNING("There is nothing of interest to take.")) return 0 /mob/living/simple_animal/parrot/verb/drop_held_item_player() @@ -644,7 +644,7 @@ return -1 if(!held_item) - to_chat(usr, "You have nothing to drop!") + to_chat(usr, SPAN_WARNING("You have nothing to drop!")) return 0 if(!drop_gently) @@ -677,7 +677,7 @@ src.forceMove(AM.loc) icon_state = "parrot_sit" return - to_chat(src, "There is no perch nearby to sit on.") + to_chat(src, SPAN_WARNING("There is no perch nearby to sit on.")) return /mob/living/simple_animal/parrot/say(var/message, var/datum/language/speaking = null, var/verb="says", var/alt_name="", var/ghost_hearing = GHOSTS_ALL_HEAR, var/whisper = FALSE) diff --git a/code/modules/mob/living/simple_animal/shade.dm b/code/modules/mob/living/simple_animal/shade.dm index 3ab32f4b408..618a4226a10 100644 --- a/code/modules/mob/living/simple_animal/shade.dm +++ b/code/modules/mob/living/simple_animal/shade.dm @@ -39,7 +39,7 @@ /mob/living/simple_animal/shade/death() . = ..() - visible_message("[src] lets out a contented sigh as their form unwinds.") + visible_message(SPAN_WARNING("[src] lets out a contented sigh as their form unwinds.")) new residue(loc) qdel(src) @@ -146,7 +146,7 @@ adjustCloneLoss(2) if(!heard_dying_message) heard_dying_message = 1 - to_chat(src, "You feel yourself begin to fade away!") + to_chat(src, SPAN_DANGER("You feel yourself begin to fade away!")) ..() /mob/living/simple_animal/shade/bluespace/Life() @@ -159,14 +159,14 @@ if(L.stat == DEAD) adjustCloneLoss(2) if(!heard_dying_message) - to_chat(src, "You feel yourself unable to sustain yourself on your host, and begin to fade away!") + to_chat(src, SPAN_DANGER("You feel yourself unable to sustain yourself on your host, and begin to fade away!")) heard_dying_message = 1 else if(L.sleeping) adjustCloneLoss(2) possession_heard_message = 0 if(!heard_dying_message) - to_chat(src, "Your host's lifestream is obfuscated in their dreams as they sleep, and you begin to fade away!") + to_chat(src, SPAN_DANGER("Your host's lifestream is obfuscated in their dreams as they sleep, and you begin to fade away!")) heard_dying_message = 1 else @@ -182,7 +182,7 @@ var/list/nagging_doubts = list("You feel empowered by the ancestors!","You feel ancestral might flowing through your veins!","You feel the power of your forebears!", \ "You feel the blood of the warrior!", "You feel the glory of a warrior's death!", "You feel mighty!","You feel the strength of the spirits!") if(prob(5) || !possession_heard_message) - to_chat(H, "[pick(nagging_doubts)]") + to_chat(H, SPAN_DANGER("[pick(nagging_doubts)]")) possession_heard_message = 1 else @@ -192,7 +192,7 @@ var/list/nagging_doubts = list("You feel a nagging doubt in the back of your head.","You feel a vacancy in your thoughts.","You feel momentarily forgetful.", \ "You feel temporarily occupied.", "You feel a little worried.", "You feel a hostile presence.","You feel watched.") if(prob(5) || !possession_heard_message) - to_chat(L, "[pick(nagging_doubts)]") + to_chat(L, SPAN_NOTICE("[pick(nagging_doubts)]")) possession_heard_message = 1 /mob/living/simple_animal/shade/bluespace/hear_say(var/message, var/verb = "says", var/datum/language/language = null, var/alt_name = "", var/italics = 0, var/mob/speaker = null, var/sound/speech_sound, var/sound_vol) @@ -203,7 +203,7 @@ adjustCloneLoss(-2) if(heard_dying_message) heard_dying_message = 0 - to_chat(src, "The soothing echoes of life reinvigorate you.") + to_chat(src, SPAN_NOTICE("The soothing echoes of life reinvigorate you.")) /mob/living/simple_animal/shade/bluespace/say(var/message, var/datum/language/speaking = null, var/verb="says", var/alt_name="", var/ghost_hearing = GHOSTS_ALL_HEAR, var/whisper = FALSE) if(!possessive) @@ -222,14 +222,14 @@ message = slur(message,15) ..() else - to_chat(src, "You cannot muster a voice when possessing another!") + to_chat(src, SPAN_WARNING("You cannot muster a voice when possessing another!")) /mob/living/simple_animal/shade/bluespace/verb/show_last_message() set name = "Current Echo" set category = "Bluespace Echo" set desc = "Privately display the last message you heard." - to_chat(src, "[last_message_heard]") + to_chat(src, SPAN_NOTICE("[last_message_heard]")) /mob/living/simple_animal/shade/bluespace/verb/flicker() set name = "Flicker Lights" @@ -237,7 +237,7 @@ set desc = "Oh, Nosferatu!" if(possessive) - to_chat(src, "You cannot affect the world outside your host!") + to_chat(src, SPAN_WARNING("You cannot affect the world outside your host!")) return visible_message("\The [src] pulses.") @@ -250,11 +250,11 @@ set desc = "Teleport a small item to where you are." if(possessive) - to_chat(src, "You cannot affect the world outside your host!") + to_chat(src, SPAN_WARNING("You cannot affect the world outside your host!")) return if(message_countdown < 20) - to_chat(src, "You are too faded to warp an item through bluespace.") + to_chat(src, SPAN_WARNING("You are too faded to warp an item through bluespace.")) return var/list/obj/item/choices = list() @@ -263,7 +263,7 @@ choices += I if(!choices.len) - to_chat(src, "There are no suitable items nearby.") + to_chat(src, SPAN_WARNING("There are no suitable items nearby.")) return var/obj/item/choice = input(src, "What item would you like to warp?") as null|anything in choices @@ -281,11 +281,11 @@ set desc = "Draw yourself towards the original cradle of your soul." if(possessive) - to_chat(src, "You cannot affect the world outside your host!") + to_chat(src, SPAN_WARNING("You cannot affect the world outside your host!")) return if(!original_body) - to_chat(src, "You feel an immeasurable hollowness as you realize that the original cradle of your soul is no more.") + to_chat(src, SPAN_DANGER("You feel an immeasurable hollowness as you realize that the original cradle of your soul is no more.")) return @@ -293,7 +293,7 @@ var/turf/T2 = get_turf(src) if(T1.z != T2.z) - to_chat(src, "The original cradle of your soul is too distant from you, perhaps somewhere above or below?") + to_chat(src, SPAN_WARNING("The original cradle of your soul is too distant from you, perhaps somewhere above or below?")) return forceMove(get_step(src, get_dir(T2, T1))) @@ -304,11 +304,11 @@ set desc = "Meld into the mind of another, sustaining yourself off of their lifeforce." if(possessive) - to_chat(src, "You are already possessing a host!") + to_chat(src, SPAN_WARNING("You are already possessing a host!")) return if(message_countdown < 50) - to_chat(src, "You are too faded to squeeze into another's lifestream.") + to_chat(src, SPAN_WARNING("You are too faded to squeeze into another's lifestream.")) return var/list/mob/living/carbon/human/choices = list() @@ -317,7 +317,7 @@ choices += H if(!choices.len) - to_chat(src, "There are no suitable lifestreams nearby.") + to_chat(src, SPAN_WARNING("There are no suitable lifestreams nearby.")) return var/mob/living/carbon/human/H = input(src, "What lifestream would you like to meld with?") as null|anything in choices @@ -340,7 +340,7 @@ set desc = "Seperate yourself from the lifestream of another." if(!possessive) - to_chat(src, "You are not currently possessing a host!") + to_chat(src, SPAN_WARNING("You are not currently possessing a host!")) return forceMove(get_turf(possessed_body)) diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index 652be0c2d0d..bd414541730 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -222,11 +222,11 @@ /mob/living/simple_animal/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() if (stat == DEAD) - . += "It looks dead." + . += SPAN_DANGER("It looks dead.") if (health < maxHealth * 0.5) - . += "It looks badly wounded." + . += SPAN_DANGER("It looks badly wounded.") else if (health < maxHealth) - . += "It looks wounded." + . += SPAN_WARNING("It looks wounded.") /mob/living/simple_animal/can_name(var/mob/living/M) if(named) diff --git a/code/modules/mob/login.dm b/code/modules/mob/login.dm index df60ffcf525..e1a7e1b1058 100644 --- a/code/modules/mob/login.dm +++ b/code/modules/mob/login.dm @@ -19,10 +19,10 @@ spawn() alert("You have logged in already with another key this round, please log out of this one NOW or risk being banned!") if(matches) if(M.client) - message_admins("Notice: [key_name_admin(src)] has the same [matches] as [key_name_admin(M)].", 1) + message_admins(SPAN_WARNING("Notice:
[key_name_admin(src)] has the same [matches] as [key_name_admin(M)]."), 1) log_access("Notice: [key_name(src)] has the same [matches] as [key_name(M)].",ckey=key_name(src)) else - message_admins("Notice: [key_name_admin(src)] has the same [matches] as [key_name_admin(M)] (no longer logged in). ", 1) + message_admins(SPAN_WARNING("Notice: [key_name_admin(src)] has the same [matches] as [key_name_admin(M)] (no longer logged in). "), 1) log_access("Notice: [key_name(src)] has the same [matches] as [key_name(M)] (no longer logged in).",ckey=key_name(src)) /mob diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index e9f97f070f2..265f983880d 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -448,13 +448,13 @@ return if (length(mind.memory) >= MAX_PAPER_MESSAGE_LEN) - to_chat(src, "You have exceeded the alotted text size for memories.") + to_chat(src, SPAN_DANGER("You have exceeded the alotted text size for memories.")) return msg = sanitize(msg) if (length(mind.memory + msg) >= MAX_PAPER_MESSAGE_LEN) - to_chat(src, "Your input would exceed the alotted text size for memories. Try again with a shorter message.") + to_chat(src, SPAN_DANGER("Your input would exceed the alotted text size for memories. Try again with a shorter message.")) return mind.store_memory(msg) @@ -471,7 +471,7 @@ /mob/proc/warn_flavor_changed() if(flavor_text && flavor_text != "") // don't spam people that don't use it! to_chat(src, "

OOC Warning:

") - to_chat(src, "Your flavor text is likely out of date! Change") + to_chat(src, SPAN_ALERT("Your flavor text is likely out of date! Change")) /mob/proc/print_flavor_text() if (flavor_text && flavor_text != "") @@ -512,7 +512,7 @@ to_chat(usr, "You can respawn now, enjoy your new life!") log_game("[usr.name]/[usr.key] used abandon mob.", ckey=key_name(usr)) - to_chat(usr, "Make sure to play a different character, and please roleplay correctly!") + to_chat(usr, SPAN_NOTICE("Make sure to play a different character, and please roleplay correctly!")) client?.screen.Cut() if(!client) @@ -554,7 +554,7 @@ if(client.holder && (client.holder.rights & R_ADMIN)) is_admin = 1 else if(stat != DEAD || istype(src, /mob/abstract/new_player)) - to_chat(usr, "You must be observing to use this!") + to_chat(usr, SPAN_NOTICE("You must be observing to use this!")) return if(is_admin && stat == DEAD) @@ -704,7 +704,7 @@ if (AM.anchored) if(!AM.buckled_to) - to_chat(src, "It won't budge!") + to_chat(src, SPAN_WARNING("It won't budge!")) else start_pulling(AM.buckled_to) //Pull the thing they're buckled to instead. return @@ -713,15 +713,15 @@ if(ismob(AM)) M = AM if(!can_pull_mobs || !can_pull_size) - to_chat(src, "It won't budge!") + to_chat(src, SPAN_WARNING("It won't budge!")) return if((mob_size < M.mob_size) && (can_pull_mobs != MOB_PULL_LARGER)) - to_chat(src, "It won't budge!") + to_chat(src, SPAN_WARNING("It won't budge!")) return if((mob_size == M.mob_size) && (can_pull_mobs == MOB_PULL_SMALLER)) - to_chat(src, "It won't budge!") + to_chat(src, SPAN_WARNING("It won't budge!")) return if(length(M.grabbed_by)) @@ -740,7 +740,7 @@ else if(isobj(AM)) var/obj/I = AM if(!can_pull_size || can_pull_size < I.w_class) - to_chat(src, "It won't budge!") + to_chat(src, SPAN_WARNING("It won't budge!")) return if(pulling) @@ -765,7 +765,7 @@ visible_message(SPAN_WARNING("\The [src] grips \the [H]'s arm."), SPAN_NOTICE("You grip \the [H]'s arm.")) playsound(loc, /singleton/sound_category/grab_sound, 25, FALSE, -1) //Quieter than hugging/grabbing but we still want some audio feedback if(H.pull_damage()) - to_chat(src, "Pulling \the [H] in their current condition would probably be a bad idea.") + to_chat(src, SPAN_DANGER("Pulling \the [H] in their current condition would probably be a bad idea.")) //Attempted fix for people flying away through space when cuffed and dragged. if(M) @@ -1106,9 +1106,9 @@ var/obj/item/selection = input("What do you want to yank out?", "Embedded objects") in valid_objects if(self) - to_chat(src, "You attempt to get a good grip on [selection] in your body.") + to_chat(src, SPAN_WARNING("You attempt to get a good grip on [selection] in your body.")) else - to_chat(U, "You attempt to get a good grip on [selection] in [S]'s body.") + to_chat(U, SPAN_WARNING("You attempt to get a good grip on [selection] in [S]'s body.")) if(!do_after(U, 30)) return @@ -1116,9 +1116,13 @@ return if(self) - visible_message("[src] rips [selection] out of their body!","You rip [selection] out of your body!") + visible_message(SPAN_WARNING("[src] rips [selection] out of their body!"), + SPAN_WARNING("You rip [selection] out of your body!")) + else - visible_message("[usr] rips [selection] out of [src]'s body!","[usr] rips [selection] out of your body!") + visible_message(SPAN_WARNING("[usr] rips [selection] out of [src]'s body!"), + SPAN_WARNING("[usr] rips [selection] out of your body!")) + valid_objects = get_visible_implants(0) remove_implant(selection) @@ -1319,7 +1323,7 @@ return SetWeakened(200) - visible_message("OOC Information: [src] has been winded by a member of staff! Please freeze all roleplay involving their character until the matter is resolved! Adminhelp if you have further questions.", "You have been winded by a member of staff! Please stand by until they contact you!") + visible_message("OOC Information: [src] has been winded by a member of staff! Please freeze all roleplay involving their character until the matter is resolved! Adminhelp if you have further questions.", SPAN_WARNING("You have been winded by a member of staff! Please stand by until they contact you!")) log_admin("[key_name(admin)] winded [key_name(src)]!",admin_key=key_name(admin),ckey=key_name(src)) message_admins("[key_name_admin(admin)] winded [key_name_admin(src)]!", 1) @@ -1335,7 +1339,7 @@ return SetWeakened(0) - visible_message("OOC Information: [src] has been unwinded by a member of staff!", "You have been unwinded by a member of staff!") + visible_message("OOC Information: [src] has been unwinded by a member of staff!", SPAN_WARNING("You have been unwinded by a member of staff!")) log_admin("[key_name(admin)] unwinded [key_name(src)]!",admin_key=key_name(admin),ckey=key_name(src)) message_admins("[key_name_admin(admin)] unwinded [key_name_admin(src)]!", 1) diff --git a/code/modules/mob/mob_grab_specials.dm b/code/modules/mob/mob_grab_specials.dm index 69ceb7f96a0..f42f200fb4a 100644 --- a/code/modules/mob/mob_grab_specials.dm +++ b/code/modules/mob/mob_grab_specials.dm @@ -4,60 +4,60 @@ var/obj/item/organ/external/E = H.get_organ(target_zone) if(!E || E.is_stump()) - to_chat(user, "[H] is missing that bodypart.") + to_chat(user, SPAN_NOTICE("[H] is missing that bodypart.")) return - user.visible_message("[user] starts inspecting [affecting]'s [E.name] carefully.") + user.visible_message(SPAN_NOTICE("[user] starts inspecting [affecting]'s [E.name] carefully.")) if(!do_mob(user,H, 10)) - to_chat(user, "You must stand still to inspect [E] for wounds.") + to_chat(user, SPAN_NOTICE("You must stand still to inspect [E] for wounds.")) else if(E.wounds.len) - to_chat(user, "You find [E.get_wounds_desc()]") + to_chat(user, SPAN_WARNING("You find [E.get_wounds_desc()]")) else - to_chat(user, "You find no visible wounds.") + to_chat(user, SPAN_NOTICE("You find no visible wounds.")) - to_chat(user, "Checking bones now...") + to_chat(user, SPAN_NOTICE("Checking bones now...")) if(!do_mob(user, H, 20)) - to_chat(user, "You must stand still to feel [E] for fractures.") + to_chat(user, SPAN_NOTICE("You must stand still to feel [E] for fractures.")) else if(E.status & ORGAN_BROKEN) - to_chat(user, "The [E.encased ? E.encased : "bone in the [E.name]"] moves slightly when you poke it!") + to_chat(user, SPAN_WARNING("The [E.encased ? E.encased : "bone in the [E.name]"] moves slightly when you poke it!")) H.custom_pain("Your [E.name] hurts where it's poked.") else - to_chat(user, "The [E.encased ? E.encased : "bones in the [E.name]"] seem to be fine.") + to_chat(user, SPAN_NOTICE("The [E.encased ? E.encased : "bones in the [E.name]"] seem to be fine.")) - to_chat(user, "Checking skin now...") + to_chat(user, SPAN_NOTICE("Checking skin now...")) if(!do_mob(user, H, 10)) - to_chat(user, "You must stand still to check [H]'s skin for abnormalities.") + to_chat(user, SPAN_NOTICE("You must stand still to check [H]'s skin for abnormalities.")) else var/bad = 0 if(H.getToxLoss() >= 40) - to_chat(user, "[H] has an unhealthy skin discoloration.") + to_chat(user, SPAN_WARNING("[H] has an unhealthy skin discoloration.")) bad = 1 if(H.getOxyLoss() >= 20) - to_chat(user, "[H]'s skin is unusually pale.") + to_chat(user, SPAN_WARNING("[H]'s skin is unusually pale.")) bad = 1 if(E.is_infected()) var/severity = E.germ_level < INFECTION_LEVEL_TWO ? "slightly" : E.germ_level < INFECTION_LEVEL_THREE ? "moderately" : "extremely" to_chat(user, SPAN_WARNING("[H]'s skin is [severity] warm and reddened.")) bad = 1 if(E.status & ORGAN_DEAD) - to_chat(user, "[E] is decaying!") + to_chat(user, SPAN_WARNING("[E] is decaying!")) bad = 1 if(!bad) - to_chat(user, "[H]'s skin is normal.") + to_chat(user, SPAN_NOTICE("[H]'s skin is normal.")) /obj/item/grab/proc/jointlock(mob/living/carbon/human/target, mob/attacker, var/target_zone) if(state < GRAB_AGGRESSIVE) - to_chat(attacker, "You require a better grab to do this.") + to_chat(attacker, SPAN_WARNING("You require a better grab to do this.")) return var/obj/item/organ/external/organ = target.get_organ(check_zone(target_zone)) if(!organ || organ.dislocated == -1) return - attacker.visible_message("[attacker] [pick("bent", "twisted")] [target]'s [organ.name] into a jointlock!") + attacker.visible_message(SPAN_DANGER("[attacker] [pick("bent", "twisted")] [target]'s [organ.name] into a jointlock!")) var/armor = 100 * affecting.get_blocked_ratio(target, DAMAGE_BRUTE, damage = 30) if(armor < 70) - to_chat(target, "You feel extreme pain!") + to_chat(target, SPAN_DANGER("You feel extreme pain!")) affecting.adjustHalLoss(Clamp(0, 60 - affecting.getHalLoss(), 30)) //up to 60 halloss /obj/item/grab/proc/attack_eye(mob/living/carbon/human/target, mob/living/carbon/human/attacker) @@ -69,17 +69,17 @@ if(!attack) return if(state < GRAB_NECK) - to_chat(attacker, "You require a better grab to do this.") + to_chat(attacker, SPAN_WARNING("You require a better grab to do this.")) return for(var/obj/item/protection in list(target.head, target.wear_mask, target.glasses)) if(protection && (protection.body_parts_covered & EYES)) - to_chat(attacker, "You're going to need to remove the eye covering first.") + to_chat(attacker, SPAN_DANGER("You're going to need to remove the eye covering first.")) return if(!target.has_eyes()) - to_chat(attacker, "You cannot locate any eyes on [target]!") + to_chat(attacker, SPAN_DANGER("You cannot locate any eyes on [target]!")) return if(isipc(target)) - to_chat(attacker, "You cannot damage [target]'s optics with your bare hands!") + to_chat(attacker, SPAN_DANGER("You cannot damage [target]'s optics with your bare hands!")) return admin_attack_log(attacker, target, "attacked [target.name]'s eyes using a grab.", "had eyes attacked by [attacker.name]'s grab.", "used a grab to attack eyes of") @@ -91,7 +91,7 @@ return if(target.lying) return - attacker.visible_message("[attacker] thrusts [attacker.get_pronoun("his")] head into [target]'s skull!") + attacker.visible_message(SPAN_DANGER("[attacker] thrusts [attacker.get_pronoun("his")] head into [target]'s skull!")) var/damage = 15 if(attacker.mob_size >= 10) @@ -109,7 +109,7 @@ if(armor < 25 && target.headcheck(BP_HEAD) && prob(damage)) target.apply_effect(20, PARALYZE) - target.visible_message("[target] [target.species.knockout_message]") + target.visible_message(SPAN_DANGER("[target] [target.species.knockout_message]")) playsound(attacker.loc, /singleton/sound_category/swing_hit_sound, 25, 1, -1) attacker.attack_log += text("\[[time_stamp()]\] Headbutted [target.name] ([target.ckey])") @@ -121,7 +121,7 @@ /obj/item/grab/proc/dislocate(mob/living/carbon/human/target, mob/living/attacker, var/target_zone) if(state < GRAB_NECK) - to_chat(attacker, "You require a better grab to do this.") + to_chat(attacker, SPAN_WARNING("You require a better grab to do this.")) return if(target.grab_joint(attacker, target_zone)) playsound(loc, 'sound/weapons/push_connect.ogg', 50, 1, -1) @@ -129,15 +129,15 @@ /obj/item/grab/proc/pin_down(mob/target, mob/attacker) if(state < GRAB_AGGRESSIVE) - to_chat(attacker, "You require a better grab to do this.") + to_chat(attacker, SPAN_WARNING("You require a better grab to do this.")) return if(force_down) - to_chat(attacker, "You are already pinning [target] to the ground.") + to_chat(attacker, SPAN_WARNING("You are already pinning [target] to the ground.")) - attacker.visible_message("[attacker] starts forcing [target] to the ground!") + attacker.visible_message(SPAN_DANGER("[attacker] starts forcing [target] to the ground!")) if(do_after(attacker, 20) && target) last_action = world.time - attacker.visible_message("[attacker] forces [target] to the ground!") + attacker.visible_message(SPAN_DANGER("[attacker] forces [target] to the ground!")) apply_pinning(target, attacker) /obj/item/grab/proc/apply_pinning(mob/target, mob/attacker) @@ -160,44 +160,44 @@ var/hairchatname = hair_style.chatname for(var/obj/item/protection in list(target.head, target.wear_mask)) if(protection && (protection.body_parts_covered & HEAD)) - to_chat(assailant, "You can't tug their hair while something is covering it!.") + to_chat(assailant, SPAN_WARNING("You can't tug their hair while something is covering it!.")) return switch(hair_style.length) if(0) - visible_message("[assailant] tried to grab [target] but they have no hair!") + visible_message(SPAN_NOTICE("[assailant] tried to grab [target] but they have no hair!")) if(1) - visible_message("[assailant] tugs [target]'s [hairchatname] before releasing their grip!") + visible_message(SPAN_DANGER("[assailant] tugs [target]'s [hairchatname] before releasing their grip!")) target.apply_damage(5, DAMAGE_PAIN) if(2) - visible_message("[assailant] tugs [target]'s [hairchatname]!") + visible_message(SPAN_DANGER("[assailant] tugs [target]'s [hairchatname]!")) target.apply_damage(5, DAMAGE_PAIN) src.state = GRAB_PASSIVE if(3) - visible_message("[assailant] tugs [target]'s [hairchatname]!") + visible_message(SPAN_DANGER("[assailant] tugs [target]'s [hairchatname]!")) target.apply_damage(10, DAMAGE_PAIN) src.state = GRAB_PASSIVE if(4) - visible_message("[assailant] violently tugs [target]'s [hairchatname], ripping out a clump!") + visible_message(SPAN_DANGER("[assailant] violently tugs [target]'s [hairchatname], ripping out a clump!")) target.apply_damage(15, DAMAGE_PAIN) src.state = GRAB_PASSIVE if(5) if(prob(77)) - visible_message("[assailant] has [target] grasped by their [hairchatname], however suddenly it slips from [assailant]'s hand!") + visible_message(SPAN_DANGER("[assailant] has [target] grasped by their [hairchatname], however suddenly it slips from [assailant]'s hand!")) src.state = GRAB_PASSIVE else - visible_message("[assailant] violently tugs [target]'s [hairchatname]!") + visible_message(SPAN_DANGER("[assailant] violently tugs [target]'s [hairchatname]!")) target.apply_damage(10, DAMAGE_PAIN) src.state = GRAB_AGGRESSIVE if(6) if(prob(67)) - visible_message("[assailant] has [target] grasped by their [hairchatname], however suddenly it slips from [assailant]'s hand!") + visible_message(SPAN_DANGER("[assailant] has [target] grasped by their [hairchatname], however suddenly it slips from [assailant]'s hand!")) src.state = GRAB_PASSIVE playsound(target.loc, 'sound/misc/slip.ogg', 50, 1, -3) else - visible_message("[assailant] violently tugs [target]'s [hairchatname]!") + visible_message(SPAN_DANGER("[assailant] violently tugs [target]'s [hairchatname]!")) target.apply_damage(15, DAMAGE_PAIN) src.state = GRAB_AGGRESSIVE diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index 7c0f1ca5370..b97b6423cd7 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -748,9 +748,9 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HURT) if(!lastpuke) lastpuke = 1 - to_chat(src, "You feel nauseous...") + to_chat(src, SPAN_WARNING("You feel nauseous...")) spawn(150) //15 seconds until second warning - to_chat(src, "You feel like you are about to throw up!") + to_chat(src, SPAN_WARNING("You feel like you are about to throw up!")) spawn(100) //and you have 10 more for mad dash to the bucket if(!QDELETED(src)) empty_stomach() diff --git a/code/modules/mob/mob_transformation_simple.dm b/code/modules/mob/mob_transformation_simple.dm index 5d22731a877..f633c4c4729 100644 --- a/code/modules/mob/mob_transformation_simple.dm +++ b/code/modules/mob/mob_transformation_simple.dm @@ -5,7 +5,7 @@ /mob/proc/change_mob_type(var/new_type = null, var/turf/location = null, var/new_name = null as text, var/delete_old_mob = 0 as num, var/subspecies) if(istype(src,/mob/abstract/new_player)) - to_chat(usr, "cannot convert players who have not entered yet.") + to_chat(usr, SPAN_WARNING("cannot convert players who have not entered yet.")) return if(!new_type) @@ -19,7 +19,7 @@ return if( new_type == /mob/abstract/new_player ) - to_chat(usr, "cannot convert into a new_player mob type.") + to_chat(usr, SPAN_WARNING("cannot convert into a new_player mob type.")) return var/mob/M diff --git a/code/modules/mob/say.dm b/code/modules/mob/say.dm index 5cc21c81b8d..60e7833f951 100644 --- a/code/modules/mob/say.dm +++ b/code/modules/mob/say.dm @@ -21,7 +21,7 @@ set category = "IC" if(say_disabled) //This is here to try to identify lag problems - to_chat(usr, "Speech is currently admin-disabled.") + to_chat(usr, SPAN_WARNING("Speech is currently admin-disabled.")) return message = sanitize(message) @@ -36,16 +36,16 @@ /mob/proc/say_dead(var/message) if(say_disabled) //This is here to try to identify lag problems - to_chat(usr, "Speech is currently admin-disabled.") + to_chat(usr, SPAN_DANGER("Speech is currently admin-disabled.")) return if(!src.client.holder) if(!GLOB.config.dsay_allowed) - to_chat(src, "Deadchat is globally muted.") + to_chat(src, SPAN_DANGER("Deadchat is globally muted.")) return if(client && !(client.prefs.toggles & CHAT_DEAD)) - to_chat(usr, "You have deadchat muted.") + to_chat(usr, SPAN_DANGER("You have deadchat muted.")) return message = process_chat_markup(message, list("~", "_")) diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm index cf145eb3d16..dda97c47e9d 100644 --- a/code/modules/mob/transform_procs.dm +++ b/code/modules/mob/transform_procs.dm @@ -272,7 +272,7 @@ var/mobpath = input("Which type of mob should [src] turn into?", "Choose a type") in mobtypes if(!safe_animal(mobpath)) - to_chat(usr, "Sorry but this mob type is currently unavailable.") + to_chat(usr, SPAN_WARNING("Sorry but this mob type is currently unavailable.")) return if(transforming) @@ -306,7 +306,7 @@ var/mobpath = input("Which type of mob should [src] turn into?", "Choose a type") in mobtypes if(!safe_animal(mobpath)) - to_chat(usr, "Sorry but this mob type is currently unavailable.") + to_chat(usr, SPAN_WARNING("Sorry but this mob type is currently unavailable.")) return var/mob/new_mob = new mobpath(src.loc) diff --git a/code/modules/modular_computers/file_system/programs/command/card.dm b/code/modules/modular_computers/file_system/programs/command/card.dm index 9e8a2628f9c..ffed4c11b00 100644 --- a/code/modules/modular_computers/file_system/programs/command/card.dm +++ b/code/modules/modular_computers/file_system/programs/command/card.dm @@ -153,7 +153,7 @@ if(temp_name) id_card.registered_name = temp_name else - computer.visible_message("[computer] buzzes rudely.") + computer.visible_message(SPAN_NOTICE("[computer] buzzes rudely.")) else if(params["account"]) var/account_num = text2num(input("Enter account number.", "Account", id_card.associated_account_number)) id_card.associated_account_number = account_num diff --git a/code/modules/modular_computers/file_system/programs/generic/lawmanager.dm b/code/modules/modular_computers/file_system/programs/generic/lawmanager.dm index fec23084c2e..7148e93bf8a 100644 --- a/code/modules/modular_computers/file_system/programs/generic/lawmanager.dm +++ b/code/modules/modular_computers/file_system/programs/generic/lawmanager.dm @@ -132,15 +132,15 @@ return TRUE if("notify_laws") - to_chat(owner, "Law Notice") + to_chat(owner, SPAN_DANGER("Law Notice")) owner.laws.show_laws(owner) if(isAI(owner)) var/mob/living/silicon/ai/AI = owner for(var/mob/living/silicon/robot/R in AI.connected_robots) - to_chat(R, "Law Notice") + to_chat(R, SPAN_DANGER("Law Notice")) R.laws.show_laws(R) if(usr != owner) - to_chat(usr, "Laws displayed.") + to_chat(usr, SPAN_NOTICE("Laws displayed.")) return TRUE /datum/computer_file/program/law_manager/ui_data(mob/user) diff --git a/code/modules/multiz/mobile_ladders.dm b/code/modules/multiz/mobile_ladders.dm index 0c88cc2126e..c1eec5fd5c4 100644 --- a/code/modules/multiz/mobile_ladders.dm +++ b/code/modules/multiz/mobile_ladders.dm @@ -15,10 +15,10 @@ if (isopenturf(A)) //Place into open space var/turf/below_loc = GetBelow(A) if (!below_loc || (istype(/turf/space, below_loc))) - to_chat(user, "Why would you do that?! There is only infinite space there...") + to_chat(user, SPAN_NOTICE("Why would you do that?! There is only infinite space there...")) return - user.visible_message("[user] begins to lower \the [src] into \the [A].", - "You begin to lower \the [src] into \the [A].") + user.visible_message(SPAN_WARNING("[user] begins to lower \the [src] into \the [A]."), + SPAN_WARNING("You begin to lower \the [src] into \the [A].")) if (!handle_action(A, user)) return // Create the lower ladder first. ladder/Initialize() will make the upper @@ -34,10 +34,10 @@ else if (istype(A, /turf/simulated/floor) || istype(A, /turf/unsimulated/floor)) //Place onto Floor var/turf/upper_loc = GetAbove(A) if (!upper_loc || !isopenturf(upper_loc)) - to_chat(user, "There is something above. You can't deploy!") + to_chat(user, SPAN_NOTICE("There is something above. You can't deploy!")) return - user.visible_message("[user] begins deploying \the [src] on \the [A].", - "You begin to deploy \the [src] on \the [A].") + user.visible_message(SPAN_WARNING("[user] begins deploying \the [src] on \the [A]."), + SPAN_WARNING("You begin to deploy \the [src] on \the [A].")) if (!handle_action(A, user)) return // Ditto here. Create the lower ladder first. diff --git a/code/modules/multiz/movement.dm b/code/modules/multiz/movement.dm index 4a68837ceb1..3b248f0d071 100644 --- a/code/modules/multiz/movement.dm +++ b/code/modules/multiz/movement.dm @@ -607,8 +607,8 @@ else if(prob(30) && combat_roll >= 1)//landed on their head apply_damage(limb_damage, DAMAGE_BRUTE, BP_HEAD) - visible_message("\The [src] falls and lands on their face!", - "With a loud thud, you land on your head. Hard.", "You hear a thud!") + visible_message(SPAN_WARNING("\The [src] falls and lands on their face!"), + SPAN_DANGER("With a loud thud, you land on your head. Hard."), "You hear a thud!") var/obj/item/organ/external/head = get_organ(BP_HEAD) if(prob(20) && head && head.dislocated != -1) diff --git a/code/modules/multiz/pipes.dm b/code/modules/multiz/pipes.dm index 5004bdd7fb0..4898212ff3d 100644 --- a/code/modules/multiz/pipes.dm +++ b/code/modules/multiz/pipes.dm @@ -85,7 +85,7 @@ else return 1 /obj/machinery/atmospherics/pipe/zpipe/proc/burst() - src.visible_message("\The [src] bursts!"); + src.visible_message(SPAN_WARNING("\The [src] bursts!")); playsound(src.loc, 'sound/effects/bang.ogg', 25, 1) var/datum/effect/effect/system/smoke_spread/smoke = new smoke.set_up(1,0, src.loc, 0) diff --git a/code/modules/multiz/structures.dm b/code/modules/multiz/structures.dm index 62c9f0e999a..ba788239cce 100644 --- a/code/modules/multiz/structures.dm +++ b/code/modules/multiz/structures.dm @@ -81,7 +81,7 @@ G = M.r_hand if(!M.Move(get_turf(src))) - to_chat(M, "You fail to reach \the [src].") + to_chat(M, SPAN_NOTICE("You fail to reach \the [src].")) return if (istype(G)) @@ -89,11 +89,11 @@ var/direction = target_ladder == target_up ? "up" : "down" - M.visible_message("\The [M] begins climbing [direction] \the [src]!", + M.visible_message(SPAN_NOTICE("\The [M] begins climbing [direction] \the [src]!"), "You begin climbing [direction] \the [src]!", "You hear the grunting and clanging of a metal ladder being used.") - target_ladder.audible_message("You hear something coming [direction] \the [src]") + target_ladder.audible_message(SPAN_NOTICE("You hear something coming [direction] \the [src]")) if(do_after(M, istype(G) ? (climb_time*2) : climb_time)) climbLadder(M, target_ladder) @@ -105,7 +105,7 @@ /obj/structure/ladder/proc/getTargetLadder(var/mob/M) if((!target_up && !target_down) || (target_up && !istype(target_up.loc, /turf) || (target_down && !istype(target_down.loc,/turf)))) - to_chat(M, "\The [src] is incomplete and can't be climbed.") + to_chat(M, SPAN_NOTICE("\The [src] is incomplete and can't be climbed.")) return if(target_down && target_up) var/direction = alert(M,"Do you want to go up or down?", "Ladder", "Up", "Down", "Cancel") @@ -126,23 +126,23 @@ /mob/proc/may_climb_ladders(var/ladder) if(!Adjacent(ladder)) - to_chat(src, "You need to be next to \the [ladder] to start climbing.") + to_chat(src, SPAN_WARNING("You need to be next to \the [ladder] to start climbing.")) return FALSE if(incapacitated()) - to_chat(src, "You are physically unable to climb \the [ladder].") + to_chat(src, SPAN_WARNING("You are physically unable to climb \the [ladder].")) return FALSE return TRUE /mob/living/silicon/may_climb_ladders(ladder) - to_chat(src, "You're too heavy to climb [ladder]!") + to_chat(src, SPAN_WARNING("You're too heavy to climb [ladder]!")) return FALSE /mob/living/silicon/robot/drone/may_climb_ladders(ladder) if(!Adjacent(ladder)) - to_chat(src, "You need to be next to \the [ladder] to start climbing.") + to_chat(src, SPAN_WARNING("You need to be next to \the [ladder] to start climbing.")) return FALSE if(incapacitated()) - to_chat(src, "You are physically unable to climb \the [ladder].") + to_chat(src, SPAN_WARNING("You are physically unable to climb \the [ladder].")) return FALSE return TRUE @@ -158,15 +158,15 @@ if(istype(target_ladder, target_down)) direction = DOWN if(!LAD.CanZPass(M, direction)) - to_chat(M, "\The [LAD.GetZPassBlocker()] is blocking \the [src].") + to_chat(M, SPAN_NOTICE("\The [LAD.GetZPassBlocker()] is blocking \the [src].")) return FALSE if(!T.CanZPass(M, direction)) - to_chat(M, "\The [T.GetZPassBlocker()] is blocking \the [src].") + to_chat(M, SPAN_NOTICE("\The [T.GetZPassBlocker()] is blocking \the [src].")) return FALSE for(var/atom/A in T) if(!isliving(A)) if(!A.CanPass(M, M.loc, 1.5, 0)) - to_chat(M, "\The [A] is blocking \the [src].") + to_chat(M, SPAN_NOTICE("\The [A] is blocking \the [src].")) return FALSE playsound(src, pick(climbsounds), climb_sound_vol, climb_sound_vary) playsound(target_ladder, pick(climbsounds), climb_sound_vol, climb_sound_vary) diff --git a/code/modules/multiz/turfs/open_space.dm b/code/modules/multiz/turfs/open_space.dm index 3515e229b03..3f1db9825e1 100644 --- a/code/modules/multiz/turfs/open_space.dm +++ b/code/modules/multiz/turfs/open_space.dm @@ -229,7 +229,7 @@ return var/obj/item/stack/rods/R = attacking_item if (R.use(1)) - to_chat(user, "You lay down the support lattice.") + to_chat(user, SPAN_NOTICE("You lay down the support lattice.")) playsound(src, 'sound/weapons/Genhit.ogg', 50, 1) new /obj/structure/lattice(locate(src.x, src.y, src.z)) return @@ -246,7 +246,7 @@ ChangeTurf(/turf/simulated/floor/airless) return else - to_chat(user, "The plating is going to need some support.") + to_chat(user, SPAN_WARNING("The plating is going to need some support.")) //To lay cable. if(attacking_item.iscoil()) diff --git a/code/modules/organs/blood.dm b/code/modules/organs/blood.dm index 0584733a6ef..afe0122c8c6 100644 --- a/code/modules/organs/blood.dm +++ b/code/modules/organs/blood.dm @@ -69,9 +69,9 @@ if(blinding) H.eye_blurry = max(H.eye_blurry, 10) H.eye_blind = max(H.eye_blind, 5) - to_chat(H, "You are blinded by a spray of blood!") + to_chat(H, SPAN_DANGER("You are blinded by a spray of blood!")) else - to_chat(H, "You are hit by a spray of blood!") + to_chat(H, SPAN_DANGER("You are hit by a spray of blood!")) hit_mob = TRUE if(!(A.CanPass(src, sprayloc)) || hit_mob) diff --git a/code/modules/organs/internal/brain.dm b/code/modules/organs/internal/brain.dm index d5eb6b111bb..6dc43db6bd3 100644 --- a/code/modules/organs/internal/brain.dm +++ b/code/modules/organs/internal/brain.dm @@ -168,22 +168,22 @@ if(damage > 0 && prob(1)) owner.custom_pain("Your head feels numb and painful.",10) if(is_bruised() && prob(1) && owner.eye_blurry <= 0) - to_chat(owner, "It becomes hard to see for some reason.") + to_chat(owner, SPAN_WARNING("It becomes hard to see for some reason.")) owner.eye_blurry = 10 if(damage >= 0.5*max_damage && prob(1) && owner.get_active_hand()) - to_chat(owner, "Your hand won't respond properly, and you drop what you are holding!") + to_chat(owner, SPAN_DANGER("Your hand won't respond properly, and you drop what you are holding!")) owner.drop_item() if(damage >= 0.6*max_damage) owner.stuttering = max(owner.slurring, 2) if(is_broken()) if(!owner.lying && prob(5)) - to_chat(owner, "You black out!") + to_chat(owner, SPAN_DANGER("You black out!")) owner.Paralyse(10) /obj/item/organ/internal/brain/surgical_fix(mob/user) var/blood_volume = owner.get_blood_oxygenation() if(blood_volume < BLOOD_VOLUME_BAD) - to_chat(user, "Parts of [src] didn't survive the procedure due to lack of air supply!") + to_chat(user, SPAN_DANGER("Parts of [src] didn't survive the procedure due to lack of air supply!")) set_max_damage(FLOOR(max_damage - 0.25*damage, 1)) heal_damage(damage) @@ -205,7 +205,7 @@ if(H.mind) H.mind.transfer_to(brainmob) - to_chat(brainmob, "You feel slightly disoriented. That's normal when you're just a [initial(src.name)].") + to_chat(brainmob, SPAN_NOTICE("You feel slightly disoriented. That's normal when you're just a [initial(src.name)].")) callHook("debrain", list(brainmob)) /obj/item/organ/internal/brain/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) diff --git a/code/modules/organs/internal/eyes.dm b/code/modules/organs/internal/eyes.dm index ab6c4d06710..6523cb6a4bd 100644 --- a/code/modules/organs/internal/eyes.dm +++ b/code/modules/organs/internal/eyes.dm @@ -35,13 +35,14 @@ var/b_eyes = hex2num(copytext(new_eyes, 6, 8)) if(do_after(owner, 0.5 SECONDS, do_flags = DO_USER_CAN_MOVE | DO_USER_CAN_TURN) && owner.change_eye_color(r_eyes, g_eyes, b_eyes)) owner.update_eyes() - owner.visible_message("[owner] shifts, their eye color changing.", "You shift, your eye color changing.") + owner.visible_message(SPAN_NOTICE("[owner] shifts, their eye color changing."), + SPAN_NOTICE("You shift, your eye color changing.")) /obj/item/organ/internal/eyes/take_damage(amount, var/silent=0) var/oldbroken = is_broken() . = ..() if(is_broken() && !oldbroken && owner && !owner.stat) - to_chat(owner, "You go blind!") + to_chat(owner, SPAN_DANGER("You go blind!")) /obj/item/organ/internal/eyes/flash_act(intensity = FLASH_PROTECTION_MODERATE, override_blindness_check = FALSE, affect_silicon = FALSE, ignore_inherent = FALSE, type = /obj/screen/fullscreen/flash, length = 2.5 SECONDS) var/burnthrough = intensity - owner.get_flash_protection(ignore_inherent) diff --git a/code/modules/organs/internal/heart.dm b/code/modules/organs/internal/heart.dm index 0daf7b31c12..55be8e0b6c2 100644 --- a/code/modules/organs/internal/heart.dm +++ b/code/modules/organs/internal/heart.dm @@ -69,7 +69,7 @@ should_stop = should_stop || (prob(5) && pulse == PULSE_THREADY) //erratic heart patterns, usually caused by oxyloss should_stop = should_stop || owner.chem_effects[CE_NOPULSE] if(should_stop) // The heart has stopped due to going into traumatic or cardiovascular shock. - to_chat(owner, "Your heart has stopped!") + to_chat(owner, SPAN_DANGER("Your heart has stopped!")) pulse = PULSE_NONE return @@ -172,8 +172,8 @@ blood_max *= 0.8 if(world.time >= next_blood_squirt && istype(owner.loc, /turf) && do_spray.len) - owner.visible_message("Blood squirts from \the [owner]'s [pick(do_spray)]!", \ - "Blood sprays out of your [pick(do_spray)]!") + owner.visible_message(SPAN_DANGER("Blood squirts from \the [owner]'s [pick(do_spray)]!"), \ + SPAN_DANGER("Blood sprays out of your [pick(do_spray)]!")) owner.eye_blurry = 2 owner.Stun(1) next_blood_squirt = world.time + 100 diff --git a/code/modules/organs/internal/lungs.dm b/code/modules/organs/internal/lungs.dm index 2f0e7e3512b..72763e5c91b 100644 --- a/code/modules/organs/internal/lungs.dm +++ b/code/modules/organs/internal/lungs.dm @@ -55,14 +55,14 @@ if(prob(2)) owner.visible_message( "\The [owner] coughs up blood!", - "You cough up blood!", + SPAN_WARNING("You cough up blood!"), "You hear someone coughing!", ) owner.drip(10) if(prob(4)) owner.visible_message( "\The [owner] gasps for air!", - "You can't breathe!", + SPAN_DANGER("You can't breathe!"), "You hear someone gasp for air!", ) owner.losebreath = max(round(damage / 2), owner.losebreath) @@ -207,7 +207,7 @@ if(exhaled_pp > safe_exhaled_max) if (!owner.co2_alert|| prob(15)) var/word = pick("extremely dizzy","short of breath","faint","confused") - to_chat(owner, "You feel [word].") + to_chat(owner, SPAN_DANGER("You feel [word].")) owner.co2_alert = 1 failed_exhale = 1 @@ -215,7 +215,7 @@ else if(exhaled_pp > safe_exhaled_max * 0.7) if (!owner.co2_alert || prob(1)) var/word = pick("dizzy","short of breath","faint","momentarily confused") - to_chat(owner, "You feel [word].") + to_chat(owner, SPAN_WARNING("You feel [word].")) owner.co2_alert = 1 failed_exhale = 1 @@ -223,7 +223,7 @@ else if(exhaled_pp > safe_exhaled_max * 0.6) if (prob(0.3)) var/word = pick("a little dizzy","short of breath") - to_chat(owner, "You feel [word].") + to_chat(owner, SPAN_WARNING("You feel [word].")) else owner.co2_alert = 0 @@ -290,10 +290,10 @@ if(breath.temperature <= owner.species.cold_level_1) if(prob(20)) - to_chat(owner, "You feel your face freezing and icicles forming in your lungs!") + to_chat(owner, SPAN_DANGER("You feel your face freezing and icicles forming in your lungs!")) else if(breath.temperature >= owner.species.heat_level_1) if(prob(20)) - to_chat(owner, "You feel your face burning and a searing heat in your lungs!") + to_chat(owner, SPAN_DANGER("You feel your face burning and a searing heat in your lungs!")) if(breath.temperature >= owner.species.heat_level_1) if(breath.temperature < owner.species.heat_level_2) diff --git a/code/modules/organs/organ.dm b/code/modules/organs/organ.dm index ea871dc2c45..8bcdb3e4086 100644 --- a/code/modules/organs/organ.dm +++ b/code/modules/organs/organ.dm @@ -211,7 +211,7 @@ INITIALIZE_IMMEDIATE(/obj/item/organ) /obj/item/organ/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() if(status & ORGAN_DEAD) - . += "The decay has set in." + . += SPAN_NOTICE("The decay has set in.") /obj/item/organ/proc/handle_germ_effects() //** Handle the effects of infections @@ -480,7 +480,7 @@ INITIALIZE_IMMEDIATE(/obj/item/organ) return ..() if(alert("Do you really want to use this organ as food? It will be useless for anything else afterwards.",,"No.","Yes.") == "No.") - to_chat(user, "You successfully repress your cannibalistic tendencies.") + to_chat(user, SPAN_NOTICE("You successfully repress your cannibalistic tendencies.")) return user.drop_from_inventory(src) diff --git a/code/modules/organs/organ_external.dm b/code/modules/organs/organ_external.dm index bacfd922ff0..cfa510d4eaa 100644 --- a/code/modules/organs/organ_external.dm +++ b/code/modules/organs/organ_external.dm @@ -112,7 +112,7 @@ var/list/tendon_msgs = list("tore apart", "ripped away") - var/damage_msg = "You feel an intense pain!" + var/damage_msg = SPAN_WARNING("You feel an intense pain!") var/broken_description var/open = 0 var/stage = 0 @@ -234,7 +234,7 @@ if(istype(I)) if(!(user.l_hand && user.r_hand)) user.put_in_hands(I) - user.visible_message("\The [user] rips \the [I] out of \the [src]!") + user.visible_message(SPAN_DANGER("\The [user] rips \the [I] out of \the [src]!")) return //no eating the limb until everything's been removed return ..() @@ -244,18 +244,18 @@ for(var/obj/item/I in contents) if(istype(I, /obj/item/organ)) continue - . += "There is \a [I] sticking out of it." + . += SPAN_DANGER("There is \a [I] sticking out of it.") /obj/item/organ/external/attackby(obj/item/attacking_item, mob/user) switch(stage) if(0) if(istype(attacking_item, /obj/item/surgery/scalpel)) - user.visible_message("[user] cuts [src] open with [attacking_item]!") + user.visible_message(SPAN_DANGER("[user] cuts [src] open with [attacking_item]!")) stage++ return if(1) if(istype(attacking_item, /obj/item/surgery/retractor)) - user.visible_message("[user] cracks [src] open like an egg with [attacking_item]!") + user.visible_message(SPAN_DANGER("[user] cracks [src] open like an egg with [attacking_item]!")) stage++ return if(2) @@ -265,9 +265,9 @@ removing.forceMove(get_turf(user.loc)) if(!(user.l_hand && user.r_hand)) user.put_in_hands(removing) - user.visible_message("[user] extracts [removing] from [src] with [attacking_item]!") + user.visible_message(SPAN_DANGER("[user] extracts [removing] from [src] with [attacking_item]!")) else - user.visible_message("[user] fishes around fruitlessly in [src] with [attacking_item].") + user.visible_message(SPAN_DANGER("[user] fishes around fruitlessly in [src] with [attacking_item].")) return ..() @@ -628,12 +628,12 @@ This function completely restores a damaged organ to perfect condition. W.open_wound(damage) if(prob(25)) if(status & ORGAN_ROBOT) - owner.visible_message("The damage to [owner.name]'s [name] worsens.",\ - "The damage to your [name] worsens.",\ + owner.visible_message(SPAN_WARNING("The damage to [owner.name]'s [name] worsens."),\ + SPAN_WARNING("The damage to your [name] worsens."),\ "You hear the screech of abused metal.") else - owner.visible_message("The wound on [owner.name]'s [name] widens with a nasty ripping noise.",\ - "The wound on your [name] widens with a nasty ripping noise.",\ + owner.visible_message(SPAN_WARNING("The wound on [owner.name]'s [name] widens with a nasty ripping noise."),\ + SPAN_WARNING("The wound on your [name] widens with a nasty ripping noise."),\ "You hear a nasty ripping noise, as if flesh is being torn apart.") return @@ -862,7 +862,7 @@ Note that amputating the affected organ does in fact remove the infection from t if(germ_level >= INFECTION_LEVEL_THREE && antibiotics < 20) //overdosing is necessary to stop severe infections if (!(status & ORGAN_DEAD)) status |= ORGAN_DEAD - to_chat(owner, "You can't feel your [name] anymore...") + to_chat(owner, SPAN_NOTICE("You can't feel your [name] anymore...")) owner.update_body(1) germ_level++ @@ -1009,22 +1009,22 @@ Note that amputating the affected organ does in fact remove the infection from t if(!clean) var/gore_sound = "[(status & ORGAN_ROBOT) ? "tortured metal" : "ripping tendons and flesh"]" owner.visible_message( - "\The [owner]'s [src.name] flies off in an arc!",\ + SPAN_DANGER("\The [owner]'s [src.name] flies off in an arc!"),\ "Your [src.name] goes flying off!",\ - "You hear the terrible sound of [gore_sound].") + SPAN_DANGER("You hear the terrible sound of [gore_sound].")) if(DROPLIMB_BURN) var/gore = "[(status & ORGAN_ROBOT) ? "": " of burning flesh"]" owner.visible_message( - "\The [owner]'s [src.name] flashes away into ashes!",\ + SPAN_DANGER("\The [owner]'s [src.name] flashes away into ashes!"),\ "Your [src.name] flashes away into ashes!",\ - "You hear the crackling sound[gore].") + SPAN_DANGER("You hear the crackling sound[gore].")) if(DROPLIMB_BLUNT) var/gore = "[(status & ORGAN_ROBOT) ? "": " in a shower of gore"]" var/gore_sound = "[(status & ORGAN_ROBOT) ? "rending sound of tortured metal" : "sickening splatter of gore"]" owner.visible_message( - "\The [owner]'s [src.name] explodes[gore]!",\ + SPAN_DANGER("\The [owner]'s [src.name] explodes[gore]!"),\ "Your [src.name] explodes[gore]!",\ - "You hear the [gore_sound].") + SPAN_DANGER("You hear the [gore_sound].")) var/mob/living/carbon/human/victim = owner //Keep a reference for post-removed(). var/obj/item/organ/external/parent_organ = parent @@ -1180,8 +1180,8 @@ Note that amputating the affected organ does in fact remove the infection from t var/message = pick("broke in half", "shattered") owner.visible_message(\ - "You hear a loud cracking sound coming from \the [owner]!",\ - "Something feels like it [message] in your [name]!",\ + SPAN_WARNING("You hear a loud cracking sound coming from \the [owner]!"),\ + SPAN_DANGER("Something feels like it [message] in your [name]!"),\ "You hear a sickening crack!") if(owner.species && owner.can_feel_pain()) owner.emote("scream") @@ -1312,9 +1312,11 @@ Note that amputating the affected organ does in fact remove the infection from t return if(!silent) if(supplied_message) - owner.visible_message("[supplied_message]") + owner.visible_message(SPAN_DANGER("[supplied_message]")) else - owner.visible_message("\The [W] sticks in [owner]'s wound!", "\The [W] sticks in your wound!") + owner.visible_message(SPAN_DANGER("\The [W] sticks in [owner]'s wound!"), + SPAN_DANGER("\The [W] sticks in your wound!")) + implants += W owner.embedded_flag = 1 add_verb(owner, /mob/proc/yank_out_object) @@ -1370,9 +1372,9 @@ Note that amputating the affected organ does in fact remove the infection from t //Robotic limbs explode if sabotaged. if(is_robotic && sabotaged) victim.visible_message( - "\The [victim]'s [src.name] explodes violently!",\ - "Your [src.name] explodes!",\ - "You hear an explosion!") + SPAN_DANGER("\The [victim]'s [src.name] explodes violently!"),\ + SPAN_DANGER("Your [src.name] explodes!"),\ + SPAN_DANGER("You hear an explosion!")) explosion(get_turf(owner),-1,-1,2,3) spark(victim, 5) qdel(src) @@ -1382,13 +1384,13 @@ Note that amputating the affected organ does in fact remove the infection from t return if(owner) if(type == "brute") - owner.visible_message("You hear a sickening cracking sound coming from \the [owner]'s [name].", \ - "Your [name] becomes a mangled mess!", \ - "You hear a sickening crack.") + owner.visible_message(SPAN_WARNING("You hear a sickening cracking sound coming from \the [owner]'s [name]."), \ + SPAN_DANGER("Your [name] becomes a mangled mess!"), \ + SPAN_WARNING("You hear a sickening crack.")) else - owner.visible_message("\The [owner]'s [name] melts away, turning into a mangled mess!", \ - "Your [name] melts away!", \ - "You hear a sickening sizzle.") + owner.visible_message(SPAN_WARNING("\The [owner]'s [name] melts away, turning into a mangled mess!"), \ + SPAN_DANGER("Your [name] melts away!"), \ + SPAN_WARNING("You hear a sickening sizzle.")) disfigured = 1 /obj/item/organ/external/proc/get_wounds_desc() diff --git a/code/modules/organs/pain.dm b/code/modules/organs/pain.dm index 4ad30a42d7d..84425782a51 100644 --- a/code/modules/organs/pain.dm +++ b/code/modules/organs/pain.dm @@ -29,15 +29,15 @@ last_pain_message = message if(power >= 110) flash_strong_pain() - to_chat(src, "[message]") + to_chat(src, SPAN_DANGER("[message]")) else if(power >= 70) - to_chat(src, "[message]") + to_chat(src, SPAN_DANGER("[message]")) else if(power >= 40) - to_chat(src, "[message]") + to_chat(src, SPAN_DANGER("[message]")) else if(power >= 10) - to_chat(src, "[message]") + to_chat(src, SPAN_DANGER("[message]")) else - to_chat(src, "[message]") + to_chat(src, SPAN_WARNING("[message]")) var/force_emote = species.get_pain_emote(src, power) if(force_emote && prob(power)) diff --git a/code/modules/organs/subtypes/autakh.dm b/code/modules/organs/subtypes/autakh.dm index bb6ff34053c..ce09b9e2896 100644 --- a/code/modules/organs/subtypes/autakh.dm +++ b/code/modules/organs/subtypes/autakh.dm @@ -271,19 +271,19 @@ if(.) if(owner.last_special > world.time) - to_chat(owner, "\The [src] is still recharging!") + to_chat(owner, SPAN_DANGER("\The [src] is still recharging!")) return if(owner.stat || owner.paralysis || owner.stunned || owner.weakened) - to_chat(owner, "You can not use \the [src] in your current state!") + to_chat(owner, SPAN_DANGER("You can not use \the [src] in your current state!")) return if(owner.get_active_hand()) - to_chat(owner, "You must empty your active hand before enabling your [src]!") + to_chat(owner, SPAN_DANGER("You must empty your active hand before enabling your [src]!")) return if(is_broken()) - to_chat(owner, "\The [src] is too damaged to be used!") + to_chat(owner, SPAN_DANGER("\The [src] is too damaged to be used!")) return if(is_bruised()) @@ -292,7 +292,8 @@ owner.last_special = world.time + 100 var/obj/item/M = new augment_type(owner) owner.put_in_active_hand(M) - owner.visible_message("\The [M] slides out of \the [owner]'s [src].","You deploy \the [M]!") + owner.visible_message(SPAN_NOTICE("\The [M] slides out of \the [owner]'s [src]."), + SPAN_NOTICE("You deploy \the [M]!")) /obj/item/combitool/robotic name = "robotic combitool" @@ -358,15 +359,15 @@ if(.) if(owner.last_special > world.time) - to_chat(owner, "\The [src] is still recharging!") + to_chat(owner, SPAN_DANGER("\The [src] is still recharging!")) return if(owner.stat || owner.paralysis || owner.stunned || owner.weakened) - to_chat(owner, "You can not use \the [src] in your current state!") + to_chat(owner, SPAN_DANGER("You can not use \the [src] in your current state!")) return if(is_broken()) - to_chat(owner, "\The [src] is too damaged to be used!") + to_chat(owner, SPAN_DANGER("\The [src] is too damaged to be used!")) return if(is_bruised()) @@ -374,7 +375,7 @@ var/obj/item/grab/G = owner.get_active_hand() if(!istype(G)) - to_chat(owner, "You must grab someone before trying to analyze their health!") + to_chat(owner, SPAN_DANGER("You must grab someone before trying to analyze their health!")) return owner.last_special = world.time + 50 @@ -399,15 +400,15 @@ if(.) if(owner.last_special > world.time) - to_chat(owner, "\The [src] is still recharging!") + to_chat(owner, SPAN_DANGER("\The [src] is still recharging!")) return if(owner.stat || owner.paralysis || owner.stunned || owner.weakened) - to_chat(owner, "You can not use \the [src] in your current state!") + to_chat(owner, SPAN_DANGER("You can not use \the [src] in your current state!")) return if(is_broken()) - to_chat(owner, "\The [src] is too damaged to be used!") + to_chat(owner, SPAN_DANGER("\The [src] is too damaged to be used!")) return if(is_bruised()) @@ -415,11 +416,11 @@ var/obj/item/grab/G = owner.get_active_hand() if(!istype(G)) - to_chat(owner, "You must grab someone before trying to use your [src]!") + to_chat(owner, SPAN_DANGER("You must grab someone before trying to use your [src]!")) return if(owner.nutrition <= 200) - to_chat(owner, "Your energy reserves are too low to use your [src]!") + to_chat(owner, SPAN_DANGER("Your energy reserves are too low to use your [src]!")) return if(ishuman(G.affecting)) @@ -435,7 +436,7 @@ else H.stun_effect_act(0, 50, target_zone, owner) - owner.visible_message("[H] has been prodded with [src] by [owner]!") + owner.visible_message(SPAN_DANGER("[H] has been prodded with [src] by [owner]!")) playsound(get_turf(owner), 'sound/weapons/Egloves.ogg', 50, 1, -1) /obj/item/organ/external/hand/right/autakh/tool/nullrod diff --git a/code/modules/organs/subtypes/parasite/zombie.dm b/code/modules/organs/subtypes/parasite/zombie.dm index b7ecbc21ea9..1dcc18565aa 100644 --- a/code/modules/organs/subtypes/parasite/zombie.dm +++ b/code/modules/organs/subtypes/parasite/zombie.dm @@ -123,7 +123,7 @@ break if(prob(10) && (owner.can_feel_pain())) - to_chat(owner, "You feel a burning sensation on your skin!") + to_chat(owner, SPAN_WARNING("You feel a burning sensation on your skin!")) owner.make_jittery(10) /obj/item/organ/internal/parasite/zombie/process_stage() diff --git a/code/modules/organs/subtypes/vaurca.dm b/code/modules/organs/subtypes/vaurca.dm index 29268b44065..d6b39d80ba2 100644 --- a/code/modules/organs/subtypes/vaurca.dm +++ b/code/modules/organs/subtypes/vaurca.dm @@ -107,11 +107,11 @@ if (is_broken()) if (GLOB.all_languages[LANGUAGE_VAURCA] in owner.languages) owner.remove_language(LANGUAGE_VAURCA) - to_chat(owner, "Your mind suddenly grows dark as the unity of the Hive is torn from you.") + to_chat(owner, SPAN_WARNING("Your mind suddenly grows dark as the unity of the Hive is torn from you.")) else if (!(GLOB.all_languages[LANGUAGE_VAURCA] in owner.languages) && !banned) owner.add_language(LANGUAGE_VAURCA) - to_chat(owner, " Your mind expands, and your thoughts join the unity of the Hivenet.") + to_chat(owner, SPAN_NOTICE(" Your mind expands, and your thoughts join the unity of the Hivenet.")) if(disrupted) if(disrupttime > world.time) disrupttime-- @@ -123,14 +123,14 @@ owner = target if (!(GLOB.all_languages[LANGUAGE_VAURCA] in owner.languages) && !banned) owner.add_language(LANGUAGE_VAURCA) - to_chat(owner, " Your mind expands, and your thoughts join the unity of the Hivenet.") + to_chat(owner, SPAN_NOTICE(" Your mind expands, and your thoughts join the unity of the Hivenet.")) add_verb(owner, granted_verbs) ..() /obj/item/organ/internal/vaurca/neuralsocket/removed(var/mob/living/carbon/human/target) if(GLOB.all_languages[LANGUAGE_VAURCA] in target.languages) target.remove_language(LANGUAGE_VAURCA) - to_chat(target, "Your mind suddenly grows dark as the unity of the Hive is torn from you.") + to_chat(target, SPAN_WARNING("Your mind suddenly grows dark as the unity of the Hive is torn from you.")) remove_verb(owner, all_hive_verbs) ..() @@ -355,27 +355,27 @@ descriptive = "room temperature" else descriptive = "cold" - . += "\The [src] feels [descriptive]." + . += SPAN_NOTICE("\The [src] feels [descriptive].") /obj/item/organ/internal/vaurca/preserve/attackby(obj/item/attacking_item, mob/user) ..() var/obj/icon = src if ((istype(attacking_item, /obj/item/device/analyzer)) && get_dist(user, src) <= 1) - user.visible_message("[user] has used [attacking_item] on [icon2html(icon, viewers(get_turf(user)))] [src].") + user.visible_message(SPAN_WARNING("[user] has used [attacking_item] on [icon2html(icon, viewers(get_turf(user)))] [src].")) var/pressure = air_contents.return_pressure() manipulated_by = user.real_name //This person is aware of the contents of the tank. var/total_moles = air_contents.total_moles - to_chat(user, "Results of analysis of [icon2html(icon, user)]") + to_chat(user, SPAN_NOTICE("Results of analysis of [icon2html(icon, user)]")) if (total_moles>0) - to_chat(user, "Pressure: [round(pressure,0.1)] kPa") + to_chat(user, SPAN_NOTICE("Pressure: [round(pressure,0.1)] kPa")) for(var/g in air_contents.gas) - to_chat(user, "[gas_data.name[g]]: [(round(air_contents.gas[g] / total_moles) * 100)]%") - to_chat(user, "Temperature: [round(air_contents.temperature-T0C)]°C") + to_chat(user, SPAN_NOTICE("[gas_data.name[g]]: [(round(air_contents.gas[g] / total_moles) * 100)]%")) + to_chat(user, SPAN_NOTICE("Temperature: [round(air_contents.temperature-T0C)]°C")) else - to_chat(user, "Tank is empty!") + to_chat(user, SPAN_NOTICE("Tank is empty!")) src.add_fingerprint(user) else if (istype(attacking_item, /obj/item/toy/balloon)) var/obj/item/toy/balloon/B = attacking_item @@ -461,7 +461,7 @@ if(location.internal == src) location.internal = null location.internals.icon_state = "internal0" - to_chat(usr, "You close the tank release valve.") + to_chat(usr, SPAN_NOTICE("You close the tank release valve.")) if (location.internals) location.internals.icon_state = "internal0" else @@ -476,11 +476,11 @@ if(can_open_valve) location.internal = src - to_chat(usr, "You open \the [src] valve.") + to_chat(usr, SPAN_NOTICE("You open \the [src] valve.")) if (location.internals) location.internals.icon_state = "internal1" else - to_chat(usr, "You need something to connect to \the [src].") + to_chat(usr, SPAN_NOTICE("You need something to connect to \the [src].")) src.add_fingerprint(usr) return 1 @@ -504,7 +504,7 @@ var/tank_pressure = air_contents.return_pressure() if((tank_pressure < distribute_pressure) && prob(5)) - to_chat(owner, "There is a buzzing in your [parent_organ].") + to_chat(owner, SPAN_WARNING("There is a buzzing in your [parent_organ].")) var/moles_needed = distribute_pressure*volume_to_return/(R_IDEAL_GAS_EQUATION*air_contents.temperature) @@ -622,15 +622,15 @@ if(.) if(owner.last_special > world.time) - to_chat(owner, "\The [src] is still recharging!") + to_chat(owner, SPAN_DANGER("\The [src] is still recharging!")) return if(owner.stat || owner.paralysis || owner.stunned || owner.weakened) - to_chat(owner, "You can not use \the [src] in your current state!") + to_chat(owner, SPAN_DANGER("You can not use \the [src] in your current state!")) return if(is_broken()) - to_chat(owner, "\The [src] is too damaged to be used!") + to_chat(owner, SPAN_DANGER("\The [src] is too damaged to be used!")) return if(is_bruised()) @@ -638,11 +638,11 @@ var/obj/item/grab/G = owner.get_active_hand() if(!istype(G)) - to_chat(owner, "You must grab someone before trying to use your [src]!") + to_chat(owner, SPAN_DANGER("You must grab someone before trying to use your [src]!")) return if(owner.nutrition <= 150) //slightly more energy-efficient than aut'akh bc bugs are better at augments - to_chat(owner, "Your energy reserves are too low to use your [src]!") + to_chat(owner, SPAN_DANGER("Your energy reserves are too low to use your [src]!")) return if(ishuman(G.affecting)) @@ -658,7 +658,7 @@ else H.stun_effect_act(0, 50, target_zone, owner) - owner.visible_message("[H] has been prodded with [src] by [owner]!") + owner.visible_message(SPAN_DANGER("[H] has been prodded with [src] by [owner]!")) playsound(get_turf(owner), 'sound/weapons/Egloves.ogg', 50, 1, -1) /obj/item/organ/external/hand/right/vaurca/medical @@ -681,15 +681,15 @@ if(.) if(owner.last_special > world.time) - to_chat(owner, "\The [src] is still recharging!") + to_chat(owner, SPAN_DANGER("\The [src] is still recharging!")) return if(owner.stat || owner.paralysis || owner.stunned || owner.weakened) - to_chat(owner, "You can not use \the [src] in your current state!") + to_chat(owner, SPAN_DANGER("You can not use \the [src] in your current state!")) return if(is_broken()) - to_chat(owner, "\The [src] is too damaged to be used!") + to_chat(owner, SPAN_DANGER("\The [src] is too damaged to be used!")) return if(is_bruised()) @@ -697,7 +697,7 @@ var/obj/item/grab/G = owner.get_active_hand() if(!istype(G)) - to_chat(owner, "You must grab someone before trying to analyze their health!") + to_chat(owner, SPAN_DANGER("You must grab someone before trying to analyze their health!")) return owner.last_special = world.time + 50 diff --git a/code/modules/overmap/exoplanets/decor/_turfs.dm b/code/modules/overmap/exoplanets/decor/_turfs.dm index 0ea26782ed3..72519c34642 100644 --- a/code/modules/overmap/exoplanets/decor/_turfs.dm +++ b/code/modules/overmap/exoplanets/decor/_turfs.dm @@ -36,13 +36,13 @@ /turf/simulated/floor/exoplanet/attackby(obj/item/attacking_item, mob/user) if(diggable && istype(attacking_item, /obj/item/shovel)) - visible_message("\The [user] starts digging \the [src]") + visible_message(SPAN_NOTICE("\The [user] starts digging \the [src]")) if(attacking_item.use_tool(src, user, 50, volume = 50)) - to_chat(user,"You dig a deep pit.") + to_chat(user,SPAN_NOTICE("You dig a deep pit.")) new /obj/structure/pit(src) diggable = 0 else - to_chat(user,"You stop shoveling.") + to_chat(user,SPAN_NOTICE("You stop shoveling.")) else if(istype(attacking_item, /obj/item/stack/tile)) var/obj/item/stack/tile/T = attacking_item if(T.use(1)) diff --git a/code/modules/overmap/exoplanets/decor/flora/konyang.dm b/code/modules/overmap/exoplanets/decor/flora/konyang.dm index 85cccbb930c..4fabb9c12fe 100644 --- a/code/modules/overmap/exoplanets/decor/flora/konyang.dm +++ b/code/modules/overmap/exoplanets/decor/flora/konyang.dm @@ -113,7 +113,7 @@ /obj/structure/flora/bush/konyang_reeds/Crossed(atom/movable/AM, atom/oldloc) if(istype(AM, /mob/living)) var/mob/living/L = AM - to_chat(L, "You brush through \the [src] really quite loudly.") + to_chat(L, SPAN_NOTICE("You brush through \the [src] really quite loudly.")) playsound(loc, 'sound/effects/plantshake.ogg', 60, TRUE) shake_animation() ..() diff --git a/code/modules/overmap/exoplanets/decor/flora/potted_big.dm b/code/modules/overmap/exoplanets/decor/flora/potted_big.dm index 41dff8e762f..ed5d9d915f2 100644 --- a/code/modules/overmap/exoplanets/decor/flora/potted_big.dm +++ b/code/modules/overmap/exoplanets/decor/flora/potted_big.dm @@ -40,13 +40,13 @@ if(attacking_item.w_class <= ITEMSIZE_NORMAL) user.drop_from_inventory(attacking_item, src) stored_item = attacking_item - to_chat(user,"You hide \the [attacking_item] in [src].") + to_chat(user,SPAN_NOTICE("You hide \the [attacking_item] in [src].")) return else - to_chat(user,"\The [attacking_item] can't be hidden in [src], it's too big.") + to_chat(user,SPAN_NOTICE("\The [attacking_item] can't be hidden in [src], it's too big.")) return else - to_chat(user,"There is something hidden in [src].") + to_chat(user,SPAN_NOTICE("There is something hidden in [src].")) return return ..() @@ -55,14 +55,14 @@ playsound(loc, 'sound/effects/plantshake.ogg', 50, 1) if(do_after(user, 40, src)) if(!stored_item) - to_chat(user,"There is nothing hidden in [src].") + to_chat(user,SPAN_NOTICE("There is nothing hidden in [src].")) else if(istype(stored_item, /obj/item/device/paicard)) stored_item.forceMove(src.loc) - to_chat(user,"You reveal \the [stored_item] from [src].") + to_chat(user,SPAN_NOTICE("You reveal \the [stored_item] from [src].")) else user.put_in_hands(stored_item) - to_chat(user,"You take \the [stored_item] from [src].") + to_chat(user,SPAN_NOTICE("You take \the [stored_item] from [src].")) stored_item = null /obj/structure/flora/pottedplant/bullet_act(var/obj/item/projectile/Proj) diff --git a/code/modules/overmap/exoplanets/decor/objs/pit.dm b/code/modules/overmap/exoplanets/decor/objs/pit.dm index 91478c222b6..063de14e915 100644 --- a/code/modules/overmap/exoplanets/decor/objs/pit.dm +++ b/code/modules/overmap/exoplanets/decor/objs/pit.dm @@ -10,28 +10,28 @@ /obj/structure/pit/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/shovel)) - visible_message("\The [user] starts [open ? "filling" : "digging open"] \the [src]") + visible_message(SPAN_NOTICE("\The [user] starts [open ? "filling" : "digging open"] \the [src]")) if(attacking_item.use_tool(src, user, 50, volume = 50)) - visible_message("\The [user] [open ? "fills" : "digs open"] \the [src]!") + visible_message(SPAN_NOTICE("\The [user] [open ? "fills" : "digs open"] \the [src]!")) if(open) close(user) else open() else - to_chat(user, "You stop shoveling.") + to_chat(user, SPAN_NOTICE("You stop shoveling.")) return if (!open && istype(attacking_item, /obj/item/stack/material/wood)) if(locate(/obj/structure/gravemarker) in src.loc) - to_chat(user, "There's already a grave marker here.") + to_chat(user, SPAN_NOTICE("There's already a grave marker here.")) else - visible_message("\The [user] starts making a grave marker on top of \the [src]") + visible_message(SPAN_NOTICE("\The [user] starts making a grave marker on top of \the [src]")) if( do_after(user, 50) ) - visible_message("\The [user] finishes the grave marker") + visible_message(SPAN_NOTICE("\The [user] finishes the grave marker")) var/obj/item/stack/material/wood/plank = attacking_item plank.use(1) new/obj/structure/gravemarker(src.loc) else - to_chat(user, "You stop making a grave marker.") + to_chat(user, SPAN_NOTICE("You stop making a grave marker.")) return ..() @@ -73,23 +73,23 @@ return escapee.setClickCooldown(100) - to_chat(escapee, "You start digging your way out of \the [src] (this will take about [breakout_time] minute\s)") - visible_message("Something is scratching its way out of \the [src]!") + to_chat(escapee, SPAN_WARNING("You start digging your way out of \the [src] (this will take about [breakout_time] minute\s)")) + visible_message(SPAN_DANGER("Something is scratching its way out of \the [src]!")) for(var/i in 1 to (6*breakout_time * 2)) //minutes * 6 * 5seconds * 2 playsound(src.loc, 'sound/weapons/bite.ogg', 100, 1) if(!do_after(escapee, 50)) - to_chat(escapee, "You have stopped digging.") + to_chat(escapee, SPAN_WARNING("You have stopped digging.")) return if(open) return if(i == 6*breakout_time) - to_chat(escapee, "Halfway there...") + to_chat(escapee, SPAN_WARNING("Halfway there...")) - to_chat(escapee, "You successfuly dig yourself out!") - visible_message("\the [escapee] emerges from \the [src]!") + to_chat(escapee, SPAN_WARNING("You successfuly dig yourself out!")) + visible_message(SPAN_DANGER("\the [escapee] emerges from \the [src]!")) playsound(src.loc, 'sound/effects/squelch1.ogg', 100, 1) open() diff --git a/code/modules/overmap/ship_weaponry/_ship_ammunition.dm b/code/modules/overmap/ship_weaponry/_ship_ammunition.dm index 27fff80feb6..6d4d9ed1717 100644 --- a/code/modules/overmap/ship_weaponry/_ship_ammunition.dm +++ b/code/modules/overmap/ship_weaponry/_ship_ammunition.dm @@ -153,7 +153,7 @@ return TRUE /obj/item/ship_ammunition/proc/get_additional_info() - . += "[name_override ? name_override : name]
" + . += SPAN_DANGER("[name_override ? name_override : name]
") . += "[desc]
" . += "Caliber: [caliber]
" . += "Ammunition Type: [capitalize_first_letters(impact_type)]
" diff --git a/code/modules/overmap/ship_weaponry/_ship_gun.dm b/code/modules/overmap/ship_weaponry/_ship_gun.dm index 749f20438bc..658c280376f 100644 --- a/code/modules/overmap/ship_weaponry/_ship_gun.dm +++ b/code/modules/overmap/ship_weaponry/_ship_gun.dm @@ -79,12 +79,12 @@ if(20 to 40) . = "It has a few holes through which you can see some machinery." if(40 to 60) - . = "Some fairly important parts are missing... but it should work anyway." + . = SPAN_WARNING("Some fairly important parts are missing... but it should work anyway.") if(60 to 80) - . = "It needs repairs direly. Both aiming and firing components are missing or broken. It has a lot of holes, too. It definitely wouldn't \ - pass inspection." + . = SPAN_DANGER("It needs repairs direly. Both aiming and firing components are missing or broken. It has a lot of holes, too. It definitely wouldn't \ + pass inspection.") if(90 to 100) - . = "It's falling apart! Just touching it might make the whole thing collapse!" + . = SPAN_DANGER("It's falling apart! Just touching it might make the whole thing collapse!") else //At roundstart, weapons start with 0 damage, so it'd be 0 / 1000 * 100 -> 0 return "It looks to be in tip top shape and not damaged at all." diff --git a/code/modules/overmap/ships/computers/helm.dm b/code/modules/overmap/ships/computers/helm.dm index 1affe7991a1..3d0ad429a14 100644 --- a/code/modules/overmap/ships/computers/helm.dm +++ b/code/modules/overmap/ships/computers/helm.dm @@ -202,7 +202,7 @@ sec_name = "Sector #[known_sectors.len]" R.fields["name"] = sec_name if(sec_name in known_sectors) - to_chat(usr, "Sector with that name already exists, please input a different name.") + to_chat(usr, SPAN_WARNING("Sector with that name already exists, please input a different name.")) return TRUE switch(params["add"]) if("current") diff --git a/code/modules/overmap/ships/computers/sensors.dm b/code/modules/overmap/ships/computers/sensors.dm index 9d357f217c4..374b50008b1 100644 --- a/code/modules/overmap/ships/computers/sensors.dm +++ b/code/modules/overmap/ships/computers/sensors.dm @@ -443,13 +443,13 @@ return if(WT.use(0,user)) - to_chat(user, "You start repairing the damage to [src].") + to_chat(user, SPAN_NOTICE("You start repairing the damage to [src].")) playsound(src, 'sound/items/Welder.ogg', 100, 1) if(WT.use_tool(src, user, max(5, damage / 5), volume = 50) && WT && WT.isOn()) - to_chat(user, "You finish repairing the damage to [src].") + to_chat(user, SPAN_NOTICE("You finish repairing the damage to [src].")) take_damage(-damage) else - to_chat(user, "You need more welding fuel to complete this task.") + to_chat(user, SPAN_NOTICE("You need more welding fuel to complete this task.")) return return ..() @@ -497,9 +497,9 @@ if(health <= 0) . += "\The [src] is wrecked." else if(health < max_health * 0.25) - . += "\The [src] looks like it's about to break!" + . += SPAN_DANGER("\The [src] looks like it's about to break!") else if(health < max_health * 0.5) - . += "\The [src] looks seriously damaged!" + . += SPAN_DANGER("\The [src] looks seriously damaged!") else if(health < max_health * 0.75) . += "\The [src] shows signs of damage!" @@ -529,7 +529,7 @@ if(desired_range-range <= -max_range/2) set_range(range-1) // if working hard, spool down faster too if(heat > critical_heat) - src.visible_message("\The [src] violently spews out sparks!") + src.visible_message(SPAN_DANGER("\The [src] violently spews out sparks!")) spark(src, 3, GLOB.alldirs) take_damage(rand(10,50)) toggle() diff --git a/code/modules/overmap/ships/engines/gas_thruster.dm b/code/modules/overmap/ships/engines/gas_thruster.dm index 6861b501921..ed9aefa4b17 100644 --- a/code/modules/overmap/ships/engines/gas_thruster.dm +++ b/code/modules/overmap/ships/engines/gas_thruster.dm @@ -212,7 +212,7 @@ if(!is_on()) return 0 if(!check_fuel() || (0 < use_power_oneoff(charge_per_burn)) || check_blockage()) - audible_message(src,"[src] coughs once and goes silent!") + audible_message(src,SPAN_WARNING("[src] coughs once and goes silent!")) update_use_power(POWER_USE_OFF) return 0 diff --git a/code/modules/paperwork/carbonpaper.dm b/code/modules/paperwork/carbonpaper.dm index f695c364801..af5f8f540b6 100644 --- a/code/modules/paperwork/carbonpaper.dm +++ b/code/modules/paperwork/carbonpaper.dm @@ -42,7 +42,7 @@ copy.name = "Copy - " + c.name copy.fields = c.fields copy.updateinfolinks() - to_chat(usr, "You tear off the carbon-copy!") + to_chat(usr, SPAN_NOTICE("You tear off the carbon-copy!")) c.copied = TRUE copy.iscopy = TRUE copy.copied = TRUE // no more infinite copy chains diff --git a/code/modules/paperwork/clipboard.dm b/code/modules/paperwork/clipboard.dm index 5433ef62a0b..932387bcb40 100644 --- a/code/modules/paperwork/clipboard.dm +++ b/code/modules/paperwork/clipboard.dm @@ -57,7 +57,7 @@ if(istype(attacking_item, /obj/item/paper)) toppaper = attacking_item r_contents = reverselist(contents) - to_chat(user, "You clip the [attacking_item] onto \the [src].") + to_chat(user, SPAN_NOTICE("You clip the [attacking_item] onto \the [src].")) else if(istype(toppaper) && attacking_item.ispen()) toppaper.attackby(attacking_item, user) @@ -106,7 +106,7 @@ if(W.ispen()) user.drop_from_inventory(W,src) haspen = W - to_chat(user, "You slot the pen into \the [src].") + to_chat(user, SPAN_NOTICE("You slot the pen into \the [src].")) else to_chat(user, SPAN_NOTICE("This clipboard already has a pen!")) @@ -180,7 +180,7 @@ var/obj/item/P = locate(href_list["top"]) if(P && (P.loc == src) && istype(P, /obj/item/paper) ) toppaper = P - to_chat(usr, "You move [P.name] to the top.") + to_chat(usr, SPAN_NOTICE("You move [P.name] to the top.")) //Update everything attack_self(usr) diff --git a/code/modules/paperwork/faxmachine.dm b/code/modules/paperwork/faxmachine.dm index 7501399c988..d36b770ad02 100644 --- a/code/modules/paperwork/faxmachine.dm +++ b/code/modules/paperwork/faxmachine.dm @@ -89,7 +89,7 @@ var/list/admin_departments if("send") if (get_remaining_cooldown() > 0) // Rate-limit sending faxes - to_chat(usr, "The fax machine isn't ready, yet!") + to_chat(usr, SPAN_WARNING("The fax machine isn't ready, yet!")) return if(copy_item && is_authenticated()) @@ -106,9 +106,9 @@ var/list/admin_departments copy_item.forceMove(loc) if (get_dist(usr, src) < 2) usr.put_in_hands(copy_item) - to_chat(usr, "You take \the [copy_item] out of \the [src].") + to_chat(usr, SPAN_NOTICE("You take \the [copy_item] out of \the [src].")) else - to_chat(usr, "You eject \the [copy_item] from \the [src].") + to_chat(usr, SPAN_NOTICE("You eject \the [copy_item] from \the [src].")) copy_item = null return TRUE @@ -134,23 +134,23 @@ var/list/admin_departments if("linkpda") var/obj/item/modular_computer/pda = usr.get_active_hand() if (!pda || !istype(pda)) - to_chat(usr, "You need to be holding a PDA to link it.") + to_chat(usr, SPAN_WARNING("You need to be holding a PDA to link it.")) else if (pda in alert_pdas) - to_chat(usr, "\The [pda] appears to be already linked.") + to_chat(usr, SPAN_NOTICE("\The [pda] appears to be already linked.")) //Update the name real quick. alert_pdas[pda] = pda.name return TRUE else alert_pdas += pda alert_pdas[pda] = pda.name - to_chat(usr, "You link \the [pda] to \the [src]. It will now ping upon the arrival of a fax to this machine.") + to_chat(usr, SPAN_NOTICE("You link \the [pda] to \the [src]. It will now ping upon the arrival of a fax to this machine.")) return TRUE if("unlink") var/obj/item/modular_computer/pda = locate(params["unlink"]) if (pda && istype(pda)) if (pda in alert_pdas) - to_chat(usr, "You unlink [alert_pdas[pda]] from \the [src]. It will no longer be notified of new faxes.") + to_chat(usr, SPAN_NOTICE("You unlink [alert_pdas[pda]] from \the [src]. It will no longer be notified of new faxes.")) alert_pdas -= pda return TRUE @@ -295,7 +295,7 @@ var/list/admin_departments /obj/machinery/photocopier/faxmachine/proc/message_admins(var/mob/sender, var/faxname, var/obj/item/sent, var/reply_type, font_colour="#006100") - var/msg = " [faxname]: [key_name(sender, 1)] (PP) (VV) (SM) (JMP) (CA) (REPLY): Receiving '[sent.name]' via secure connection ... view message" + var/msg = SPAN_NOTICE(" [faxname]: [key_name(sender, 1)] (PP) (VV) (SM) (JMP) (CA) (REPLY): Receiving '[sent.name]' via secure connection ... view message") var/cciaa_present = 0 var/cciaa_afk = 0 diff --git a/code/modules/paperwork/filingcabinet.dm b/code/modules/paperwork/filingcabinet.dm index ca251229936..7a96e957631 100644 --- a/code/modules/paperwork/filingcabinet.dm +++ b/code/modules/paperwork/filingcabinet.dm @@ -56,7 +56,7 @@ /obj/structure/filingcabinet/attackby(obj/item/attacking_item, mob/user) if(is_type_in_list(attacking_item, accepted_items)) - to_chat(user, "You put [attacking_item] in [src].") + to_chat(user, SPAN_NOTICE("You put [attacking_item] in [src].")) user.drop_from_inventory(attacking_item, src) flick("[initial(icon_state)]-open", src) playsound(loc, 'sound/bureaucracy/filingcabinet.ogg', 50, 1) @@ -66,14 +66,14 @@ else if(attacking_item.iswrench()) attacking_item.play_tool_sound(get_turf(src), 50) anchored = !anchored - to_chat(user, "You [anchored ? "wrench" : "unwrench"] \the [src].") + to_chat(user, SPAN_NOTICE("You [anchored ? "wrench" : "unwrench"] \the [src].")) else - to_chat(user, "You can't put [attacking_item] in [src]!") + to_chat(user, SPAN_NOTICE("You can't put [attacking_item] in [src]!")) /obj/structure/filingcabinet/attack_hand(mob/user as mob) if(contents.len <= 0) - to_chat(user, "\The [src] is empty.") + to_chat(user, SPAN_NOTICE("\The [src] is empty.")) return user.set_machine(src) diff --git a/code/modules/paperwork/folders.dm b/code/modules/paperwork/folders.dm index ddf46be80c7..d115ff6a1a6 100644 --- a/code/modules/paperwork/folders.dm +++ b/code/modules/paperwork/folders.dm @@ -42,7 +42,7 @@ /obj/item/folder/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/paper) || istype(attacking_item, /obj/item/photo) || istype(attacking_item, /obj/item/paper_bundle) || istype(attacking_item, /obj/item/sample)) user.drop_from_inventory(attacking_item, src) - to_chat(user, "You put the [attacking_item] into \the [src].") + to_chat(user, SPAN_NOTICE("You put the [attacking_item] into \the [src].")) update_icon() else if(attacking_item.ispen()) var/n_name = sanitizeSafe( tgui_input_text(user, "What would you like to label the folder?", "Folder Labelling", max_length = MAX_NAME_LEN), MAX_NAME_LEN ) diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index 1dbf7a5d0b9..877bf0178d9 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -412,7 +412,7 @@ qdel(src) else - to_chat(user, "You must hold \the [P] steady to burn \the [src].") + to_chat(user, SPAN_WARNING("You must hold \the [P] steady to burn \the [src].")) /obj/item/paper/proc/restore_stamps() //Used when unfolding paper from cranes or planes, restores the stamp overlays. diff --git a/code/modules/paperwork/paper_bundle.dm b/code/modules/paperwork/paper_bundle.dm index da7df444942..43c960943b4 100644 --- a/code/modules/paperwork/paper_bundle.dm +++ b/code/modules/paperwork/paper_bundle.dm @@ -22,7 +22,7 @@ if (istype(attacking_item, /obj/item/paper/carbon)) var/obj/item/paper/carbon/C = attacking_item if (!C.iscopy && !C.copied) - to_chat(user, "Take off the carbon copy first.") + to_chat(user, SPAN_NOTICE("Take off the carbon copy first.")) add_fingerprint(user) return // adding sheets @@ -43,7 +43,7 @@ pages.Add(O) amount++ - to_chat(user, "You add \the [attacking_item.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].") + to_chat(user, SPAN_NOTICE("You add \the [attacking_item.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].")) attack_self(usr) //Update the browsed page. qdel(attacking_item) else @@ -60,9 +60,9 @@ /obj/item/paper_bundle/proc/insert_sheet_at(mob/user, var/index, obj/item/sheet) if(istype(sheet, /obj/item/paper)) - to_chat(user, "You add [(sheet.name == "paper") ? "the paper" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].") + to_chat(user, SPAN_NOTICE("You add [(sheet.name == "paper") ? "the paper" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].")) else if(istype(sheet, /obj/item/photo)) - to_chat(user, "You add [(sheet.name == "photo") ? "the photo" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].") + to_chat(user, SPAN_NOTICE("You add [(sheet.name == "photo") ? "the photo" : sheet.name] to [(src.name == "paper bundle") ? "the paper bundle" : src.name].")) user.drop_from_inventory(sheet,src) @@ -89,14 +89,14 @@ qdel(src) else - to_chat(user, "You must hold \the [P] steady to burn \the [src].") + to_chat(user, SPAN_WARNING("You must hold \the [P] steady to burn \the [src].")) /obj/item/paper_bundle/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() if(is_adjacent) src.show_content(user) else - . += "It is too far away." + . += SPAN_NOTICE("It is too far away.") /obj/item/paper_bundle/proc/show_content(mob/user as mob) var/dat @@ -251,7 +251,7 @@ set category = "Object" set src in usr - to_chat(usr, "You loosen the bundle.") + to_chat(usr, SPAN_NOTICE("You loosen the bundle.")) for(var/obj/O in src) O.forceMove(usr.loc) O.reset_plane_and_layer() diff --git a/code/modules/paperwork/paperbin.dm b/code/modules/paperwork/paperbin.dm index 4c4cda9cc75..dba6e64625a 100644 --- a/code/modules/paperwork/paperbin.dm +++ b/code/modules/paperwork/paperbin.dm @@ -24,10 +24,10 @@ if (H.hand) temp = H.organs_by_name[BP_L_HAND] if(temp && !temp.is_usable()) - to_chat(user, "You try to move your [temp.name], but cannot!") + to_chat(user, SPAN_NOTICE("You try to move your [temp.name], but cannot!")) return - to_chat(user, "You pick up the [src].") + to_chat(user, SPAN_NOTICE("You pick up the [src].")) user.put_in_hands(src) return @@ -39,7 +39,7 @@ if (H.hand) temp = H.organs_by_name[BP_L_HAND] if(temp && !temp.is_usable()) - to_chat(user, "You try to move your [temp.name], but cannot!") + to_chat(user, SPAN_NOTICE("You try to move your [temp.name], but cannot!")) return var/response = "" if(!papers.len > 0) @@ -69,9 +69,9 @@ P.forceMove(user.loc) user.put_in_hands(P) - to_chat(user, "You take [P] out of the [src].") + to_chat(user, SPAN_NOTICE("You take [P] out of the [src].")) else - to_chat(user, "[src] is empty!") + to_chat(user, SPAN_NOTICE("[src] is empty!")) add_fingerprint(user) return @@ -81,7 +81,7 @@ if(istype(attacking_item, /obj/item/paper)) var/obj/item/paper/i = attacking_item user.drop_from_inventory(i,src) - to_chat(user, "You put [i] in [src].") + to_chat(user, SPAN_NOTICE("You put [i] in [src].")) papers.Add(i) amount++ @@ -89,9 +89,9 @@ . = ..() if(is_adjacent) if(amount) - . += "There " + (amount > 1 ? "are [amount] papers" : "is one paper") + " in the bin." + . += SPAN_NOTICE("There " + (amount > 1 ? "are [amount] papers" : "is one paper") + " in the bin.") else - . += "There are no papers in the bin." + . += SPAN_NOTICE("There are no papers in the bin.") /obj/item/paper_bin/update_icon() diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm index 36cb17619fe..91f551f5e68 100644 --- a/code/modules/paperwork/pen.dm +++ b/code/modules/paperwork/pen.dm @@ -118,7 +118,7 @@ else icon_state = "pen_[colour]" - to_chat(user, "Changed color to '[colour].'") + to_chat(user, SPAN_NOTICE("Changed color to '[colour].'")) /obj/item/pen/attack_self(var/mob/user) playsound(loc, 'sound/items/penclick.ogg', 50, 1) diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm index 08b70cfb6cf..e44160571c3 100644 --- a/code/modules/paperwork/photography.dm +++ b/code/modules/paperwork/photography.dm @@ -62,9 +62,9 @@ var/global/photo_count = 0 . = ..() if(distance <= 1) show(user) - . += "[picture_desc]" + . += SPAN_NOTICE("[picture_desc]") else - . += "You are too far away to discern its contents." + . += SPAN_NOTICE("You are too far away to discern its contents.") /obj/item/photo/proc/show(mob/user as mob) send_rsc(user, img, "tmp_photo_[id].png") @@ -167,7 +167,7 @@ var/global/photo_count = 0 var/nsize = input("Photo Size","Pick a size of resulting photo.") as null|anything in list(1,3,5,7) if(nsize) size = nsize - to_chat(usr, "Camera will now take [size]x[size] photos.") + to_chat(usr, SPAN_NOTICE("Camera will now take [size]x[size] photos.")) /obj/item/device/camera/attack(mob/living/carbon/human/M as mob, mob/user as mob) return @@ -184,9 +184,9 @@ var/global/photo_count = 0 /obj/item/device/camera/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/device/camera_film)) if(pictures_left) - to_chat(user, "[src] still has some film in it!") + to_chat(user, SPAN_NOTICE("[src] still has some film in it!")) return TRUE - to_chat(user, "You insert [attacking_item] into [src].") + to_chat(user, SPAN_NOTICE("You insert [attacking_item] into [src].")) user.drop_from_inventory(attacking_item, get_turf(src)) qdel(attacking_item) pictures_left = pictures_max @@ -222,7 +222,7 @@ var/global/photo_count = 0 do_photo_sound() pictures_left-- - to_chat(user, "[pictures_left] photos left.") + to_chat(user, SPAN_NOTICE("[pictures_left] photos left.")) icon_state = icon_off on = 0 spawn(64) diff --git a/code/modules/paperwork/silicon_photography.dm b/code/modules/paperwork/silicon_photography.dm index 6184e379513..e330202b434 100644 --- a/code/modules/paperwork/silicon_photography.dm +++ b/code/modules/paperwork/silicon_photography.dm @@ -39,7 +39,7 @@ var/list/nametemp = list() var/find if(cam.aipictures.len == 0) - to_chat(usr, "No images saved") + to_chat(usr, SPAN_NOTICE("No images saved")) return for(var/obj/item/photo/t in cam.aipictures) nametemp += t.name diff --git a/code/modules/power/batteryrack.dm b/code/modules/power/batteryrack.dm index f254bbaeb36..66079c8adbd 100644 --- a/code/modules/power/batteryrack.dm +++ b/code/modules/power/batteryrack.dm @@ -53,20 +53,20 @@ qdel(src) return 1 else - to_chat(user, "Turn off the [src] before dismantling it.") + to_chat(user, SPAN_WARNING("Turn off the [src] before dismantling it.")) else - to_chat(user, "Better let [src] discharge before dismantling it.") + to_chat(user, SPAN_WARNING("Better let [src] discharge before dismantling it.")) else if ((istype(attacking_item, /obj/item/stock_parts/capacitor) && (capacitors_amount < 5)) || (istype(attacking_item, /obj/item/cell) && (cells_amount < 5))) if (charge < (capacity / 100)) if (!output_attempt && !input_attempt) user.drop_from_inventory(attacking_item,src) component_parts += attacking_item RefreshParts() - to_chat(user, "You upgrade the [src] with [attacking_item.name].") + to_chat(user, SPAN_NOTICE("You upgrade the [src] with [attacking_item.name].")) else - to_chat(user, "Turn off the [src] before dismantling it.") + to_chat(user, SPAN_WARNING("Turn off the [src] before dismantling it.")) else - to_chat(user, "Better let [src] discharge before putting your hand inside it.") + to_chat(user, SPAN_WARNING("Better let [src] discharge before putting your hand inside it.")) else user.set_machine(src) interact(user) diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index 0eda8a35361..c369bd10df7 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -118,7 +118,7 @@ new /obj/item/device/radiojammer/improvised(assembly, src, user) else - to_chat(user, "You'd need both devices to be signallers for this to work.") + to_chat(user, SPAN_NOTICE("You'd need both devices to be signallers for this to work.")) return else if(attacking_item.ismultitool() && ishuman(user) && user.get_inactive_hand() == src) if(charge < 10) diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm index d108179b67c..6d4984398b3 100644 --- a/code/modules/power/gravitygenerator.dm +++ b/code/modules/power/gravitygenerator.dm @@ -204,14 +204,14 @@ switch(broken_state) if(GRAV_NEEDS_SCREWDRIVER) if(attacking_item.isscrewdriver()) - to_chat(user, "You secure the screws of the framework.") + to_chat(user, SPAN_NOTICE("You secure the screws of the framework.")) attacking_item.play_tool_sound(get_turf(src), 50) broken_state++ if(GRAV_NEEDS_WELDING) if(attacking_item.iswelder()) var/obj/item/weldingtool/WT = attacking_item if(WT.use(1, user)) - to_chat(user, "You mend the damaged framework.") + to_chat(user, SPAN_NOTICE("You mend the damaged framework.")) playsound(src.loc, 'sound/items/welder_pry.ogg', 50, 1) broken_state++ if(GRAV_NEEDS_PLASTEEL) @@ -219,14 +219,14 @@ var/obj/item/stack/material/plasteel/PS = attacking_item if(PS.amount >= 10) PS.use(10) - to_chat(user, "You add the plating to the framework.") + to_chat(user, SPAN_NOTICE("You add the plating to the framework.")) playsound(src.loc, 'sound/machines/click.ogg', 75, 1) broken_state++ else - to_chat(user, "You need 10 sheets of plasteel.") + to_chat(user, SPAN_NOTICE("You need 10 sheets of plasteel.")) if(GRAV_NEEDS_WRENCH) if(attacking_item.iswrench()) - to_chat(user, "You secure the plating to the framework.") + to_chat(user, SPAN_NOTICE("You secure the plating to the framework.")) attacking_item.play_tool_sound(get_turf(src), 75) set_fix() else @@ -234,11 +234,11 @@ if(attacking_item.iscrowbar()) if(backpanelopen) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You replace the back panel.") + to_chat(user, SPAN_NOTICE("You replace the back panel.")) backpanelopen = 0 else attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You open the back panel.") + to_chat(user, SPAN_NOTICE("You open the back panel.")) backpanelopen = 1 if(old_broken_state != broken_state) @@ -284,7 +284,7 @@ if(href_list["gentoggle"]) breaker = !breaker - investigate_log("was toggled [breaker ? "ON" : "OFF"] by [usr.key].", "gravity") + investigate_log("was toggled [breaker ? "ON" : SPAN_WARNING("OFF")] by [usr.key].", "gravity") set_power() src.updateUsrDialog() else if(href_list["eshutoff"]) diff --git a/code/modules/power/portgen.dm b/code/modules/power/portgen.dm index 5b3588d8484..61d28761f93 100644 --- a/code/modules/power/portgen.dm +++ b/code/modules/power/portgen.dm @@ -500,7 +500,7 @@ temperature_gain = 60 reagents.remove_any(coolant_use) if(prob(2)) - audible_message("[src] churns happily.") + audible_message(SPAN_NOTICE("[src] churns happily.")) else temperature_gain = initial(temperature_gain) ..() @@ -519,10 +519,10 @@ var/obj/item/reagent_containers/R = attacking_item if(R.standard_pour_into(user, src)) if(reagents.has_reagent(/singleton/reagent/coolant)) - audible_message("[src] blips happily!") + audible_message(SPAN_NOTICE("[src] blips happily!")) playsound(get_turf(src),'sound/machines/synth_yes.ogg', 50, 0) else - audible_message("[src] blips in disappointment!") + audible_message(SPAN_WARNING("[src] blips in disappointment!")) playsound(get_turf(src), 'sound/machines/synth_no.ogg', 50, 0) return ..() diff --git a/code/modules/power/singularity/emitter.dm b/code/modules/power/singularity/emitter.dm index 09fa187ead9..2a7e3ea4b57 100644 --- a/code/modules/power/singularity/emitter.dm +++ b/code/modules/power/singularity/emitter.dm @@ -51,7 +51,7 @@ if(special_emitter) message_admins("Emitter deleted at ([x],[y],[z] - JMP)",0,1) log_game("Emitter deleted at ([x],[y],[z])") - investigate_log("deleted at ([x],[y],[z])","singulo") + QDEL_NULL(wifi_receiver) QDEL_NULL(spark_system) QDEL_NULL(signaler) diff --git a/code/modules/power/singularity/field_generator.dm b/code/modules/power/singularity/field_generator.dm index 0d01ef23d19..86dfcdc4425 100644 --- a/code/modules/power/singularity/field_generator.dm +++ b/code/modules/power/singularity/field_generator.dm @@ -116,13 +116,13 @@ field_generator power level display src.anchored = 0 update_icon() if(2) - to_chat(user, "The [src.name] needs to be unwelded from the floor.") + to_chat(user, SPAN_WARNING("The [src.name] needs to be unwelded from the floor.")) return else if(attacking_item.iswelder()) var/obj/item/weldingtool/WT = attacking_item switch(state) if(0) - to_chat(user, "The [src.name] needs to be wrenched to the floor.") + to_chat(user, SPAN_WARNING("The [src.name] needs to be wrenched to the floor.")) return if(1) if (WT.use(0,user)) diff --git a/code/modules/power/singularity/particle_accelerator/particle_control.dm b/code/modules/power/singularity/particle_accelerator/particle_control.dm index 8a0fdee383a..514101c6785 100644 --- a/code/modules/power/singularity/particle_accelerator/particle_control.dm +++ b/code/modules/power/singularity/particle_accelerator/particle_control.dm @@ -213,7 +213,7 @@ /obj/machinery/particle_accelerator/control_box/toggle_power(mob/user) src.active = !src.active - investigate_log("turned [active?"ON":"OFF"] by [user ? user.key : "outside forces"]","singulo") + investigate_log("turned [active?SPAN_WARNING("ON"):"OFF"] by [user ? user.key : "outside forces"]","singulo") message_admins("PA Control Computer turned [active ?"ON":"OFF"] by [key_name(user, TRUE, highlight_special = TRUE)] in ([x],[y],[z] - JMP)",0,1) log_game("PA Control Computer turned [active ?"ON":"OFF"] by [key_name(user)] in ([x],[y],[z])",ckey=key_name(user)) if(src.active) diff --git a/code/modules/power/singularity/singularity.dm b/code/modules/power/singularity/singularity.dm index f65ef08b5ec..8f2bb73ef51 100644 --- a/code/modules/power/singularity/singularity.dm +++ b/code/modules/power/singularity/singularity.dm @@ -149,7 +149,7 @@ overlays = 0 if(chained) overlays = "chain_s1" - visible_message("The singularity has shrunk to a rather pitiful size.") + visible_message(SPAN_NOTICE("The singularity has shrunk to a rather pitiful size.")) if (STAGE_TWO) //1 to 3 does not check for the turfs if you put the gens right next to a 1x1 then its going to eat them. name = "gravitational singularity" desc = "A gravitational singularity." @@ -167,9 +167,9 @@ if(chained) overlays = "chain_s3" if(growing) - visible_message("The singularity noticeably grows in size.") + visible_message(SPAN_NOTICE("The singularity noticeably grows in size.")) else - visible_message("The singularity has shrunk to a less powerful size.") + visible_message(SPAN_NOTICE("The singularity has shrunk to a less powerful size.")) if (STAGE_THREE) if ((check_turfs_in(1, 2)) && (check_turfs_in(2, 2)) && (check_turfs_in(4, 2)) && (check_turfs_in(8, 2))) name = "gravitational singularity" @@ -188,9 +188,9 @@ if(chained) overlays = "chain_s5" if(growing) - visible_message("The singularity expands to a reasonable size.") + visible_message(SPAN_NOTICE("The singularity expands to a reasonable size.")) else - visible_message("The singularity has returned to a safe size.") + visible_message(SPAN_NOTICE("The singularity has returned to a safe size.")) if(STAGE_FOUR) if ((check_turfs_in(1, 3)) && (check_turfs_in(2, 3)) && (check_turfs_in(4, 3)) && (check_turfs_in(8, 3))) name = "gravitational singularity" @@ -209,9 +209,9 @@ if(chained) overlays = "chain_s7" if(growing) - visible_message("The singularity expands to a dangerous size.") + visible_message(SPAN_WARNING("The singularity expands to a dangerous size.")) else - visible_message("Miraculously, the singularity reduces in size, and can be contained.") + visible_message(SPAN_NOTICE("Miraculously, the singularity reduces in size, and can be contained.")) if(STAGE_FIVE) //This one also lacks a check for gens because it eats everything. name = "gravitational singularity" desc = "A gravitational singularity." @@ -227,9 +227,9 @@ if(chained) overlays = "chain_s9" if(growing) - visible_message("The singularity has grown out of control!") + visible_message(SPAN_DANGER("The singularity has grown out of control!")) else - visible_message("The singularity miraculously reduces in size and loses its supermatter properties.") + visible_message(SPAN_WARNING("The singularity miraculously reduces in size and loses its supermatter properties.")) if(STAGE_SUPER)//SUPERSINGULO name = "super gravitational singularity" desc = "A gravitational singularity with the properties of supermatter. It has the power to destroy worlds." @@ -244,10 +244,10 @@ event_chance = 25 //Events will fire off more often. if(chained) overlays = "chain_s9" - visible_message("You witness the creation of a destructive force that cannot possibly be stopped by human hands.") + visible_message(SPAN_DANGER("You witness the creation of a destructive force that cannot possibly be stopped by human hands.")) if (current_size == allowed_size) - investigate_log("grew to size [current_size].", I_SINGULO) + investigate_log(SPAN_WARNING("grew to size [current_size]."), I_SINGULO) return 1 else if (current_size < (--temp_allowed_size) && current_size != STAGE_SUPER) expand(temp_allowed_size) @@ -313,13 +313,13 @@ if(target && prob(60)) movement_dir = get_dir(src,target) //moves to a singulo beacon, if there is one if(target.z < z) - visible_message("\The [src] gravitates downwards.") + visible_message(SPAN_DANGER("\The [src] gravitates downwards.")) zMove(DOWN) - visible_message("\The [src] appears from above.") + visible_message(SPAN_DANGER("\The [src] appears from above.")) else if(target.z > z) - visible_message("\The [src] gravitates upwards.") + visible_message(SPAN_DANGER("\The [src] gravitates upwards.")) zMove(UP) - visible_message("\The [src] appears from below.") + visible_message(SPAN_DANGER("\The [src] appears from below.")) if(current_size >= 9)//The superlarge one does not care about things in its way spawn(0) @@ -446,14 +446,14 @@ if (istype(M,/mob/living/carbon/human)) var/mob/living/carbon/human/H = M if(istype(H.glasses,/obj/item/clothing/glasses/safety) && current_size != 11) - to_chat(H, "You look directly into The [src.name], good thing you had your protective eyewear on!") + to_chat(H, SPAN_NOTICE("You look directly into The [src.name], good thing you had your protective eyewear on!")) return else - to_chat(H, "You look directly into The [src.name], but your eyewear does absolutely nothing to protect you from it!") - to_chat(M, "You look directly into The [src.name] and feel [current_size == 11 ? "helpless" : "weak"].") + to_chat(H, SPAN_WARNING("You look directly into The [src.name], but your eyewear does absolutely nothing to protect you from it!")) + to_chat(M, SPAN_DANGER("You look directly into The [src.name] and feel [current_size == 11 ? "helpless" : "weak"].")) M.apply_effect(3, STUN) for(var/mob/O in viewers(M, null)) - O.show_message(text("[] stares blankly at The []!", M, src), 1) + O.show_message(SPAN_DANGER("[M] stares blankly at The [src]!"), 1) /obj/singularity/proc/emp_area() if(current_size != 11) @@ -464,11 +464,11 @@ /obj/singularity/proc/smwave() for(var/mob/living/M in view(10, src.loc)) if(prob(67)) - to_chat(M, "You hear an uneartly ringing, then what sounds like a shrilling kettle as you are washed with a wave of heat.") - to_chat(M, "Miraculously, it fails to kill you.") + to_chat(M, SPAN_WARNING("You hear an uneartly ringing, then what sounds like a shrilling kettle as you are washed with a wave of heat.")) + to_chat(M, SPAN_NOTICE("Miraculously, it fails to kill you.")) else - to_chat(M, "You hear an uneartly ringing, then what sounds like a shrilling kettle as you are washed with a wave of heat.") - to_chat(M, "You don't even have a moment to react as you are reduced to ashes by the intense radiation.") + to_chat(M, SPAN_DANGER("You hear an uneartly ringing, then what sounds like a shrilling kettle as you are washed with a wave of heat.")) + to_chat(M, SPAN_DANGER("You don't even have a moment to react as you are reduced to ashes by the intense radiation.")) M.dust() SSradiation.radiate(src, rand(energy)) return diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index 6d30347d76c..5ca0ac74d64 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -302,7 +302,7 @@ //Will return 1 on failure /obj/machinery/power/smes/proc/make_terminal(const/mob/user) if (user.loc == loc) - to_chat(user, "You must not be on the same tile as the [src].") + to_chat(user, SPAN_WARNING("You must not be on the same tile as the [src].")) return 1 //Direction the terminal will face to @@ -314,13 +314,13 @@ tempDir = WEST var/turf/tempLoc = get_step(src, reverse_direction(tempDir)) if (istype(tempLoc, /turf/space)) - to_chat(user, "You can't build a terminal on space.") + to_chat(user, SPAN_WARNING("You can't build a terminal on space.")) return 1 else if (istype(tempLoc)) if(!tempLoc.is_plating()) - to_chat(user, "You must remove the floor plating first.") + to_chat(user, SPAN_WARNING("You must remove the floor plating first.")) return 1 - to_chat(user, "You start adding cable to the [src].") + to_chat(user, SPAN_NOTICE("You start adding cable to the [src].")) if(do_after(user, 5 SECONDS, src, DO_REPAIR_CONSTRUCT)) terminal = new /obj/machinery/power/terminal(tempLoc) terminal.set_dir(tempDir) @@ -352,27 +352,27 @@ return open_hatch = 1 user.visible_message(\ - "\The [user] opens the maintenance hatch of \the [src].",\ - "You open the maintenance hatch of \the [src].",\ + SPAN_NOTICE("\The [user] opens the maintenance hatch of \the [src]."),\ + SPAN_NOTICE("You open the maintenance hatch of \the [src]."),\ range = 4) return 0 else open_hatch = 0 user.visible_message(\ - "\The [user] closes the maintenance hatch of \the [src].",\ - "You close the maintenance hatch of \the [src].",\ + SPAN_NOTICE("\The [user] closes the maintenance hatch of \the [src]."),\ + SPAN_NOTICE("You close the maintenance hatch of \the [src]."),\ range = 4) return 0 if (!open_hatch) - to_chat(user, "You need to open access hatch on [src] first!") + to_chat(user, SPAN_WARNING("You need to open access hatch on [src] first!")) return 0 if(attacking_item.iscoil() && !terminal && !building_terminal) building_terminal = 1 var/obj/item/stack/cable_coil/CC = attacking_item if (CC.get_amount() <= 10) - to_chat(user, "You need more cables.") + to_chat(user, SPAN_WARNING("You need more cables.")) building_terminal = 0 return 0 if (make_terminal(user)) @@ -381,8 +381,8 @@ building_terminal = 0 CC.use(10) user.visible_message(\ - "[user.name] has added cables to the [src].",\ - "You added cables to the [src].") + SPAN_NOTICE("[user.name] has added cables to the [src]."),\ + SPAN_NOTICE("You added cables to the [src].")) terminal.connect_to_network() stat = 0 return 0 @@ -392,9 +392,9 @@ var/turf/tempTDir = terminal.loc if (istype(tempTDir)) if(!tempTDir.is_plating()) - to_chat(user, "You must remove the floor plating first.") + to_chat(user, SPAN_WARNING("You must remove the floor plating first.")) else - to_chat(user, "You begin to cut the cables...") + to_chat(user, SPAN_NOTICE("You begin to cut the cables...")) if(attacking_item.use_tool(src, user, 50, volume = 50)) if (prob(50) && electrocute_mob(usr, terminal.powernet, terminal)) big_spark.queue() @@ -403,8 +403,8 @@ return 0 new /obj/item/stack/cable_coil(loc,10) user.visible_message(\ - "[user.name] cut the cables and dismantled the power terminal.",\ - "You cut the cables and dismantle the power terminal.") + SPAN_NOTICE("[user.name] cut the cables and dismantled the power terminal."),\ + SPAN_NOTICE("You cut the cables and dismantle the power terminal.")) qdel(terminal) building_terminal = 0 return 0 @@ -474,8 +474,6 @@ output_level = clamp(params["output"], 0, output_level_max) // clamp to range . = TRUE - investigate_log("input/output; on":"off"] | Input-mode: [input_attempt?"auto":"off"] by [usr.key]","singulo") - /obj/machinery/power/smes/proc/energy_fail(var/duration) failure_timer = max(failure_timer, duration) @@ -483,7 +481,7 @@ if(isStationLevel(src.z)) if(prob(1)) //explosion for(var/mob/M in viewers(src)) - M.show_message("The [src.name] is making strange noises!", 3, "You hear sizzling electronics.", 2) + M.show_message(SPAN_WARNING("The [src.name] is making strange noises!"), 3, SPAN_WARNING("You hear sizzling electronics."), 2) sleep(10*pick(4,5,6,7,10,14)) var/datum/effect/effect/system/smoke_spread/smoke = new /datum/effect/effect/system/smoke_spread() smoke.set_up(3, 0, src.loc) diff --git a/code/modules/power/smes_construction.dm b/code/modules/power/smes_construction.dm index 1ff7d08be13..b1ea9a7fb7c 100644 --- a/code/modules/power/smes_construction.dm +++ b/code/modules/power/smes_construction.dm @@ -180,7 +180,7 @@ if(RCon) ..() else // RCON wire cut - to_chat(usr, "Connection error: Destination Unreachable.") + to_chat(usr, SPAN_WARNING("Connection error: Destination Unreachable.")) // Cyborgs standing next to the SMES can play with the wiring. if(istype(usr, /mob/living/silicon/robot) && Adjacent(usr) && open_hatch) @@ -379,7 +379,7 @@ /obj/machinery/power/smes/buildable/attackby(obj/item/attacking_item, mob/user) // No more disassembling of overloaded SMESs. You broke it, now enjoy the consequences. if (failing) - to_chat(user, "The [src]'s screen is flashing with alerts. It seems to be overloaded! Touching it now is probably not a good idea.") + to_chat(user, SPAN_WARNING("The [src]'s screen is flashing with alerts. It seems to be overloaded! Touching it now is probably not a good idea.")) return // If parent returned 1: // - Hatch is open, so we can modify the SMES @@ -407,17 +407,17 @@ var/newtag = input(user, "Enter new RCON tag. Use \"NO_TAG\" to disable RCON or leave empty to cancel.", "SMES RCON system") as text if(newtag) RCon_tag = newtag - to_chat(user, "You changed the RCON tag to: [newtag]") + to_chat(user, SPAN_NOTICE("You changed the RCON tag to: [newtag]")) if(RCon_tag != "NO_TAG") SSmachinery.build_rcon_lists() return // Charged above 1% and safeties are enabled. if((charge > (capacity/100)) && safeties_enabled) - to_chat(user, "Safety circuit of [src] is preventing modifications while it's charged!") + to_chat(user, SPAN_WARNING("Safety circuit of [src] is preventing modifications while it's charged!")) return if (output_attempt || input_attempt) - to_chat(user, "Turn off the [src] first!") + to_chat(user, SPAN_WARNING("Turn off the [src] first!")) return // Probability of failure if safety circuit is disabled (in %) @@ -430,18 +430,18 @@ // Crowbar - Disassemble the SMES. if(attacking_item.iscrowbar()) if (terminal) - to_chat(user, "You have to disassemble the terminal first!") + to_chat(user, SPAN_WARNING("You have to disassemble the terminal first!")) return attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You begin to disassemble the [src]!") + to_chat(user, SPAN_WARNING("You begin to disassemble the [src]!")) if (do_after(usr, 100 * cur_coils, src, DO_REPAIR_CONSTRUCT)) // More coils = takes longer to disassemble. It's complex so largest one with 5 coils will take 50s if (failure_probability && prob(failure_probability)) total_system_failure(failure_probability, user) return - to_chat(usr, "You have disassembled the SMES cell!") + to_chat(usr, SPAN_WARNING("You have disassembled the SMES cell!")) var/obj/machinery/constructable_frame/machine_frame/M = new /obj/machinery/constructable_frame/machine_frame(src.loc) M.state = 2 M.icon_state = "box_1" @@ -465,7 +465,7 @@ component_parts += attacking_item recalc_coils() else - to_chat(usr, "You can't insert more coils to this SMES unit!") + to_chat(usr, SPAN_WARNING("You can't insert more coils to this SMES unit!")) // Proc: toggle_input() // Parameters: None diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm index 34d20ee5a6a..50d63f9d471 100644 --- a/code/modules/power/solar.dm +++ b/code/modules/power/solar.dm @@ -60,14 +60,14 @@ if(attacking_item.iscrowbar()) playsound(src.loc, 'sound/machines/click.ogg', 50, 1) - user.visible_message("[user] begins to take the glass off the solar panel.") + user.visible_message(SPAN_NOTICE("[user] begins to take the glass off the solar panel.")) if(attacking_item.use_tool(src, user, 50, volume = 50)) var/obj/item/solar_assembly/S = locate() in src if(S) S.forceMove(src.loc) S.give_glass() playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) - user.visible_message("[user] takes the glass off the solar panel.") + user.visible_message(SPAN_NOTICE("[user] takes the glass off the solar panel.")) qdel(src) return else if (attacking_item) @@ -222,13 +222,13 @@ if(!anchored && isturf(loc)) if(attacking_item.iswrench()) anchored = 1 - user.visible_message("[user] wrenches the solar assembly into place.") + user.visible_message(SPAN_NOTICE("[user] wrenches the solar assembly into place.")) attacking_item.play_tool_sound(get_turf(src), 75) return 1 else if(attacking_item.iswrench()) anchored = 0 - user.visible_message("[user] unwrenches the solar assembly from it's place.") + user.visible_message(SPAN_NOTICE("[user] unwrenches the solar assembly from it's place.")) attacking_item.play_tool_sound(get_turf(src), 75) return 1 @@ -237,13 +237,13 @@ if(S.use(2)) glass_type = attacking_item.type playsound(src.loc, 'sound/machines/click.ogg', 50, 1) - user.visible_message("[user] places the glass on the solar assembly.") + user.visible_message(SPAN_NOTICE("[user] places the glass on the solar assembly.")) if(tracker) new /obj/machinery/power/tracker(get_turf(src), src) else new /obj/machinery/power/solar(get_turf(src), src) else - to_chat(user, "You need two sheets of glass to put them into a solar panel.") + to_chat(user, SPAN_WARNING("You need two sheets of glass to put them into a solar panel.")) return return 1 @@ -252,13 +252,13 @@ tracker = 1 user.drop_from_inventory(attacking_item, get_turf(src)) qdel(attacking_item) - user.visible_message("[user] inserts the electronics into the solar assembly.") + user.visible_message(SPAN_NOTICE("[user] inserts the electronics into the solar assembly.")) return 1 else if(attacking_item.iscrowbar()) new /obj/item/tracker_electronics(src.loc) tracker = 0 - user.visible_message("[user] takes out the electronics from the solar assembly.") + user.visible_message(SPAN_NOTICE("[user] takes out the electronics from the solar assembly.")) return 1 ..() @@ -369,7 +369,7 @@ t += "Search for devices
" t += "Solar panels : [connected_panels.len] connected
" - t += "Solar tracker : [connected_tracker ? "Found" : "Not found"]
" + t += "Solar tracker : [connected_tracker ? SPAN_GOOD("Found") : SPAN_BAD("Not found")]
" t += "Close" @@ -384,7 +384,7 @@ playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1) if(do_after(user, 2 SECONDS, src, DO_REPAIR_CONSTRUCT)) if (src.stat & BROKEN) - to_chat(user, "The broken glass falls out.") + to_chat(user, SPAN_NOTICE("The broken glass falls out.")) var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) new /obj/item/material/shard( src.loc ) var/obj/item/circuitboard/solar_control/M = new /obj/item/circuitboard/solar_control( A ) @@ -396,7 +396,7 @@ A.anchored = 1 qdel(src) else - to_chat(user, "You disconnect the monitor.") + to_chat(user, SPAN_NOTICE("You disconnect the monitor.")) var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc ) var/obj/item/circuitboard/solar_control/M = new /obj/item/circuitboard/solar_control( A ) for (var/obj/C in src) diff --git a/code/modules/power/tesla/coil.dm b/code/modules/power/tesla/coil.dm index 853c85b5f37..824c8c6e399 100644 --- a/code/modules/power/tesla/coil.dm +++ b/code/modules/power/tesla/coil.dm @@ -38,7 +38,7 @@ if(attacking_item.iswrench()) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You [anchored ? "unfasten" : "fasten"] [src] to the flooring.") + to_chat(user, SPAN_NOTICE("You [anchored ? "unfasten" : "fasten"] [src] to the flooring.")) anchored = !anchored update_icon() if(!anchored) @@ -92,7 +92,7 @@ if(attacking_item.iswrench()) attacking_item.play_tool_sound(get_turf(src), 50) - to_chat(user, "You [anchored ? "unfasten" : "fasten"] [src] to the flooring.") + to_chat(user, SPAN_NOTICE("You [anchored ? "unfasten" : "fasten"] [src] to the flooring.")) anchored = !anchored update_icon() return diff --git a/code/modules/power/tracker.dm b/code/modules/power/tracker.dm index 0c96cab60c5..c680fb7c7f6 100644 --- a/code/modules/power/tracker.dm +++ b/code/modules/power/tracker.dm @@ -61,14 +61,14 @@ if(attacking_item.iscrowbar()) playsound(src.loc, 'sound/machines/click.ogg', 50, 1) - user.visible_message("[user] begins to take the glass off the solar tracker.") + user.visible_message(SPAN_NOTICE("[user] begins to take the glass off the solar tracker.")) if(attacking_item.use_tool(src, user, 50, volume = 50)) var/obj/item/solar_assembly/S = locate() in src if(S) S.forceMove(src.loc) S.give_glass() playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1) - user.visible_message("[user] takes the glass off the tracker.") + user.visible_message(SPAN_NOTICE("[user] takes the glass off the tracker.")) qdel(src) return ..() diff --git a/code/modules/projectiles/ammunition.dm b/code/modules/projectiles/ammunition.dm index 1bb1ffed362..637c242119b 100644 --- a/code/modules/projectiles/ammunition.dm +++ b/code/modules/projectiles/ammunition.dm @@ -43,18 +43,18 @@ /obj/item/ammo_casing/attackby(obj/item/attacking_item, mob/user) if(attacking_item.isscrewdriver()) if(!BB) - to_chat(user, "There is no bullet in the casing to inscribe anything into.") + to_chat(user, SPAN_NOTICE("There is no bullet in the casing to inscribe anything into.")) return var/tmp_label = "" var/label_text = sanitizeSafe( tgui_input_text(user, "Inscribe some text into \the [initial(BB.name)]", "Inscription", tmp_label, MAX_NAME_LEN), MAX_NAME_LEN ) if(length(label_text) > 20) - to_chat(user, "The inscription can be at most 20 characters long.") + to_chat(user, SPAN_WARNING("The inscription can be at most 20 characters long.")) else if(!label_text) - to_chat(user, "You scratch the inscription off of [initial(BB)].") + to_chat(user, SPAN_NOTICE("You scratch the inscription off of [initial(BB)].")) BB.name = initial(BB.name) else - to_chat(user, "You inscribe \"[label_text]\" into \the [initial(BB.name)].") + to_chat(user, SPAN_NOTICE("You inscribe \"[label_text]\" into \the [initial(BB.name)].")) BB.name = "[initial(BB.name)] (\"[label_text]\")" else if(istype(attacking_item, /obj/item/ammo_casing)) if(attacking_item.type != src.type) @@ -143,10 +143,10 @@ if(istype(attacking_item, /obj/item/ammo_casing)) var/obj/item/ammo_casing/C = attacking_item if(C.caliber != caliber) - to_chat(user, "[C] does not fit into [src].") + to_chat(user, SPAN_WARNING("[C] does not fit into [src].")) return if(stored_ammo.len >= max_ammo) - to_chat(user, "[src] is full!") + to_chat(user, SPAN_WARNING("[src] is full!")) return user.remove_from_mob(C) C.forceMove(src) @@ -159,9 +159,9 @@ /obj/item/ammo_magazine/attack_self(mob/user) if(!stored_ammo.len) - to_chat(user, "[src] is already empty!") + to_chat(user, SPAN_NOTICE("[src] is already empty!")) return - to_chat(user, "You empty [src].") + to_chat(user, SPAN_NOTICE("You empty [src].")) for(var/obj/item/ammo_casing/C in stored_ammo) C.forceMove(user.loc) playsound(C, /singleton/sound_category/casing_drop_sound, 50, FALSE) diff --git a/code/modules/projectiles/guns/alien.dm b/code/modules/projectiles/guns/alien.dm index 38483adaf84..34a31b7f585 100644 --- a/code/modules/projectiles/guns/alien.dm +++ b/code/modules/projectiles/guns/alien.dm @@ -47,7 +47,7 @@ if(ishuman(user)) var/mob/living/carbon/human/H = user if(H.species && H.species.name != SPECIES_VAURCA_WARRIOR) - to_chat(user, "\The [src] does not respond to you!") + to_chat(user, SPAN_WARNING("\The [src] does not respond to you!")) return FALSE return ..() @@ -86,7 +86,7 @@ if(H.species.name == SPECIES_VAURCA_WARRIOR) ..() return - to_chat(user, "\The [src] is far too large for you to pick up.") + to_chat(user, SPAN_WARNING("\The [src] is far too large for you to pick up.")) return /obj/item/gun/energy/noisecannon/update_icon() diff --git a/code/modules/projectiles/guns/bang.dm b/code/modules/projectiles/guns/bang.dm index ad2a3733f98..ce3f3a419fd 100644 --- a/code/modules/projectiles/guns/bang.dm +++ b/code/modules/projectiles/guns/bang.dm @@ -23,7 +23,7 @@ /obj/item/gun/bang/handle_click_empty(mob/user) if (user) - to_chat(user, "The flag is already out!") + to_chat(user, SPAN_DANGER("The flag is already out!")) /obj/item/gun/bang/Fire(atom/target, mob/living/user, clickparams, pointblank=0, reflex=0) if(!user || !target) return @@ -35,9 +35,9 @@ add_fingerprint(user) if (user) - user.visible_message("A flag pops out of the barrel!") + user.visible_message(SPAN_DANGER("A flag pops out of the barrel!")) else - src.visible_message("A flag pops out of the barrel of \the [src.name]'s barrel!") + src.visible_message(SPAN_DANGER("A flag pops out of the barrel of \the [src.name]'s barrel!")) playsound(src, fire_sound, 20, 1) src.AddOverlays(bang_flag) fired_gun = 1 @@ -45,7 +45,9 @@ /obj/item/gun/bang/attack_hand(mob/user as mob) if(user.get_inactive_hand() == src && fired_gun) src.CutOverlays(bang_flag) - user.visible_message("\The [user] pushes the flag back into the barrel of \the [src.name].", "You push the flag back into the barrel of \the [src.name].") + user.visible_message(SPAN_NOTICE("\The [user] pushes the flag back into the barrel of \the [src.name]."), + SPAN_NOTICE("You push the flag back into the barrel of \the [src.name].")) + playsound(src.loc, 'sound/weapons/TargetOff.ogg', 50,1) fired_gun = 0 else diff --git a/code/modules/projectiles/guns/energy/blaster.dm b/code/modules/projectiles/guns/energy/blaster.dm index 5673d1b3d52..2bbb347b11b 100644 --- a/code/modules/projectiles/guns/energy/blaster.dm +++ b/code/modules/projectiles/guns/energy/blaster.dm @@ -108,7 +108,7 @@ if(wielded) toggle_scope(2.0, usr) else - to_chat(usr, "You can't look through the scope without stabilizing the rifle!") + to_chat(usr, SPAN_WARNING("You can't look through the scope without stabilizing the rifle!")) /obj/item/gun/energy/blaster/tcaf name = "blaster rifle" @@ -209,7 +209,7 @@ power_supply.forceMove(get_turf(src.loc)) user.visible_message( "[power_supply] pops out of the cell mount!", - "[power_supply] pops out of \the [src] and clatters on the floor!" + SPAN_NOTICE("[power_supply] pops out of \the [src] and clatters on the floor!") ) power_supply.update_icon() power_supply = null diff --git a/code/modules/projectiles/guns/energy/crank.dm b/code/modules/projectiles/guns/energy/crank.dm index 473fb33bf87..b3affdcc261 100644 --- a/code/modules/projectiles/guns/energy/crank.dm +++ b/code/modules/projectiles/guns/energy/crank.dm @@ -31,19 +31,19 @@ /obj/item/gun/energy/rifle/icelance/unique_action(mob/living/user) if(is_charging) - to_chat(user, "You are already charging \the [src].") + to_chat(user, SPAN_WARNING("You are already charging \the [src].")) return if(power_supply.charge < power_supply.maxcharge) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) user.visible_message( - "\The [user] begins to crank \the [src]!", - "You begin to rotate \the [src]'s crank!" + SPAN_NOTICE("\The [user] begins to crank \the [src]!"), + SPAN_NOTICE("You begin to rotate \the [src]'s crank!") ) playsound(user.loc, 'sound/items/crank.ogg', 60, 1) is_charging = TRUE flick("crank", src) if(do_after(user,2 SECONDS)) - to_chat(user, "You finish charging \the [src].") + to_chat(user, SPAN_NOTICE("You finish charging \the [src].")) power_supply.give(charge_cost) update_maptext() update_icon() diff --git a/code/modules/projectiles/guns/energy/laser.dm b/code/modules/projectiles/guns/energy/laser.dm index 0b840f5eccd..e80906c8eb0 100644 --- a/code/modules/projectiles/guns/energy/laser.dm +++ b/code/modules/projectiles/guns/energy/laser.dm @@ -174,7 +174,7 @@ if(wielded) toggle_scope(2.0, usr) else - to_chat(usr, "You can't look through the scope without stabilizing the rifle!") + to_chat(usr, SPAN_WARNING("You can't look through the scope without stabilizing the rifle!")) /obj/item/gun/energy/laser/shotgun name = "laser shotgun" diff --git a/code/modules/projectiles/guns/energy/lawgiver.dm b/code/modules/projectiles/guns/energy/lawgiver.dm index 4197564af98..47aa5b3d708 100644 --- a/code/modules/projectiles/guns/energy/lawgiver.dm +++ b/code/modules/projectiles/guns/energy/lawgiver.dm @@ -98,10 +98,10 @@ /obj/item/gun/energy/lawgiver/proc/play_message() while (message_enabled && !message_disable) //Shut down command issued. Inform user that boardcasting has been stopped - usr.audible_message("[usr]'s [src.name] broadcasts: [message]","") + usr.audible_message(SPAN_WARNING("[usr]'s [src.name] broadcasts: [message]"),"") playsound(get_turf(src), 'sound/voice/halt.ogg', 100, 1, vary = 0) sleep(message_delay) - to_chat(usr, "Broadcasting Message disabled") + to_chat(usr, SPAN_WARNING("Broadcasting Message disabled")) message_enabled = 0 message_disable = 0 @@ -111,7 +111,7 @@ else src.dna = user.dna.unique_enzymes src.owner_name = user.real_name - to_chat(user, "You feel your palm heat up as the gun reads your DNA profile.") + to_chat(user, SPAN_NOTICE("You feel your palm heat up as the gun reads your DNA profile.")) desc += "
Linked to: [user.real_name]" return @@ -124,8 +124,8 @@ var/obj/item/organ/external/RA = H.get_organ(BP_R_ARM) var/active_hand = H.hand playsound(user, 'sound/weapons/lawgiver_idfail.ogg', 40, 1) - to_chat(user, "You hear a soft beep from the gun and 'ID FAIL' flashes across the screen.") - to_chat(user, "You feel a tiny prick in your hand!") + to_chat(user, SPAN_DANGER("You hear a soft beep from the gun and 'ID FAIL' flashes across the screen.")) + to_chat(user, SPAN_DANGER("You feel a tiny prick in your hand!")) user.drop_item() //Blow up Unauthorized Users Hand//todo, delet this, as it's duplicate behaviour from Firing pins. sleep(60) @@ -137,7 +137,7 @@ ..() /obj/item/gun/energy/lawgiver/proc/Emag(mob/user as mob) - to_chat(usr, "You short out [src]'s id check") + to_chat(usr, SPAN_WARNING("You short out [src]'s id check")) emagged = 1 return 1 @@ -163,38 +163,38 @@ /* Firing Modes*/ if(findtext(msg,"single")) sel_mode = 1 - to_chat(usr, "[src.name] is now set to single shot mode.") + to_chat(usr, SPAN_WARNING("[src.name] is now set to single shot mode.")) else if(findtext(msg,"rapidfire")) sel_mode = 2 - to_chat(usr, "[src.name] is now set to rapid fire mode.") + to_chat(usr, SPAN_WARNING("[src.name] is now set to rapid fire mode.")) else if(findtext(msg,"highex") || findtext(msg,"grenade")) sel_mode = 3 - to_chat(usr, "[src.name] is now set to high explosive mode.") + to_chat(usr, SPAN_WARNING("[src.name] is now set to high explosive mode.")) else if(findtext(msg,"stun")) sel_mode = 4 - to_chat(usr, "[src.name] is now set to stun mode.") + to_chat(usr, SPAN_WARNING("[src.name] is now set to stun mode.")) else if(findtext(msg,"hotshot") || findtext(msg,"incendiary")) sel_mode = 5 - to_chat(usr, "[src.name] is now set to incendiary mode.") + to_chat(usr, SPAN_WARNING("[src.name] is now set to incendiary mode.")) else if(findtext(msg,"armorpiercing") || findtext(msg,"execution")) sel_mode = 6 - to_chat(usr, "[src.name] is now set to armorpiercing mode.") + to_chat(usr, SPAN_WARNING("[src.name] is now set to armorpiercing mode.")) else if(findtext(msg,"pellets")) sel_mode = 7 - to_chat(usr, "[src.name] is now set to pellet mode.") + to_chat(usr, SPAN_WARNING("[src.name] is now set to pellet mode.")) /* Other Stuff */ else if(findtext(msg,"reset") && (findtext(msg,"user") || findtext(msg,"dna"))) dna = null desc = default_desc - to_chat(usr, "[src.name]´s owner has been reset. Do not attempt to fire [src.name] without rebinding a new owner.") + to_chat(usr, SPAN_WARNING("[src.name]´s owner has been reset. Do not attempt to fire [src.name] without rebinding a new owner.")) else if((findtext(msg,"disable") || findtext(msg,"deactivate")) && findtext(msg,"crowdcontrol")) message_disable = 1 - to_chat(usr, "[src.name]´s crowdcontrol deactivation sequence started.") + to_chat(usr, SPAN_WARNING("[src.name]´s crowdcontrol deactivation sequence started.")) else if((findtext(msg,"enable") || findtext(msg,"activate")) && findtext(msg,"crowdcontrol")) if(message_enabled) //Check if a message is already broadcasting -> abort - to_chat(usr, "[src.name] is already broadcasting a message.") + to_chat(usr, SPAN_WARNING("[src.name] is already broadcasting a message.")) return - to_chat(usr, "[src.name]´s crowdcontrol activation sequence started.") + to_chat(usr, SPAN_WARNING("[src.name]´s crowdcontrol activation sequence started.")) message = "Citizens stay calm. Stand back from the crime scene. Interference with the crime scene carries an automatic brig sentence." message_enabled = 1 message_disable = 0 diff --git a/code/modules/projectiles/guns/energy/magic.dm b/code/modules/projectiles/guns/energy/magic.dm index ffb2ec0c527..241df4035de 100644 --- a/code/modules/projectiles/guns/energy/magic.dm +++ b/code/modules/projectiles/guns/energy/magic.dm @@ -21,14 +21,14 @@ /obj/item/gun/energy/wand/handle_click_empty(mob/user = null) if (user) - user.visible_message("*fizzle*", "*fizzle*") + user.visible_message("*fizzle*", SPAN_DANGER("*fizzle*")) else src.visible_message("*fizzle*") playsound(src.loc, 'sound/effects/sparks1.ogg', 100, 1) /obj/item/gun/energy/wand/special_check(var/mob/living/user) if((user.mutations & HULK)) - to_chat(user, "In your rage you momentarily forget the operation of this wand!") + to_chat(user, SPAN_DANGER("In your rage you momentarily forget the operation of this wand!")) return 0 return 1 diff --git a/code/modules/projectiles/guns/energy/modular.dm b/code/modules/projectiles/guns/energy/modular.dm index 5c456cb5f8a..db50c714e55 100644 --- a/code/modules/projectiles/guns/energy/modular.dm +++ b/code/modules/projectiles/guns/energy/modular.dm @@ -226,19 +226,19 @@ /obj/item/gun/energy/laser/prototype/small_fail(var/mob/user) if(capacitor) - to_chat(user, "\The [src]'s [capacitor] short-circuits!") + to_chat(user, SPAN_DANGER("\The [src]'s [capacitor] short-circuits!")) capacitor.small_fail(user, src) return /obj/item/gun/energy/laser/prototype/medium_fail(var/mob/user) if(capacitor) - to_chat(user, "\The [src]'s [capacitor] overloads!") + to_chat(user, SPAN_DANGER("\The [src]'s [capacitor] overloads!")) capacitor.medium_fail(user, src) return /obj/item/gun/energy/laser/prototype/critical_fail(var/mob/user) if(capacitor) - to_chat(user, "\The [src]'s [capacitor] goes critical!") + to_chat(user, SPAN_DANGER("\The [src]'s [capacitor] goes critical!")) capacitor.critical_fail(user, src) return @@ -261,22 +261,22 @@ if(wielded) toggle_scope(2.0, usr) else - to_chat(usr, "You can't look through the scope without stabilizing the rifle!") + to_chat(usr, SPAN_WARNING("You can't look through the scope without stabilizing the rifle!")) else - to_chat(usr, "This device does not have a scope installed!") + to_chat(usr, SPAN_WARNING("This device does not have a scope installed!")) /obj/item/gun/energy/laser/prototype/special_check(var/mob/user) if(is_charging && chargetime) - to_chat(user, "\The [src] is already charging!") + to_chat(user, SPAN_DANGER("\The [src] is already charging!")) return 0 if(!wielded && (origin_chassis == CHASSIS_LARGE)) - to_chat(user, "You require both hands to fire this weapon!") + to_chat(user, SPAN_DANGER("You require both hands to fire this weapon!")) return 0 if(chargetime) user.visible_message( - "\The [user] begins charging the [src]!", - "You begin charging the [src]!", - "You hear a low pulsing roar!" + SPAN_DANGER("\The [user] begins charging the [src]!"), + SPAN_DANGER("You begin charging the [src]!"), + SPAN_DANGER("You hear a low pulsing roar!") ) is_charging = 1 diff --git a/code/modules/projectiles/guns/energy/nuclear.dm b/code/modules/projectiles/guns/energy/nuclear.dm index e08aa8794ac..aea279973fb 100644 --- a/code/modules/projectiles/guns/energy/nuclear.dm +++ b/code/modules/projectiles/guns/energy/nuclear.dm @@ -68,9 +68,9 @@ /obj/item/gun/energy/gun/nuclear/small_fail(var/mob/user) for (var/mob/living/M in range(0,src)) //Only a minor failure, enjoy your radiation if you're in the same tile or carrying it if (M == user) - to_chat(M, "Your gun feels pleasantly warm for a moment.") + to_chat(M, SPAN_WARNING("Your gun feels pleasantly warm for a moment.")) else - to_chat(M, "You feel a warm sensation.") + to_chat(M, SPAN_WARNING("You feel a warm sensation.")) SSradiation.radiate(src, rand(3, 50)) return @@ -82,9 +82,9 @@ return /obj/item/gun/energy/gun/nuclear/critical_fail(var/mob/user) - to_chat(user, "Your gun's reactor overloads!") + to_chat(user, SPAN_DANGER("Your gun's reactor overloads!")) for (var/mob/living/M in range(rand(1,4),src)) - to_chat(M, "You feel a wave of heat wash over you.") + to_chat(M, SPAN_WARNING("You feel a wave of heat wash over you.")) SSradiation.radiate(src, rand(3, 80)) crit_fail = 1 //break the gun so it stops recharging self_recharge = FALSE diff --git a/code/modules/projectiles/guns/energy/rifle.dm b/code/modules/projectiles/guns/energy/rifle.dm index 8d7c7d942c7..81cdd9f14c2 100644 --- a/code/modules/projectiles/guns/energy/rifle.dm +++ b/code/modules/projectiles/guns/energy/rifle.dm @@ -169,7 +169,7 @@ secondary_fire_sound = null /obj/item/gun/energy/rifle/pulse/destroyer/toggle_firing_mode(mob/living/user) - to_chat(user, "[src.name] has three settings, and they are all DESTROY.") + to_chat(user, SPAN_WARNING("[src.name] has three settings, and they are all DESTROY.")) /obj/item/gun/energy/rifle/laser/tachyon name = "tachyon rifle" @@ -196,7 +196,7 @@ if(wielded) toggle_scope(2.0, usr) else - to_chat(usr, "You can't look through the scope without stabilizing the rifle!") + to_chat(usr, SPAN_WARNING("You can't look through the scope without stabilizing the rifle!")) /obj/item/gun/energy/rifle/ionrifle name = "ion rifle" diff --git a/code/modules/projectiles/guns/energy/scythe.dm b/code/modules/projectiles/guns/energy/scythe.dm index 83a705b5eb3..038ab409c3a 100644 --- a/code/modules/projectiles/guns/energy/scythe.dm +++ b/code/modules/projectiles/guns/energy/scythe.dm @@ -1,7 +1,7 @@ /obj/item/gun/energy/scythe name = "\improper Purpose munitions scythe" - desc = "A seemingly innocuous metal construction the size of a human arm. Through forces unknown, it produces alloy flechettes \ - capable of piercing even the strongest armor known to the Spur." + desc = SPAN_WARNING("A seemingly innocuous metal construction the size of a human arm. Through forces unknown, it produces alloy flechettes \ + capable of piercing even the strongest armor known to the Spur.") icon = 'icons/obj/guns/scythe.dmi' icon_state = "hunterkiller_scythe" item_state = "hunterkiller_scythe" diff --git a/code/modules/projectiles/guns/energy/special.dm b/code/modules/projectiles/guns/energy/special.dm index e92180ebf0e..b0b41a4e05b 100644 --- a/code/modules/projectiles/guns/energy/special.dm +++ b/code/modules/projectiles/guns/energy/special.dm @@ -37,7 +37,7 @@ /obj/item/gun/energy/floragun/afterattack(obj/target, mob/user, adjacent_flag) //allow shooting into adjacent hydrotrays regardless of intent if(adjacent_flag && istype(target,/obj/machinery/portable_atmospherics/hydroponics)) - user.visible_message("\The [user] fires \the [src] into \the [target]!") + user.visible_message(SPAN_DANGER("\The [user] fires \the [src] into \the [target]!")) Fire(target,user) return ..() @@ -245,16 +245,16 @@ /obj/item/gun/energy/vaurca/gatlinglaser/special_check(var/mob/user) if(is_charging) - to_chat(user, "\The [src] is already spinning!") + to_chat(user, SPAN_DANGER("\The [src] is already spinning!")) return 0 if(!wielded) - to_chat(user, "You cannot fire this weapon with just one hand!") + to_chat(user, SPAN_DANGER("You cannot fire this weapon with just one hand!")) return 0 playsound(src, 'sound/weapons/saw/chainsawstart.ogg', 90, 1) user.visible_message( - "\The [user] begins spinning [src]'s barrels!", - "You begin spinning [src]'s barrels!", - "You hear the spin of a rotary gun!" + SPAN_DANGER("\The [user] begins spinning [src]'s barrels!"), + SPAN_DANGER("You begin spinning [src]'s barrels!"), + SPAN_DANGER("You hear the spin of a rotary gun!") ) is_charging = 1 if(!do_after(user, 30)) @@ -339,15 +339,15 @@ /obj/item/gun/energy/vaurca/typec/special_check(var/mob/user) if(is_charging) - to_chat(user, "\The [src] is already charging!") + to_chat(user, SPAN_DANGER("\The [src] is already charging!")) return 0 if(!wielded) - to_chat(user, "You could never fire this weapon with merely one hand!") + to_chat(user, SPAN_DANGER("You could never fire this weapon with merely one hand!")) return 0 user.visible_message( - "\The [user] begins charging the [src]!", - "You begin charging the [src]!", - "You hear a low pulsing roar!" + SPAN_DANGER("\The [user] begins charging the [src]!"), + SPAN_DANGER("You begin charging the [src]!"), + SPAN_DANGER("You hear a low pulsing roar!") ) is_charging = 1 if(!do_after(user, 20)) @@ -366,11 +366,11 @@ if(H.mob_size >= 30) playsound(user, 'sound/weapons/saberon.ogg', 50, 1) anchored = 1 - to_chat(user, "\The [src] is now energised.") + to_chat(user, SPAN_NOTICE("\The [src] is now energised.")) icon_state = "megaglaive1" ..() return - to_chat(user, "\The [src] is far too large for you to pick up.") + to_chat(user, SPAN_WARNING("\The [src] is far too large for you to pick up.")) return /obj/item/gun/energy/vaurca/typec/dropped(mob/user) diff --git a/code/modules/projectiles/guns/launcher.dm b/code/modules/projectiles/guns/launcher.dm index a7adaa0b8af..91a78731309 100644 --- a/code/modules/projectiles/guns/launcher.dm +++ b/code/modules/projectiles/guns/launcher.dm @@ -19,7 +19,7 @@ //Override this to avoid a runtime with suicide handling. /obj/item/gun/launcher/handle_suicide(mob/living/user) - to_chat(user, "Shooting yourself with \a [src] is pretty tricky. You can't seem to manage it.") + to_chat(user, SPAN_WARNING("Shooting yourself with \a [src] is pretty tricky. You can't seem to manage it.")) return /obj/item/gun/launcher/proc/update_release_force(obj/item/projectile) diff --git a/code/modules/projectiles/guns/launcher/harpoon.dm b/code/modules/projectiles/guns/launcher/harpoon.dm index caef01eeed0..7aa7a31b4d3 100644 --- a/code/modules/projectiles/guns/launcher/harpoon.dm +++ b/code/modules/projectiles/guns/launcher/harpoon.dm @@ -37,7 +37,7 @@ /obj/item/gun/launcher/harpoon/special_check(mob/user) if(!wielded) - to_chat(user, "You can't fire without stabilizing \the [src]!") + to_chat(user, SPAN_WARNING("You can't fire without stabilizing \the [src]!")) return FALSE return ..() @@ -46,10 +46,10 @@ if(harpoons.len < max_harpoons) user.drop_from_inventory(attacking_item, src) harpoons += attacking_item - to_chat(user, "You load \the [attacking_item] in \the [src].") + to_chat(user, SPAN_NOTICE("You load \the [attacking_item] in \the [src].")) update_icon() else - to_chat(user, "\The [src] is already loaded.") + to_chat(user, SPAN_WARNING("\The [src] is already loaded.")) /obj/item/gun/launcher/harpoon/attack_hand(mob/user) diff --git a/code/modules/projectiles/guns/launcher/pneumatic.dm b/code/modules/projectiles/guns/launcher/pneumatic.dm index 603748c954e..1d4dc0ba949 100644 --- a/code/modules/projectiles/guns/launcher/pneumatic.dm +++ b/code/modules/projectiles/guns/launcher/pneumatic.dm @@ -171,7 +171,7 @@ if(istype(attacking_item, /obj/item/pipe)) if(buildstate == 0) qdel(attacking_item) - to_chat(user, "You secure the piping inside the frame.") + to_chat(user, SPAN_NOTICE("You secure the piping inside the frame.")) buildstate++ update_icon() return @@ -179,16 +179,16 @@ if(buildstate == 2) var/obj/item/stack/material/M = attacking_item if(M.use(5)) - to_chat(user, "You assemble a chassis around the cannon frame.") + to_chat(user, SPAN_NOTICE("You assemble a chassis around the cannon frame.")) buildstate++ update_icon() else - to_chat(user, "You need at least five metal sheets to complete this task.") + to_chat(user, SPAN_NOTICE("You need at least five metal sheets to complete this task.")) return else if(istype(attacking_item,/obj/item/device/transfer_valve)) if(buildstate == 4) qdel(attacking_item) - to_chat(user, "You install the transfer valve and connect it to the piping.") + to_chat(user, SPAN_NOTICE("You install the transfer valve and connect it to the piping.")) buildstate++ update_icon() return @@ -198,7 +198,7 @@ if(T.use(0,user)) if(!src || !T.isOn()) return playsound(src.loc, 'sound/items/welder_pry.ogg', 100, 1) - to_chat(user, "You weld the pipe into place.") + to_chat(user, SPAN_NOTICE("You weld the pipe into place.")) buildstate++ update_icon() if(buildstate == 3) @@ -206,7 +206,7 @@ if(T.use(0,user)) if(!src || !T.isOn()) return playsound(src.loc, 'sound/items/welder_pry.ogg', 100, 1) - to_chat(user, "You weld the metal chassis together.") + to_chat(user, SPAN_NOTICE("You weld the metal chassis together.")) buildstate++ update_icon() if(buildstate == 5) @@ -214,7 +214,7 @@ if(T.use(0,user)) if(!src || !T.isOn()) return playsound(src.loc, 'sound/items/welder_pry.ogg', 100, 1) - to_chat(user, "You weld the valve into place.") + to_chat(user, SPAN_NOTICE("You weld the valve into place.")) new /obj/item/gun/launcher/pneumatic(get_turf(src)) qdel(src) return diff --git a/code/modules/projectiles/guns/launcher/rocket.dm b/code/modules/projectiles/guns/launcher/rocket.dm index 3843943808d..7764e03e1b6 100644 --- a/code/modules/projectiles/guns/launcher/rocket.dm +++ b/code/modules/projectiles/guns/launcher/rocket.dm @@ -22,17 +22,17 @@ /obj/item/gun/launcher/rocket/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() if(is_adjacent) - . += "[rockets.len] / [max_rockets] rockets." + . += SPAN_NOTICE("[rockets.len] / [max_rockets] rockets.") /obj/item/gun/launcher/rocket/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/ammo_casing/rocket)) if(rockets.len < max_rockets) user.drop_from_inventory(attacking_item, src) rockets += attacking_item - to_chat(user, "You put the rocket in [src].") - to_chat(user, "[rockets.len] / [max_rockets] rockets.") + to_chat(user, SPAN_NOTICE("You put the rocket in [src].")) + to_chat(user, SPAN_NOTICE("[rockets.len] / [max_rockets] rockets.")) else - to_chat(usr, "[src] cannot hold more rockets.") + to_chat(usr, SPAN_WARNING("[src] cannot hold more rockets.")) /obj/item/gun/launcher/rocket/consume_next_projectile() if(rockets.len) diff --git a/code/modules/projectiles/guns/launcher/syringe_gun.dm b/code/modules/projectiles/guns/launcher/syringe_gun.dm index 43cea3ef06c..a75a23c01d8 100644 --- a/code/modules/projectiles/guns/launcher/syringe_gun.dm +++ b/code/modules/projectiles/guns/launcher/syringe_gun.dm @@ -21,7 +21,7 @@ /obj/item/syringe_cartridge/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/reagent_containers/syringe)) syringe = attacking_item - to_chat(user, "You carefully insert [syringe] into [src].") + to_chat(user, SPAN_NOTICE("You carefully insert [syringe] into [src].")) user.remove_from_mob(syringe) syringe.forceMove(src) sharp = 1 @@ -30,7 +30,7 @@ /obj/item/syringe_cartridge/attack_self(mob/user) if(syringe) - to_chat(user, "You remove [syringe] from [src].") + to_chat(user, SPAN_NOTICE("You remove [syringe] from [src].")) user.put_in_hands(syringe) syringe = null sharp = initial(sharp) @@ -97,27 +97,27 @@ /obj/item/gun/launcher/syringe/unique_action(mob/living/user) if(next) - user.visible_message("[user] unlatches and carefully relaxes the bolt on [src].", "You unlatch and carefully relax the bolt on [src], unloading the spring.") + user.visible_message("[user] unlatches and carefully relaxes the bolt on [src].", SPAN_WARNING("You unlatch and carefully relax the bolt on [src], unloading the spring.")) playsound(src.loc, 'sound/weapons/blade_close.ogg', 50, 1) next = null else if(darts.len) playsound(src.loc, 'sound/weapons/blade_open.ogg', 50, 1) - user.visible_message("[user] draws back the bolt on [src], clicking it into place.", "You draw back the bolt on the [src], loading the spring!") + user.visible_message("[user] draws back the bolt on [src], clicking it into place.", SPAN_WARNING("You draw back the bolt on the [src], loading the spring!")) next = darts[1] add_fingerprint(user) /obj/item/gun/launcher/syringe/attack_hand(mob/living/user as mob) if(user.get_inactive_hand() == src) if(!darts.len) - to_chat(user, "[src] is empty.") + to_chat(user, SPAN_WARNING("[src] is empty.")) return if(next) - to_chat(user, "[src]'s cover is locked shut.") + to_chat(user, SPAN_WARNING("[src]'s cover is locked shut.")) return var/obj/item/syringe_cartridge/C = darts[1] darts -= C user.put_in_hands(C) - user.visible_message("[user] removes \a [C] from [src].", "You remove \a [C] from [src].") + user.visible_message("[user] removes \a [C] from [src].", SPAN_NOTICE("You remove \a [C] from [src].")) else ..() @@ -125,12 +125,12 @@ if(istype(attacking_item, /obj/item/syringe_cartridge)) var/obj/item/syringe_cartridge/C = attacking_item if(darts.len >= max_darts) - to_chat(user, "[src] is full!") + to_chat(user, SPAN_WARNING("[src] is full!")) return user.remove_from_mob(C) C.forceMove(src) darts += C //add to the end - user.visible_message("[user] inserts \a [C] into [src].", "You insert \a [C] into [src].") + user.visible_message("[user] inserts \a [C] into [src].", SPAN_NOTICE("You insert \a [C] into [src].")) else ..() diff --git a/code/modules/projectiles/guns/projectile.dm b/code/modules/projectiles/guns/projectile.dm index 5f6fbbd2d5a..23beef93483 100644 --- a/code/modules/projectiles/guns/projectile.dm +++ b/code/modules/projectiles/guns/projectile.dm @@ -102,7 +102,7 @@ if(!jam_num && jam_chance && get_ammo()) if(prob(jam_chance)) playsound(src.loc, 'sound/items/trayhit2.ogg', 50, TRUE) - to_chat(user, "\The [src] jams!") + to_chat(user, SPAN_DANGER("\The [src] jams!")) balloon_alert(user, SPAN_RED("JAM")) jam_num = rand(2, 5) // gotta attackself two to five times to unjam return FALSE @@ -144,21 +144,21 @@ if(istype(A, /obj/item/ammo_magazine)) var/obj/item/ammo_magazine/AM = A if(!(load_method & AM.mag_type) || caliber != AM.caliber || (allowed_magazines && !is_type_in_list(A, allowed_magazines))) - to_chat(user,"[AM] won't load into [src]!") + to_chat(user,SPAN_WARNING("[AM] won't load into [src]!")) return switch(AM.mag_type) if(MAGAZINE) if(ammo_magazine) - to_chat(user,"[src] already has a magazine loaded.") //already a magazine here + to_chat(user,SPAN_WARNING("[src] already has a magazine loaded.")) //already a magazine here return user.remove_from_mob(AM) AM.forceMove(src) ammo_magazine = AM - user.visible_message("[user] inserts [AM] into [src].", "You insert [AM] into [src].") + user.visible_message("[user] inserts [AM] into [src].", SPAN_NOTICE("You insert [AM] into [src].")) playsound(src.loc, AM.insert_sound, 50, extrarange = SHORT_RANGE_SOUND_EXTRARANGE) if(SPEEDLOADER) if(loaded.len >= max_shells) - to_chat(user,"[src] is full!") + to_chat(user,SPAN_WARNING("[src] is full!")) return var/count = 0 for(var/obj/item/ammo_casing/C in AM.stored_ammo) @@ -170,25 +170,25 @@ AM.stored_ammo -= C //should probably go inside an ammo_magazine proc, but I guess less proc calls this way... count++ if(count) - user.visible_message("[user] reloads [src].", "You load [count] round\s into [src] using \the [AM].") + user.visible_message("[user] reloads [src].", SPAN_NOTICE("You load [count] round\s into [src] using \the [AM].")) playsound(src.loc, AM.insert_sound, 50, extrarange = SHORT_RANGE_SOUND_EXTRARANGE) AM.update_icon() else if(istype(A, /obj/item/ammo_casing)) var/obj/item/ammo_casing/C = A if(!(load_method & SINGLE_CASING)) - to_chat(user,"[src] can not be loaded with single casings.") + to_chat(user,SPAN_WARNING("[src] can not be loaded with single casings.")) return //incompatible if(caliber != C.caliber) - to_chat(user,"\The [C] does not fit.") + to_chat(user,SPAN_WARNING("\The [C] does not fit.")) return //incompatible if(loaded.len >= max_shells) - to_chat(user,"[src] is full.") + to_chat(user,SPAN_WARNING("[src] is full.")) return user.remove_from_mob(C) C.forceMove(src) loaded.Insert(1, C) //add to the head of the list - user.visible_message("[user] inserts \a [C] into [src].", "You insert \a [C] into [src].") + user.visible_message("[user] inserts \a [C] into [src].", SPAN_NOTICE("You insert \a [C] into [src].")) playsound(src.loc, C.reload_sound, 50, extrarange = SILENCED_SOUND_EXTRARANGE) //Casings, aka single bullets, are extremely quiet update_maptext() update_icon() @@ -200,7 +200,7 @@ ammo_magazine.forceMove(user.loc) else user.put_in_hands(ammo_magazine) - user.visible_message("[user] removes [ammo_magazine] from [src].", "You remove [ammo_magazine] from [src].") + user.visible_message("[user] removes [ammo_magazine] from [src].", SPAN_NOTICE("You remove [ammo_magazine] from [src].")) playsound(src.loc, ammo_magazine.eject_sound, 50, extrarange = SHORT_RANGE_SOUND_EXTRARANGE, falloff_exponent = (SOUND_FALLOFF_EXPONENT+2)) ammo_magazine.update_icon() ammo_magazine = null @@ -216,14 +216,14 @@ count++ loaded.Cut() if(count) - user.visible_message("[user] unloads [src].", "You unload [count] round\s from [src].") + user.visible_message("[user] unloads [src].", SPAN_NOTICE("You unload [count] round\s from [src].")) else if(load_method & SINGLE_CASING) var/obj/item/ammo_casing/C = loaded[loaded.len] loaded.len-- user.put_in_hands(C) - user.visible_message("[user] removes \a [C] from [src].", "You remove \a [C] from [src].") + user.visible_message("[user] removes \a [C] from [src].", SPAN_NOTICE("You remove \a [C] from [src].")) else - to_chat(user, "[src] is empty.") + to_chat(user, SPAN_WARNING("[src] is empty.")) update_maptext() update_icon() @@ -281,7 +281,7 @@ ammo_magazine.forceMove(get_turf(src.loc)) user.visible_message( "[ammo_magazine] falls out and clatters on the floor!", - "[ammo_magazine] falls out and clatters on the floor!" + SPAN_NOTICE("[ammo_magazine] falls out and clatters on the floor!") ) playsound(user, ammo_magazine.eject_sound, 40, FALSE) ammo_magazine.update_icon() @@ -293,7 +293,7 @@ if(distance > 1) return if(jam_num) - . += "It looks jammed." + . += SPAN_WARNING("It looks jammed.") if(ammo_magazine) . += "It has \a [ammo_magazine] loaded." if(suppressed) diff --git a/code/modules/projectiles/guns/projectile/automatic.dm b/code/modules/projectiles/guns/projectile/automatic.dm index 1fc0ff9e068..2bfac99bb02 100644 --- a/code/modules/projectiles/guns/projectile/automatic.dm +++ b/code/modules/projectiles/guns/projectile/automatic.dm @@ -473,13 +473,13 @@ /obj/item/gun/projectile/automatic/rifle/l6_saw/special_check(mob/user) if(cover_open) - to_chat(user, "[src]'s cover is open! Close it before firing!") + to_chat(user, SPAN_WARNING("[src]'s cover is open! Close it before firing!")) return 0 return ..() /obj/item/gun/projectile/automatic/rifle/l6_saw/proc/toggle_cover(mob/user) cover_open = !cover_open - to_chat(user, "You [cover_open ? "open" : "close"] [src]'s cover.") + to_chat(user, SPAN_NOTICE("You [cover_open ? "open" : "close"] [src]'s cover.")) if(cover_open) playsound(user, 'sound/weapons/sawopen.ogg', 60, 1) else @@ -507,13 +507,13 @@ /obj/item/gun/projectile/automatic/rifle/l6_saw/load_ammo(var/obj/item/A, mob/user) if(!cover_open) - to_chat(user, "You need to open the cover to load [src].") + to_chat(user, SPAN_WARNING("You need to open the cover to load [src].")) return ..() /obj/item/gun/projectile/automatic/rifle/l6_saw/unload_ammo(mob/user, var/allow_dump=1) if(!cover_open) - to_chat(user, "You need to open the cover to unload [src].") + to_chat(user, SPAN_WARNING("You need to open the cover to unload [src].")) return ..() @@ -760,7 +760,7 @@ if(wielded) toggle_scope(2.0, usr) else - to_chat(usr, "You can't look through the scope without stabilizing the rifle!") + to_chat(usr, SPAN_WARNING("You can't look through the scope without stabilizing the rifle!")) /obj/item/gun/projectile/automatic/rifle/konyang/k556 name = "konyang assault rifle" diff --git a/code/modules/projectiles/guns/projectile/dartgun.dm b/code/modules/projectiles/guns/projectile/dartgun.dm index e395177e5c0..653037a9715 100644 --- a/code/modules/projectiles/guns/projectile/dartgun.dm +++ b/code/modules/projectiles/guns/projectile/dartgun.dm @@ -100,24 +100,24 @@ /obj/item/gun/projectile/dartgun/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() if (beakers.len) - . += "[src] contains:" + . += SPAN_NOTICE("[src] contains:") for(var/obj/item/reagent_containers/glass/beaker/B in beakers) for(var/_R in B.reagents.reagent_volumes) var/singleton/reagent/R = GET_SINGLETON(_R) - . += "[B.reagents.reagent_volumes[_R]] units of [R.name]" + . += SPAN_NOTICE("[B.reagents.reagent_volumes[_R]] units of [R.name]") /obj/item/gun/projectile/dartgun/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/reagent_containers/glass)) if(!istype(attacking_item, container_type)) - to_chat(user, "[attacking_item] doesn't seem to fit into [src].") + to_chat(user, SPAN_NOTICE("[attacking_item] doesn't seem to fit into [src].")) return if(beakers.len >= max_beakers) - to_chat(user, "[src] already has [max_beakers] beakers in it - another one isn't going to fit!") + to_chat(user, SPAN_NOTICE("[src] already has [max_beakers] beakers in it - another one isn't going to fit!")) return var/obj/item/reagent_containers/glass/beaker/B = attacking_item user.drop_from_inventory(B,src) beakers += B - to_chat(user, "You slot [B] into [src].") + to_chat(user, SPAN_NOTICE("You slot [B] into [src].")) src.updateUsrDialog() return 1 ..() @@ -156,7 +156,7 @@ if(ammo_magazine.stored_ammo && ammo_magazine.stored_ammo.len) dat += "The dart cartridge has [ammo_magazine.stored_ammo.len] shots remaining." else - dat += "The dart cartridge is empty!" + dat += SPAN_WARNING("The dart cartridge is empty!") dat += " \[Eject\]" user << browse(dat, "window=dartgun") diff --git a/code/modules/projectiles/guns/projectile/improvised.dm b/code/modules/projectiles/guns/projectile/improvised.dm index 74931a02b03..22bfb967679 100644 --- a/code/modules/projectiles/guns/projectile/improvised.dm +++ b/code/modules/projectiles/guns/projectile/improvised.dm @@ -22,7 +22,10 @@ /obj/item/gun/projectile/shotgun/improvised/special_check(var/mob/living/carbon/human/M) if(prob(fail_chance)) - M.visible_message("[M]'s weapon blows up, shattering into pieces!","[src] blows up in your face!", "You hear a loud bang!") + M.visible_message(SPAN_DANGER("[M]'s weapon blows up, shattering into pieces!"), + SPAN_DANGER("[src] blows up in your face!"), + "You hear a loud bang!") + M.take_organ_damage(0,30) M.drop_item() new /obj/item/material/shard/shrapnel(get_turf(src)) @@ -34,11 +37,13 @@ /obj/item/gun/projectile/shotgun/improvised/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/surgery/circular_saw) || istype(attacking_item, /obj/item/melee/energy) || istype(attacking_item, /obj/item/gun/energy/plasmacutter) && w_class != 3) - to_chat(user, "You begin to shorten the barrel of \the [src].") + to_chat(user, SPAN_NOTICE("You begin to shorten the barrel of \the [src].")) if(loaded.len) for(var/i in 1 to max_shells) Fire(user, user) //will this work? //it will. we call it twice, for twice the FUN - user.visible_message("The shotgun goes off!", "The shotgun goes off in your face!") + user.visible_message(SPAN_DANGER("The shotgun goes off!"), + SPAN_DANGER("The shotgun goes off in your face!")) + return if(attacking_item.use_tool(src, user, 30, volume = 50)) icon_state = "ishotgunsawn" @@ -48,7 +53,7 @@ slot_flags &= ~SLOT_BACK slot_flags |= (SLOT_BELT|SLOT_HOLSTER) name = "sawn-off improvised shotgun" - to_chat(user, "You shorten the barrel of \the [src]!") + to_chat(user, SPAN_WARNING("You shorten the barrel of \the [src]!")) else ..() @@ -108,21 +113,21 @@ if(istype(attacking_item, /obj/item/pipe)) if(buildstate == 0) qdel(attacking_item) - to_chat(user, "You place the pipe and the receiver together.") + to_chat(user, SPAN_NOTICE("You place the pipe and the receiver together.")) buildstate++ update_icon() return else if(istype(attacking_item, /obj/item/stock)) if(buildstate == 1) qdel(attacking_item) - to_chat(user, "You add the stock to the assembly.") + to_chat(user, SPAN_NOTICE("You add the stock to the assembly.")) buildstate++ update_icon() return else if(istype(attacking_item, /obj/item/tape_roll)) if(buildstate == 2) qdel(attacking_item) - to_chat(user, "You strap the pieces together with tape.") + to_chat(user, SPAN_NOTICE("You strap the pieces together with tape.")) buildstate++ update_icon() return @@ -130,11 +135,11 @@ var/obj/item/stack/cable_coil/C = attacking_item if(buildstate == 3) if(C.use(10)) - to_chat(user, "You tie the lengths of cable to the pipegun, making a sling.") + to_chat(user, SPAN_NOTICE("You tie the lengths of cable to the pipegun, making a sling.")) new /obj/item/gun/projectile/shotgun/pump/rifle/magazine_fed/pipegun(get_turf(src)) qdel(src) else - to_chat(user, "You need at least ten lengths of cable if you want to make a sling!") + to_chat(user, SPAN_NOTICE("You need at least ten lengths of cable if you want to make a sling!")) return ..() @@ -193,21 +198,21 @@ /obj/item/stock/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/material/hatchet)) if(buildstate == 0) - to_chat(user, "You carve the rifle stock.") + to_chat(user, SPAN_NOTICE("You carve the rifle stock.")) buildstate++ update_icon() return else if(istype(attacking_item, /obj/item/receivergun)) if(buildstate == 1) qdel(attacking_item) - to_chat(user, "You add the receiver to the assembly.") + to_chat(user, SPAN_NOTICE("You add the receiver to the assembly.")) buildstate++ update_icon() return else if(istype(attacking_item, /obj/item/pipe)) if(buildstate == 2) qdel(attacking_item) - to_chat(user, "You strap the pipe to the assembly.") + to_chat(user, SPAN_NOTICE("You strap the pipe to the assembly.")) buildstate++ update_icon() return @@ -217,7 +222,7 @@ if(T.use(0,user)) if(!src || !T.isOn()) return playsound(src.loc, 'sound/items/welder_pry.ogg', 100, 1) - to_chat(user, "You shorten the barrel with the welding tool.") + to_chat(user, SPAN_NOTICE("You shorten the barrel with the welding tool.")) var/obj/item/gun/projectile/improvised_handgun/G = new(get_turf(src)) G.jam_chance = rand(1,100) qdel(src) diff --git a/code/modules/projectiles/guns/projectile/minigun.dm b/code/modules/projectiles/guns/projectile/minigun.dm index 6915c2dbe3a..ba2eb59549a 100644 --- a/code/modules/projectiles/guns/projectile/minigun.dm +++ b/code/modules/projectiles/guns/projectile/minigun.dm @@ -53,21 +53,21 @@ return if (user.back!= src) - to_chat(user, "\The [src] must be worn to deploy \the [gun]!") + to_chat(user, SPAN_WARNING("\The [src] must be worn to deploy \the [gun]!")) return if(use_check_and_message(user)) return if(!gun) - to_chat(user, "There is no weapon attached the \the [src]!") + to_chat(user, SPAN_WARNING("There is no weapon attached the \the [src]!")) if(armed) - to_chat(user, "\The [src] has been already deployed!") + to_chat(user, SPAN_WARNING("\The [src] has been already deployed!")) else if(!user.put_in_hands(gun)) - to_chat(user, "You need a free hand to hold \the [gun]!") + to_chat(user, SPAN_WARNING("You need a free hand to hold \the [gun]!")) return armed = TRUE @@ -137,11 +137,11 @@ /obj/item/gun/projectile/automatic/rifle/minigun/special_check(var/mob/user) if(!wielded) - to_chat(user, "You cannot fire this weapon with just one hand!") + to_chat(user, SPAN_DANGER("You cannot fire this weapon with just one hand!")) return FALSE if (user.back!= source) - to_chat(user, "\The [source] must be worn to fire \the [src]!") + to_chat(user, SPAN_WARNING("\The [source] must be worn to fire \the [src]!")) return FALSE return ..() @@ -155,7 +155,7 @@ /obj/item/gun/projectile/automatic/rifle/minigun/dropped(mob/user) ..() if(source) - to_chat(user, "\The [src] snaps back onto \the [source].") + to_chat(user, SPAN_NOTICE("\The [src] snaps back onto \the [source].")) INVOKE_ASYNC(source, TYPE_PROC_REF(/obj/item/minigunpack, remove_gun)) source.update_icon() user.update_inv_back() diff --git a/code/modules/projectiles/guns/projectile/pistol.dm b/code/modules/projectiles/guns/projectile/pistol.dm index 7bc2f63dacc..2ace57582f8 100644 --- a/code/modules/projectiles/guns/projectile/pistol.dm +++ b/code/modules/projectiles/guns/projectile/pistol.dm @@ -35,7 +35,7 @@ var/mob/M = usr if(!M.mind) return 0 if(!M.mind.assigned_role == "Detective") - to_chat(M, "You don't feel cool enough to name this gun, chump.") + to_chat(M, SPAN_NOTICE("You don't feel cool enough to name this gun, chump.")) return 0 var/input = sanitizeSafe(input("What do you want to name the gun?", ,""), MAX_NAME_LEN) diff --git a/code/modules/projectiles/guns/projectile/revolver.dm b/code/modules/projectiles/guns/projectile/revolver.dm index 1e4c45d87a3..5975362a3b5 100644 --- a/code/modules/projectiles/guns/projectile/revolver.dm +++ b/code/modules/projectiles/guns/projectile/revolver.dm @@ -24,7 +24,10 @@ set src in usr chamber_offset = 0 - usr.visible_message("\The [usr] spins the cylinder of \the [src]!", "You spin the cylinder of \the [src]!", "You hear something metallic spin and click.") + usr.visible_message(SPAN_WARNING("\The [usr] spins the cylinder of \the [src]!"), + SPAN_WARNING("You spin the cylinder of \the [src]!"), + SPAN_NOTICE("You hear something metallic spin and click.")) + playsound(src.loc, 'sound/weapons/revolver_spin.ogg', 100, 1) loaded = shuffle(loaded) if(rand(1,max_shells) > loaded.len) @@ -111,7 +114,7 @@ var/mob/M = usr if(!M.mind) return 0 if(!M.mind.assigned_role == "Investigator") - to_chat(M, "You don't feel cool enough to name this gun, chump.") + to_chat(M, SPAN_NOTICE("You don't feel cool enough to name this gun, chump.")) return 0 var/input = sanitizeSafe(input("What do you want to name the gun?", ,""), MAX_NAME_LEN) @@ -153,7 +156,7 @@ /obj/item/gun/projectile/revolver/capgun/attackby(obj/item/attacking_item, mob/user) if(!attacking_item.iswirecutter() || icon_state == "revolver") return ..() - to_chat(user, "You snip off the toy markings off the [src].") + to_chat(user, SPAN_NOTICE("You snip off the toy markings off the [src].")) icon = 'icons/obj/guns/revolver.dmi' name = "revolver" icon_state = "revolver" @@ -198,7 +201,7 @@ . = ..() /obj/item/gun/projectile/revolver/lemat/unique_action(mob/living/user) - to_chat(user, "You change the firing mode on \the [src].") + to_chat(user, SPAN_NOTICE("You change the firing mode on \the [src].")) if(!flipped_firing) if(max_shells && secondary_max_shells) max_shells = secondary_max_shells @@ -240,8 +243,8 @@ set src in usr chamber_offset = 0 - visible_message("\The [usr] spins the cylinder of \the [src]!", \ - "You hear something metallic spin and click.") + visible_message(SPAN_WARNING("\The [usr] spins the cylinder of \the [src]!"), \ + SPAN_NOTICE("You hear something metallic spin and click.")) playsound(src.loc, 'sound/weapons/revolver_spin.ogg', 100, 1) if(!flipped_firing) loaded = shuffle(loaded) diff --git a/code/modules/projectiles/guns/projectile/rifle.dm b/code/modules/projectiles/guns/projectile/rifle.dm index c44d40a032d..3c46c2d7921 100644 --- a/code/modules/projectiles/guns/projectile/rifle.dm +++ b/code/modules/projectiles/guns/projectile/rifle.dm @@ -70,7 +70,7 @@ update_icon() name = "sawn-off bolt action rifle" desc = "A shortened bolt action rifle, not really acurate." - to_chat(user, "You shorten the barrel and stock of the rifle!") + to_chat(user, SPAN_WARNING("You shorten the barrel and stock of the rifle!")) /obj/item/gun/projectile/shotgun/pump/rifle/obrez name = "sawn-off bolt action rifle" @@ -154,7 +154,7 @@ if(wielded) toggle_scope(2.0, usr) else - to_chat(usr, "You can't look through the scope without stabilizing the rifle!") + to_chat(usr, SPAN_WARNING("You can't look through the scope without stabilizing the rifle!")) /obj/item/gun/projectile/contender name = "pocket rifle" @@ -175,7 +175,7 @@ /obj/item/gun/projectile/contender/special_check(mob/user) if(retracted_bolt) - to_chat(user, "You can't fire \the [src] while the bolt is open!") + to_chat(user, SPAN_WARNING("You can't fire \the [src] while the bolt is open!")) return 0 return ..() @@ -187,7 +187,7 @@ loaded -= C if(!retracted_bolt) - to_chat(user, "You cycle back the bolt on \the [src], ejecting the casing and allowing you to reload.") + to_chat(user, SPAN_NOTICE("You cycle back the bolt on \the [src], ejecting the casing and allowing you to reload.")) playsound(user, 'sound/weapons/riflebolt.ogg', 60, 1) icon_state = icon_retracted item_state = icon_retracted @@ -197,10 +197,10 @@ return 1 else if(retracted_bolt && loaded.len) - to_chat(user, "You cycle the loaded round into the chamber, allowing you to fire.") + to_chat(user, SPAN_NOTICE("You cycle the loaded round into the chamber, allowing you to fire.")) else - to_chat(user, "You cycle the bolt back into position, leaving the gun empty.") + to_chat(user, SPAN_NOTICE("You cycle the bolt back into position, leaving the gun empty.")) icon_state = initial(icon_state) item_state = initial(item_state) @@ -212,13 +212,13 @@ /obj/item/gun/projectile/contender/load_ammo(var/obj/item/A, mob/user) if(!retracted_bolt) - to_chat(user, "You can't load \the [src] without cycling the bolt.") + to_chat(user, SPAN_NOTICE("You can't load \the [src] without cycling the bolt.")) return ..() /obj/item/gun/projectile/contender/unload_ammo(mob/user, var/allow_dump=1) if(!retracted_bolt) - to_chat(user, "You can't unload \the [src] without cycling the bolt.") + to_chat(user, SPAN_NOTICE("You can't unload \the [src] without cycling the bolt.")) return ..() @@ -256,15 +256,15 @@ else AddOverlays("springfield-clip-full") else - to_chat(user, "There is no ammo in \the [has_clip.name]!") + to_chat(user, SPAN_WARNING("There is no ammo in \the [has_clip.name]!")) else if(!open_bolt) - to_chat(user, "The bolt on \the [src.name] is closed!") + to_chat(user, SPAN_WARNING("The bolt on \the [src.name] is closed!")) else - to_chat(user, "There is no clip in \the [src.name]!") + to_chat(user, SPAN_WARNING("There is no clip in \the [src.name]!")) /obj/item/gun/projectile/shotgun/pump/rifle/vintage/pump(mob/M as mob) if(!wielded) - to_chat(M, "You cannot work \the [src]'s bolt without gripping it with both hands!") + to_chat(M, SPAN_WARNING("You cannot work \the [src]'s bolt without gripping it with both hands!")) return if(!open_bolt) open_bolt = 1 @@ -295,12 +295,12 @@ /obj/item/gun/projectile/shotgun/pump/rifle/vintage/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/ammo_magazine/boltaction/vintage)) if(!open_bolt) - to_chat(user, "You need to open the bolt of \the [src] first.") + to_chat(user, SPAN_NOTICE("You need to open the bolt of \the [src] first.")) return if(!has_clip) user.drop_from_inventory(attacking_item, src) has_clip = attacking_item - to_chat(user, "You load the clip into \the [src].") + to_chat(user, SPAN_NOTICE("You load the clip into \the [src].")) if(!has_clip.stored_ammo.len) AddOverlays("springfield-clip-empty") else if(has_clip.stored_ammo.len <= 3) @@ -308,20 +308,20 @@ else AddOverlays("springfield-clip-full") else - to_chat(user, "There's already a clip in \the [src].") + to_chat(user, SPAN_NOTICE("There's already a clip in \the [src].")) else ..() /obj/item/gun/projectile/shotgun/pump/rifle/vintage/load_ammo(var/obj/item/A, mob/user) if(!open_bolt) - to_chat(user, "The bolt is closed on \the [src]!") + to_chat(user, SPAN_WARNING("The bolt is closed on \the [src]!")) return ..() /obj/item/gun/projectile/shotgun/pump/rifle/vintage/Fire(atom/target, mob/living/user, clickparams, pointblank=0, reflex=0) if(open_bolt) - to_chat(user, "The bolt is open on \the [src]!") + to_chat(user, SPAN_WARNING("The bolt is open on \the [src]!")) return ..() diff --git a/code/modules/projectiles/guns/projectile/shotgun.dm b/code/modules/projectiles/guns/projectile/shotgun.dm index 19e11f5202e..99077c7bfc3 100644 --- a/code/modules/projectiles/guns/projectile/shotgun.dm +++ b/code/modules/projectiles/guns/projectile/shotgun.dm @@ -20,11 +20,13 @@ /obj/item/gun/energy/plasmacutter // does this even work? )) if(is_type_in_typecache(attacking_item, barrel_cutting_tools) && w_class != 3) - to_chat(user, "You begin to [sawnoff_workmsg] of \the [src].") + to_chat(user, SPAN_NOTICE("You begin to [sawnoff_workmsg] of \the [src].")) if(loaded.len) for(var/i in 1 to max_shells) Fire(user, user) //will this work? //it will. we call it twice, for twice the FUN - user.visible_message("\The [src] goes off!", "\The [src] goes off in your face!") + user.visible_message(SPAN_DANGER("\The [src] goes off!"), + SPAN_DANGER("\The [src] goes off in your face!")) + return sawing_in_progress = TRUE @@ -38,7 +40,7 @@ // called on a SUCCESSFUL saw-off. /obj/item/gun/projectile/shotgun/proc/saw_off(mob/user, obj/item/tool) - to_chat(user, "You attempt to cut [src]'s barrel with [tool], but nothing happens.") + to_chat(user, SPAN_NOTICE("You attempt to cut [src]'s barrel with [tool], but nothing happens.")) LOG_DEBUG("shotgun: attempt to saw-off shotgun with no saw-off behavior.") /obj/item/gun/projectile/shotgun/pump @@ -196,7 +198,7 @@ slot_flags |= (SLOT_BELT|SLOT_HOLSTER) //but you can wear it on your belt (poorly concealed under a trenchcoat, ideally) - or in a holster, why not. name = "sawn-off shotgun" desc = "Omar's coming!" - to_chat(user, "You shorten the barrel of \the [src]!") + to_chat(user, SPAN_WARNING("You shorten the barrel of \the [src]!")) /obj/item/gun/projectile/shotgun/doublebarrel/sawn name = "sawn-off shotgun" diff --git a/code/modules/projectiles/guns/projectile/sniper.dm b/code/modules/projectiles/guns/projectile/sniper.dm index 2600f074ffb..264dd5a05ab 100644 --- a/code/modules/projectiles/guns/projectile/sniper.dm +++ b/code/modules/projectiles/guns/projectile/sniper.dm @@ -51,14 +51,14 @@ if(bolt_open) playsound(src.loc, 'sound/weapons/blade_open.ogg', 50, 1) if(chambered) - to_chat(user, "You work the bolt open, ejecting [chambered]!") + to_chat(user, SPAN_NOTICE("You work the bolt open, ejecting [chambered]!")) chambered.forceMove(get_turf(src)) loaded -= chambered chambered = null else - to_chat(user, "You work the bolt open.") + to_chat(user, SPAN_NOTICE("You work the bolt open.")) else - to_chat(user, "You work the bolt closed.") + to_chat(user, SPAN_NOTICE("You work the bolt closed.")) playsound(src.loc, 'sound/weapons/blade_close.ogg', 50, 1) bolt_open = 0 add_fingerprint(user) @@ -66,10 +66,10 @@ /obj/item/gun/projectile/heavysniper/special_check(mob/user) if(bolt_open) - to_chat(user, "You can't fire [src] while the bolt is open!") + to_chat(user, SPAN_WARNING("You can't fire [src] while the bolt is open!")) return 0 if(!wielded) - to_chat(user, "You can't fire without stabilizing the rifle!") + to_chat(user, SPAN_WARNING("You can't fire without stabilizing the rifle!")) return 0 return ..() @@ -95,7 +95,7 @@ if(wielded) toggle_scope(2.0, usr) else - to_chat(usr, "You can't look through the scope without stabilizing the rifle!") + to_chat(usr, SPAN_WARNING("You can't look through the scope without stabilizing the rifle!")) /obj/item/gun/projectile/heavysniper/unathi name = "hegemony slugger" @@ -213,7 +213,7 @@ /obj/item/gun/projectile/dragunov/special_check(mob/user) if(!wielded) - to_chat(user, "You can't fire without stabilizing the rifle!") + to_chat(user, SPAN_WARNING("You can't fire without stabilizing the rifle!")) return 0 return ..() @@ -225,7 +225,7 @@ if(wielded) toggle_scope(2.0, usr) else - to_chat(usr, "You can't look through the scope without stabilizing the rifle!") + to_chat(usr, SPAN_WARNING("You can't look through the scope without stabilizing the rifle!")) /obj/item/gun/projectile/automatic/rifle/w556 name = "scout rifle" @@ -275,4 +275,4 @@ if(wielded) toggle_scope(2.0, usr) else - to_chat(usr, "You can't look through the scope without stabilizing the rifle!") + to_chat(usr, SPAN_WARNING("You can't look through the scope without stabilizing the rifle!")) diff --git a/code/modules/projectiles/modular/laser_base.dm b/code/modules/projectiles/modular/laser_base.dm index 787d24aa3c9..55c52f42837 100644 --- a/code/modules/projectiles/modular/laser_base.dm +++ b/code/modules/projectiles/modular/laser_base.dm @@ -21,11 +21,11 @@ /obj/item/laser_components/attackby(obj/item/attacking_item, mob/user) if(!istype(attacking_item, repair_item)) return ..() - to_chat(user, "You begin repairing \the [src].") + to_chat(user, SPAN_WARNING("You begin repairing \the [src].")) if(do_after(user, 20) && repair_module(attacking_item)) - to_chat(user, "You repair \the [src].") + to_chat(user, SPAN_NOTICE("You repair \the [src].")) else - to_chat(user, "You fail to repair \the [src].") + to_chat(user, SPAN_WARNING("You fail to repair \the [src].")) /obj/item/laser_components/proc/repair_module(var/obj/item/D) return 1 @@ -48,7 +48,7 @@ . = ..() if(distance <= 1) if(malus > base_malus) - . += "\The [src] appears damaged." + . += SPAN_WARNING("\The [src] appears damaged.") /obj/item/laser_components/modifier/degrade(var/increment = 1) if(increment) @@ -88,7 +88,7 @@ /obj/item/laser_components/capacitor/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() if(distance <= 1 && condition > 0) - . += "\The [src] appears damaged." + . += SPAN_WARNING("\The [src] appears damaged.") /obj/item/laser_components/capacitor/proc/small_fail(var/mob/user, var/obj/item/gun/energy/laser/prototype/prototype) return @@ -121,7 +121,7 @@ /obj/item/laser_components/focusing_lens/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() if(distance <= 1 && condition > 0) - . += "\The [src] appears damaged." + . += SPAN_WARNING("\The [src] appears damaged.") /obj/item/laser_components/modulator name = "laser modulator" @@ -196,7 +196,7 @@ else return ..() - to_chat(user, "You insert \the [A] into the assembly.") + to_chat(user, SPAN_NOTICE("You insert \the [A] into the assembly.")) update_icon() if(check_completion()) success = 2 // meaning complete diff --git a/code/modules/projectiles/modular/laser_components.dm b/code/modules/projectiles/modular/laser_components.dm index c464ea133ab..91a7eaa83d7 100644 --- a/code/modules/projectiles/modular/laser_components.dm +++ b/code/modules/projectiles/modular/laser_components.dm @@ -47,20 +47,20 @@ /obj/item/laser_components/capacitor/nuclear/small_fail(var/mob/user, var/obj/item/gun/energy/laser/prototype/prototype) for (var/mob/living/M in range(0,src)) //Only a minor failure, enjoy your radiation if you're in the same tile or carrying it if (M != user) - to_chat(M, "You feel a warm sensation.") + to_chat(M, SPAN_WARNING("You feel a warm sensation.")) M.apply_effect(rand(1,10)*(prototype.criticality+1), DAMAGE_RADIATION) return /obj/item/laser_components/capacitor/nuclear/medium_fail(var/mob/user, var/obj/item/gun/energy/laser/prototype/prototype) for (var/mob/living/M in range(round((prototype.criticality+1)),src)) //Only a minor failure, enjoy your radiation if you're in the same tile or carrying it if (M != user) - to_chat(M, "You feel a warm sensation.") + to_chat(M, SPAN_WARNING("You feel a warm sensation.")) M.apply_effect(rand(1,40)*(prototype.criticality+1), DAMAGE_RADIATION) return /obj/item/laser_components/capacitor/nuclear/critical_fail(var/mob/user, var/obj/item/gun/energy/laser/prototype/prototype) for (var/mob/living/M in range(rand(2,6)*(prototype.criticality+1),src)) - to_chat(M, "You feel a wave of heat wash over you.") + to_chat(M, SPAN_WARNING("You feel a wave of heat wash over you.")) M.apply_effect(300*(prototype.criticality+1), DAMAGE_RADIATION) ..() @@ -96,7 +96,7 @@ /obj/item/laser_components/capacitor/phoron/small_fail(var/mob/user, var/obj/item/gun/energy/laser/prototype/prototype) for (var/mob/living/M in range(0,src)) //Only a minor failure, enjoy your radiation if you're in the same tile or carrying it if (M != user) - to_chat(M, "You feel a warm sensation.") + to_chat(M, SPAN_WARNING("You feel a warm sensation.")) M.apply_effect(rand(1,10)*(prototype.criticality+1), DAMAGE_RADIATION) return diff --git a/code/modules/projectiles/pins.dm b/code/modules/projectiles/pins.dm index 335cd165953..54f27ee9a83 100644 --- a/code/modules/projectiles/pins.dm +++ b/code/modules/projectiles/pins.dm @@ -16,7 +16,7 @@ Firing pins as a rule can't be removed without replacing them, blame a really sh w_class = ITEMSIZE_TINY attack_verb = list("poked") var/emagged = FALSE - var/fail_message = "INVALID USER." + var/fail_message = SPAN_WARNING("INVALID USER.") var/selfdestruct = 0 // Explode when user check is failed. var/force_replace = 0 // Can forcefully replace other pins. var/pin_replaceable = 0 // Can be replaced by any pin. @@ -56,7 +56,7 @@ Firing pins as a rule can't be removed without replacing them, blame a really sh /obj/item/device/firing_pin/emag_act() if(!emagged) emagged = TRUE - to_chat(get_holding_mob(src), "You override the authentication mechanism.") + to_chat(get_holding_mob(src), SPAN_NOTICE("You override the authentication mechanism.")) /obj/item/device/firing_pin/proc/gun_insert(mob/living/user, obj/item/gun/G) gun = G @@ -76,8 +76,8 @@ Firing pins as a rule can't be removed without replacing them, blame a really sh /obj/item/device/firing_pin/proc/auth_fail(mob/living/carbon/human/user) to_chat(user, fail_message) if(selfdestruct)//sound stolen from the lawgiver. todo, remove this from the lawgiver. there can only be one. - user.show_message("SELF-DESTRUCTING...
", 1) - visible_message("\The [gun] explodes!") + user.show_message(SPAN_DANGER("SELF-DESTRUCTING...
"), 1) + visible_message(SPAN_DANGER("\The [gun] explodes!")) playsound(user, 'sound/weapons/lawgiver_idfail.ogg', 40, 1) var/obj/item/organ/external/E = user.organs_by_name[user.hand ? BP_L_HAND : BP_R_HAND] E.droplimb(0,DROPLIMB_BLUNT) @@ -93,7 +93,7 @@ Pins Below. /obj/item/device/firing_pin/test_range name = "test-range firing pin" desc = "This safety firing pin allows weapons to be fired within proximity to a firing range." - fail_message = "TEST RANGE CHECK FAILED." + fail_message = SPAN_WARNING("TEST RANGE CHECK FAILED.") pin_replaceable = 1 durable = TRUE origin_tech = list(TECH_MATERIAL = 2, TECH_COMBAT = 2) @@ -109,7 +109,7 @@ Pins Below. /obj/item/device/firing_pin/psionic name = "psionics firing pin" desc = "This is a psionics-locked firing pin which only authorizes users who are capable of psionics." - fail_message = "PSIONICS CHECK FAILED." + fail_message = SPAN_WARNING("PSIONICS CHECK FAILED.") /obj/item/device/firing_pin/psionic/pin_auth(mob/living/user) if(user.has_psionics()) @@ -121,7 +121,7 @@ Pins Below. /obj/item/device/firing_pin/implant name = "implant-keyed firing pin" desc = "This is a implant-locked firing pin which only authorizes users who are implanted with a certain device." - fail_message = "IMPLANT CHECK FAILED." + fail_message = SPAN_WARNING("IMPLANT CHECK FAILED.") var/req_implant /obj/item/device/firing_pin/implant/pin_auth(mob/living/user) @@ -142,7 +142,7 @@ Pins Below. name = "hilarious firing pin" desc = "Advanced clowntech that can convert any firearm into a far more useful object." color = "#FFFF00" - fail_message = "HONK!" + fail_message = SPAN_WARNING("HONK!") force_replace = 1 /obj/item/device/firing_pin/clown/pin_auth(mob/living/user) @@ -155,7 +155,7 @@ Pins Below. name = "DNA-keyed firing pin" desc = "This is a DNA-locked firing pin which only authorizes one user. Attempt to fire once to DNA-link." icon_state = "firing_pin_dna" - fail_message = "DNA CHECK FAILED." + fail_message = SPAN_WARNING("DNA CHECK FAILED.") var/unique_enzymes = null /obj/item/device/firing_pin/dna/afterattack(atom/target, mob/user, proximity_flag) @@ -164,7 +164,7 @@ Pins Below. var/mob/living/carbon/M = target if(M.dna && M.dna.unique_enzymes) unique_enzymes = M.dna.unique_enzymes - to_chat(user, "DNA-LOCK SET.") + to_chat(user, SPAN_NOTICE("DNA-LOCK SET.")) /obj/item/device/firing_pin/dna/pin_auth(mob/living/carbon/user) if(istype(user) && user.dna && user.dna.unique_enzymes) @@ -177,7 +177,7 @@ Pins Below. if(!unique_enzymes) if(istype(user) && user.dna && user.dna.unique_enzymes) unique_enzymes = user.dna.unique_enzymes - to_chat(user, "DNA-LOCK SET.") + to_chat(user, SPAN_NOTICE("DNA-LOCK SET.")) else ..() @@ -190,7 +190,7 @@ Pins Below. /obj/item/device/firing_pin/tag name = "laser tag firing pin" desc = "A recreational firing pin, used in laser tag units to ensure users have their vests on." - fail_message = "SUIT CHECK FAILED." + fail_message = SPAN_WARNING("SUIT CHECK FAILED.") var/tag_color = "" /obj/item/device/firing_pin/tag/pin_auth(mob/living/user) @@ -221,7 +221,7 @@ Pins Below. /obj/item/device/firing_pin/access name = "access-keyed firing pin" desc = "This access locked firing pin allows weapons to be fired only when the user has the required access." - fail_message = "ACCESS CHECK FAILED." + fail_message = SPAN_WARNING("ACCESS CHECK FAILED.") req_access = list(ACCESS_WEAPONS) /obj/item/device/firing_pin/access/pin_auth(mob/living/user) @@ -230,7 +230,7 @@ Pins Below. /obj/item/device/firing_pin/away_site name = "away site firing pin" desc = "This access locked firing pin allows weapons to be fired only when the user is not on-ship." - fail_message = "USER ON SHIP LEVEL." + fail_message = SPAN_WARNING("USER ON SHIP LEVEL.") /obj/item/device/firing_pin/away_site/pin_auth(mob/living/user) var/turf/T = get_turf(src) @@ -241,7 +241,7 @@ var/list/wireless_firing_pins = list() //A list of all initialized wireless firi /obj/item/device/firing_pin/wireless name = "wireless-control firing pin" desc = "This firing pin is wirelessly controlled. On automatic mode it allow allows weapons to be fired on stun unless the alert level is elevated. Otherwise, it can be controlled from a firearm control console." - fail_message = "The wireless-control firing pin clicks!" + fail_message = SPAN_WARNING("The wireless-control firing pin clicks!") var/registered_user = null var/lock_status = WIRELESS_PIN_AUTOMATIC diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm index 45eeb4baa39..0a6678b28e4 100644 --- a/code/modules/projectiles/projectile.dm +++ b/code/modules/projectiles/projectile.dm @@ -214,7 +214,7 @@ if(PROJECTILE_FORCE_MISS) if(!point_blank) if(!suppressed) - target_mob.visible_message("\The [src] misses [target_mob] narrowly!") + target_mob.visible_message(SPAN_NOTICE("\The [src] misses [target_mob] narrowly!")) playsound(target_mob, /singleton/sound_category/bulletflyby_sound, 50, 1) return FALSE if(PROJECTILE_DODGED) @@ -225,9 +225,10 @@ var/impacted_organ = target_mob.get_organ_name_from_zone(def_zone) //hit messages if(suppressed) - to_chat(target_mob, "You've been hit in the [impacted_organ] by \a [src]!") + to_chat(target_mob, SPAN_DANGER("You've been hit in the [impacted_organ] by \a [src]!")) else - target_mob.visible_message("\The [target_mob] is hit by \a [src] in the [impacted_organ]!", "You are hit by \a [src] in the [impacted_organ]!")//X has fired Y is now given by the guns so you cant tell who shot you if you could not see the shooter + target_mob.visible_message(SPAN_DANGER("\The [target_mob] is hit by \a [src] in the [impacted_organ]!"), + SPAN_DANGER("You are hit by \a [src] in the [impacted_organ]!"))//X has fired Y is now given by the guns so you cant tell who shot you if you could not see the shooter var/no_clients = FALSE //admin logs diff --git a/code/modules/projectiles/projectile/beams.dm b/code/modules/projectiles/projectile/beams.dm index 470ca5c09cd..408bf498513 100644 --- a/code/modules/projectiles/projectile/beams.dm +++ b/code/modules/projectiles/projectile/beams.dm @@ -287,7 +287,7 @@ distance = 0 if(distance <= range) if (M.mob_size <= 3 && (M.find_type() & TYPE_ORGANIC)) - M.visible_message("\The [M] gets fried!") + M.visible_message(SPAN_DANGER("\The [M] gets fried!")) M.color = "#4d4d4d" //get fried M.death() spark(M, 3, GLOB.alldirs) @@ -302,7 +302,7 @@ if(A.mob_size <= 3 && (A.find_type() & TYPE_ORGANIC)) H.release_mob() - A.visible_message("\The [A] gets fried!") + A.visible_message(SPAN_DANGER("\The [A] gets fried!")) A.color = "#4d4d4d" //get fried A.death() @@ -330,7 +330,7 @@ distance = 0 if(distance <= range) if(M.mob_size <= 4 && (M.find_type() & TYPE_ORGANIC)) - M.visible_message("[M] bursts like a balloon!") + M.visible_message(SPAN_DANGER("[M] bursts like a balloon!")) M.gib() spark(M, 3, GLOB.alldirs) else if(iscarbon(M) && M.contents.len) @@ -344,7 +344,7 @@ if(A.mob_size <= 4 && (A.find_type() & TYPE_ORGANIC)) H.release_mob() - A.visible_message("[A] bursts like a balloon!") + A.visible_message(SPAN_DANGER("[A] bursts like a balloon!")) A.gib() to_chat(M, 'sound/effects/basscannon.ogg') diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm index 05da6d366be..6113aa13bc4 100644 --- a/code/modules/projectiles/projectile/bullets.dm +++ b/code/modules/projectiles/projectile/bullets.dm @@ -57,7 +57,7 @@ if(prob(chance)) if(A.opacity) //display a message so that people on the other side aren't so confused - A.visible_message("\The [src] pierces through \the [A]!") + A.visible_message(SPAN_WARNING("\The [src] pierces through \the [A]!")) return 1 return 0 diff --git a/code/modules/projectiles/projectile/change.dm b/code/modules/projectiles/projectile/change.dm index 9b3202b2022..c18c057ecb2 100644 --- a/code/modules/projectiles/projectile/change.dm +++ b/code/modules/projectiles/projectile/change.dm @@ -88,10 +88,10 @@ else new_mob.key = M.key - to_chat(new_mob, "Your form morphs into that of \a [lowertext(randomize)].") + to_chat(new_mob, SPAN_WARNING("Your form morphs into that of \a [lowertext(randomize)].")) qdel(M) return else - to_chat(M, "Your form morphs into that of \a [lowertext(randomize)].") + to_chat(M, SPAN_WARNING("Your form morphs into that of \a [lowertext(randomize)].")) return diff --git a/code/modules/projectiles/projectile/energy.dm b/code/modules/projectiles/projectile/energy.dm index 5cf0c402d32..17fd1aa6528 100644 --- a/code/modules/projectiles/projectile/energy.dm +++ b/code/modules/projectiles/projectile/energy.dm @@ -30,7 +30,7 @@ //snap pop playsound(src, 'sound/effects/snap.ogg', 50, 1) - src.visible_message("\The [src] explodes in a bright flash!") + src.visible_message(SPAN_WARNING("\The [src] explodes in a bright flash!")) new /obj/effect/decal/cleanable/ash(src.loc) //always use src.loc so that ash doesn't end up inside windows single_spark(T) diff --git a/code/modules/projectiles/projectile/special.dm b/code/modules/projectiles/projectile/special.dm index 9914a87744f..c658758c784 100644 --- a/code/modules/projectiles/projectile/special.dm +++ b/code/modules/projectiles/projectile/special.dm @@ -19,14 +19,15 @@ playsound(src.loc, 'sound/magic/LightningShock.ogg', 25, 1) s.surge_left -= 0.5 if(s.surge_left) - H.visible_message("[H] was not affected by EMP pulse.", "Warning: EMP detected, integrated surge prevention module activated. There are [s.surge_left] preventions left.") + H.visible_message(SPAN_WARNING("[H] was not affected by EMP pulse."), + SPAN_WARNING("Warning: EMP detected, integrated surge prevention module activated. There are [s.surge_left] preventions left.")) else s.broken = 1 s.icon_state = "surge_ipc_broken" - to_chat(H, "Warning: EMP detected, integrated surge prevention module activated. The surge prevention module is fried, replacement recommended.") + to_chat(H, SPAN_WARNING("Warning: EMP detected, integrated surge prevention module activated. The surge prevention module is fried, replacement recommended.")) return else - to_chat(src, "Warning: EMP detected, integrated surge prevention module is fried and unable to protect from EMP. Replacement recommended.") + to_chat(src, SPAN_DANGER("Warning: EMP detected, integrated surge prevention module is fried and unable to protect from EMP. Replacement recommended.")) if (isrobot(A)) var/mob/living/silicon/robot/R = A var/datum/robot_component/surge/C = R.components["surge"] @@ -34,15 +35,16 @@ if(C.surge_left >= 0.5) playsound(src.loc, 'sound/magic/LightningShock.ogg', 25, 1) C.surge_left -= 0.5 - R.visible_message("[R] was not affected by EMP pulse.", "Warning: Power surge detected, source - EMP. Surge prevention module re-routed surge to prevent damage to vital electronics.") + R.visible_message(SPAN_WARNING("[R] was not affected by EMP pulse."), + SPAN_WARNING("Warning: Power surge detected, source - EMP. Surge prevention module re-routed surge to prevent damage to vital electronics.")) if(C.surge_left) - to_chat(R, "Surge module has [C.surge_left] preventions left!") + to_chat(R, SPAN_NOTICE("Surge module has [C.surge_left] preventions left!")) else C.destroy() - to_chat(R, "Module is entirely fried, replacement is recommended.") + to_chat(R, SPAN_DANGER("Module is entirely fried, replacement is recommended.")) return else - to_chat(src, "Warning: Power surge detected, source - EMP. Surge prevention module is depleted and requires replacement") + to_chat(src, SPAN_NOTICE("Warning: Power surge detected, source - EMP. Surge prevention module is depleted and requires replacement")) R.emp_act(EMP_LIGHT) // Borgs emp_act is 1-2 else @@ -157,7 +159,7 @@ H.apply_damage(rand(30,80), DAMAGE_RADIATION, damage_flags = DAMAGE_FLAG_DISPERSED) M.Weaken(5) for (var/mob/V in viewers(src)) - V.show_message("[M] writhes in pain as [M.get_pronoun("his")] vacuoles boil.", 3, "You hear the crunching of leaves.", 2) + V.show_message(SPAN_WARNING("[M] writhes in pain as [M.get_pronoun("his")] vacuoles boil."), 3, SPAN_WARNING("You hear the crunching of leaves."), 2) if(prob(35)) if(prob(80)) randmutb(M) @@ -167,9 +169,9 @@ domutcheck(M,null) else M.adjustFireLoss(rand(5,15)) - M.show_message("The radiation beam singes you!") + M.show_message(SPAN_WARNING("The radiation beam singes you!")) else if(iscarbon(target)) - M.show_message("The radiation beam dissipates harmlessly through your body.") + M.show_message(SPAN_NOTICE("The radiation beam dissipates harmlessly through your body.")) else return 1 @@ -188,7 +190,7 @@ if((H.species.flags & IS_PLANT) && (M.nutrition < 500)) M.adjustNutritionLoss(-30) else if (istype(target, /mob/living/carbon/)) - M.show_message("The radiation beam dissipates harmlessly through your body.") + M.show_message(SPAN_NOTICE("The radiation beam dissipates harmlessly through your body.")) else return 1 diff --git a/code/modules/psionics/complexus/complexus_helpers.dm b/code/modules/psionics/complexus/complexus_helpers.dm index f635f483254..8180a386806 100644 --- a/code/modules/psionics/complexus/complexus_helpers.dm +++ b/code/modules/psionics/complexus/complexus_helpers.dm @@ -2,7 +2,7 @@ var/old_stun = stun stun = max(stun, amount) if(amount && !old_stun) - to_chat(owner, "Your concentration has been shattered! You cannot focus your psi power!") + to_chat(owner, SPAN_DANGER("Your concentration has been shattered! You cannot focus your psi power!")) ui.update_icon() /datum/psi_complexus/proc/get_armor(var/armortype) @@ -66,7 +66,7 @@ return FALSE sound_to(owner, sound('sound/effects/psi/power_feedback.ogg')) - to_chat(owner, "Wild energistic feedback blasts across your psyche!") + to_chat(owner, SPAN_DANGER("Wild energistic feedback blasts across your psyche!")) stunned(value * 2) set_cooldown(value * 100) diff --git a/code/modules/psionics/events/mini_spasm.dm b/code/modules/psionics/events/mini_spasm.dm index fb3bfd0715e..66654b4b5de 100644 --- a/code/modules/psionics/events/mini_spasm.dm +++ b/code/modules/psionics/events/mini_spasm.dm @@ -39,7 +39,7 @@ playsound(source, 'sound/effects/narsie.ogg', 75) //LOUD AS FUCK BOY if(!ishuman(victim)) - to_chat(victim, "An annoying buzz passes through your head.") + to_chat(victim, SPAN_NOTICE("An annoying buzz passes through your head.")) return if(victim.psi) diff --git a/code/modules/psionics/events/psi_wail.dm b/code/modules/psionics/events/psi_wail.dm index 2efbb0acfb6..f17aea0a8a2 100644 --- a/code/modules/psionics/events/psi_wail.dm +++ b/code/modules/psionics/events/psi_wail.dm @@ -15,4 +15,4 @@ psi.stamina = max(0, psi.stamina - rand(1,3)) annoyed = TRUE if(annoyed && prob(1)) - to_chat(psi.owner, "[pick(whine_messages)]") + to_chat(psi.owner, SPAN_NOTICE("[pick(whine_messages)]")) diff --git a/code/modules/random_map/drop/droppod_doors.dm b/code/modules/random_map/drop/droppod_doors.dm index 22ed74d1596..c8835ac66d5 100644 --- a/code/modules/random_map/drop/droppod_doors.dm +++ b/code/modules/random_map/drop/droppod_doors.dm @@ -25,7 +25,7 @@ /obj/structure/droppod_door/attack_hand(var/mob/user) if(deploying || deployed) return - to_chat(user, "You prime the explosive bolts. Better get clear!") + to_chat(user, SPAN_DANGER("You prime the explosive bolts. Better get clear!")) sleep(30) deploy() @@ -56,7 +56,7 @@ return deployed = 1 - visible_message("The explosive bolts on \the [src] detonate, throwing it open!") + visible_message(SPAN_DANGER("The explosive bolts on \the [src] detonate, throwing it open!")) playsound(src.loc, 'sound/effects/bang.ogg', 50, 1, 5) // This is shit but it will do for the sake of testing. diff --git a/code/modules/random_map/noise/ore.dm b/code/modules/random_map/noise/ore.dm index a8142a1e788..086e960dd72 100644 --- a/code/modules/random_map/noise/ore.dm +++ b/code/modules/random_map/noise/ore.dm @@ -26,13 +26,13 @@ deep_count++ // Sanity check. if(surface_count < MIN_SURFACE_COUNT) - admin_notice("Insufficient surface minerals. Rerolling...", R_DEBUG) + admin_notice(SPAN_DANGER("Insufficient surface minerals. Rerolling..."), R_DEBUG) return 0 else if(rare_count < MIN_RARE_COUNT) - admin_notice("Insufficient rare minerals. Rerolling...", R_DEBUG) + admin_notice(SPAN_DANGER("Insufficient rare minerals. Rerolling..."), R_DEBUG) return 0 else if(deep_count < MIN_DEEP_COUNT) - admin_notice("Insufficient deep minerals. Rerolling...", R_DEBUG) + admin_notice(SPAN_DANGER("Insufficient deep minerals. Rerolling..."), R_DEBUG) return 0 else return 1 diff --git a/code/modules/random_map/random_map.dm b/code/modules/random_map/random_map.dm index 5c4c1cecc2c..db35b78b8fd 100644 --- a/code/modules/random_map/random_map.dm +++ b/code/modules/random_map/random_map.dm @@ -63,7 +63,7 @@ GLOBAL_LIST_EMPTY(map_count) set_map_size() var/start_time = world.timeofday - if(!do_not_announce) admin_notice("Generating [name].", R_DEBUG) + if(!do_not_announce) admin_notice(SPAN_DANGER("Generating [name]."), R_DEBUG) CHECK_TICK // Testing needed to see how reliable this is (asynchronous calls, called during worldgen), DM ref is not optimistic @@ -73,9 +73,9 @@ GLOBAL_LIST_EMPTY(map_count) for(var/i = 0;i[capitalize(name)] generation completed in [round(0.1*(world.timeofday-start_time),0.1)] seconds.
", R_DEBUG) + if(!do_not_announce) admin_notice(SPAN_DANGER("[capitalize(name)] generation completed in [round(0.1*(world.timeofday-start_time),0.1)] seconds."), R_DEBUG) return - if(!do_not_announce) admin_notice("[capitalize(name)] failed to generate ([round(0.1*(world.timeofday-start_time),0.1)] seconds): could not produce sane map.", R_DEBUG) + if(!do_not_announce) admin_notice(SPAN_DANGER("[capitalize(name)] failed to generate ([round(0.1*(world.timeofday-start_time),0.1)] seconds): could not produce sane map."), R_DEBUG) /datum/random_map/proc/get_map_cell(var/x,var/y) if(!islist(map)) diff --git a/code/modules/reagents/Chemistry-Machinery.dm b/code/modules/reagents/Chemistry-Machinery.dm index 0884693f860..a39c8a2e03d 100644 --- a/code/modules/reagents/Chemistry-Machinery.dm +++ b/code/modules/reagents/Chemistry-Machinery.dm @@ -579,19 +579,22 @@ return if(target == user) if(target.h_style == "Floorlength Braid" || target.h_style == "Very Long Hair") - user.visible_message("[user] looks like they're about to feed their own hair into the [src], but think better of it.", "You grasp your hair and are about to feed it into the [src], but stop and come to your sense.") + user.visible_message(SPAN_NOTICE("[user] looks like they're about to feed their own hair into the [src], but think better of it."), + SPAN_NOTICE("You grasp your hair and are about to feed it into the [src], but stop and come to your sense.")) return src.add_fingerprint(user) var/target_loc = target.loc if(target != user && !user.restrained() && !user.stat && !user.weakened && !user.stunned && !user.paralysis) if(target.h_style != "Cut Hair" || target.h_style != "Short Hair" || target.h_style != "Skinhead" || target.h_style != "Buzzcut" || target.h_style != "Crewcut" || target.h_style != "Bald" || target.h_style != "Balding Hair") - user.visible_message("[user] starts feeding [target]'s hair into the [src]!", "You start feeding [target]'s hair into the [src]!") + user.visible_message(SPAN_WARNING("[user] starts feeding [target]'s hair into the [src]!"), + SPAN_WARNING("You start feeding [target]'s hair into the [src]!")) if(!do_after(usr, 50)) return if(target_loc != target.loc) return if(target != user && !user.restrained() && !user.stat && !user.weakened && !user.stunned && !user.paralysis) - user.visible_message("[user] feeds the [target]'s hair into the [src] and flicks it on!", "You turn the [src] on!") + user.visible_message(SPAN_WARNING("[user] feeds the [target]'s hair into the [src] and flicks it on!"), + SPAN_WARNING("You turn the [src] on!")) target.apply_damage(30, DAMAGE_BRUTE, BP_HEAD) target.apply_damage(25, DAMAGE_PAIN) target.say("*scream") @@ -606,12 +609,14 @@ if(target_loc != target.loc) return if(target != user && !user.restrained() && !user.stat && !user.weakened && !user.stunned && !user.paralysis) - user.visible_message("[user] starts tugging on [target]'s head as the [src] keeps running!", "You start tugging on [target]'s head!") + user.visible_message(SPAN_WARNING("[user] starts tugging on [target]'s head as the [src] keeps running!"), + SPAN_WARNING("You start tugging on [target]'s head!")) target.apply_damage(25, DAMAGE_BRUTE, BP_HEAD) target.apply_damage(10, DAMAGE_PAIN) target.say("*scream") spawn(10) - user.visible_message("[user] stops the [src] and leaves [target] resting as they are.", "You turn the [src] off and let go of [target].") + user.visible_message(SPAN_WARNING("[user] stops the [src] and leaves [target] resting as they are."), + SPAN_WARNING("You turn the [src] off and let go of [target].")) /obj/machinery/reagentgrinder/verb/Eject() set src in oview(1) @@ -621,7 +626,7 @@ if(use_check_and_message(usr)) return usr.visible_message( - "[usr] opens [src] and has removed [english_list(holdingitems)]." + SPAN_NOTICE("[usr] opens [src] and has removed [english_list(holdingitems)].") ) eject() diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Core.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Core.dm index 3ef220470ce..3e5b9908e49 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Core.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Core.dm @@ -75,7 +75,7 @@ return var/datum/vampire/vampire = M.mind.antag_datums[MODE_VAMPIRE] vampire.blood_usable += removed - to_chat(M, "You have accumulated [vampire.blood_usable] unit\s of usable blood. It tastes quite stale.") + to_chat(M, SPAN_NOTICE("You have accumulated [vampire.blood_usable] unit\s of usable blood. It tastes quite stale.")) return var/dose = M.chem_doses[type] if(dose > 15) @@ -136,7 +136,7 @@ var/removed_heat = between(0, amount * WATER_LATENT_HEAT, -environment.get_thermal_energy_change(min_temperature)) environment.add_thermal_energy(-removed_heat) if (prob(5)) - T.visible_message("The water sizzles as it lands on \the [T]!") + T.visible_message(SPAN_WARNING("The water sizzles as it lands on \the [T]!")) else if(amount >= 10) T.wet_floor(WET_TYPE_WATER,amount) diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm index aec1fd4bac7..77a115e2739 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm @@ -20,11 +20,11 @@ if(amount < 5) return if(istype(O, /obj/item/book/tome)) - to_chat(usr, "The solution does nothing. Whatever this is, it isn't normal ink.") + to_chat(usr, SPAN_NOTICE("The solution does nothing. Whatever this is, it isn't normal ink.")) return var/obj/item/book/affectedbook = O affectedbook.dat = null - to_chat(usr, "The solution dissolves the ink on the book.") + to_chat(usr, SPAN_NOTICE("The solution dissolves the ink on the book.")) return /singleton/reagent/aluminum @@ -212,11 +212,11 @@ if(amount < 5) return if(istype(O, /obj/item/book/tome)) - to_chat(usr, "The solution does nothing. Whatever this is, it isn't normal ink.") + to_chat(usr, SPAN_NOTICE("The solution does nothing. Whatever this is, it isn't normal ink.")) return var/obj/item/book/affectedbook = O affectedbook.dat = null - to_chat(usr, "The solution dissolves the ink on the book.") + to_chat(usr, SPAN_NOTICE("The solution dissolves the ink on the book.")) return /** @@ -436,11 +436,11 @@ var/mob/living/carbon/human/H = M if(H.head) if(H.head.unacidable) - to_chat(H, "Your [H.head] protects you from the acid.") + to_chat(H, SPAN_DANGER("Your [H.head] protects you from the acid.")) remove_self(REAGENT_VOLUME(holder, type)) return else if(removed > meltdose) - to_chat(H, "Your [H.head] melts away!") + to_chat(H, SPAN_DANGER("Your [H.head] melts away!")) qdel(H.head) H.update_inv_head(1) H.update_hair(1) @@ -450,11 +450,11 @@ if(H.wear_mask) if(H.wear_mask.unacidable) - to_chat(H, "Your [H.wear_mask] protects you from the acid.") + to_chat(H, SPAN_DANGER("Your [H.wear_mask] protects you from the acid.")) remove_self(REAGENT_VOLUME(holder, type)) return else if(removed > meltdose) - to_chat(H, "Your [H.wear_mask] melts away!") + to_chat(H, SPAN_DANGER("Your [H.wear_mask] melts away!")) qdel(H.wear_mask) H.update_inv_wear_mask(1) H.update_hair(1) @@ -464,10 +464,10 @@ if(H.glasses) if(H.glasses.unacidable) - to_chat(H, "Your [H.glasses] partially protect you from the acid!") + to_chat(H, SPAN_DANGER("Your [H.glasses] partially protect you from the acid!")) removed /= 2 else if(removed > meltdose) - to_chat(H, "Your [H.glasses] melt away!") + to_chat(H, SPAN_DANGER("Your [H.glasses] melt away!")) qdel(H.glasses) H.update_inv_glasses(1) removed -= meltdose / 2 @@ -497,7 +497,7 @@ var/obj/effect/decal/cleanable/molten_item/I = new/obj/effect/decal/cleanable/molten_item(get_turf(O)) I.desc = "Looks like this was \an [O] some time ago." for(var/mob/M in viewers(get_turf(O), 5)) - to_chat(M, "\The [O] melts.") + to_chat(M, SPAN_WARNING("\The [O] melts.")) qdel(O) remove_self(meltdose, holder) // 10 units of acid will not melt EVERYTHING on the tile diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm index 4cb1e2b3491..3bfe0d3d99f 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm @@ -529,7 +529,7 @@ /singleton/reagent/nutriment/teagrounds/affect_blood(var/mob/living/carbon/M, var/alien, var/removed, var/datum/reagents/holder) if(alien == IS_DIONA) if(last_taste_time + 800 < world.time) // Not to spam message - to_chat(M, "Your body withers as you feel slight pain throughout.") + to_chat(M, SPAN_DANGER("Your body withers as you feel slight pain throughout.")) last_taste_time = world.time metabolism = REM * 0.33 M.adjustToxLoss(1.5 * removed) @@ -850,7 +850,7 @@ var/agony_dose = 15 // Capsaicin required to proc agony. (3 to 5 chilis.) var/agony_amount = 1 - var/discomfort_message = "Your insides feel uncomfortably hot." + var/discomfort_message = SPAN_DANGER("Your insides feel uncomfortably hot.") var/slime_temp_adj = 10 /singleton/reagent/capsaicin/affect_blood(var/mob/living/carbon/M, var/alien, var/removed, var/datum/reagents/holder) @@ -893,7 +893,7 @@ color = "#B31008" agony_dose = 0.5 agony_amount = 4 - discomfort_message = "You feel like your insides are burning!" + discomfort_message = SPAN_DANGER("You feel like your insides are burning!") slime_temp_adj = 15 fallback_specific_heat = 4 @@ -932,11 +932,11 @@ var/message = null if(eyes_covered) if (!mouth_covered && (eyes_covered & EYES_PROTECTED)) - message = "Your [eye_protection] protects your eyes from the pepperspray!" + message = SPAN_WARNING("Your [eye_protection] protects your eyes from the pepperspray!") else if (eyes_covered & EYES_MECH) - message = "Your mechanical eyes are invulnerable to pepperspray!" + message = SPAN_WARNING("Your mechanical eyes are invulnerable to pepperspray!") else - message = "The pepperspray gets in your eyes!" + message = SPAN_WARNING("The pepperspray gets in your eyes!") if(mouth_covered) M.eye_blurry = max(M.eye_blurry, 15) M.eye_blind = max(M.eye_blind, 5) @@ -946,9 +946,9 @@ if(mouth_covered) if(!message) - message = "Your [face_protection] protects you from the pepperspray!" + message = SPAN_WARNING("Your [face_protection] protects you from the pepperspray!") else if(!no_pain) - message = "Your face and throat burn!" + message = SPAN_DANGER("Your face and throat burn!") if(prob(25)) M.visible_message("[M] [pick("coughs!","coughs hysterically!","splutters!")]") M.apply_effect(30, DAMAGE_PAIN) @@ -960,7 +960,8 @@ return M.apply_effect(10, DAMAGE_PAIN) if(prob(5)) - M.visible_message("[M] [pick("dry heaves!","coughs!","splutters!")]", "You feel like your insides are burning!") + M.visible_message(SPAN_WARNING("[M] [pick("dry heaves!","coughs!","splutters!")]"), + SPAN_DANGER("You feel like your insides are burning!")) if(istype(M, /mob/living/carbon/slime)) M.bodytemperature += rand(15, 30) holder.remove_reagent(/singleton/reagent/frostoil, 5) @@ -1523,7 +1524,7 @@ /singleton/reagent/drink/tea/affect_blood(var/mob/living/carbon/M, var/alien, var/removed, var/datum/reagents/holder) if(alien == IS_DIONA) if(last_taste_time + 800 < world.time) // Not to spam message - to_chat(M, "Your body withers as you feel slight pain throughout.") + to_chat(M, SPAN_DANGER("Your body withers as you feel slight pain throughout.")) last_taste_time = world.time metabolism = REM * 0.33 M.adjustToxLoss(1.5 * removed) @@ -2790,7 +2791,7 @@ /singleton/reagent/drink/toothpaste/teathpaste/affect_blood(var/mob/living/carbon/M, var/alien, var/removed, var/datum/reagents/holder) if(alien == IS_DIONA) if(last_taste_time + 800 < world.time) // Not to spam message - to_chat(M, "Your body withers as you feel slight pain throughout.") + to_chat(M, SPAN_DANGER("Your body withers as you feel slight pain throughout.")) last_taste_time = world.time metabolism = REM * 0.33 M.adjustToxLoss(1.5 * removed) @@ -4868,7 +4869,7 @@ taste_mult = 1.2 var/agony_dose = 5 var/agony_amount = 1 - var/discomfort_message = "Your insides feel uncomfortably hot!" + var/discomfort_message = SPAN_DANGER("Your insides feel uncomfortably hot!") var/slime_temp_adj = 3 /singleton/reagent/alcohol/fireball/affect_blood(var/mob/living/carbon/M, var/alien, var/removed, var/datum/reagents/holder) @@ -4891,7 +4892,7 @@ M.apply_effect(agony_amount, DAMAGE_PAIN, 0) if(prob(5)) M.visible_message("[M] [pick("dry heaves!","coughs!","splutters!")]") - to_chat(M, "You feel like your insides are burning!") + to_chat(M, SPAN_DANGER("You feel like your insides are burning!")) if(istype(M, /mob/living/carbon/slime)) M.bodytemperature += rand(0, 15) + slime_temp_adj holder.remove_reagent(/singleton/reagent/frostoil, 2) @@ -5269,7 +5270,7 @@ var/agony_dose = 5 var/agony_amount = 1 - var/discomfort_message = "Your insides feel uncomfortably hot!" + var/discomfort_message = SPAN_DANGER("Your insides feel uncomfortably hot!") var/slime_temp_adj = 3 /singleton/reagent/alcohol/songwater/affect_blood(var/mob/living/carbon/M, var/alien, var/removed, var/datum/reagents/holder) @@ -5292,7 +5293,7 @@ M.apply_effect(agony_amount, DAMAGE_PAIN, 0) if(prob(5)) M.visible_message("[M] [pick("dry heaves!","coughs!","splutters!")]") - to_chat(M, "You feel like your insides are burning!") + to_chat(M, SPAN_DANGER("You feel like your insides are burning!")) if(istype(M, /mob/living/carbon/slime)) M.bodytemperature += rand(0, 15) + slime_temp_adj holder.remove_reagent(/singleton/reagent/frostoil, 2) @@ -5854,7 +5855,7 @@ /singleton/reagent/alcohol/butanol/trizkizki_tea/affect_blood(var/mob/living/carbon/M, var/alien, var/removed, var/datum/reagents/holder) if(alien == IS_DIONA) if(last_taste_time + 800 < world.time) // Not to spam message - to_chat(M, "Your body withers as you feel slight pain throughout.") + to_chat(M, SPAN_DANGER("Your body withers as you feel slight pain throughout.")) last_taste_time = world.time metabolism = REM * 0.33 M.adjustToxLoss(1.5 * removed) diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Other.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Other.dm index 420ee8a6357..3a39c6294fc 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Other.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Other.dm @@ -599,9 +599,9 @@ stored_value += removed if(stored_value >= 1) M.visible_message(\ - "/The [M]'s body shifts and contorts!",\ - "Your body shifts and contorts!",\ - "You hear strange flesh-like noises."\ + SPAN_WARNING("/The [M]'s body shifts and contorts!"),\ + SPAN_DANGER("Your body shifts and contorts!"),\ + SPAN_NOTICE("You hear strange flesh-like noises.")\ ) scramble(TRUE, M, 100) M.adjustHalLoss(25) diff --git a/code/modules/reagents/Chemistry-Recipes.dm b/code/modules/reagents/Chemistry-Recipes.dm index 518a64a9784..31045bdc139 100644 --- a/code/modules/reagents/Chemistry-Recipes.dm +++ b/code/modules/reagents/Chemistry-Recipes.dm @@ -132,7 +132,7 @@ if(mix_message) var/list/seen = viewers(4, T) for(var/mob/M in seen) - M.show_message("[icon2html(container, viewers(get_turf(src)))] [mix_message]", 1) + M.show_message(SPAN_NOTICE("[icon2html(container, viewers(get_turf(src)))] [mix_message]"), 1) if(reaction_sound) playsound(T, reaction_sound, 80, 1) @@ -1073,7 +1073,7 @@ var/location = get_turf(holder.my_atom) for(var/mob/M in viewers(5, location)) - to_chat(M, "The solution spews out foam!") + to_chat(M, SPAN_WARNING("The solution spews out foam!")) var/datum/effect/effect/system/foam_spread/s = new() s.set_up(created_volume, location, holder, 0) @@ -1092,7 +1092,7 @@ var/location = get_turf(holder.my_atom) for(var/mob/M in viewers(5, location)) - to_chat(M, "The solution spews out a metalic foam!") + to_chat(M, SPAN_WARNING("The solution spews out a metalic foam!")) var/datum/effect/effect/system/foam_spread/s = new() s.set_up(created_volume, location, holder, 1) @@ -1110,7 +1110,7 @@ var/location = get_turf(holder.my_atom) for(var/mob/M in viewers(5, location)) - to_chat(M, "The solution spews out a metalic foam!") + to_chat(M, SPAN_WARNING("The solution spews out a metalic foam!")) var/datum/effect/effect/system/foam_spread/s = new() s.set_up(created_volume, location, holder, 2) diff --git a/code/modules/reagents/dispenser/cartridge.dm b/code/modules/reagents/dispenser/cartridge.dm index c9634d2fd1d..bc57eeb4d02 100644 --- a/code/modules/reagents/dispenser/cartridge.dm +++ b/code/modules/reagents/dispenser/cartridge.dm @@ -71,13 +71,13 @@ /obj/item/reagent_containers/chem_disp_cartridge/proc/setLabel(L, mob/user = null) if(L) if(user) - to_chat(user, "You set the label on \the [src] to '[L]'.") + to_chat(user, SPAN_NOTICE("You set the label on \the [src] to '[L]'.")) label = L name = "[initial(name)] - '[L]'" else if(user) - to_chat(user, "You clear the label on \the [src].") + to_chat(user, SPAN_NOTICE("You clear the label on \the [src].")) label = "" name = initial(name) update_icon() @@ -104,28 +104,28 @@ target.add_fingerprint(user) if(!target.reagents.total_volume && target.reagents) - to_chat(user, "\The [target] is empty.") + to_chat(user, SPAN_WARNING("\The [target] is empty.")) return if(reagents.total_volume >= reagents.maximum_volume) - to_chat(user, "\The [src] is full.") + to_chat(user, SPAN_WARNING("\The [src] is full.")) return var/trans = target.reagents.trans_to(src, target:amount_per_transfer_from_this) - to_chat(user, "You fill \the [src] with [trans] units of the contents of \the [target].") + to_chat(user, SPAN_NOTICE("You fill \the [src] with [trans] units of the contents of \the [target].")) else if(target.is_open_container() && target.reagents) //Something like a glass. Player probably wants to transfer TO it. if(!reagents.total_volume) - to_chat(user, "\The [src] is empty.") + to_chat(user, SPAN_WARNING("\The [src] is empty.")) return if(target.reagents.total_volume >= target.reagents.maximum_volume) - to_chat(user, "\The [target] is full.") + to_chat(user, SPAN_WARNING("\The [target] is full.")) return var/trans = src.reagents.trans_to(target, amount_per_transfer_from_this) - to_chat(user, "You transfer [trans] units of the solution to \the [target].") + to_chat(user, SPAN_NOTICE("You transfer [trans] units of the solution to \the [target].")) else return ..() diff --git a/code/modules/reagents/reagent_containers.dm b/code/modules/reagents/reagent_containers.dm index 788526b9bb9..c41223370dc 100644 --- a/code/modules/reagents/reagent_containers.dm +++ b/code/modules/reagents/reagent_containers.dm @@ -146,15 +146,15 @@ return 0 if(!target.reagents || !target.reagents.total_volume) - to_chat(user, "[target] is empty.") + to_chat(user, SPAN_NOTICE("[target] is empty.")) return 1 if(!REAGENTS_FREE_SPACE(reagents)) - to_chat(user, "[src] is full.") + to_chat(user, SPAN_NOTICE("[src] is full.")) return 1 var/trans = target.reagents.trans_to_obj(src, target.amount_per_transfer_from_this) - to_chat(user, "You fill [src] with [trans] units of the contents of [target].") + to_chat(user, SPAN_NOTICE("You fill [src] with [trans] units of the contents of [target].")) return 1 /obj/item/reagent_containers/proc/standard_splash_obj(var/mob/user, var/target) @@ -165,7 +165,9 @@ if(!reagents.total_volume) return - user.visible_message("\The [target] has been splashed with something by \the [user]!", "You splash the solution onto \the [target].") + user.visible_message(SPAN_DANGER("\The [target] has been splashed with something by \the [user]!"), + SPAN_WARNING("You splash the solution onto \the [target].")) + reagents.splash(target, reagents.total_volume) return @@ -178,11 +180,11 @@ return 0 if(!reagents.total_volume) - to_chat(user, "[src] is empty.") + to_chat(user, SPAN_NOTICE("[src] is empty.")) return 1 if(target.reagents && !REAGENTS_FREE_SPACE(target.reagents)) - to_chat(user, "[target] is full.") + to_chat(user, SPAN_NOTICE("[target] is full.")) return 1 var/contained = reagentlist() @@ -192,7 +194,9 @@ user.attack_log += text("\[[time_stamp()]\] Used the [name] to splash [target.name] ([target.key]). Reagents: [contained] [temperature_text].") msg_admin_attack("[user.name] ([user.ckey]) splashed [target.name] ([target.key]) with [name]. Reagents: [contained] (INTENT: [uppertext(user.a_intent)]) (JMP)",ckey=key_name(user),ckey_target=key_name(target)) - user.visible_message("\The [target] has been splashed with something by \the [user]!", "You splash the solution onto \the [target].") + user.visible_message(SPAN_DANGER("\The [target] has been splashed with something by \the [user]!"), + SPAN_WARNING("You splash the solution onto \the [target].")) + reagents.splash(target, min(120,reagents.total_volume) ) //Splash Limit if (istype(target, /mob/living/silicon/robot)) @@ -222,7 +226,7 @@ return 0 if(!reagents.total_volume) - to_chat(user, "\The [src] is empty.") + to_chat(user, SPAN_NOTICE("\The [src] is empty.")) return 1 if(target.isSynthetic() && !isipc(target)) @@ -253,7 +257,7 @@ return var/obj/item/blocked = H.check_mouth_coverage() if(blocked) - to_chat(user, "\The [blocked] is in the way!") + to_chat(user, SPAN_WARNING("\The [blocked] is in the way!")) return if(isanimal(target)) @@ -324,7 +328,7 @@ // Ensure we don't splash beakers and similar containers. if(!target.is_open_container() && istype(target, /obj/item/reagent_containers)) - to_chat(user, "\The [target] is closed.") + to_chat(user, SPAN_NOTICE("\The [target] is closed.")) return 1 // Otherwise don't care about splashing. else if(!target.is_open_container()) @@ -333,15 +337,15 @@ if(!reagents.total_volume) if(force) // bash people! return 0 - to_chat(user, "[src] is empty.") + to_chat(user, SPAN_NOTICE("[src] is empty.")) return 1 if(!REAGENTS_FREE_SPACE(target.reagents)) - to_chat(user, "[target] is full.") + to_chat(user, SPAN_NOTICE("[target] is full.")) return 1 var/trans = reagents.trans_to(target, amount_per_transfer_from_this) - to_chat(user, "You transfer [trans] units of the solution to [target].") + to_chat(user, SPAN_NOTICE("You transfer [trans] units of the solution to [target].")) on_pour() return 1 diff --git a/code/modules/reagents/reagent_containers/food.dm b/code/modules/reagents/reagent_containers/food.dm index f8e5d17cfef..e2d009f545b 100644 --- a/code/modules/reagents/reagent_containers/food.dm +++ b/code/modules/reagents/reagent_containers/food.dm @@ -17,7 +17,7 @@ var/empty_icon_state /obj/item/reagent_containers/food/self_feed_message(var/mob/user) - to_chat(user, "You [is_liquid ? "drink from" : "eat"] \the [src].") + to_chat(user, SPAN_NOTICE("You [is_liquid ? "drink from" : "eat"] \the [src].")) /obj/item/reagent_containers/food/feed_sound(var/mob/user) if(is_liquid) diff --git a/code/modules/reagents/reagent_containers/food/drinks.dm b/code/modules/reagents/reagent_containers/food/drinks.dm index a821d23e58d..a00d1efaa06 100644 --- a/code/modules/reagents/reagent_containers/food/drinks.dm +++ b/code/modules/reagents/reagent_containers/food/drinks.dm @@ -66,7 +66,10 @@ If you add a drink with an empty icon sprite, ensure it is in the same folder, e atom_flags |= ATOM_FLAG_OPEN_CONTAINER /obj/item/reagent_containers/food/drinks/proc/boom(mob/user as mob) - user.visible_message("\The [src] explodes all over [user] as they open it!","\The [src] explodes all over you as you open it!","You can hear a soda can explode.") + user.visible_message(SPAN_DANGER("\The [src] explodes all over [user] as they open it!"), + SPAN_DANGER("\The [src] explodes all over you as you open it!"), + "You can hear a soda can explode.") + playsound(loc,'sound/items/Soda_Burst.ogg', rand(20,50), 1) reagents.clear_reagents() atom_flags |= ATOM_FLAG_OPEN_CONTAINER @@ -79,19 +82,19 @@ If you add a drink with an empty icon sprite, ensure it is in the same folder, e /obj/item/reagent_containers/food/drinks/standard_feed_mob(var/mob/user, var/mob/target) if(!is_open_container()) - to_chat(user, "You need to open \the [src]!") + to_chat(user, SPAN_NOTICE("You need to open \the [src]!")) return 1 return ..() /obj/item/reagent_containers/food/drinks/standard_dispenser_refill(var/mob/user, var/obj/structure/reagent_dispensers/target) if(!is_open_container()) - to_chat(user, "You need to open \the [src]!") + to_chat(user, SPAN_NOTICE("You need to open \the [src]!")) return 1 return ..() /obj/item/reagent_containers/food/drinks/standard_pour_into(var/mob/user, var/atom/target) if(!is_open_container()) - to_chat(user, "You need to open \the [src]!") + to_chat(user, SPAN_NOTICE("You need to open \the [src]!")) return 1 return ..() @@ -100,15 +103,15 @@ If you add a drink with an empty icon sprite, ensure it is in the same folder, e if (distance > 1) return if(!reagents || reagents.total_volume == 0) - . += "\The [src] is empty!" + . += SPAN_NOTICE("\The [src] is empty!") else if (reagents.total_volume <= volume * 0.25) - . += "\The [src] is almost empty!" + . += SPAN_NOTICE("\The [src] is almost empty!") else if (reagents.total_volume <= volume * 0.66) - . += "\The [src] is half full!" + . += SPAN_NOTICE("\The [src] is half full!") else if (reagents.total_volume <= volume * 0.90) - . += "\The [src] is almost full!" + . += SPAN_NOTICE("\The [src] is almost full!") else - . += "\The [src] is full!" + . += SPAN_NOTICE("\The [src] is full!") //////////////////////////////////////////////////////////////////////////////// diff --git a/code/modules/reagents/reagent_containers/food/drinks/bottle.dm b/code/modules/reagents/reagent_containers/food/drinks/bottle.dm index 3f73a76d206..cd1aa8c386b 100644 --- a/code/modules/reagents/reagent_containers/food/drinks/bottle.dm +++ b/code/modules/reagents/reagent_containers/food/drinks/bottle.dm @@ -41,7 +41,7 @@ var/throw_dist = get_dist(throw_source, loc) if(speed >= throw_speed && smash_check(throw_dist)) //not as reliable as smashing directly if(reagents) - hit_atom.visible_message("The contents of \the [src] splash all over [hit_atom]!") + hit_atom.visible_message(SPAN_NOTICE("The contents of \the [src] splash all over [hit_atom]!")) reagents.splash(hit_atom, reagents.total_volume) src.smash(loc, hit_atom) @@ -105,7 +105,7 @@ if(!(drink_flags & IS_GLASS) || rag) return if(user.unEquip(R)) - to_chat(user, "You stuff [R] into [src].") + to_chat(user, SPAN_NOTICE("You stuff [R] into [src].")) rag = R rag.forceMove(src) atom_flags &= ~ATOM_FLAG_OPEN_CONTAINER @@ -170,15 +170,15 @@ var/mob/living/carbon/human/H = target if(istype(H) && H.headcheck(hit_zone)) var/obj/item/organ/affecting = H.get_organ(hit_zone) //headcheck should ensure that affecting is not null - user.visible_message("[user] smashes [src] into [H]'s [affecting.name]!") + user.visible_message(SPAN_DANGER("[user] smashes [src] into [H]'s [affecting.name]!")) if(weaken_duration) target.apply_effect(min(weaken_duration, 5), WEAKEN, blocked) // Never weaken more than a flash! else - user.visible_message("\The [user] smashes [src] into [target]!") + user.visible_message(SPAN_DANGER("\The [user] smashes [src] into [target]!")) //The reagents in the bottle splash all over the target, thanks for the idea Nodrak if(reagents) - user.visible_message("The contents of \the [src] splash all over [target]!") + user.visible_message(SPAN_NOTICE("The contents of \the [src] splash all over [target]!")) reagents.splash(target, reagents.total_volume) //Finally, smash the bottle. This kills (qdel) the bottle. diff --git a/code/modules/reagents/reagent_containers/glass.dm b/code/modules/reagents/reagent_containers/glass.dm index fee2c04340b..6e99b24c992 100644 --- a/code/modules/reagents/reagent_containers/glass.dm +++ b/code/modules/reagents/reagent_containers/glass.dm @@ -80,9 +80,9 @@ if(attacking_item.ispen() || istype(attacking_item, /obj/item/device/flashlight/pen)) var/tmp_label = sanitizeSafe( tgui_input_text(user, "Enter a label for [name]", "Label", label_text, MAX_NAME_LEN), MAX_NAME_LEN ) if(length(tmp_label) > 15) - to_chat(user, "The label can be at most 15 characters long.") + to_chat(user, SPAN_NOTICE("The label can be at most 15 characters long.")) else - to_chat(user, "You set the label to \"[tmp_label]\".") + to_chat(user, SPAN_NOTICE("You set the label to \"[tmp_label]\".")) label_text = tmp_label update_name_label() update_icon() @@ -196,7 +196,7 @@ /obj/item/reagent_containers/glass/beaker/vial/antidote name = "hylemnomil-zeta antidote vial" - desc = "Your lifeline. Defend it with your life." + desc = SPAN_CULT("Your lifeline. Defend it with your life.") volume = 60 amount_per_transfer_from_this = 5 reagents_to_add = list(/singleton/reagent/antibodies = 60) @@ -267,16 +267,16 @@ qdel(src) return else if(attacking_item.iswirecutter()) - to_chat(user, "You cut a big hole in \the [src] with \the [attacking_item].") + to_chat(user, SPAN_NOTICE("You cut a big hole in \the [src] with \the [attacking_item].")) user.put_in_hands(new helmet_type) qdel(src) return else if(istype(attacking_item, /obj/item/mop)) if(reagents.total_volume < 1) - to_chat(user, "\The [src] is empty!") + to_chat(user, SPAN_WARNING("\The [src] is empty!")) else reagents.trans_to_obj(attacking_item, 5) - to_chat(user, "You wet \the [attacking_item] in \the [src].") + to_chat(user, SPAN_NOTICE("You wet \the [attacking_item] in \the [src].")) playsound(loc, 'sound/effects/slosh.ogg', 25, 1) return else @@ -293,7 +293,7 @@ update_icon() /obj/item/reagent_containers/glass/bucket/self_feed_message(var/mob/user) - to_chat(user, "You drink heavily from \the [src].") + to_chat(user, SPAN_NOTICE("You drink heavily from \the [src].")) /obj/item/reagent_containers/glass/bucket/wood name = "wooden bucket" diff --git a/code/modules/reagents/reagent_containers/inhaler.dm b/code/modules/reagents/reagent_containers/inhaler.dm index 3388d18ec78..227e04f5148 100644 --- a/code/modules/reagents/reagent_containers/inhaler.dm +++ b/code/modules/reagents/reagent_containers/inhaler.dm @@ -40,11 +40,11 @@ return if(!reagents.total_volume) - to_chat(user,"\The [src] is empty.") + to_chat(user,SPAN_WARNING("\The [src] is empty.")) return if ( ((user.is_clumsy()) || (user.mutations & DUMB)) && prob(10)) - to_chat(user,"Your hand slips from clumsiness!") + to_chat(user,SPAN_DANGER("Your hand slips from clumsiness!")) if(!H.eyes_protected(src, FALSE)) eyestab(H,user) if(H.reagents) @@ -52,14 +52,16 @@ var/trans = reagents.trans_to_mob(H, amount_per_transfer_from_this, CHEM_TOUCH) admin_inject_log(user, H, src, contained, reagents.get_temperature(), trans) playsound(src.loc, 'sound/items/stimpack.ogg', 50, 1) - user.visible_message("[user] accidentally sticks the [src] in [H]'s eyes!","You accidentally stick the [src] in [H]'s eyes!") - to_chat(user,"[trans] units injected. [reagents.total_volume] units remaining in \the [src].") + user.visible_message(SPAN_NOTICE("[user] accidentally sticks the [src] in [H]'s eyes!"), + SPAN_NOTICE("You accidentally stick the [src] in [H]'s eyes!")) + + to_chat(user,SPAN_NOTICE("[trans] units injected. [reagents.total_volume] units remaining in \the [src].")) spent = TRUE update_icon() return if (!user.IsAdvancedToolUser()) - to_chat(user,"You don't have the dexterity to do this!") + to_chat(user,SPAN_WARNING("You don't have the dexterity to do this!")) return if(user == H) @@ -73,14 +75,19 @@ user.do_attack_animation(H) if(user == H) - user.visible_message("\The [user] injects themselves with \the [src]","You stick the \the [src] in your mouth and press the injection button.") + user.visible_message(SPAN_NOTICE("\The [user] injects themselves with \the [src]"), + SPAN_NOTICE("You stick the \the [src] in your mouth and press the injection button.")) + else - user.visible_message("\The [user] attempts to administer \the [src] to \the [H]...","You attempt to administer \the [src] to \the [H]...") + user.visible_message(SPAN_WARNING("\The [user] attempts to administer \the [src] to \the [H]..."), + SPAN_NOTICE("You attempt to administer \the [src] to \the [H]...")) + if (!do_after(user, 1 SECONDS, H)) - to_chat(user,"You and the target need to be standing still in order to inject \the [src].") + to_chat(user,SPAN_NOTICE("You and the target need to be standing still in order to inject \the [src].")) return - user.visible_message("\The [user] injects \the [H] with \a [src].","You stick \the [src] in \the [H]'s mouth and press the injection button.") + user.visible_message(SPAN_NOTICE("\The [user] injects \the [H] with \a [src]."), + SPAN_NOTICE("You stick \the [src] in \the [H]'s mouth and press the injection button.")) if(H.reagents) var/contained = reagentlist() @@ -88,7 +95,7 @@ var/trans = reagents.trans_to_mob(H, amount_per_transfer_from_this, CHEM_BREATHE, bypass_checks = TRUE) admin_inject_log(user, H, src, contained, temp, trans) playsound(src.loc, 'sound/items/stimpack.ogg', 50, 1) - to_chat(user,"[trans] units injected. [reagents.total_volume] units remaining in \the [src].") + to_chat(user,SPAN_NOTICE("[trans] units injected. [reagents.total_volume] units remaining in \the [src].")) spent = TRUE update_icon() @@ -103,7 +110,7 @@ /obj/item/reagent_containers/inhaler/attack(mob/M as mob, mob/user as mob) if(is_open_container()) - to_chat(user,"You must secure the reagents inside \the [src] before using it!") + to_chat(user,SPAN_NOTICE("You must secure the reagents inside \the [src] before using it!")) return FALSE else @@ -113,19 +120,19 @@ /obj/item/reagent_containers/inhaler/attack_self(mob/user as mob) if(is_open_container()) if(LAZYLEN(reagents.reagent_volumes)) - to_chat(user,"With a quick twist of \the [src]'s lid, you secure the reagents inside.") + to_chat(user,SPAN_NOTICE("With a quick twist of \the [src]'s lid, you secure the reagents inside.")) atom_flags &= ~ATOM_FLAG_OPEN_CONTAINER spent = FALSE update_icon() else - to_chat(user,"You can't secure \the [src] without putting reagents in!") + to_chat(user,SPAN_NOTICE("You can't secure \the [src] without putting reagents in!")) else - to_chat(user,"The reagents inside \the [src] are already secured.") + to_chat(user,SPAN_NOTICE("The reagents inside \the [src] are already secured.")) return /obj/item/reagent_containers/inhaler/attackby(obj/item/attacking_item, mob/user) if(attacking_item.isscrewdriver() && !is_open_container()) - to_chat(user,"Using \the [attacking_item], you unsecure the inhaler's lid.") // it locks shut after being secured + to_chat(user,SPAN_NOTICE("Using \the [attacking_item], you unsecure the inhaler's lid.")) // it locks shut after being secured atom_flags |= ATOM_FLAG_OPEN_CONTAINER update_icon() return TRUE @@ -149,9 +156,9 @@ /obj/item/reagent_containers/inhaler/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() if(LAZYLEN(reagents.reagent_volumes)) - . += "It is currently loaded." + . += SPAN_NOTICE("It is currently loaded.") else - . += "It is spent." + . += SPAN_NOTICE("It is spent.") /obj/item/reagent_containers/inhaler/dexalin name_label = "dexalin" diff --git a/code/modules/reagents/reagent_containers/inhaler_advanced.dm b/code/modules/reagents/reagent_containers/inhaler_advanced.dm index 70d44adaf49..6967f94ca95 100644 --- a/code/modules/reagents/reagent_containers/inhaler_advanced.dm +++ b/code/modules/reagents/reagent_containers/inhaler_advanced.dm @@ -40,29 +40,29 @@ if(is_open_container()) if(LAZYLEN(reagents.reagent_volumes)) - . += "It contains [round(reagents.total_volume, accuracy)] units of non-aerosol mix." + . += SPAN_NOTICE("It contains [round(reagents.total_volume, accuracy)] units of non-aerosol mix.") else - . += "It is empty." + . += SPAN_NOTICE("It is empty.") else if(LAZYLEN(reagents.reagent_volumes)) - . += "The reagents are secured in the aerosol mix." + . += SPAN_NOTICE("The reagents are secured in the aerosol mix.") else - . += "The cartridge seems spent." + . += SPAN_NOTICE("The cartridge seems spent.") /obj/item/reagent_containers/personal_inhaler_cartridge/attack_self(mob/user as mob) if(is_open_container()) if(LAZYLEN(reagents.reagent_volumes)) - to_chat(user,"With a quick twist of \the [src]'s lid, you secure the reagents inside.") + to_chat(user,SPAN_NOTICE("With a quick twist of \the [src]'s lid, you secure the reagents inside.")) atom_flags &= ~ATOM_FLAG_OPEN_CONTAINER else - to_chat(user,"You can't secure \the [src] without putting reagents in!") + to_chat(user,SPAN_NOTICE("You can't secure \the [src] without putting reagents in!")) else - to_chat(user,"The reagents inside \the [src] are already secured.") + to_chat(user,SPAN_NOTICE("The reagents inside \the [src] are already secured.")) return /obj/item/reagent_containers/personal_inhaler_cartridge/attackby(obj/item/attacking_item, mob/user) if(attacking_item.isscrewdriver() && !is_open_container()) - to_chat(user,"Using \the [attacking_item], you unsecure the inhaler cartridge's lid.") // it locks shut after being secured + to_chat(user,SPAN_NOTICE("Using \the [attacking_item], you unsecure the inhaler cartridge's lid.")) // it locks shut after being secured atom_flags |= ATOM_FLAG_OPEN_CONTAINER return . = ..() @@ -106,7 +106,7 @@ if(distance > 2) return if(stored_cartridge) - . += "\The [stored_cartridge] is attached to \the [src]." + . += SPAN_NOTICE("\The [stored_cartridge] is attached to \the [src].") /obj/item/personal_inhaler/update_icon() ClearOverlays() @@ -121,7 +121,7 @@ /obj/item/personal_inhaler/attack_self(mob/user as mob) if(stored_cartridge) user.put_in_hands(stored_cartridge) - to_chat(user,"You remove \the [stored_cartridge] from \the [src].") + to_chat(user,SPAN_WARNING("You remove \the [stored_cartridge] from \the [src].")) stored_cartridge.update_icon() stored_cartridge = null update_icon() @@ -131,26 +131,28 @@ var/mob/living/carbon/human/H = M if (!istype(H)) - to_chat(user,"You can't find a way to use \the [src] on \the [M]!") + to_chat(user,SPAN_WARNING("You can't find a way to use \the [src] on \the [M]!")) return if(!stored_cartridge) - to_chat(user,"\The [src] has no cartridge installed!") + to_chat(user,SPAN_WARNING("\The [src] has no cartridge installed!")) return if(!stored_cartridge.reagents || !stored_cartridge.reagents.total_volume) - to_chat(user,"\The [src]'s cartridge is empty!") + to_chat(user,SPAN_WARNING("\The [src]'s cartridge is empty!")) return if (((user.is_clumsy()) || (user.mutations & DUMB)) && prob(10)) - to_chat(user,"Your hand slips from clumsiness!") + to_chat(user,SPAN_DANGER("Your hand slips from clumsiness!")) if(M.eyes_protected(src, FALSE)) eyestab(M,user) - user.visible_message("[user] accidentally sticks \the [src] in [M]'s eye!","You accidentally stick the [src] in [M]'s eye!") + user.visible_message(SPAN_NOTICE("[user] accidentally sticks \the [src] in [M]'s eye!"), + SPAN_NOTICE("You accidentally stick the [src] in [M]'s eye!")) + return if (!user.IsAdvancedToolUser()) - to_chat(user,"You don't have the dexterity to do this!") + to_chat(user,SPAN_WARNING("You don't have the dexterity to do this!")) return if(user == H && !H.can_eat(src)) @@ -162,14 +164,19 @@ user.do_attack_animation(M) if(user == M) - user.visible_message("[user] sticks \the [src] in their mouth and presses the injection button.","You stick \the [src] in your mouth and press the injection button.") + user.visible_message(SPAN_NOTICE("[user] sticks \the [src] in their mouth and presses the injection button."), + SPAN_NOTICE("You stick \the [src] in your mouth and press the injection button.")) + else - user.visible_message("[user] attempts to administer \the [src] to [M]...","You attempt to administer \the [src] to [M]...") + user.visible_message(SPAN_WARNING("[user] attempts to administer \the [src] to [M]..."), + SPAN_NOTICE("You attempt to administer \the [src] to [M]...")) if (!do_after(user, 1 SECONDS, M)) - to_chat(user,"You and \the [M] need to be standing still in order to inject \the [src].") + to_chat(user,SPAN_NOTICE("You and \the [M] need to be standing still in order to inject \the [src].")) return - user.visible_message("[user] sticks \the [src] in [M]'s mouth and presses the injection button.","You stick \the [src] in [M]'s mouth and press the injection button.") + user.visible_message(SPAN_NOTICE("[user] sticks \the [src] in [M]'s mouth and presses the injection button."), + SPAN_NOTICE("You stick \the [src] in [M]'s mouth and press the injection button.")) + if(M.reagents) var/contained = stored_cartridge.reagentlist() @@ -178,13 +185,13 @@ admin_inject_log(user, M, src, contained, temp, trans) playsound(M.loc, 'sound/items/stimpack.ogg', 50, 1) if(eject_when_empty) - to_chat(user,"\The [stored_cartridge] automatically ejects from \the [src].") + to_chat(user,SPAN_NOTICE("\The [stored_cartridge] automatically ejects from \the [src].")) stored_cartridge.forceMove(user.loc) stored_cartridge.update_icon() stored_cartridge = null update_icon() else - to_chat(user,"Nothing happens!") + to_chat(user,SPAN_WARNING("Nothing happens!")) update_icon() return @@ -193,10 +200,10 @@ var/obj/item/reagent_containers/personal_inhaler_cartridge/cartridge = attacking_item if(istype(cartridge)) if(src.stored_cartridge) - to_chat(user,"\The [src] already has a cartridge.") + to_chat(user,SPAN_NOTICE("\The [src] already has a cartridge.")) return if(cartridge.is_open_container()) - to_chat(user,"\The [cartridge] needs to be secured first.") + to_chat(user,SPAN_NOTICE("\The [cartridge] needs to be secured first.")) return user.remove_from_mob(cartridge) src.stored_cartridge = cartridge diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index f0b50ec8988..dce2497092c 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -60,12 +60,12 @@ return if(reagents.total_volume < amount_per_transfer_from_this) - to_chat(user, "\The [src] is empty!") + to_chat(user, SPAN_NOTICE("\The [src] is empty!")) return if(safety) playsound(src.loc, 'sound/weapons/safety_click.ogg', 25, 1) - to_chat(user, "The safety is on!") + to_chat(user, SPAN_NOTICE("The safety is on!")) return Spray_at(A, user, proximity) @@ -127,7 +127,7 @@ if (alert(usr, "Are you sure you want to empty that?", "Empty Bottle:", "Yes", "No") != "Yes") return if(isturf(usr.loc)) - to_chat(usr, "You empty \the [src] onto the floor.") + to_chat(usr, SPAN_NOTICE("You empty \the [src] onto the floor.")) reagents.splash(usr.loc, reagents.total_volume) //space cleaner diff --git a/code/modules/reagents/reagent_containers/tooth_paste.dm b/code/modules/reagents/reagent_containers/tooth_paste.dm index 3bef83418ed..541d5e7bfb3 100644 --- a/code/modules/reagents/reagent_containers/tooth_paste.dm +++ b/code/modules/reagents/reagent_containers/tooth_paste.dm @@ -43,13 +43,13 @@ /obj/item/reagent_containers/toothbrush/attack_self(mob/user as mob) if(!reagents.total_volume) - to_chat(user, "The [initial(name)] is dry!") + to_chat(user, SPAN_WARNING("The [initial(name)] is dry!")) else playsound(loc, 'sound/effects/toothbrush.ogg', 15, 1) if(do_after(user, 30)) user.visible_message( - "\The [user] brushes [user.get_pronoun("his")] teeth with \the [src]", - "You brush your teeth with \the [src].") + SPAN_NOTICE("\The [user] brushes [user.get_pronoun("his")] teeth with \the [src]"), + SPAN_NOTICE("You brush your teeth with \the [src].")) reagents.trans_to_mob(user, amount_per_transfer_from_this, CHEM_BREATHE) update_icon() return @@ -66,14 +66,14 @@ var/mob/living/M = target if(ishuman(M)) if(!reagents.total_volume) - to_chat(user, "The [initial(name)] is dry!") + to_chat(user, SPAN_WARNING("The [initial(name)] is dry!")) else if(reagents.total_volume) if(user.zone_sel.selecting == BP_MOUTH && !(M.wear_mask && M.wear_mask.item_flags & ITEM_FLAG_AIRTIGHT)) user.do_attack_animation(src) - user.visible_message("[user] is trying to brush \the [target]'s teeth \the [src]!") + user.visible_message(SPAN_WARNING("[user] is trying to brush \the [target]'s teeth \the [src]!")) playsound(loc, 'sound/effects/toothbrush.ogg', 15, 1) if(do_after(user, 30)) - user.visible_message("[user] has brushed \the [target]'s teeth with \the [src]!") + user.visible_message(SPAN_WARNING("[user] has brushed \the [target]'s teeth with \the [src]!")) reagents.trans_to_mob(target, amount_per_transfer_from_this, CHEM_BREATHE) update_icon() @@ -93,7 +93,9 @@ if(A.reagents && A.reagents.trans_to_obj(src, reagents.maximum_volume)) playsound(loc, 'sound/effects/slosh.ogg', 25, 1) - user.visible_message("\The [user] soaks [src] using [A].", "You soak [src] using [A].") + user.visible_message(SPAN_NOTICE("\The [user] soaks [src] using [A]."), + SPAN_NOTICE("You soak [src] using [A].")) + update_icon() return @@ -106,7 +108,7 @@ /obj/item/reagent_containers/toothbrush/proc/wipe_down(atom/A, mob/user) if(!reagents.total_volume) - to_chat(user, "The [initial(name)] is dry!") + to_chat(user, SPAN_WARNING("The [initial(name)] is dry!")) else user.visible_message("\The [user] starts to brush down [A] with [src]!") playsound(loc, 'sound/effects/mop.ogg', 25, 1) diff --git a/code/modules/reagents/reagent_dispenser.dm b/code/modules/reagents/reagent_dispenser.dm index ed10f6ccd8a..fd11e9aa30c 100644 --- a/code/modules/reagents/reagent_dispenser.dm +++ b/code/modules/reagents/reagent_dispenser.dm @@ -25,7 +25,7 @@ . = ..() if(distance > 2) return - . += "It contains [reagents.total_volume] units of reagents." + . += SPAN_NOTICE("It contains [reagents.total_volume] units of reagents.") /obj/structure/reagent_dispensers/verb/set_APTFT() //set amount_per_transfer_from_this set name = "Set transfer amount" @@ -61,7 +61,7 @@ if(is_open_container()) RG.standard_pour_into(user,src) else - to_chat(user,"The inlet cap on \the [src] is wrenched on tight!") + to_chat(user,SPAN_NOTICE("The inlet cap on \the [src] is wrenched on tight!")) return if (attacking_item.iswrench()) @@ -69,8 +69,8 @@ to_chat(user, SPAN_WARNING("A strange force prevents you from doing this.")) //there is no way to justify this icly return if(can_tamper && user.a_intent == I_HURT) - user.visible_message("\The [user] wrenches \the [src]'s faucet [is_leaking ? "closed" : "open"].", - "You wrench \the [src]'s faucet [is_leaking ? "closed" : "open"]") + user.visible_message(SPAN_WARNING("\The [user] wrenches \the [src]'s faucet [is_leaking ? "closed" : "open"]."), + SPAN_WARNING("You wrench \the [src]'s faucet [is_leaking ? "closed" : "open"]")) is_leaking = !is_leaking if (is_leaking) message_admins("[key_name_admin(user)] wrench opened \the [src] at [loc.loc.name] ([loc.x],[loc.y],[loc.z]), leaking reagents. (JMP)") @@ -136,15 +136,17 @@ if(distance > 2) return if (is_leaking) - . += "Fuel faucet is wrenched open, leaking the fuel!" + . += SPAN_WARNING("Fuel faucet is wrenched open, leaking the fuel!") if(rig) - . += "There is some kind of device rigged to the tank." + . += SPAN_NOTICE("There is some kind of device rigged to the tank.") /obj/structure/reagent_dispensers/fueltank/attack_hand(mob/user) if (rig) user.visible_message("[user] begins to detach [rig] from \the [src].", "You begin to detach [rig] from \the [src]") if(do_after(user, 20)) - user.visible_message("[user] detaches [rig] from \the [src].", "You detach [rig] from \the [src]") + user.visible_message(SPAN_NOTICE("[user] detaches [rig] from \the [src]."), + SPAN_NOTICE("You detach [rig] from \the [src]")) + rig.forceMove(get_turf(user)) rig = null overlays = new/list() @@ -161,11 +163,12 @@ overlays = new/list() if (istype(attacking_item,/obj/item/device/assembly_holder)) if (rig) - to_chat(user, "There is another device in the way.") + to_chat(user, SPAN_WARNING("There is another device in the way.")) return ..() user.visible_message("[user] begins rigging [attacking_item] to \the [src].", "You begin rigging [attacking_item] to \the [src]") if(do_after(user, 20)) - user.visible_message("[user] rigs [attacking_item] to \the [src].", "You rig [attacking_item] to \the [src]") + user.visible_message(SPAN_NOTICE("[user] rigs [attacking_item] to \the [src]."), + SPAN_NOTICE("You rig [attacking_item] to \the [src]")) var/obj/item/device/assembly_holder/H = attacking_item if (istype(H.a_left,/obj/item/device/assembly/igniter) || istype(H.a_right,/obj/item/device/assembly/igniter)) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 2a85aa9ccad..765cbc89a84 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -128,7 +128,7 @@ var/obj/item/conveyor_construct/C = new/obj/item/conveyor_construct(src.loc) C.id = id transfer_fingerprints_to(C) - to_chat(user, "You remove the conveyor belt.") + to_chat(user, SPAN_NOTICE("You remove the conveyor belt.")) qdel(src) return if(isrobot(user)) @@ -232,7 +232,7 @@ // attack with hand, switch position /obj/machinery/conveyor_switch/attack_hand(mob/user) if(!allowed(user)) - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) return if(position == 0) @@ -266,7 +266,7 @@ var/obj/item/conveyor_switch_construct/C = new/obj/item/conveyor_switch_construct(src.loc) C.id = id transfer_fingerprints_to(C) - to_chat(user, "You deattach the conveyor switch.") + to_chat(user, SPAN_NOTICE("You deattach the conveyor switch.")) qdel(src) /obj/machinery/conveyor_switch/oneway @@ -310,7 +310,7 @@ /obj/item/conveyor_construct/attackby(obj/item/attacking_item, mob/user, params) . = ..() if(istype(attacking_item, /obj/item/conveyor_switch_construct)) - to_chat(user, "You link the switch to the conveyor belt assembly.") + to_chat(user, SPAN_NOTICE("You link the switch to the conveyor belt assembly.")) var/obj/item/conveyor_switch_construct/C = attacking_item id = C.id return TRUE diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index fc301cf7992..ee065638b78 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -206,9 +206,9 @@ L.forceMove(src) if (count) - to_chat(user, "You empty [count] broken bulbs into the disposal.") + to_chat(user, SPAN_NOTICE("You empty [count] broken bulbs into the disposal.")) else - to_chat(user, "There are no broken bulbs to empty out.") + to_chat(user, SPAN_NOTICE("There are no broken bulbs to empty out.")) update() return TRUE @@ -227,7 +227,7 @@ GM.client.eye = src GM.forceMove(src) for (var/mob/C in viewers(src)) - C.show_message("[GM.name] has been placed in the [src] by [user].", 3) + C.show_message(SPAN_WARNING("[GM.name] has been placed in the [src] by [user]."), 3) qdel(G) usr.attack_log += text("\[[time_stamp()]\] Has placed [GM.name] ([GM.ckey]) in disposals.") GM.attack_log += text("\[[time_stamp()]\] Has been placed in disposals by [usr.name] ([usr.ckey])") @@ -341,7 +341,7 @@ return if(user.loc == src) - to_chat(usr, "You cannot reach the controls from inside.") + to_chat(usr, SPAN_WARNING("You cannot reach the controls from inside.")) return // Clumsy folks can only flush it. @@ -397,11 +397,11 @@ /obj/machinery/disposal/Topic(href, href_list) if(usr.loc == src && !issilicon(usr)) - to_chat(usr, "You cannot reach the controls from inside.") + to_chat(usr, SPAN_WARNING("You cannot reach the controls from inside.")) return if(mode==-1 && !href_list["eject"]) // only allow ejecting if mode is -1 - to_chat(usr, "The disposal units power is disabled.") + to_chat(usr, SPAN_WARNING("The disposal units power is disabled.")) return if(..()) return @@ -1237,7 +1237,7 @@ if(O.currTag)// Tag set sort_tag = O.currTag playsound(src.loc, 'sound/machines/twobeep.ogg', 100, 1) - to_chat(user, "Changed tag to '[sort_tag]'.") + to_chat(user, SPAN_NOTICE("Changed tag to '[sort_tag]'.")) updatename() updatedesc() @@ -1308,7 +1308,7 @@ if(O.currTag)// Tag set sortType = O.currTag playsound(src.loc, 'sound/machines/twobeep.ogg', 100, 1) - to_chat(user, "Changed filter to '[sortType]'.") + to_chat(user, SPAN_NOTICE("Changed filter to '[sortType]'.")) updatename() updatedesc() diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm index 1b008ad2b59..0b22f20ae77 100755 --- a/code/modules/recycling/sortingmachinery.dm +++ b/code/modules/recycling/sortingmachinery.dm @@ -34,7 +34,7 @@ var/obj/item/device/destTagger/O = attacking_item if(O.currTag) if(src.sortTag != O.currTag) - to_chat(user, "You have labeled the destination as [O.currTag].") + to_chat(user, SPAN_NOTICE("You have labeled the destination as [O.currTag].")) if(!src.sortTag) src.sortTag = O.currTag update_icon() @@ -42,19 +42,19 @@ src.sortTag = O.currTag playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 1) else - to_chat(user, "The package is already labeled for [O.currTag].") + to_chat(user, SPAN_WARNING("The package is already labeled for [O.currTag].")) else - to_chat(user, "You need to set a destination first!") + to_chat(user, SPAN_WARNING("You need to set a destination first!")) else if(attacking_item.ispen()) switch(alert("What would you like to alter?",,"Title","Description", "Cancel")) if("Title") var/str = sanitizeSafe(input(usr,"Label text?","Set label",""), MAX_NAME_LEN) if(!str || !length(str)) - to_chat(usr, "Invalid text.") + to_chat(usr, SPAN_WARNING("Invalid text.")) return user.visible_message("\The [user] titles \the [src] with \a [attacking_item], marking down: \"[str]\"",\ - "You title \the [src]: \"[str]\"",\ + SPAN_NOTICE("You title \the [src]: \"[str]\""),\ "You hear someone scribbling a note.") playsound(src, pick('sound/bureaucracy/pen1.ogg','sound/bureaucracy/pen2.ogg'), 20) name = "[name] ([str])" @@ -66,7 +66,7 @@ if("Description") var/str = sanitize(input(usr,"Label text?","Set label","")) if(!str || !length(str)) - to_chat(usr, "Invalid text.") + to_chat(usr, SPAN_WARNING("Invalid text.")) return if(!examtext && !nameset) examtext = str @@ -74,7 +74,7 @@ else examtext = str user.visible_message("\The [user] labels \the [src] with \a [attacking_item], scribbling down: \"[examtext]\"",\ - "You label \the [src]: \"[examtext]\"",\ + SPAN_NOTICE("You label \the [src]: \"[examtext]\""),\ "You hear someone scribbling a note.") playsound(src, pick('sound/bureaucracy/pen1.ogg','sound/bureaucracy/pen2.ogg'), 20) return @@ -112,9 +112,9 @@ . = ..() if(distance <= 4) if(sortTag) - . += "It is labeled \"[sortTag]\"." + . += SPAN_NOTICE("It is labeled \"[sortTag]\".") if(examtext) - . += "It has a note attached which reads, \"[examtext]\"." + . += SPAN_NOTICE("It has a note attached which reads, \"[examtext]\".") /obj/item/smallDelivery desc = "A small wrapped package." @@ -157,7 +157,7 @@ var/obj/item/device/destTagger/O = attacking_item if(O.currTag) if(src.sortTag != O.currTag) - to_chat(user, "You have labeled the destination as [O.currTag].") + to_chat(user, SPAN_NOTICE("You have labeled the destination as [O.currTag].")) if(!src.sortTag) src.sortTag = O.currTag update_icon() @@ -165,19 +165,19 @@ src.sortTag = O.currTag playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 1) else - to_chat(user, "The package is already labeled for [O.currTag].") + to_chat(user, SPAN_WARNING("The package is already labeled for [O.currTag].")) else - to_chat(user, "You need to set a destination first!") + to_chat(user, SPAN_WARNING("You need to set a destination first!")) else if(attacking_item.ispen()) switch(tgui_input_list(user, "What would you like to alter?", null, list("Title", "Description"), "Cancel")) if("Title") var/str = sanitizeSafe( tgui_input_text(usr, "Label text?", "Set label", "", MAX_NAME_LEN), MAX_NAME_LEN ) if(!str || !length(str)) - to_chat(usr, "Invalid text.") + to_chat(usr, SPAN_WARNING("Invalid text.")) return user.visible_message("\The [user] titles \the [src] with \a [attacking_item], marking down: \"[str]\"",\ - "You title \the [src]: \"[str]\"",\ + SPAN_NOTICE("You title \the [src]: \"[str]\""),\ "You hear someone scribbling a note.") playsound(src, pick('sound/bureaucracy/pen1.ogg','sound/bureaucracy/pen2.ogg'), 20) name = "[name] ([str])" @@ -190,7 +190,7 @@ if("Description") var/str = sanitize(tgui_input_text(usr, "Label text?", "Set label", "")) if(!str || !length(str)) - to_chat(usr, "Invalid text.") + to_chat(usr, SPAN_WARNING("Invalid text.")) return if(!examtext && !nameset) examtext = str @@ -198,7 +198,7 @@ else examtext = str user.visible_message("\The [user] labels \the [src] with \a [attacking_item], scribbling down: \"[examtext]\"",\ - "You label \the [src]: \"[examtext]\"",\ + SPAN_NOTICE("You label \the [src]: \"[examtext]\""),\ "You hear someone scribbling a note.") playsound(src, pick('sound/bureaucracy/pen1.ogg','sound/bureaucracy/pen2.ogg'), 20) return @@ -232,9 +232,9 @@ . = ..() if(distance <= 4) if(sortTag) - . += "It is labeled \"[sortTag]\"." + . += SPAN_NOTICE("It is labeled \"[sortTag]\".") if(examtext) - . += "It has a note attached which reads, \"[examtext]\"." + . += SPAN_NOTICE("It has a note attached which reads, \"[examtext]\".") /obj/structure/bigDelivery/Destroy() if(wrapped) //sometimes items can disappear. For example, bombs. --rastaf0 diff --git a/code/modules/research/circuitprinter.dm b/code/modules/research/circuitprinter.dm index 6be97cd3ccd..afb57f73391 100644 --- a/code/modules/research/circuitprinter.dm +++ b/code/modules/research/circuitprinter.dm @@ -51,7 +51,7 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid). update_icon() else if(busy) - visible_message("[icon2html(src, viewers(get_turf(src)))] flashes: insufficient materials: [getLackingMaterials(D)].") + visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] flashes: insufficient materials: [getLackingMaterials(D)].")) busy = 0 update_icon() @@ -106,7 +106,7 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid). /obj/machinery/r_n_d/circuit_imprinter/attackby(obj/item/attacking_item, mob/user) if(busy) - to_chat(user, "\The [src] is busy. Please wait for completion of previous operation.") + to_chat(user, SPAN_NOTICE("\The [src] is busy. Please wait for completion of previous operation.")) return 1 if(default_deconstruction_screwdriver(user, attacking_item)) if(linked_console) @@ -118,7 +118,7 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid). if(default_part_replacement(user, attacking_item)) return if(panel_open) - to_chat(user, "You can't load \the [src] while it's opened.") + to_chat(user, SPAN_NOTICE("You can't load \the [src] while it's opened.")) return 1 if(!linked_console) to_chat(user, "\The [src] must be linked to an R&D console first.") @@ -126,13 +126,13 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid). if(attacking_item.is_open_container()) return 0 if(!istype(attacking_item, /obj/item/stack/material)) - to_chat(user, "You cannot insert this item into \the [src]!") + to_chat(user, SPAN_NOTICE("You cannot insert this item into \the [src]!")) return 1 if(stat) return 1 if(TotalMaterials() + SHEET_MATERIAL_AMOUNT > max_material_storage) - to_chat(user, "\The [src]'s material bin is full. Please remove material before adding more.") + to_chat(user, SPAN_NOTICE("\The [src]'s material bin is full. Please remove material before adding more.")) return 1 var/obj/item/stack/material/stack = attacking_item @@ -143,7 +143,7 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid). if(!attacking_item) return if(!Adjacent(user)) - to_chat(user, "\The [src] is too far away for you to insert this.") + to_chat(user, SPAN_NOTICE("\The [src] is too far away for you to insert this.")) return if(amount <= 0)//No negative numbers return @@ -156,7 +156,7 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid). use_power_oneoff(max(1000, (SHEET_MATERIAL_AMOUNT * amount / 10))) if(do_after(user, 16)) if(stack.use(amount)) - to_chat(user, "You add [amount] sheets to \the [src].") + to_chat(user, SPAN_NOTICE("You add [amount] sheets to \the [src].")) materials[stack.default_type] += amount * SHEET_MATERIAL_AMOUNT busy = 0 updateUsrDialog() diff --git a/code/modules/research/destructive_analyzer.dm b/code/modules/research/destructive_analyzer.dm index 60094e7c5e4..084ba1b200a 100644 --- a/code/modules/research/destructive_analyzer.dm +++ b/code/modules/research/destructive_analyzer.dm @@ -40,10 +40,10 @@ Note: Must be placed within 3 tiles of the R&D Console /obj/machinery/r_n_d/destructive_analyzer/attackby(obj/item/attacking_item, mob/user) if(busy) - to_chat(user, "\The [src] is busy right now.") + to_chat(user, SPAN_NOTICE("\The [src] is busy right now.")) return if(loaded_item) - to_chat(user, "There is something already loaded into \the [src].") + to_chat(user, SPAN_NOTICE("There is something already loaded into \the [src].")) return 1 if(default_deconstruction_screwdriver(user, attacking_item)) if(linked_console) @@ -55,24 +55,24 @@ Note: Must be placed within 3 tiles of the R&D Console if(default_part_replacement(user, attacking_item)) return if(panel_open) - to_chat(user, "You can't load \the [src] while it's opened.") + to_chat(user, SPAN_NOTICE("You can't load \the [src] while it's opened.")) return 1 if(!linked_console) - to_chat(user, "\The [src] must be linked to an R&D console first.") + to_chat(user, SPAN_NOTICE("\The [src] must be linked to an R&D console first.")) return if(istype(attacking_item, /obj/item) && !loaded_item) if(!attacking_item.dropsafety()) //Don't put your module items in there! return if(!attacking_item.origin_tech) - to_chat(user, "This doesn't seem to have a tech origin.") + to_chat(user, SPAN_NOTICE("This doesn't seem to have a tech origin.")) return if(attacking_item.origin_tech.len == 0) - to_chat(user, "You cannot deconstruct this item.") + to_chat(user, SPAN_NOTICE("You cannot deconstruct this item.")) return busy = 1 loaded_item = attacking_item user.drop_from_inventory(attacking_item, src) - to_chat(user, "You add \the [attacking_item] to \the [src].") + to_chat(user, SPAN_NOTICE("You add \the [attacking_item] to \the [src].")) flick("d_analyzer_la", src) spawn(10) update_icon() diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index d46c35c2e3a..865a45a9960 100644 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -161,10 +161,10 @@ won't update every console in existence) but it's more of a hassle to do. Also, else if (istype(attacking_item, /obj/item/disk/design_disk)) d_disk = attacking_item else - to_chat(user, "Machine cannot accept disks in that format.") + to_chat(user, SPAN_NOTICE("Machine cannot accept disks in that format.")) return user.drop_from_inventory(attacking_item, src) - to_chat(user, "You add \the [attacking_item] to the machine.") + to_chat(user, SPAN_NOTICE("You add \the [attacking_item] to the machine.")) else //The construction/deconstruction of the console code. ..() @@ -178,7 +178,7 @@ won't update every console in existence) but it's more of a hassle to do. Also, if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - to_chat(usr, "You you disable the security protocols.") + to_chat(usr, SPAN_NOTICE("You you disable the security protocols.")) return 1 /obj/machinery/computer/rdconsole/Topic(href, href_list) @@ -243,7 +243,7 @@ won't update every console in existence) but it's more of a hassle to do. Also, else if(href_list["eject_item"]) //Eject the item inside the destructive analyzer. if(linked_destroy) if(linked_destroy.busy) - to_chat(usr, "The destructive analyzer is busy at the moment.") + to_chat(usr, SPAN_NOTICE("The destructive analyzer is busy at the moment.")) else if(linked_destroy.loaded_item) linked_destroy.loaded_item.forceMove(linked_destroy.loc) @@ -256,7 +256,7 @@ won't update every console in existence) but it's more of a hassle to do. Also, else if(href_list["deconstruct"]) //Deconstruct the item in the destructive analyzer and update the research holder. if(linked_destroy) if(linked_destroy.busy) - to_chat(usr, "The destructive analyzer is busy at the moment.") + to_chat(usr, SPAN_NOTICE("The destructive analyzer is busy at the moment.")) else if(alert("Proceeding will destroy loaded item. Continue?", "Destructive analyzer confirmation", "Yes", "No") == "No" || !linked_destroy) return @@ -268,7 +268,7 @@ won't update every console in existence) but it's more of a hassle to do. Also, if(linked_destroy) linked_destroy.busy = 0 if(!linked_destroy.loaded_item) - to_chat(usr, "The destructive analyzer appears to be empty.") + to_chat(usr, SPAN_NOTICE("The destructive analyzer appears to be empty.")) screen = 1.0 return @@ -310,7 +310,7 @@ won't update every console in existence) but it's more of a hassle to do. Also, else if(href_list["sync"]) //Sync the research holder with all the R&D consoles in the game that aren't sync protected. screen = 0.0 if(!sync) - to_chat(usr, "You must connect to the network first.") + to_chat(usr, SPAN_NOTICE("You must connect to the network first.")) else griefProtection() //Putting this here because I dont trust the sync process addtimer(CALLBACK(src, PROC_REF(SyncTechs)), 30) diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm index 37ba9c2fa12..0fb5382d06b 100644 --- a/code/modules/research/server.dm +++ b/code/modules/research/server.dm @@ -221,7 +221,7 @@ add_fingerprint(usr) usr.set_machine(src) if(!allowed(usr) && !emagged) - to_chat(usr, "You do not have the required access level") + to_chat(usr, SPAN_WARNING("You do not have the required access level")) return if(href_list["main"]) @@ -357,7 +357,7 @@ if(!emagged) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) emagged = 1 - to_chat(user, "You you disable the security protocols.") + to_chat(user, SPAN_NOTICE("You you disable the security protocols.")) src.updateUsrDialog() return 1 diff --git a/code/modules/research/xenoarchaeology/artifact/artifact.dm b/code/modules/research/xenoarchaeology/artifact/artifact.dm index 64469771eab..39f7332fa0c 100644 --- a/code/modules/research/xenoarchaeology/artifact/artifact.dm +++ b/code/modules/research/xenoarchaeology/artifact/artifact.dm @@ -65,9 +65,11 @@ if (istype(attacking_item, /obj/item/device/measuring_tape)) var/obj/item/device/measuring_tape/P = attacking_item - user.visible_message("[user] extends [P] towards [src].","You extend [P] towards [src].") + user.visible_message(SPAN_NOTICE("[user] extends [P] towards [src]."), + SPAN_NOTICE("You extend [P] towards [src].")) + if(do_after(user,40)) - to_chat(user, "[icon2html(P, user)] [src] has been excavated to a depth of [2*src.excavation_level]cm.") + to_chat(user, SPAN_NOTICE("[icon2html(P, user)] [src] has been excavated to a depth of [2*src.excavation_level]cm.")) return if (istype(attacking_item, /obj/item/pickaxe)) @@ -77,20 +79,20 @@ return last_act = world.time - to_chat(user, "You start [P.drill_verb] [src].") + to_chat(user, SPAN_WARNING("You start [P.drill_verb] [src].")) if(!do_after(user,P.digspeed)) return - to_chat(user, "You finish [P.drill_verb] [src].") + to_chat(user, SPAN_NOTICE("You finish [P.drill_verb] [src].")) excavation_level += P.excavation_amount if(excavation_level > 100) //failure - user.visible_message("[src] suddenly crumbles away.",\ - "[src] has disintegrated under your onslaught, any secrets it was holding are long gone.") + user.visible_message(SPAN_WARNING("[src] suddenly crumbles away."),\ + SPAN_WARNING("[src] has disintegrated under your onslaught, any secrets it was holding are long gone.")) qdel(src) return @@ -103,10 +105,10 @@ var/obj/machinery/artifact/X = O if(X.my_effect) X.my_effect.artifact_id = artifact_find.artifact_id - src.visible_message("[src] suddenly crumbles away.") + src.visible_message(SPAN_WARNING("[src] suddenly crumbles away.")) else - user.visible_message("[src] suddenly crumbles away.",\ - "[src] has been whittled away under your careful excavation, but there was nothing of interest inside.") + user.visible_message(SPAN_WARNING("[src] suddenly crumbles away."),\ + SPAN_NOTICE("[src] has been whittled away under your careful excavation, but there was nothing of interest inside.")) qdel(src) /obj/structure/boulder/CollidedWith(AM) diff --git a/code/modules/research/xenoarchaeology/artifact/artifact_autocloner.dm b/code/modules/research/xenoarchaeology/artifact/artifact_autocloner.dm index 3412d99fbd9..feea514cd69 100644 --- a/code/modules/research/xenoarchaeology/artifact/artifact_autocloner.dm +++ b/code/modules/research/xenoarchaeology/artifact/artifact_autocloner.dm @@ -47,17 +47,17 @@ if(!previous_power_state) previous_power_state = 1 icon_state = "cellold1" - src.visible_message("[icon2html(src, viewers(get_turf(src)))] [src] suddenly comes to life!") + src.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [src] suddenly comes to life!")) //slowly grow a mob if(prob(5)) - src.visible_message("[icon2html(src, viewers(get_turf(src)))] [src] [pick("gloops","glugs","whirrs","whooshes","hisses","purrs","hums","gushes")].") + src.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [src] [pick("gloops","glugs","whirrs","whooshes","hisses","purrs","hums","gushes")].")) //if we've finished growing... if(time_spent_spawning >= time_per_spawn) time_spent_spawning = 0 update_use_power(POWER_USE_IDLE) - src.visible_message("[icon2html(src, viewers(get_turf(src)))] [src] pings!") + src.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [src] pings!")) icon_state = "cellold1" desc = "It's full of a bubbling viscous liquid, and is lit by a mysterious glow." if(spawn_type) @@ -78,7 +78,7 @@ if(previous_power_state) previous_power_state = 0 icon_state = "cellold0" - src.visible_message("[icon2html(src, viewers(get_turf(src)))] [src] suddenly shuts down.") + src.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [src] suddenly shuts down.")) //cloned mob slowly breaks down time_spent_spawning = max(time_spent_spawning + last_process - world.time, 0) diff --git a/code/modules/research/xenoarchaeology/artifact/artifact_crystal.dm b/code/modules/research/xenoarchaeology/artifact/artifact_crystal.dm index 30902c35cbf..6188c99a428 100644 --- a/code/modules/research/xenoarchaeology/artifact/artifact_crystal.dm +++ b/code/modules/research/xenoarchaeology/artifact/artifact_crystal.dm @@ -17,7 +17,7 @@ "It's mesmerizing to behold.") /obj/structure/crystal/Destroy() - src.visible_message("[src] shatters!") + src.visible_message(SPAN_DANGER("[src] shatters!")) if(prob(75)) new /obj/item/material/shard/phoron(src.loc) if(prob(50)) diff --git a/code/modules/research/xenoarchaeology/artifact/artifact_gigadrill.dm b/code/modules/research/xenoarchaeology/artifact/artifact_gigadrill.dm index 7f95b8b6aeb..7a9edd37271 100644 --- a/code/modules/research/xenoarchaeology/artifact/artifact_gigadrill.dm +++ b/code/modules/research/xenoarchaeology/artifact/artifact_gigadrill.dm @@ -14,11 +14,11 @@ if(active) active = 0 icon_state = "gigadrill" - to_chat(user, "You press a button and [src] slowly spins down.") + to_chat(user, SPAN_NOTICE("You press a button and [src] slowly spins down.")) else active = 1 icon_state = "gigadrill_active" - to_chat(user, "You press a button and [src] shudders to life.") + to_chat(user, SPAN_NOTICE("You press a button and [src] shudders to life.")) /obj/machinery/giga_drill/Collide(atom/A) . = ..() @@ -26,7 +26,7 @@ if(istype(A,/turf/simulated/mineral)) var/turf/simulated/mineral/M = A drilling_turf = get_turf(src) - src.visible_message("[src] begins to drill into [M]!") + src.visible_message(SPAN_DANGER("[src] begins to drill into [M]!")) anchored = 1 spawn(drill_time) if(get_turf(src) == drilling_turf && active) diff --git a/code/modules/research/xenoarchaeology/artifact/artifact_replicator.dm b/code/modules/research/xenoarchaeology/artifact/artifact_replicator.dm index e59d81d7873..2675cc22a84 100644 --- a/code/modules/research/xenoarchaeology/artifact/artifact_replicator.dm +++ b/code/modules/research/xenoarchaeology/artifact/artifact_replicator.dm @@ -88,7 +88,7 @@ if(spawning_types.len && powered()) spawn_progress_time += world.time - last_process_time if(spawn_progress_time > max_spawn_time) - src.visible_message("[icon2html(src, viewers(get_turf(src)))] [src] pings!") + src.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [src] pings!")) var/obj/source_material = pop(stored_materials) var/spawn_type = pop(spawning_types) @@ -111,7 +111,7 @@ icon_state = "borgcharger0(old)" else if(prob(5)) - src.visible_message("[icon2html(src, viewers(get_turf(src)))] [src] [pick("clicks","whizzes","whirrs","whooshes","clanks","clongs","clonks","bangs")].") + src.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [src] [pick("clicks","whizzes","whirrs","whooshes","clanks","clongs","clonks","bangs")].")) last_process_time = world.time @@ -129,7 +129,7 @@ /obj/machinery/replicator/attackby(obj/item/attacking_item, mob/user) user.drop_from_inventory(attacking_item, src) stored_materials.Add(attacking_item) - src.visible_message("[user] inserts [attacking_item] into [src].") + src.visible_message(SPAN_NOTICE("[user] inserts [attacking_item] into [src].")) /obj/machinery/replicator/Topic(href, href_list) @@ -138,9 +138,9 @@ if(index > 0 && index <= construction.len) if(stored_materials.len > spawning_types.len) if(spawning_types.len) - src.visible_message("[icon2html(src, viewers(get_turf(src)))] a [pick("light","dial","display","meter","pad")] on [src]'s front [pick("blinks","flashes")] [pick("red","yellow","blue","orange","purple","green","white")].") + src.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] a [pick("light","dial","display","meter","pad")] on [src]'s front [pick("blinks","flashes")] [pick("red","yellow","blue","orange","purple","green","white")].")) else - src.visible_message("[icon2html(src, viewers(get_turf(src)))] [src]'s front compartment slides shut.") + src.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [src]'s front compartment slides shut.")) spawning_types.Add(construction[construction[index]]) spawn_progress_time = 0 diff --git a/code/modules/research/xenoarchaeology/artifact/effect.dm b/code/modules/research/xenoarchaeology/artifact/effect.dm index 8fcf0b3709c..f72bda4403a 100644 --- a/code/modules/research/xenoarchaeology/artifact/effect.dm +++ b/code/modules/research/xenoarchaeology/artifact/effect.dm @@ -69,7 +69,7 @@ var/atom/toplevelholder = holder while(!istype(toplevelholder.loc, /turf)) toplevelholder = toplevelholder.loc - toplevelholder.visible_message("[icon2html(toplevelholder, viewers(get_turf(toplevelholder)))] [toplevelholder] [display_msg]") + toplevelholder.visible_message(SPAN_WARNING("[icon2html(toplevelholder, viewers(get_turf(toplevelholder)))] [toplevelholder] [display_msg]")) /datum/artifact_effect/proc/DoEffectTouch(var/mob/living/user) /datum/artifact_effect/proc/DoEffectAura(var/atom/holder) diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_mental.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_mental.dm index 3cf4440d32e..6c966182cab 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_mental.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_mental.dm @@ -33,7 +33,7 @@ if(prob(75)) to_chat(user, "[pick(drastic_messages)]") else - to_chat(user, "[pick(messages)]") + to_chat(user, SPAN_WARNING("[pick(messages)]")) if(prob(50)) user.dizziness = max(user.dizziness, rand(105, 200)) @@ -46,7 +46,7 @@ continue if(prob(5)) if(prob(75)) - to_chat(H, "[pick(messages)]") + to_chat(H, SPAN_WARNING("[pick(messages)]")) else to_chat(H, "[pick(drastic_messages)]") @@ -64,7 +64,7 @@ if(prob(95)) to_chat(H, "[pick(drastic_messages)]") else - to_chat(H, "[pick(messages)]") + to_chat(H, SPAN_WARNING("[pick(messages)]")) if(prob(50)) H.dizziness += rand(3,5) else if(prob(25)) @@ -104,7 +104,7 @@ if(prob(75)) to_chat(H, "[pick(drastic_messages)]") else - to_chat(H, "[pick(messages)]") + to_chat(H, SPAN_NOTICE("[pick(messages)]")) if(prob(50)) H.dizziness += rand(3,5) @@ -117,7 +117,7 @@ continue if(prob(5)) if(prob(75)) - to_chat(H, "[pick(messages)]") + to_chat(H, SPAN_NOTICE("[pick(messages)]")) else to_chat(H, "[pick(drastic_messages)]") @@ -135,7 +135,7 @@ if(prob(95)) to_chat(H, "[pick(drastic_messages)]") else - to_chat(H, "[pick(messages)]") + to_chat(H, SPAN_NOTICE("[pick(messages)]")) if(prob(50)) H.dizziness += rand(3,5) diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_physical.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_physical.dm index 72e26daa826..59ac04324f6 100644 --- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_physical.dm +++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_physical.dm @@ -44,7 +44,7 @@ var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) if(prob(10)) - to_chat(C, "You feel a soothing energy radiating from something nearby.") + to_chat(C, SPAN_NOTICE("You feel a soothing energy radiating from something nearby.")) C.adjustBruteLoss(-1 * weakness) C.adjustFireLoss(-1 * weakness) C.adjustToxLoss(-1 * weakness) @@ -61,7 +61,7 @@ continue var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) - to_chat(C, "A wave of energy invigorates you.") + to_chat(C, SPAN_NOTICE("A wave of energy invigorates you.")) C.adjustBruteLoss(-5 * weakness) C.adjustFireLoss(-5 * weakness) C.adjustToxLoss(-5 * weakness) @@ -79,7 +79,7 @@ var/weakness = GetAnomalySusceptibility(toucher) if(iscarbon(toucher) && prob(weakness * 100)) var/mob/living/carbon/C = toucher - to_chat(C, "A painful discharge of energy strikes you!") + to_chat(C, SPAN_DANGER("A painful discharge of energy strikes you!")) C.adjustOxyLoss(rand(5,25) * weakness) C.adjustToxLoss(rand(5,25) * weakness) C.adjustBruteLoss(rand(5,25) * weakness) @@ -100,7 +100,7 @@ var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) if(prob(10)) - to_chat(C, "You feel a painful force radiating from something nearby.") + to_chat(C, SPAN_DANGER("You feel a painful force radiating from something nearby.")) C.adjustBruteLoss(1 * weakness) C.adjustFireLoss(1 * weakness) C.adjustToxLoss(1 * weakness) @@ -116,7 +116,7 @@ continue var/weakness = GetAnomalySusceptibility(C) if(prob(weakness * 100)) - to_chat(C, "A wave of painful energy strikes you!") + to_chat(C, SPAN_DANGER("A wave of painful energy strikes you!")) C.adjustBruteLoss(3 * weakness) C.adjustFireLoss(3 * weakness) C.adjustToxLoss(3 * weakness) @@ -224,7 +224,10 @@ if(!toucher.isSynthetic()) if(ishuman(toucher) && prob(weakness * 100)) var/mob/living/carbon/human/H = toucher - to_chat(H, pick("You feel like taking a nap.","You feel a yawn coming on.","You feel a little tired.")) + to_chat(H, pick(SPAN_NOTICE("You feel like taking a nap."), + SPAN_NOTICE("You feel a yawn coming on."), + SPAN_NOTICE("You feel a little tired."))) + H.drowsiness = min(H.drowsiness + rand(5,25) * weakness, 50 * weakness) H.eye_blurry = min(H.eye_blurry + rand(1,3) * weakness, 50 * weakness) else @@ -243,7 +246,10 @@ var/weakness = GetAnomalySusceptibility(H) if(prob(weakness * 100)) if(prob(10)) - to_chat(H, pick("You feel like taking a nap.","You feel a yawn coming on.","You feel a little tired.")) + to_chat(H, pick(SPAN_NOTICE("You feel like taking a nap."), + SPAN_NOTICE("You feel a yawn coming on."), + SPAN_NOTICE("You feel a little tired."))) + H.drowsiness = min(H.drowsiness + 1 * weakness, 25 * weakness) H.eye_blurry = min(H.eye_blurry + 1 * weakness, 25 * weakness) return TRUE @@ -259,7 +265,10 @@ var/mob/living/carbon/human/H = L var/weakness = GetAnomalySusceptibility(H) if(prob(weakness * 100)) - to_chat(H, pick("You feel like taking a nap.","You feel a yawn coming on.","You feel a little tired.")) + to_chat(H, pick(SPAN_NOTICE("You feel like taking a nap."), + SPAN_NOTICE("You feel a yawn coming on."), + SPAN_NOTICE("You feel a little tired."))) + H.drowsiness = min(H.drowsiness + rand(5,15) * weakness, 50 * weakness) H.eye_blurry = min(H.eye_blurry + rand(5,15) * weakness, 50 * weakness) @@ -277,7 +286,7 @@ var/mob/living/carbon/C = toucher var/susceptibility = GetAnomalySusceptibility(C) if(prob(susceptibility * 100)) - to_chat(C, "A powerful force overwhelms your consciousness.") + to_chat(C, SPAN_WARNING("A powerful force overwhelms your consciousness.")) C.Weaken(rand(1,10) * susceptibility) C.stuttering += 30 * susceptibility C.Stun(rand(1,10) * susceptibility) @@ -288,13 +297,13 @@ for (var/mob/living/carbon/C in range(effectrange,T)) var/susceptibility = GetAnomalySusceptibility(C) if(prob(10 * susceptibility)) - to_chat(C, "Your body goes numb for a moment.") + to_chat(C, SPAN_WARNING("Your body goes numb for a moment.")) C.Weaken(2) C.stuttering += 2 if(prob(10)) C.Stun(1) else if(prob(10)) - to_chat(C, "You feel numb.") + to_chat(C, SPAN_WARNING("You feel numb.")) /datum/artifact_effect/stun/DoEffectPulse() if(holder) @@ -302,7 +311,7 @@ for (var/mob/living/carbon/C in range(effectrange,T)) var/susceptibility = GetAnomalySusceptibility(C) if(prob(100 * susceptibility)) - to_chat(C, "A wave of energy overwhelms your senses!") + to_chat(C, SPAN_WARNING("A wave of energy overwhelms your senses!")) C.SetWeakened(4 * susceptibility) C.stuttering = 4 * susceptibility if(prob(10)) diff --git a/code/modules/research/xenoarchaeology/chemistry.dm b/code/modules/research/xenoarchaeology/chemistry.dm index 14cac31b30d..a298b60b874 100644 --- a/code/modules/research/xenoarchaeology/chemistry.dm +++ b/code/modules/research/xenoarchaeology/chemistry.dm @@ -18,7 +18,7 @@ var/new_label = sanitizeSafe( tgui_input_text(user, "What should the new label be?", "Label solution tray", max_length = MAX_NAME_LEN), MAX_NAME_LEN ) if(new_label) name = "solution tray ([new_label])" - to_chat(user, "You write on the label of the solution tray.") + to_chat(user, SPAN_NOTICE("You write on the label of the solution tray.")) else return ..() diff --git a/code/modules/research/xenoarchaeology/finds/finds.dm b/code/modules/research/xenoarchaeology/finds/finds.dm index f7c48bb1d3b..76550ae7a85 100644 --- a/code/modules/research/xenoarchaeology/finds/finds.dm +++ b/code/modules/research/xenoarchaeology/finds/finds.dm @@ -72,7 +72,7 @@ ..() if(prob(33)) - src.visible_message("[src] crumbles away, leaving some dust and gravel behind.") + src.visible_message(SPAN_WARNING("[src] crumbles away, leaving some dust and gravel behind.")) qdel(src) //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/code/modules/research/xenoarchaeology/finds/finds_special.dm b/code/modules/research/xenoarchaeology/finds/finds_special.dm index e4f6069a8ff..b7fe2c71e35 100644 --- a/code/modules/research/xenoarchaeology/finds/finds_special.dm +++ b/code/modules/research/xenoarchaeology/finds/finds_special.dm @@ -113,7 +113,7 @@ if(charges >= 0.1) if(prob(5)) - src.visible_message("[icon2html(src, viewers(get_turf(src)))] [src]'s eyes glow ruby red for a moment!") + src.visible_message(SPAN_WARNING("[icon2html(src, viewers(get_turf(src)))] [src]'s eyes glow ruby red for a moment!")) charges -= 0.1 //check on our shadow wights @@ -143,7 +143,7 @@ var/target = pick(M.organs_by_name) M.apply_damage(rand(5, 10), DAMAGE_BRUTE, target) - to_chat(M, "The skin on your [parse_zone(target)] feels like it's ripping apart, and a stream of blood flies out.") + to_chat(M, SPAN_WARNING("The skin on your [parse_zone(target)] feels like it's ripping apart, and a stream of blood flies out.")) var/obj/effect/decal/cleanable/blood/splatter/animated/B = new(M.loc) B.target_turf = pick(seen_turfs_in_range(src, 1)) B.blood_DNA = list() @@ -223,4 +223,4 @@ /obj/effect/shadow_wight/Collide(var/atom/obstacle) . = ..() - to_chat(obstacle, "You feel a chill run down your spine!") + to_chat(obstacle, SPAN_WARNING("You feel a chill run down your spine!")) diff --git a/code/modules/research/xenoarchaeology/finds/finds_talkingitem.dm b/code/modules/research/xenoarchaeology/finds/finds_talkingitem.dm index 3db10e2642f..11282354d88 100644 --- a/code/modules/research/xenoarchaeology/finds/finds_talkingitem.dm +++ b/code/modules/research/xenoarchaeology/finds/finds_talkingitem.dm @@ -60,7 +60,7 @@ var/list/options = list("[holder_atom] seems to be listening intently to [source]...",\ "[holder_atom] seems to be focusing on [source]...",\ "[holder_atom] seems to turn it's attention to [source]...") - holder_atom.loc.visible_message("[icon2html(holder_atom, viewers(get_turf(holder_atom)))] [pick(options)]") + holder_atom.loc.visible_message(SPAN_NOTICE("[icon2html(holder_atom, viewers(get_turf(holder_atom)))] [pick(options)]")) if(prob(20)) spawn(2) diff --git a/code/modules/research/xenoarchaeology/machinery/artifact_harvester.dm b/code/modules/research/xenoarchaeology/machinery/artifact_harvester.dm index 78f8a8be944..d749239c36e 100644 --- a/code/modules/research/xenoarchaeology/machinery/artifact_harvester.dm +++ b/code/modules/research/xenoarchaeology/machinery/artifact_harvester.dm @@ -23,12 +23,12 @@ /obj/machinery/artifact_harvester/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/anobattery)) if(!inserted_battery) - to_chat(user, "You insert [attacking_item] into [src].") + to_chat(user, SPAN_NOTICE("You insert [attacking_item] into [src].")) user.drop_from_inventory(attacking_item, src) src.inserted_battery = attacking_item updateDialog() else - to_chat(user, "There is already a battery in [src].") + to_chat(user, SPAN_WARNING("There is already a battery in [src].")) else return..() diff --git a/code/modules/research/xenoarchaeology/machinery/geosample_scanner.dm b/code/modules/research/xenoarchaeology/machinery/geosample_scanner.dm index 7aefa934fd6..d23821a2d86 100644 --- a/code/modules/research/xenoarchaeology/machinery/geosample_scanner.dm +++ b/code/modules/research/xenoarchaeology/machinery/geosample_scanner.dm @@ -65,7 +65,7 @@ /obj/machinery/radiocarbon_spectrometer/attackby(obj/item/attacking_item, mob/user) if(scanning) - to_chat(user, "You can't do that while [src] is scanning!") + to_chat(user, SPAN_WARNING("You can't do that while [src] is scanning!")) else if(istype(attacking_item, /obj/item/stack/nanopaste)) var/choice = alert("What do you want to do with the nanopaste?","Radiometric Scanner","Scan nanopaste","Fix seal integrity") @@ -235,16 +235,16 @@ //emergency stop if seal integrity reaches 0 if(scanner_seal_integrity <= 0 || (scanner_temperature >= 1273 && !rad_shield)) stop_scanning() - visible_message("[icon2html(src, viewers(get_turf(src)))] buzzes unhappily. It has failed mid-scan!", range = 2) + visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] buzzes unhappily. It has failed mid-scan!"), range = 2) if(prob(5)) - visible_message("[icon2html(src, viewers(get_turf(src)))] [pick("whirrs","chuffs","clicks")][pick(" excitedly"," energetically"," busily")].", range = 2) + visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [pick("whirrs","chuffs","clicks")][pick(" excitedly"," energetically"," busily")]."), range = 2) else //gradually cool down over time if(scanner_temperature > 0) scanner_temperature = max(scanner_temperature - 5 - 10 * rand(), 0) if(prob(0.75)) - visible_message("[icon2html(src, viewers(get_turf(src)))] [pick("plinks","hisses")][pick(" quietly"," softly"," sadly"," plaintively")].", range = 2) + visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [pick("plinks","hisses")][pick(" quietly"," softly"," sadly"," plaintively")]."), range = 2) last_process_worldtime = world.time /obj/machinery/radiocarbon_spectrometer/proc/stop_scanning() @@ -262,7 +262,7 @@ used_coolant = 0 /obj/machinery/radiocarbon_spectrometer/proc/complete_scan() - visible_message("[icon2html(src, viewers(get_turf(src)))] makes an insistent chime.", range = 2) + visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] makes an insistent chime."), range = 2) if(scanned_item) //create report @@ -337,11 +337,11 @@ scanner_progress = 0 scanning = 1 t_left_radspike = pick(5,10,15) - to_chat(usr, "Scan initiated.") + to_chat(usr, SPAN_NOTICE("Scan initiated.")) else - to_chat(usr, "Could not initiate scan, seal requires replacing.") + to_chat(usr, SPAN_WARNING("Could not initiate scan, seal requires replacing.")) else - to_chat(usr, "Insert an item to scan.") + to_chat(usr, SPAN_WARNING("Insert an item to scan.")) if(href_list["maserWavelength"]) maser_wavelength = max(min(maser_wavelength + 1000 * text2num(href_list["maserWavelength"]), 10000), 1) diff --git a/code/modules/research/xenoarchaeology/tools/ano_device_battery.dm b/code/modules/research/xenoarchaeology/tools/ano_device_battery.dm index f1b675499d6..0581ce5d47b 100644 --- a/code/modules/research/xenoarchaeology/tools/ano_device_battery.dm +++ b/code/modules/research/xenoarchaeology/tools/ano_device_battery.dm @@ -40,7 +40,7 @@ /obj/item/anodevice/attackby(obj/item/attacking_item, mob/user) if(istype(attacking_item, /obj/item/anobattery)) if(!inserted_battery) - to_chat(user, "You insert the battery.") + to_chat(user, SPAN_NOTICE("You insert the battery.")) user.drop_from_inventory(attacking_item, src) inserted_battery = attacking_item UpdateSprite() @@ -131,13 +131,19 @@ //work out if we need to shutdown if(inserted_battery.stored_charge <= 0) - src.loc.visible_message("[icon2html(src, viewers(get_turf(src)))] [src] buzzes.", "You hear something buzz.") + src.loc.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [src] buzzes."), + SPAN_NOTICE("You hear something buzz.")) + shutdown_emission() else if(world.time > time_end) - src.loc.visible_message("[icon2html(src, viewers(get_turf(src)))] [src] chimes.", "You hear something chime.") + src.loc.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [src] chimes."), + SPAN_NOTICE("You hear something chime.")) + shutdown_emission() else - src.visible_message("[icon2html(src, viewers(get_turf(src)))] [src] buzzes.", "You hear something buzz.") + src.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [src] buzzes."), + SPAN_NOTICE("You hear something buzz.")) + shutdown_emission() last_process = world.time @@ -164,7 +170,9 @@ if(href_list["startup"]) if(inserted_battery && inserted_battery.battery_effect && (inserted_battery.stored_charge > 0) ) activated = 1 - src.visible_message("[icon2html(src, viewers(get_turf(src)))] [src] whirrs.", "You hear something whirr.") + src.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [src] whirrs."), + SPAN_NOTICE("You hear something whirr.")) + if(!inserted_battery.battery_effect.activated) inserted_battery.battery_effect.ToggleActivate(1) time_end = world.time + duration @@ -201,9 +209,9 @@ if(activated && inserted_battery.battery_effect.effect == EFFECT_TOUCH && !isnull(inserted_battery)) inserted_battery.battery_effect.DoEffectTouch(M) inserted_battery.use_power(energy_consumed_on_touch) - user.visible_message("[user] taps [M] with [src], and it shudders on contact.") + user.visible_message(SPAN_NOTICE("[user] taps [M] with [src], and it shudders on contact.")) else - user.visible_message("[user] taps [M] with [src], but nothing happens.") + user.visible_message(SPAN_NOTICE("[user] taps [M] with [src], but nothing happens.")) //admin logging user.lastattacked = M diff --git a/code/modules/research/xenoarchaeology/tools/tools.dm b/code/modules/research/xenoarchaeology/tools/tools.dm index a9a55567fe8..f5ce2475014 100644 --- a/code/modules/research/xenoarchaeology/tools/tools.dm +++ b/code/modules/research/xenoarchaeology/tools/tools.dm @@ -15,7 +15,7 @@ ui_interact(user) var/turf/T = get_turf(src) - to_chat(user, "[icon2html(src, user)] [src] flashes [T.x].[rand(0,9)]:[T.y].[rand(0,9)]:[T.z].[rand(0,9)].") + to_chat(user, SPAN_NOTICE("[icon2html(src, user)] [src] flashes [T.x].[rand(0,9)]:[T.y].[rand(0,9)]:[T.z].[rand(0,9)].")) /obj/item/device/measuring_tape name = "measuring tape" diff --git a/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm b/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm index c8569823332..1ede0de5efa 100644 --- a/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm +++ b/code/modules/research/xenoarchaeology/tools/tools_depthscanner.dm @@ -25,7 +25,7 @@ var/material = "unknown" /obj/item/device/depth_scanner/proc/scan_atom(var/mob/user, var/atom/A) - user.visible_message("[user] scans [A], the air around them humming gently.") + user.visible_message(SPAN_NOTICE("[user] scans [A], the air around them humming gently.")) if(istype(A,/turf/simulated/mineral)) var/turf/simulated/mineral/M = A if((M.finds && M.finds.len) || M.artifact_find) @@ -47,7 +47,7 @@ positive_locations.Add(D) for(var/mob/L in range(src, 1)) - to_chat(L, "[icon2html(src, L)] [src] pings.") + to_chat(L, SPAN_NOTICE("[icon2html(src, L)] [src] pings.")) playsound(loc, 'sound/machines/twobeep.ogg', 40) else if(istype(A,/obj/structure/boulder)) @@ -67,7 +67,7 @@ positive_locations.Add(D) for(var/mob/L in range(src, 1)) - to_chat(L, "[icon2html(src, L)] [src] pings [pick("madly","wildly","excitedly","crazily")]!") + to_chat(L, SPAN_NOTICE("[icon2html(src, L)] [src] pings [pick("madly","wildly","excitedly","crazily")]!")) playsound(loc, 'sound/machines/triplebeep.ogg', 40) /obj/item/device/depth_scanner/attack_self(var/mob/user as mob) diff --git a/code/modules/security levels/keycard authentication.dm b/code/modules/security levels/keycard authentication.dm index 72560258337..1ee79fdf59f 100644 --- a/code/modules/security levels/keycard authentication.dm +++ b/code/modules/security levels/keycard authentication.dm @@ -174,7 +174,7 @@ feedback_inc("alert_keycard_auth_red",1) if("Distress Beacon") if(is_ert_blocked()) - to_chat(usr, "The distress beacon is disabled!") + to_chat(usr, SPAN_WARNING("The distress beacon is disabled!")) return if(linked) if(linked.has_called_distress_beacon) diff --git a/code/modules/shareddream/brainghost.dm b/code/modules/shareddream/brainghost.dm index 498b4f8b55c..5494c470b07 100644 --- a/code/modules/shareddream/brainghost.dm +++ b/code/modules/shareddream/brainghost.dm @@ -41,19 +41,19 @@ body.willfully_sleeping = FALSE if(force_awaken) body.sleeping = 0 - to_chat(src, "You suddenly feel like your connection to the dream is breaking up by the outside force.") + to_chat(src, SPAN_NOTICE("You suddenly feel like your connection to the dream is breaking up by the outside force.")) else body.sleeping = max(body.sleeping - 5, 0) - to_chat(src, "You release your concentration on sleep, allowing yourself to wake up.") + to_chat(src, SPAN_NOTICE("You release your concentration on sleep, allowing yourself to wake up.")) else - to_chat(src, "You've already released concentration. Wait to wake up naturally.") + to_chat(src, SPAN_WARNING("You've already released concentration. Wait to wake up naturally.")) /mob/living/brain_ghost/Life() ..() // Out body was probs gibbed or somefin if(!istype(body)) - show_message("[src] suddenly pops from the Srom.") - to_chat(src, "Your body was destroyed!") + show_message(SPAN_DANGER("[src] suddenly pops from the Srom.")) + to_chat(src, SPAN_DANGER("Your body was destroyed!")) qdel(src) return diff --git a/code/modules/shareddream/dream_entry.dm b/code/modules/shareddream/dream_entry.dm index 494c400d3da..be56f85c8f5 100644 --- a/code/modules/shareddream/dream_entry.dm +++ b/code/modules/shareddream/dream_entry.dm @@ -20,8 +20,8 @@ var/list/dream_entries = list() bg.ckey = ckey bg.client = client ckey = "@[bg.ckey]" - to_chat(bg, "As you lose consiousness, you feel yourself entering Srom.") - to_chat(bg, "Whilst in shared dreaming, you find it difficult to hide your secrets.") + to_chat(bg, SPAN_NOTICE("As you lose consiousness, you feel yourself entering Srom.")) + to_chat(bg, SPAN_WARNING("Whilst in shared dreaming, you find it difficult to hide your secrets.")) if(willfully_sleeping) to_chat(bg, "To wake up, use the \"Awaken\" verb in the IC tab.") if(!srom_pulling && has_psionics()) @@ -83,7 +83,7 @@ var/list/dream_entries = list() return_text = "You are ripped from the Srom." // You're dead - ensures there's no message about feeling weird or waking up. return_mob.ckey = old_bg.ckey - old_bg.visible_message("[old_bg] begins to fade as they depart from the dream...") + old_bg.visible_message(SPAN_NOTICE("[old_bg] begins to fade as they depart from the dream...")) animate(old_bg, alpha=0, time = 20) QDEL_IN(old_bg, 20) to_chat(return_mob, SPAN_WARNING("[return_text]")) diff --git a/code/modules/shieldgen/emergency_shield.dm b/code/modules/shieldgen/emergency_shield.dm index b38cc583832..fd50392904d 100644 --- a/code/modules/shieldgen/emergency_shield.dm +++ b/code/modules/shieldgen/emergency_shield.dm @@ -40,7 +40,7 @@ if(alpha != initial(alpha)) animate(src, 1 SECOND, alpha = initial(alpha)) if(health <= 0) - visible_message("\The [src] dissipates!") + visible_message(SPAN_NOTICE("\The [src] dissipates!")) qdel(src) return @@ -108,7 +108,7 @@ /obj/machinery/shield/hitby(AM as mob|obj) //Let everyone know we've been hit! - visible_message("\[src] was hit by [AM].") + visible_message(SPAN_NOTICE("\[src] was hit by [AM].")) //Super realistic, resource-intensive, real-time damage calculations. var/tforce = 0 @@ -281,14 +281,14 @@ return if (src.active) - user.visible_message("[icon2html(src, viewers(get_turf(src)))] [user] deactivates the shield generator.", \ - "[icon2html(src, viewers(get_turf(src)))] You deactivate the shield generator.", \ + user.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [user] deactivates the shield generator."), \ + SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] You deactivate the shield generator."), \ "You hear heavy droning fade out.") src.shields_down() else if(anchored) - user.visible_message("[icon2html(src, viewers(get_turf(src)))] [user] activate the shield generator.", \ - "[icon2html(src, viewers(get_turf(src)))] You activate the shield generator.", \ + user.visible_message(SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] [user] activate the shield generator."), \ + SPAN_NOTICE("[icon2html(src, viewers(get_turf(src)))] You activate the shield generator."), \ "You hear heavy droning.") src.shields_up() else @@ -305,21 +305,21 @@ if(attacking_item.isscrewdriver()) attacking_item.play_tool_sound(get_turf(src), 50) if(is_open) - to_chat(user, "You close the panel.") + to_chat(user, SPAN_NOTICE("You close the panel.")) is_open = FALSE else - to_chat(user, "You open the panel and expose the wiring.") + to_chat(user, SPAN_NOTICE("You open the panel and expose the wiring.")) is_open = TRUE else if(attacking_item.iscoil() && malfunction && is_open) var/obj/item/stack/cable_coil/coil = attacking_item - to_chat(user, "You begin to replace the wires.") + to_chat(user, SPAN_NOTICE("You begin to replace the wires.")) //if(do_after(user, min(60, round( ((maxhealth/health)*10)+(malfunction*10) ))) //Take longer to repair heavier damage if(attacking_item.use_tool(src, user, 30, volume = 50)) if (coil.use(1)) health = initial(health) malfunction = FALSE - to_chat(user, "You repair the [src]!") + to_chat(user, SPAN_NOTICE("You repair the [src]!")) update_icon() else if(attacking_item.iswrench()) @@ -328,15 +328,15 @@ return if(anchored) attacking_item.play_tool_sound(get_turf(src), 100) - to_chat(user, "You unsecure the [src] from the floor!") + to_chat(user, SPAN_NOTICE("You unsecure the [src] from the floor!")) if(active) - to_chat(user, "The [src] shuts off!") + to_chat(user, SPAN_NOTICE("The [src] shuts off!")) src.shields_down() anchored = FALSE else if(istype(get_turf(src), /turf/space)) return //No wrenching these in space! attacking_item.play_tool_sound(get_turf(src), 100) - to_chat(user, "You secure the [src] to the floor!") + to_chat(user, SPAN_NOTICE("You secure the [src] to the floor!")) anchored = TRUE @@ -345,7 +345,7 @@ src.locked = !src.locked to_chat(user, "The controls are now [src.locked ? "locked." : "unlocked."]") else - to_chat(user, "Access denied.") + to_chat(user, SPAN_WARNING("Access denied.")) else ..() diff --git a/code/modules/shuttles/shuttle.dm b/code/modules/shuttles/shuttle.dm index 04129980def..d2c887ecd78 100644 --- a/code/modules/shuttles/shuttle.dm +++ b/code/modules/shuttles/shuttle.dm @@ -215,7 +215,7 @@ for(var/mob/living/carbon/M in A) spawn(0) if(M.buckled_to) - to_chat(M, "Sudden acceleration presses you into your chair!") + to_chat(M, SPAN_WARNING("Sudden acceleration presses you into your chair!")) shake_camera(M, 3, 1) else if(M.Check_Shoegrip(FALSE)) to_chat(M, SPAN_WARNING("You feel immense pressure in your feet as you cling to the floor!")) @@ -223,9 +223,9 @@ M.apply_damage(10, DAMAGE_PAIN, BP_R_FOOT) shake_camera(M, 5, 1) else - to_chat(M, "The floor lurches beneath you!") + to_chat(M, SPAN_WARNING("The floor lurches beneath you!")) shake_camera(M, 10, 1) - M.visible_message("[M.name] is tossed around by the sudden acceleration!") + M.visible_message(SPAN_WARNING("[M.name] is tossed around by the sudden acceleration!")) M.throw_at_random(FALSE, 4, 1) M.Weaken(3) diff --git a/code/modules/shuttles/shuttle_arrival.dm b/code/modules/shuttles/shuttle_arrival.dm index 72f6f874502..efc58f4d6f6 100644 --- a/code/modules/shuttles/shuttle_arrival.dm +++ b/code/modules/shuttles/shuttle_arrival.dm @@ -21,7 +21,7 @@ if (!mobstoyellat || !length(mobstoyellat)) return FALSE for(var/mob/living/A in mobstoyellat) - to_chat(A, "You feel as if you shouldn't be on the shuttle.") // give them an angry text + to_chat(A, SPAN_DANGER("You feel as if you shouldn't be on the shuttle.")) // give them an angry text if(!A.client && ishuman(A) && SSarrivals.failreturnnumber == 2) // well they are SSD and holding up the shuttle so might as well. SSjobs.DespawnMob(A) GLOB.global_announcer.autosay("[A.real_name], [A.mind.role_alt_title], has entered long-term storage.", "Cryogenic Oversight") diff --git a/code/modules/shuttles/shuttle_emergency.dm b/code/modules/shuttles/shuttle_emergency.dm index 3aba40c43c3..7341877f0b1 100644 --- a/code/modules/shuttles/shuttle_emergency.dm +++ b/code/modules/shuttles/shuttle_emergency.dm @@ -73,7 +73,7 @@ if (istype(user, /obj/machinery/computer/shuttle_control/emergency)) //if we were given a command by an emergency shuttle console if (emergency_controller.autopilot) emergency_controller.autopilot = FALSE - to_world("Alert: The shuttle autopilot has been overridden. Launch sequence initiated!") + to_world(SPAN_NOTICE("Alert: The shuttle autopilot has been overridden. Launch sequence initiated!")) if(usr) log_admin("[key_name(usr)] has overridden the shuttle autopilot and activated launch sequence",ckey=key_name(usr)) @@ -88,7 +88,7 @@ if (istype(user, /obj/machinery/computer/shuttle_control/emergency)) //if we were given a command by an emergency shuttle console if (emergency_controller.autopilot) emergency_controller.autopilot = FALSE - to_world("Alert: The shuttle autopilot has been overridden. Bluespace drive engaged!") + to_world(SPAN_NOTICE("Alert: The shuttle autopilot has been overridden. Bluespace drive engaged!")) if(usr) log_admin("[key_name(usr)] has overridden the shuttle autopilot and forced immediate launch",ckey=key_name(usr)) @@ -103,7 +103,7 @@ if (istype(user, /obj/machinery/computer/shuttle_control/emergency)) //if we were given a command by an emergency shuttle console if (emergency_controller.autopilot) emergency_controller.autopilot = FALSE - to_world("Alert: The shuttle autopilot has been overridden. Launch sequence aborted!") + to_world(SPAN_NOTICE("Alert: The shuttle autopilot has been overridden. Launch sequence aborted!")) if(usr) log_admin("[key_name(usr)] has overridden the shuttle autopilot and cancelled launch sequence",ckey=key_name(usr)) @@ -158,7 +158,7 @@ src.visible_message("\The [src] beeps as it scans [ident].") authorized[dna_hash] = auth_name if (req_authorizations - authorized.len) - to_world("Alert: [req_authorizations - authorized.len] authorization\s needed to override the shuttle autopilot.") + to_world(SPAN_NOTICE("Alert: [req_authorizations - authorized.len] authorization\s needed to override the shuttle autopilot.")) if(usr) log_admin("[key_name(usr)] has inserted [ID] into the shuttle control computer - [req_authorizations - authorized.len] authorisation\s needed",ckey=key_name(usr)) @@ -168,7 +168,7 @@ /obj/machinery/computer/shuttle_control/emergency/emag_act(var/remaining_charges, var/mob/user) if (!emagged) - to_chat(user, "You short out \the [src]'s authorization protocols.") + to_chat(user, SPAN_NOTICE("You short out \the [src]'s authorization protocols.")) emagged = 1 return 1 diff --git a/code/modules/shuttles/shuttle_specops.dm b/code/modules/shuttles/shuttle_specops.dm index 0d1a429d1f1..e37b4eb82f4 100644 --- a/code/modules/shuttles/shuttle_specops.dm +++ b/code/modules/shuttles/shuttle_specops.dm @@ -4,7 +4,7 @@ req_access = list(ACCESS_CENT_SPECOPS) /obj/machinery/computer/shuttle_control/specops/attack_ai(user as mob) - to_chat(user, "Access Denied.") + to_chat(user, SPAN_WARNING("Access Denied.")) return 1 /datum/shuttle/autodock/ferry/specops @@ -34,14 +34,14 @@ var/obj/machinery/computer/C = user if(world.time <= reset_time) - C.visible_message("[SSatlas.current_map.boss_name] will not allow the Special Operations shuttle to launch yet.") + C.visible_message(SPAN_NOTICE("[SSatlas.current_map.boss_name] will not allow the Special Operations shuttle to launch yet.")) if (((world.time - reset_time)/10) > 60) - C.visible_message("[-((world.time - reset_time)/10)/60] minutes remain!") + C.visible_message(SPAN_NOTICE("[-((world.time - reset_time)/10)/60] minutes remain!")) else - C.visible_message("[-(world.time - reset_time)/10] seconds remain!") + C.visible_message(SPAN_NOTICE("[-(world.time - reset_time)/10] seconds remain!")) return - C.visible_message("The Special Operations shuttle will depart in [(specops_countdown_time/10)] seconds.") + C.visible_message(SPAN_NOTICE("The Special Operations shuttle will depart in [(specops_countdown_time/10)] seconds.")) if (location) //returning radio_announce("THE SPECIAL OPERATIONS SHUTTLE IS PREPARING TO RETURN") @@ -65,12 +65,12 @@ if (!location) //just arrived home for(var/turf/T in get_area_turfs(shuttle_area)) var/mob/M = locate(/mob) in T - to_chat(M, "You have arrived at [SSatlas.current_map.boss_name]. Operation has ended!") + to_chat(M, SPAN_DANGER("You have arrived at [SSatlas.current_map.boss_name]. Operation has ended!")) else //just left for the station launch_mauraders() for(var/turf/T in get_area_turfs(shuttle_area)) var/mob/M = locate(/mob) in T - to_chat(M, "You have arrived at [SSatlas.current_map.station_name]. Commence operation!") + to_chat(M, SPAN_DANGER("You have arrived at [SSatlas.current_map.station_name]. Commence operation!")) var/obj/machinery/light/small/readylight/light = locate() in T if(light) light.set_state(1) @@ -83,7 +83,7 @@ radio_announce("ALERT: LAUNCH SEQUENCE ABORTED") if (istype(in_use, /obj/machinery/computer)) var/obj/machinery/computer/C = in_use - C.visible_message("Launch sequence aborted.") + C.visible_message(SPAN_WARNING("Launch sequence aborted.")) ..() diff --git a/code/modules/spell_system/artifacts/items/lich_phylactery.dm b/code/modules/spell_system/artifacts/items/lich_phylactery.dm index b8b6bea8362..e230ae9ac8b 100644 --- a/code/modules/spell_system/artifacts/items/lich_phylactery.dm +++ b/code/modules/spell_system/artifacts/items/lich_phylactery.dm @@ -17,7 +17,7 @@ GLOB.world_phylactery += src /obj/item/phylactery/Destroy() - to_chat(lich, "Your phylactery was destroyed, your soul is cast into the abyss as your immortality vanishes away!") + to_chat(lich, SPAN_DANGER("Your phylactery was destroyed, your soul is cast into the abyss as your immortality vanishes away!")) GLOB.world_phylactery -= src lich = null return ..() @@ -39,6 +39,6 @@ /obj/item/phylactery/pickup(mob/living/user as mob) ..() - to_chat(user, "As you pick up \the [src], you feel a wave of dread wash over you.") + to_chat(user, SPAN_WARNING("As you pick up \the [src], you feel a wave of dread wash over you.")) for(var/obj/machinery/light/P in view(7, user)) P.flicker(1) diff --git a/code/modules/spell_system/artifacts/items/poppet.dm b/code/modules/spell_system/artifacts/items/poppet.dm index 5c64104b20b..55bba30af8e 100644 --- a/code/modules/spell_system/artifacts/items/poppet.dm +++ b/code/modules/spell_system/artifacts/items/poppet.dm @@ -12,13 +12,13 @@ /obj/item/poppet/Destroy() if(target) - to_chat(target, "The strange presence vanishes away...") + to_chat(target, SPAN_NOTICE("The strange presence vanishes away...")) return ..() /obj/item/poppet/get_examine_text(mob/user, distance, is_adjacent, infix, suffix) . = ..() if(countenance) - . += "It is modeled after a [countenance]." + . += SPAN_NOTICE("It is modeled after a [countenance].") /obj/item/poppet/afterattack(var/atom/A, var/mob/user, var/proximity) @@ -32,7 +32,7 @@ if(H.dna.unique_enzymes == marked) target = WEAKREF(H) countenance = H.dna.species - to_chat(H, "You feel a strange presence looming over you.") + to_chat(H, SPAN_CULT("You feel a strange presence looming over you.")) /obj/item/poppet/attack_self(mob/user as mob) @@ -46,29 +46,29 @@ log_and_message_admins("forced [H] to say [voice] with a poppet", user) if(target_zone == BP_EYES) - to_chat(user, "You cover \the [src]'s eyes.") - to_chat(H, "Your vision is covered by a shadow!") + to_chat(user, SPAN_NOTICE("You cover \the [src]'s eyes.")) + to_chat(H, SPAN_WARNING("Your vision is covered by a shadow!")) H.eye_blind = 3 H.eye_blurry = 5 if(target_zone == BP_R_LEG || target_zone == BP_L_LEG) - to_chat(user, "You move \the [src]'s legs around.") + to_chat(user, SPAN_NOTICE("You move \the [src]'s legs around.")) if(H.canmove && !H.restrained() && !(istype(H.loc, /turf/space))) step(H, pick(GLOB.cardinal)) if(target_zone == BP_L_HAND || target_zone == BP_L_ARM) - to_chat(user, "You twist \the [src]'s left arm.") + to_chat(user, SPAN_NOTICE("You twist \the [src]'s left arm.")) H.drop_l_hand() if(target_zone == BP_R_HAND || target_zone == BP_R_ARM) - to_chat(user, "You twist \the [src]'s right arm..") + to_chat(user, SPAN_NOTICE("You twist \the [src]'s right arm..")) H.drop_r_hand() if(target_zone == BP_HEAD) - to_chat(user, "You smack \the [src]'s head with your hand.") + to_chat(user, SPAN_NOTICE("You smack \the [src]'s head with your hand.")) H.confused += 10 H.stuttering += 5 - to_chat(H, "You suddenly feel as if your head was hit by something!") + to_chat(H, SPAN_DANGER("You suddenly feel as if your head was hit by something!")) playsound(get_turf(H), /singleton/sound_category/punch_sound, 50, 1, -1) cooldown = world.time + cooldown_time @@ -89,13 +89,13 @@ return TRUE if(istype(attacking_item, /obj/item/device/flashlight)) - to_chat(H, "You direct \the [attacking_item] towards \the [src]'s eyes!") + to_chat(H, SPAN_WARNING("You direct \the [attacking_item] towards \the [src]'s eyes!")) playsound(get_turf(H), 'sound/items/flashlight.ogg', 50, 1, -1) H.flash_act() return TRUE if(attacking_item.iscoil()) - to_chat(H, "You strangle \the [src] with \the [attacking_item]!") + to_chat(H, SPAN_WARNING("You strangle \the [src] with \the [attacking_item]!")) H.silent += 10 playsound(get_turf(H), 'sound/effects/noosed.ogg', 50, 1, -1) if(!(H.species.flags & NO_BREATHE)) @@ -108,12 +108,12 @@ return TRUE if(attacking_item.edge) - to_chat(H, "You stab \the [src] with \the [attacking_item]!") + to_chat(H, SPAN_WARNING("You stab \the [src] with \the [attacking_item]!")) H.apply_damage(2, DAMAGE_BRUTE, target_zone, damage_flags = DAMAGE_FLAG_EDGE) playsound(get_turf(H), 'sound/weapons/bladeslice.ogg', 50, 1, -1) if(H.can_feel_pain()) var/obj/item/organ/external/organ = H.get_organ(target_zone) - to_chat(H, "You feel a stabbing pain in your [organ.name]!") + to_chat(H, SPAN_DANGER("You feel a stabbing pain in your [organ.name]!")) return TRUE /obj/item/poppet/throw_impact(atom/hit_atom) @@ -150,12 +150,12 @@ if(H) H.adjust_fire_stacks(2) H.IgniteMob() - to_chat(H, "You suddenly burst into flames!!") + to_chat(H, SPAN_DANGER("You suddenly burst into flames!!")) /obj/item/poppet/crush_act() var/mob/living/carbon/human/H = target.resolve() if(H) - to_chat(H, "You feel an outworldly force crushing you!") + to_chat(H, SPAN_DANGER("You feel an outworldly force crushing you!")) H.adjustBruteLoss(35) H.apply_effect(6, WEAKEN) qdel(src) diff --git a/code/modules/spell_system/spells/spell_code.dm b/code/modules/spell_system/spells/spell_code.dm index da043c9a90b..53b35069f46 100644 --- a/code/modules/spell_system/spells/spell_code.dm +++ b/code/modules/spell_system/spells/spell_code.dm @@ -13,7 +13,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now var/charge_max = 100 //recharge time in deciseconds if charge_type = Sp_RECHARGE or starting charges if charge_type = Sp_CHARGES var/charge_counter = 0 //can only cast spells if it equals recharge, ++ each decisecond if charge_type = Sp_RECHARGE or -- each cast if charge_type = Sp_CHARGES - var/still_recharging_msg = "The spell is still recharging." + var/still_recharging_msg = SPAN_NOTICE("The spell is still recharging.") var/silenced = 0 //not a binary - the length of time we can't cast this for var/processing = 0 //are we processing already? Mainly used so that silencing a spell doesn't call process() again. (and inadvertedly making it run twice as fast) @@ -63,7 +63,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now /spell/New() ..() - //still_recharging_msg = "[name] is still recharging." + //still_recharging_msg = SPAN_NOTICE("[name] is still recharging.") charge_counter = charge_max /spell/process() @@ -194,7 +194,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now if(!(src in user.spell_list) && holder == user) log_world("ERROR: [user] utilized the spell '[src]' without having it.") - to_chat(user, "You shouldn't have this spell! Something's wrong.") + to_chat(user, SPAN_WARNING("You shouldn't have this spell! Something's wrong.")) return 0 if(silenced > 0) @@ -202,7 +202,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now var/turf/user_turf = get_turf(user) if(!user_turf) - to_chat(user, "You cannot cast spells in null space!") + to_chat(user, SPAN_WARNING("You cannot cast spells in null space!")) if(spell_flags & Z2NOCAST && isAdminLevel(user_turf.z)) //Certain spells are not allowed on the centcomm zlevel return 0 @@ -215,7 +215,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now if(istype(user, /mob/living/simple_animal) && holder == user) var/mob/living/simple_animal/SA = user if(SA.purge) - to_chat(SA, "The nullrod's power interferes with your own!") + to_chat(SA, SPAN_WARNING("The nullrod's power interferes with your own!")) return 0 if(!src.check_charge(skipcharge, user)) //sees if we can cast based on charges alone @@ -242,7 +242,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now return 0 if(Sp_CHARGES) if(!charge_counter) - to_chat(user, "[name] has no charges left.") + to_chat(user, SPAN_NOTICE("[name] has no charges left.")) return 0 return 1 diff --git a/code/modules/spell_system/spells/spell_list/others/area/torment.dm b/code/modules/spell_system/spells/spell_list/others/area/torment.dm index 10d6864cfed..38897bf08a2 100644 --- a/code/modules/spell_system/spells/spell_list/others/area/torment.dm +++ b/code/modules/spell_system/spells/spell_list/others/area/torment.dm @@ -10,7 +10,7 @@ range = 5 level_max = list(Sp_TOTAL = 1, Sp_SPEED = 0, Sp_POWER = 1) cooldown_min = 50 - message = "So much pain! All you can hear is screaming!" + message = SPAN_DANGER("So much pain! All you can hear is screaming!") max_targets = 0 compatible_mobs = list(/mob/living/carbon/human) diff --git a/code/modules/spell_system/spells/spell_list/others/generic/harvest.dm b/code/modules/spell_system/spells/spell_list/others/generic/harvest.dm index 96f2c3f96e5..0616ddf88b6 100644 --- a/code/modules/spell_system/spells/spell_list/others/generic/harvest.dm +++ b/code/modules/spell_system/spells/spell_list/others/generic/harvest.dm @@ -51,6 +51,6 @@ M.forceMove(destination) if(M != user) prey = 1 - to_chat(user, "You warp back to Nar-Sie[prey ? " along with your prey":""].") + to_chat(user, SPAN_ALERT("You warp back to Nar-Sie[prey ? " along with your prey":""].")) else - to_chat(user, "...something's wrong!")//There shouldn't be an instance of Harvesters when Nar-Sie isn't in the world.) + to_chat(user, SPAN_DANGER("...something's wrong!"))//There shouldn't be an instance of Harvesters when Nar-Sie isn't in the world.) diff --git a/code/modules/spell_system/spells/spell_list/others/generic/life_steal.dm b/code/modules/spell_system/spells/spell_list/others/generic/life_steal.dm index a862bd7c723..2e9779b3e29 100644 --- a/code/modules/spell_system/spells/spell_list/others/generic/life_steal.dm +++ b/code/modules/spell_system/spells/spell_list/others/generic/life_steal.dm @@ -27,7 +27,7 @@ if(isipc(M)) to_chat(user, "There is no life to steal.") return 0 - M.visible_message("Blood flows from \the [M] into \the [user]!") + M.visible_message(SPAN_DANGER("Blood flows from \the [M] into \the [user]!")) gibs(M.loc) user.adjustBruteLoss(-15) user.adjustFireLoss(-15) diff --git a/code/modules/spell_system/spells/spell_list/others/generic/mend.dm b/code/modules/spell_system/spells/spell_list/others/generic/mend.dm index 1e4d736888b..33ecdbcf38c 100644 --- a/code/modules/spell_system/spells/spell_list/others/generic/mend.dm +++ b/code/modules/spell_system/spells/spell_list/others/generic/mend.dm @@ -30,53 +30,53 @@ return 0 if(!ishuman(target)) - to_chat(user, "\The [target]'s body is not complex enough to require healing of this kind.") + to_chat(user, SPAN_WARNING("\The [target]'s body is not complex enough to require healing of this kind.")) return 0 var/mob/living/carbon/human/H = target var/obj/item/organ/external/E = H.get_organ(user.zone_sel.selecting) if(!E || E.is_stump()) - to_chat(user, "They are missing that limb.") + to_chat(user, SPAN_WARNING("They are missing that limb.")) return 0 if(E.robotic >= ORGAN_ROBOT) - to_chat(user, "That limb is prosthetic.") + to_chat(user, SPAN_WARNING("That limb is prosthetic.")) return 0 - user.visible_message("\The [user] rests a hand on \the [target]'s [E.name].") - to_chat(target, "A healing warmth suffuses you.") + user.visible_message(SPAN_NOTICE("\The [user] rests a hand on \the [target]'s [E.name].")) + to_chat(target, SPAN_NOTICE("A healing warmth suffuses you.")) for(var/datum/wound/W in E.wounds) if(W.bleeding()) - to_chat(user, "You knit together severed veins and broken flesh, stemming the bleeding.") + to_chat(user, SPAN_NOTICE("You knit together severed veins and broken flesh, stemming the bleeding.")) W.bleed_timer = 0 E.status &= ~ORGAN_BLEEDING return 1 if(E.status & ORGAN_ARTERY_CUT) - to_chat(user, "You painstakingly start joining the two ends of \the [E.artery_name] in [target]'s [E.name]. This might take some time...") + to_chat(user, SPAN_NOTICE("You painstakingly start joining the two ends of \the [E.artery_name] in [target]'s [E.name]. This might take some time...")) if(do_mob(user, target, 75, TRUE)) - to_chat(user, "After a while, you mend the damaged [E.artery_name].") + to_chat(user, SPAN_NOTICE("After a while, you mend the damaged [E.artery_name].")) E.status &= ~ORGAN_ARTERY_CUT return 1 if(E.status & ORGAN_BROKEN) - to_chat(user, "You coax shattered bones to come together and fuse, mending the break.") + to_chat(user, SPAN_NOTICE("You coax shattered bones to come together and fuse, mending the break.")) E.status &= ~ORGAN_BROKEN E.stage = 0 return 1 if((E.tendon_status() & TENDON_CUT) && E.tendon.can_recover()) - to_chat(user, "You place your hands over [target]'s [E.name], joining the two ends of their [E.tendon_name] in the process.") + to_chat(user, SPAN_NOTICE("You place your hands over [target]'s [E.name], joining the two ends of their [E.tendon_name] in the process.")) E.tendon.rejuvenate() return 1 for(var/obj/item/organ/I in E.internal_organs) if(I.robotic < ORGAN_ROBOT && I.damage > 0) - to_chat(user, "You encourage the damaged tissue of \the [I] to repair itself.") + to_chat(user, SPAN_NOTICE("You encourage the damaged tissue of \the [I] to repair itself.")) I.damage = max(0, I.damage - rand(3,5)) return 1 - to_chat(user, "You can find nothing within \the [target]'s [E.name] to mend.") + to_chat(user, SPAN_NOTICE("You can find nothing within \the [target]'s [E.name] to mend.")) return 1 diff --git a/code/modules/spell_system/spells/spell_list/self/area/charge.dm b/code/modules/spell_system/spells/spell_list/self/area/charge.dm index 911f05cb290..a880f9d3223 100644 --- a/code/modules/spell_system/spells/spell_list/self/area/charge.dm +++ b/code/modules/spell_system/spells/spell_list/self/area/charge.dm @@ -27,9 +27,9 @@ for(var/spell/S in M.spell_list) if(!istype(S, /spell/aoe_turf/charge)) S.charge_counter = S.charge_max - to_chat(M, "You feel raw magic flowing through you, it feels good!") + to_chat(M, SPAN_NOTICE("You feel raw magic flowing through you, it feels good!")) else - to_chat(M, "You feel very strange for a moment, but then it passes.") + to_chat(M, SPAN_NOTICE("You feel very strange for a moment, but then it passes.")) return M /spell/aoe_turf/charge/proc/cast_charge(var/atom/target) @@ -56,7 +56,7 @@ if(!charged_item) return 0 else - charged_item.visible_message("[charged_item] suddenly sparks with energy!") + charged_item.visible_message(SPAN_NOTICE("[charged_item] suddenly sparks with energy!")) return 1 diff --git a/code/modules/spell_system/spells/spell_list/self/conjure/forcewall.dm b/code/modules/spell_system/spells/spell_list/self/conjure/forcewall.dm index 531a93c7886..cf93f21cde5 100644 --- a/code/modules/spell_system/spells/spell_list/self/conjure/forcewall.dm +++ b/code/modules/spell_system/spells/spell_list/self/conjure/forcewall.dm @@ -31,7 +31,7 @@ /obj/effect/forcefield/attackby(obj/item/attacking_item, mob/user) ..() if(istype(attacking_item, /obj/item/nullrod)) - to_chat(user, "\the [src] dissipates at the touch of the \the [attacking_item].") + to_chat(user, SPAN_NOTICE("\the [src] dissipates at the touch of the \the [attacking_item].")) qdel(src) /obj/effect/forcefield/cultify() diff --git a/code/modules/spell_system/spells/spell_list/self/generic/ethereal_jaunt.dm b/code/modules/spell_system/spells/spell_list/self/generic/ethereal_jaunt.dm index 377e9cd272e..eb7552a9698 100644 --- a/code/modules/spell_system/spells/spell_list/self/generic/ethereal_jaunt.dm +++ b/code/modules/spell_system/spells/spell_list/self/generic/ethereal_jaunt.dm @@ -105,7 +105,7 @@ if(!T.contains_dense_objects()) last_valid_turf = T else - to_chat(user, "Some strange aura is blocking the way!") + to_chat(user, SPAN_WARNING("Some strange aura is blocking the way!")) src.canmove = 0 spawn(2) src.canmove = 1 diff --git a/code/modules/spell_system/spells/spell_list/self/generic/mutate.dm b/code/modules/spell_system/spells/spell_list/self/generic/mutate.dm index df2488decba..8dc990e3926 100644 --- a/code/modules/spell_system/spells/spell_list/self/generic/mutate.dm +++ b/code/modules/spell_system/spells/spell_list/self/generic/mutate.dm @@ -7,7 +7,7 @@ spell_flags = Z2NOCAST | INCLUDEUSER invocation = "BIRUZ BENNAR" invocation_type = SpI_SHOUT - message = "You feel strong! You feel a pressure building behind your eyes!" + message = SPAN_NOTICE("You feel strong! You feel a pressure building behind your eyes!") range = 0 max_targets = 1 cast_sound = 'sound/magic/Mutate.ogg' diff --git a/code/modules/supermatter/supermatter.dm b/code/modules/supermatter/supermatter.dm index 22e8ef033d2..e72351f3ffa 100644 --- a/code/modules/supermatter/supermatter.dm +++ b/code/modules/supermatter/supermatter.dm @@ -324,7 +324,7 @@ if(l.is_diona()) l.adjustToxLoss(-rads) if(last_message_time + 800 < world.time) // Not to spam message - to_chat(l, "You can feel an extreme level of energy which flows through your body and makes you regenerate very fast.") + to_chat(l, SPAN_NOTICE("You can feel an extreme level of energy which flows through your body and makes you regenerate very fast.")) last_message_time = world.time power -= (power/DECAY_FACTOR)**3 //energy losses due to radiation diff --git a/code/modules/surgery/organs_internal.dm b/code/modules/surgery/organs_internal.dm index e269c2c1416..a7fb2760b43 100644 --- a/code/modules/surgery/organs_internal.dm +++ b/code/modules/surgery/organs_internal.dm @@ -74,11 +74,11 @@ for(var/obj/item/organ/internal/I in affected.internal_organs) if(I && I.is_damaged() && !BP_IS_ROBOTIC(I)) if(I.status & ORGAN_DEAD && I.can_recover()) - user.visible_message("\The [user] treats damage to [target]'s [I.name] with [tool_name], though it needs to be recovered further.", \ - "You treat damage to [target]'s [I.name] with [tool_name], though it needs to be recovered further." ) + user.visible_message(SPAN_NOTICE("\The [user] treats damage to [target]'s [I.name] with [tool_name], though it needs to be recovered further."), \ + SPAN_NOTICE("You treat damage to [target]'s [I.name] with [tool_name], though it needs to be recovered further.") ) else - user.visible_message("[user] treats damage to [target]'s [I.name] with [tool_name].", \ - "You treat damage to [target]'s [I.name] with [tool_name].") + user.visible_message(SPAN_NOTICE("[user] treats damage to [target]'s [I.name] with [tool_name]."), \ + SPAN_NOTICE("You treat damage to [target]'s [I.name] with [tool_name].")) I.surgical_fix(user) user.visible_message("\The [user] finishes treating damage within \the [target]'s [affected.name] with [tool_name].", \ "You finish treating damage within \the [target]'s [affected.name] with [tool_name].") diff --git a/code/modules/tables/flipping.dm b/code/modules/tables/flipping.dm index f2cb088209c..7613bb3d1c4 100644 --- a/code/modules/tables/flipping.dm +++ b/code/modules/tables/flipping.dm @@ -24,7 +24,7 @@ return if(flipped < 0 || !flip(get_cardinal_dir(usr,src))) - to_chat(usr, "It won't budge.") + to_chat(usr, SPAN_NOTICE("It won't budge.")) return usr.visible_message(SPAN_WARNING("[usr] flips \the [src]!"), intent_message = THUNK_SOUND) @@ -67,7 +67,7 @@ return if (!unflipping_check()) - to_chat(usr, "It won't budge.") + to_chat(usr, SPAN_NOTICE("It won't budge.")) return unflip() diff --git a/code/modules/tables/interactions.dm b/code/modules/tables/interactions.dm index 5f8bf239d30..44d60ed755a 100644 --- a/code/modules/tables/interactions.dm +++ b/code/modules/tables/interactions.dm @@ -40,7 +40,7 @@ if(prob(chance)) health -= P.damage/2 if (health > 0) - visible_message("[P] hits \the [src]!") + visible_message(SPAN_WARNING("[P] hits \the [src]!")) return 0 else visible_message(SPAN_WARNING("[src] breaks down!")) @@ -81,8 +81,8 @@ if (user && anything_moved) user.visible_message( - "[user] kicks everything off [src].", - "You kick everything off [src]." + SPAN_NOTICE("[user] kicks everything off [src]."), + SPAN_NOTICE("You kick everything off [src].") ) @@ -96,8 +96,8 @@ return user.visible_message( - "[user] starts climbing onto \the [src]!", - "You start climbing onto \the [src]!" + SPAN_WARNING("[user] starts climbing onto \the [src]!"), + SPAN_WARNING("You start climbing onto \the [src]!") ) LAZYADD(climbers, user) @@ -113,8 +113,8 @@ if (get_turf(user) == get_turf(src)) user.visible_message( - "[user] climbs onto \the [src]!", - "You climb onto \the [src]!" + SPAN_WARNING("[user] climbs onto \the [src]!"), + SPAN_WARNING("You climb onto \the [src]!") ) if(ishuman(user)) var/mob/living/carbon/human/H = user @@ -197,7 +197,7 @@ var/mob/living/M = G.affecting var/obj/occupied = turf_is_crowded() if(occupied) - to_chat(user, "There's \a [occupied] in the way.") + to_chat(user, SPAN_DANGER("There's \a [occupied] in the way.")) return if(!user.Adjacent(M)) return @@ -207,7 +207,7 @@ if (prob(30 * (1 - blocked))) M.Weaken(5) M.apply_damage(8, DAMAGE_BRUTE, BP_HEAD) - visible_message("[G.assailant] slams [G.affecting]'s face against \the [src]!") + visible_message(SPAN_DANGER("[G.assailant] slams [G.affecting]'s face against \the [src]!")) if(material) playsound(loc, material.tableslam_noise, 50, 1) else @@ -216,8 +216,8 @@ var/sanity_counter = 0 for(var/obj/item/material/shard/S in get_turf(src)) if(prob(50)) - M.visible_message("\The [S] slices [M]'s face messily!", - "\The [S] slices your face messily!") + M.visible_message(SPAN_DANGER("\The [S] slices [M]'s face messily!"), + SPAN_DANGER("\The [S] slices your face messily!")) M.apply_damage(10, DAMAGE_BRUTE, BP_HEAD) sanity_counter++ if(sanity_counter >= 3) @@ -226,11 +226,11 @@ else G.affecting.forceMove(src.loc) G.affecting.Weaken(rand(2,4)) - visible_message("[G.assailant] puts [G.affecting] on \the [src].") + visible_message(SPAN_DANGER("[G.assailant] puts [G.affecting] on \the [src].")) qdel(attacking_item) return else - to_chat(user, "You need a better grip to do that!") + to_chat(user, SPAN_WARNING("You need a better grip to do that!")) return if(!attacking_item.dropsafety()) @@ -245,8 +245,8 @@ return 1 if(carpeted && attacking_item.iscrowbar()) - user.visible_message("\The [user] removes the carpet from \the [src].", - "You remove the carpet from \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] removes the carpet from \the [src]."), + SPAN_NOTICE("You remove the carpet from \the [src].")) new /obj/item/stack/tile/carpet(loc) carpeted = 0 queue_icon_update() @@ -255,13 +255,13 @@ if(!carpeted && material && istype(attacking_item, /obj/item/stack/tile/carpet)) var/obj/item/stack/tile/carpet/C = attacking_item if(C.use(1)) - user.visible_message("\The [user] adds \the [C] to \the [src].", - "You add \the [C] to \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] adds \the [C] to \the [src]."), + SPAN_NOTICE("You add \the [C] to \the [src].")) carpeted = 1 queue_icon_update() return 1 else - to_chat(user, "You don't have enough carpet!") + to_chat(user, SPAN_WARNING("You don't have enough carpet!")) if(!reinforced && !carpeted && material && (attacking_item.iswrench() || istype(attacking_item, /obj/item/gun/energy/plasmacutter))) remove_material(attacking_item, user) @@ -281,11 +281,11 @@ if(health < maxhealth && attacking_item.iswelder()) var/obj/item/weldingtool/F = attacking_item if(F.welding) - to_chat(user, "You begin reparing damage to \the [src].") + to_chat(user, SPAN_NOTICE("You begin reparing damage to \the [src].")) if(!attacking_item.use_tool(src, user, 20, volume = 50) || !F.use(1, user)) return - user.visible_message("\The [user] repairs some damage to \the [src].", - "You repair some damage to \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] repairs some damage to \the [src]."), + SPAN_NOTICE("You repair some damage to \the [src].")) health = max(health+(maxhealth/5), maxhealth) // 20% repair per application return 1 @@ -309,12 +309,12 @@ blade.spark_system.queue() playsound(src.loc, 'sound/weapons/blade.ogg', 50, 1) playsound(src.loc, /singleton/sound_category/spark_sound, 50, 1) - user.visible_message("\The [src] was sliced apart by [user]!") + user.visible_message(SPAN_DANGER("\The [src] was sliced apart by [user]!")) break_to_parts() return if(can_plate && !material) - to_chat(user, "There's nothing to put \the [attacking_item] on! Try adding plating to \the [src] first.") + to_chat(user, SPAN_WARNING("There's nothing to put \the [attacking_item] on! Try adding plating to \the [src] first.")) return diff --git a/code/modules/tables/tables.dm b/code/modules/tables/tables.dm index d73ad17647a..852013c8fa2 100644 --- a/code/modules/tables/tables.dm +++ b/code/modules/tables/tables.dm @@ -111,27 +111,27 @@ if(health < maxhealth) switch(health / maxhealth) if(0.0 to 0.5) - . += "It looks severely damaged!" + . += SPAN_WARNING("It looks severely damaged!") if(0.25 to 0.5) - . += "It looks damaged!" + . += SPAN_WARNING("It looks damaged!") if(0.5 to 1.0) - . += "It has a few scrapes and dents." + . += SPAN_NOTICE("It has a few scrapes and dents.") /obj/structure/table/proc/reinforce_table(obj/item/stack/material/S, mob/user) if(reinforced) - to_chat(user, "\The [src] is already reinforced!") + to_chat(user, SPAN_WARNING("\The [src] is already reinforced!")) return if(!can_reinforce) - to_chat(user, "\The [src] cannot be reinforced!") + to_chat(user, SPAN_WARNING("\The [src] cannot be reinforced!")) return if(!material) - to_chat(user, "Plate \the [src] before reinforcing it!") + to_chat(user, SPAN_WARNING("Plate \the [src] before reinforcing it!")) return if(flipped) - to_chat(user, "Put \the [src] back in place before reinforcing it!") + to_chat(user, SPAN_WARNING("Put \the [src] back in place before reinforcing it!")) return reinforced = common_material_add(S, user, "reinforc") @@ -158,36 +158,38 @@ /obj/structure/table/proc/common_material_add(obj/item/stack/material/S, mob/user, verb) // Verb is actually verb without 'e' or 'ing', which is added. Works for 'plate'/'plating' and 'reinforce'/'reinforcing'. var/material/M = S.get_material() if(!istype(M)) - to_chat(user, "You cannot [verb]e \the [src] with \the [S].") + to_chat(user, SPAN_WARNING("You cannot [verb]e \the [src] with \the [S].")) return null if(manipulating) return M manipulating = 1 - to_chat(user, "You begin [verb]ing \the [src] with [M.display_name].") + to_chat(user, SPAN_NOTICE("You begin [verb]ing \the [src] with [M.display_name].")) if(!do_after(user, 2 SECONDS, src, DO_REPAIR_CONSTRUCT) || !S.use(1)) manipulating = 0 return null - user.visible_message("\The [user] [verb]es \the [src] with [M.display_name].", "You finish [verb]ing \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] [verb]es \the [src] with [M.display_name]."), + SPAN_NOTICE("You finish [verb]ing \the [src].")) + manipulating = 0 return M // Returns the material to set the table to. /obj/structure/table/proc/common_material_remove(mob/user, material/M, delay, what, type_holding, sound) if(!M.stack_type) - to_chat(user, "You are unable to remove the [what] from this table!") + to_chat(user, SPAN_WARNING("You are unable to remove the [what] from this table!")) return M if(manipulating) return M manipulating = 1 - user.visible_message("\The [user] begins removing the [type_holding] holding \the [src]'s [M.display_name] [what] in place.", - "You begin removing the [type_holding] holding \the [src]'s [M.display_name] [what] in place.") + user.visible_message(SPAN_NOTICE("\The [user] begins removing the [type_holding] holding \the [src]'s [M.display_name] [what] in place."), + SPAN_NOTICE("You begin removing the [type_holding] holding \the [src]'s [M.display_name] [what] in place.")) if(sound) playsound(src.loc, sound, 50, 1) if(!do_after(user, 4 SECONDS, src, DO_REPAIR_CONSTRUCT)) manipulating = 0 return M - user.visible_message("\The [user] removes the [M.display_name] [what] from \the [src].", - "You remove the [M.display_name] [what] from \the [src].") + user.visible_message(SPAN_NOTICE("\The [user] removes the [M.display_name] [what] from \the [src]."), + SPAN_NOTICE("You remove the [M.display_name] [what] from \the [src].")) new M.stack_type(src.loc) manipulating = 0 return null diff --git a/code/modules/telesci/bscrystal.dm b/code/modules/telesci/bscrystal.dm index 98fd1413fd8..fcb93b5b4e8 100644 --- a/code/modules/telesci/bscrystal.dm +++ b/code/modules/telesci/bscrystal.dm @@ -18,7 +18,8 @@ reagents.add_reagent(/singleton/reagent/bluespace_dust, blink_range) /obj/item/bluespace_crystal/attack_self(mob/user) - user.visible_message("[user] crushes [src]!", "You crush [src]!") + user.visible_message(SPAN_WARNING("[user] crushes [src]!"), + SPAN_DANGER("You crush [src]!")) single_spark(loc) playsound(src.loc, /singleton/sound_category/spark_sound, 50, 1) blink_mob(user) @@ -30,7 +31,7 @@ /obj/item/bluespace_crystal/throw_impact(atom/hit_atom) if(!..()) // not caught in mid-air - visible_message("[src] fizzles and disappears upon impact!") + visible_message(SPAN_NOTICE("[src] fizzles and disappears upon impact!")) var/turf/T = get_turf(hit_atom) single_spark(T) playsound(src.loc, /singleton/sound_category/spark_sound, 50, 1) diff --git a/code/modules/telesci/telesci_computer.dm b/code/modules/telesci/telesci_computer.dm index 47637771afa..a09a97babe4 100644 --- a/code/modules/telesci/telesci_computer.dm +++ b/code/modules/telesci/telesci_computer.dm @@ -52,19 +52,19 @@ /obj/machinery/computer/telescience/attackby(obj/item/attacking_item, mob/user, params) if(istype(attacking_item, /obj/item/bluespace_crystal)) if(crystals.len >= max_crystals) - to_chat(user, "There are not enough crystal slots.") + to_chat(user, SPAN_WARNING("There are not enough crystal slots.")) return user.drop_item(src) crystals += attacking_item attacking_item.forceMove(null) - user.visible_message("[user] inserts [attacking_item] into \the [src]'s crystal slot.", "You insert [attacking_item] into \the [src]'s crystal slot.") + user.visible_message("[user] inserts [attacking_item] into \the [src]'s crystal slot.", SPAN_NOTICE("You insert [attacking_item] into \the [src]'s crystal slot.")) updateDialog() else if(istype(attacking_item, /obj/item/device/gps)) if(!inserted_gps) inserted_gps = attacking_item user.unEquip(attacking_item) attacking_item.forceMove(src) - user.visible_message("[user] inserts [attacking_item] into \the [src]'s GPS device slot.", "You insert [attacking_item] into \the [src]'s GPS device slot.") + user.visible_message("[user] inserts [attacking_item] into \the [src]'s GPS device slot.", SPAN_NOTICE("You insert [attacking_item] into \the [src]'s GPS device slot.")) else if(attacking_item.ismultitool()) var/obj/item/device/multitool/M = attacking_item if(M.buffer && istype(M.buffer, /obj/machinery/telepad)) @@ -143,7 +143,7 @@ /obj/machinery/computer/telescience/proc/telefail() sparks() - visible_message("The telepad weakly fizzles.") + visible_message(SPAN_WARNING("The telepad weakly fizzles.")) return /obj/machinery/computer/telescience/proc/doteleport(mob/user) diff --git a/code/modules/turbolift/turbolift_console.dm b/code/modules/turbolift/turbolift_console.dm index 86d0eb3b335..8863795f997 100644 --- a/code/modules/turbolift/turbolift_console.dm +++ b/code/modules/turbolift/turbolift_console.dm @@ -24,7 +24,7 @@ /obj/structure/lift/proc/pressed(var/mob/user) if(!istype(user, /mob/living/silicon)) if(user.a_intent == I_HURT) - user.visible_message("\The [user] hammers on the lift button!") + user.visible_message(SPAN_DANGER("\The [user] hammers on the lift button!")) else user.visible_message("\The [user] presses the lift button.") diff --git a/code/modules/vehicles/cargo_train.dm b/code/modules/vehicles/cargo_train.dm index dbffeeac8eb..676d4e04b7e 100644 --- a/code/modules/vehicles/cargo_train.dm +++ b/code/modules/vehicles/cargo_train.dm @@ -222,8 +222,8 @@ if(is_train_head() && istype(load, /mob/living/carbon/human)) var/mob/living/carbon/human/D = load - to_chat(D, "You ran over [H]!") - visible_message("\The [src] ran over [H]!") + to_chat(D, SPAN_DANGER("You ran over [H]!")) + visible_message(SPAN_DANGER("\The [src] ran over [H]!")) attack_log += text("\[[time_stamp()]\] ran over [H.name] ([H.ckey]), driven by [D.name] ([D.ckey])") msg_admin_attack("[D.name] ([D.ckey]) ran over [H.name] ([H.ckey]). (JMP)",ckey=key_name(D),ckey_target=key_name(H)) else diff --git a/code/modules/vehicles/vehicle.dm b/code/modules/vehicles/vehicle.dm index 8e989091076..283e1bb9041 100644 --- a/code/modules/vehicles/vehicle.dm +++ b/code/modules/vehicles/vehicle.dm @@ -91,7 +91,7 @@ if(!locked) open = !open update_icon() - to_chat(user, "Maintenance panel is now [open ? "opened" : "closed"].") + to_chat(user, SPAN_NOTICE("Maintenance panel is now [open ? "opened" : "closed"].")) else if(attacking_item.iscrowbar() && cell && open && !organic) remove_cell(user) @@ -104,13 +104,14 @@ if(open) health = min(maxhealth, health+10) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) - user.visible_message("[user] repairs [src]!","You repair [src]!") + user.visible_message(SPAN_WARNING("[user] repairs [src]!"), + SPAN_NOTICE("You repair [src]!")) else - to_chat(user, "Unable to repair with the maintenance panel closed.") + to_chat(user, SPAN_NOTICE("Unable to repair with the maintenance panel closed.")) else - to_chat(user, "[src] does not need a repair.") + to_chat(user, SPAN_NOTICE("[src] does not need a repair.")) else - to_chat(user, "Unable to repair while [src] is off.") + to_chat(user, SPAN_NOTICE("Unable to repair while [src] is off.")) else if(hasvar(attacking_item,"force") && hasvar(attacking_item,"damtype")) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) switch(attacking_item.damtype) @@ -210,7 +211,7 @@ emagged = 1 if(locked) locked = 0 - to_chat(user, "You bypass \the [src]'s controls.") + to_chat(user, SPAN_WARNING("You bypass \the [src]'s controls.")) return 1 /obj/vehicle/proc/explode() @@ -274,13 +275,13 @@ H.drop_from_inventory(C,src) cell = C powercheck() - to_chat(usr, "You install [C] in [src].") + to_chat(usr, SPAN_NOTICE("You install [C] in [src].")) /obj/vehicle/proc/remove_cell(var/mob/living/carbon/human/H) if(!cell) return - to_chat(usr, "You remove [cell] from [src].") + to_chat(usr, SPAN_NOTICE("You remove [cell] from [src].")) cell.forceMove(get_turf(H)) H.put_in_hands(cell) cell = null @@ -410,7 +411,7 @@ /obj/vehicle/attack_generic(var/mob/user, var/damage, var/attack_message) if(!damage) return - visible_message("[user] [attack_message] the [src]!") + visible_message(SPAN_DANGER("[user] [attack_message] the [src]!")) user.attack_log += text("\[[time_stamp()]\] attacked [src.name]") user.do_attack_animation(src) src.health -= damage diff --git a/code/modules/ventcrawl/ventcrawl.dm b/code/modules/ventcrawl/ventcrawl.dm index 10a53a3bdc6..8340e692663 100644 --- a/code/modules/ventcrawl/ventcrawl.dm +++ b/code/modules/ventcrawl/ventcrawl.dm @@ -74,7 +74,7 @@ var/global/list/can_enter_vent_with = list( if(is_type_in_list(U,ventcrawl_machinery) && Adjacent(U)) pipes |= U if(!pipes || !pipes.len) - to_chat(usr, "There are no pipes that you can ventcrawl into within range!") + to_chat(usr, SPAN_NOTICE("There are no pipes that you can ventcrawl into within range!")) return if(pipes.len == 1) pipe = pipes[1] @@ -110,7 +110,9 @@ var/global/list/can_enter_vent_with = list( if ("departing") for (var/obj/item/device/assembly/mousetrap/S in location.loc) if (prob(25)) - visible_message("[src] gets caught in the mousetrap while trying to crawl into the vent!", "You get caught in the mousetrap while trying to crawl into the vent!") + visible_message(SPAN_DANGER("[src] gets caught in the mousetrap while trying to crawl into the vent!"), + SPAN_DANGER("You get caught in the mousetrap while trying to crawl into the vent!")) + S.Crossed(src) // Triggers mousetrap forceMove(location.loc) if ("arriving") @@ -135,7 +137,7 @@ var/global/list/can_enter_vent_with = list( if(!is_type_in_list(vent_found, ventcrawl_machinery) || !vent_found.can_crawl_through()) vent_found = null else - to_chat(src, "Stand next to the selected vent!") + to_chat(src, SPAN_WARNING("Stand next to the selected vent!")) return if(!vent_found && isnull(clicked_on)) @@ -150,7 +152,7 @@ var/global/list/can_enter_vent_with = list( break if(vent_found:is_welded()) // welded check - to_chat(src, "You can't crawl into a welded vent!") + to_chat(src, SPAN_WARNING("You can't crawl into a welded vent!")) return vent_trap_check("departing", vent_found) @@ -158,28 +160,29 @@ var/global/list/can_enter_vent_with = list( if(vent_found) if(vent_found.network && (vent_found.network.normal_members.len || vent_found.network.line_members.len)) - visible_message("[src] begins to climb into the ventilation system!","You begin climbing into the ventilation system...") + visible_message(SPAN_WARNING("[src] begins to climb into the ventilation system!"), + SPAN_NOTICE("You begin climbing into the ventilation system...")) if(vent_found.air_contents && !issilicon(src)) switch(vent_found.air_contents.temperature) if(0 to BODYTEMP_COLD_DAMAGE_LIMIT) - to_chat(src, "You feel a painful freeze coming from the vent!") + to_chat(src, SPAN_DANGER("You feel a painful freeze coming from the vent!")) if(BODYTEMP_COLD_DAMAGE_LIMIT to T0C) - to_chat(src, "You feel an icy chill coming from the vent.") + to_chat(src, SPAN_WARNING("You feel an icy chill coming from the vent.")) if(T0C + 40 to BODYTEMP_HEAT_DAMAGE_LIMIT) - to_chat(src, "You feel a hot wash coming from the vent.") + to_chat(src, SPAN_WARNING("You feel a hot wash coming from the vent.")) if(BODYTEMP_HEAT_DAMAGE_LIMIT to INFINITY) - to_chat(src, "You feel a searing heat coming from the vent!") + to_chat(src, SPAN_DANGER("You feel a searing heat coming from the vent!")) switch(vent_found.air_contents.return_pressure()) if(0 to HAZARD_LOW_PRESSURE) - to_chat(src, "You feel a rushing draw pulling you into the vent!") + to_chat(src, SPAN_DANGER("You feel a rushing draw pulling you into the vent!")) if(HAZARD_LOW_PRESSURE to WARNING_LOW_PRESSURE) - to_chat(src, "You feel a strong drag pulling you into the vent.") + to_chat(src, SPAN_WARNING("You feel a strong drag pulling you into the vent.")) if(WARNING_HIGH_PRESSURE to HAZARD_HIGH_PRESSURE) - to_chat(src, "You feel a strong current pushing you away from the vent.") + to_chat(src, SPAN_WARNING("You feel a strong current pushing you away from the vent.")) if(HAZARD_HIGH_PRESSURE to INFINITY) - to_chat(src, "You feel a roaring wind pushing you away from the vent!") + to_chat(src, SPAN_DANGER("You feel a roaring wind pushing you away from the vent!")) if(!do_mob(src, vent_found, mob_size ? size_to_crawldelay(mob_size) : size_to_crawldelay(15), 1, 1)) return @@ -197,16 +200,16 @@ var/global/list/can_enter_vent_with = list( sight = (SEE_TURFS|BLIND) else - to_chat(src, "This vent is not connected to anything.") + to_chat(src, SPAN_NOTICE("This vent is not connected to anything.")) else - to_chat(src, "You must be standing on or beside an air vent to enter it.") + to_chat(src, SPAN_NOTICE("You must be standing on or beside an air vent to enter it.")) else - to_chat(src, "You can't vent crawl while you're stunned!") + to_chat(src, SPAN_NOTICE("You can't vent crawl while you're stunned!")) else - to_chat(src, "You must be conscious to do this!") + to_chat(src, SPAN_NOTICE("You must be conscious to do this!")) return /mob/living/proc/add_ventcrawl(obj/machinery/atmospherics/starting_machine) diff --git a/code/modules/ventcrawl/ventcrawl_atmospherics.dm b/code/modules/ventcrawl/ventcrawl_atmospherics.dm index d7b85eca370..83d49a0de5e 100644 --- a/code/modules/ventcrawl/ventcrawl_atmospherics.dm +++ b/code/modules/ventcrawl/ventcrawl_atmospherics.dm @@ -32,12 +32,12 @@ if(target_move) if(is_type_in_list(target_move, ventcrawl_machinery) && target_move.can_crawl_through()) if(target_move:is_welded()) - user.visible_message("You hear something banging on \the [target_move.name]!", "You can't escape from a welded vent.") + user.visible_message(SPAN_WARNING("You hear something banging on \the [target_move.name]!"), SPAN_NOTICE("You can't escape from a welded vent.")) else user.remove_ventcrawl() user.forceMove(target_move.loc) //handles entering and so on user.sight &= ~(SEE_TURFS|BLIND) - user.visible_message("You hear something squeezing through the ducts.", "You climb out the ventilation system.") + user.visible_message(SPAN_WARNING("You hear something squeezing through the ducts."), "You climb out the ventilation system.") user.vent_trap_check("arriving", target_move) else if(target_move.can_crawl_through()) if(target_move.return_network(target_move) != return_network(src)) @@ -55,7 +55,7 @@ user.remove_ventcrawl() user.forceMove(check_neighbor_density(get_turf(src.loc), direction) ? src.loc : get_step(src, direction)) user.sight &= ~(SEE_TURFS|BLIND) - user.visible_message("You hear something squeezing through the pipes.", "You climb out the ventilation system.") + user.visible_message(SPAN_WARNING("You hear something squeezing through the pipes."), "You climb out the ventilation system.") user.vent_trap_check("arriving", user.loc) user.canmove = 0 spawn(1) diff --git a/code/modules/world_api/commands/admin.dm b/code/modules/world_api/commands/admin.dm index f0bdb5c68db..cd96a73c2aa 100644 --- a/code/modules/world_api/commands/admin.dm +++ b/code/modules/world_api/commands/admin.dm @@ -50,7 +50,7 @@ G.has_enabled_antagHUD = 2 G.can_reenter_corpse = 1 - G:show_message(text("You may now respawn. You should roleplay as if you learned nothing about the round during your time with the dead."), 1) + G.show_message(SPAN_NOTICE("You may now respawn. You should roleplay as if you learned nothing about the round during your time with the dead."), 1) log_admin("[senderkey] allowed [key_name(G)] to bypass the 30 minute respawn limit via the API",ckey=key_name(G),admin_key=senderkey) message_admins("Admin [senderkey] allowed [key_name_admin(G)] to bypass the 30 minute respawn limit via the API", 1) @@ -98,8 +98,8 @@ if(!rank) rank = "Admin" - var/message = "[rank] PM from [queryparams["senderkey"]]: [queryparams["msg"]]" - var/amessage = "[rank] PM from [queryparams["senderkey"]] to [key_name(C, highlight_special = 1)] : [queryparams["msg"]]" + var/message = SPAN_WARNING("[rank] PM from [queryparams["senderkey"]]: [queryparams["msg"]]") + var/amessage = SPAN_NOTICE("[rank] PM from [queryparams["senderkey"]] to [key_name(C, highlight_special = 1)] : [queryparams["msg"]]") C.received_discord_pm = world.time C.discord_admin = queryparams["senderkey"] diff --git a/code/modules/world_api/commands/cciaa.dm b/code/modules/world_api/commands/cciaa.dm index 41d666444d1..9c1bc559297 100644 --- a/code/modules/world_api/commands/cciaa.dm +++ b/code/modules/world_api/commands/cciaa.dm @@ -163,7 +163,7 @@ if(reportannounce == 1) command_announcement.Announce(reportbody, reporttitle, new_sound = 'sound/AI/commandreport.ogg', do_newscast = 1, msg_sanitized = 1); if(reportannounce == 0) - to_world("New NanoTrasen Update available at all communication consoles.") + to_world(SPAN_ALERT("New NanoTrasen Update available at all communication consoles.")) sound_to(world, ('sound/AI/commandreport.ogg')) diff --git a/html/changelogs/fluffyghost-span.yml b/html/changelogs/fluffyghost-span.yml new file mode 100644 index 00000000000..8c7caef13ee --- /dev/null +++ b/html/changelogs/fluffyghost-span.yml @@ -0,0 +1,58 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# - (fixes bugs) +# wip +# - (work in progress) +# qol +# - (quality of life) +# soundadd +# - (adds a sound) +# sounddel +# - (removes a sound) +# rscadd +# - (adds a feature) +# rscdel +# - (removes a feature) +# imageadd +# - (adds an image or sprite) +# imagedel +# - (removes an image or sprite) +# spellcheck +# - (fixes spelling or grammar) +# experiment +# - (experimental change) +# balance +# - (balance changes) +# code_imp +# - (misc internal code change) +# refactor +# - (refactors code) +# config +# - (makes a change to the config files) +# admin +# - (makes changes to administrator tools) +# server +# - (miscellaneous changes to server) +################################# + +# Your name. +author: FluffyGhost + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit. +# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog. +changes: + - refactor: "Minor span refactoring." diff --git a/interface/interface.dm b/interface/interface.dm index 37ddc5c72a3..9d133cae964 100644 --- a/interface/interface.dm +++ b/interface/interface.dm @@ -14,7 +14,7 @@ send_link(src, to_open) else - to_chat(src, "The wiki URL is not set in the server configuration.") + to_chat(src, SPAN_WARNING("The wiki URL is not set in the server configuration.")) /client/verb/forum() set name = "forum" @@ -25,7 +25,7 @@ return send_link(src, GLOB.config.forumurl) else - to_chat(src, "The forum URL is not set in the server configuration.") + to_chat(src, SPAN_WARNING("The forum URL is not set in the server configuration.")) return /client/verb/reportbug() diff --git a/maps/away/away_site/blueriver/blueriver.dm b/maps/away/away_site/blueriver/blueriver.dm index cd0e5076cc7..a859f8a26be 100644 --- a/maps/away/away_site/blueriver/blueriver.dm +++ b/maps/away/away_site/blueriver/blueriver.dm @@ -105,9 +105,9 @@ user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) user.do_attack_animation(src) user.visible_message( - "[user] hits \the [src] with \the [attacking_item]!", - "You hit \the [src] with \the [attacking_item]!", - "You hear something breaking!" + SPAN_DANGER("[user] hits \the [src] with \the [attacking_item]!"), + SPAN_DANGER("You hit \the [src] with \the [attacking_item]!"), + SPAN_DANGER("You hear something breaking!") ) /obj/item/paper/blueriver/expedition_log_1