From 21f894e9b8977c7b2d0154643c1d32b7782aab2a Mon Sep 17 00:00:00 2001 From: Tom <8881105+tf-4@users.noreply.github.com> Date: Tue, 16 Nov 2021 23:29:43 +0000 Subject: [PATCH] Spans to procs (#9495) --- code/__DEFINES/~skyrat_defines/combat.dm | 42 ++++---- code/__DEFINES/~skyrat_defines/span.dm | 11 +++ .../code/datums/components/fullauto.dm | 2 +- .../code/datums/martial/cqcplus.dm | 4 +- .../master_files/code/datums/traits/good.dm | 24 ++--- .../code/datums/traits/negative.dm | 12 +-- .../code/datums/traits/neutral.dm | 16 +-- .../code/game/machinery/doors/firedoor.dm | 8 +- .../game/objects/items/airlock_painter.dm | 10 +- .../code/game/objects/items/hhmirror.dm | 10 +- .../code/game/objects/items/holy_weapons.dm | 16 +-- .../code/game/objects/items/oxygen_candle.dm | 2 +- .../game/objects/structures/sauna_oven.dm | 40 ++++---- .../game/objects/structures/trash_pile.dm | 28 +++--- .../master_files/code/modules/admin/admin.dm | 2 +- .../nukeop/equipment/nuclearbomb.dm | 2 +- .../awaymission/mission_code/black_mesa.dm | 4 +- .../buildmode/submodes/offercontrol.dm | 4 +- .../head/monkey_magnification_helmet.dm | 24 ++--- .../mob/living/simple_animal/friendly/dogs.dm | 4 +- .../mob/living/simple_animal/simple_animal.dm | 2 +- .../projectiles/guns/ballistic/automatic.dm | 10 +- .../code/modules/projectiles/guns/gun.dm | 98 +++++++++---------- .../reagents/withdrawal/generic_addictions.dm | 6 +- .../code/modules/spells/wizard.dm | 2 +- modular_skyrat/modules/3516/code/3516.dm | 14 +-- .../modules/3516/code/bodypart_autosurgeon.dm | 20 ++-- .../modules/ERT_Factions/FTU/code/items.dm | 2 +- modular_skyrat/modules/QOL/code/_under.dm | 2 +- .../modules/admin/code/adminhelp.dm | 4 +- modular_skyrat/modules/admin/code/aooc.dm | 16 +-- modular_skyrat/modules/admin/code/loud_say.dm | 2 +- modular_skyrat/modules/admin/code/sooc.dm | 16 +-- .../modules/aesthetics/guns/code/guns.dm | 6 +- .../modules/alerts/code/priority_announce.dm | 2 +- .../modules/alt_vox/code/vox_procs.dm | 6 +- modular_skyrat/modules/altborgs/code/robot.dm | 10 +- .../modules/altborgs/code/robot_items.dm | 6 +- .../modules/ambitions/code/ambition.dm | 24 ++--- .../ammo_workbench/code/ammo_workbench.dm | 16 +-- .../code/mothership_astrum.dm | 2 +- .../modules/banning/code/skyrat_bans.dm | 2 +- .../code/biohazard_blob_disease.dm | 22 ++--- .../code/biohazard_blob_structures.dm | 12 +-- modular_skyrat/modules/bongs/code/bong.dm | 26 ++--- .../modules/brigoff/code/brigoff.dm | 4 +- .../modules/bsa_overhaul/code/bsa_cannon.dm | 16 +-- .../modules/bsa_overhaul/code/bsa_computer.dm | 8 +- modular_skyrat/modules/bsrpd/code/bsrpd.dm | 10 +- .../cell_component/code/cell_component.dm | 22 ++--- .../modules/cell_component/code/flashlight.dm | 8 +- modular_skyrat/modules/cme/code/cme.dm | 4 +- .../cortical_borer/code/cortical_borer.dm | 2 +- .../code/cortical_borer_antag.dm | 2 +- .../modules/cryosleep/code/cryopod.dm | 4 +- .../game/objects/items/devices/ttsdevice.dm | 8 +- .../modules/client/preferences.dm | 14 +-- .../modules/client/preferences_savefile.dm | 4 +- .../modules/clothing/ears/ears.dm | 2 +- .../modules/clothing/glasses/glasses.dm | 6 +- .../modules/clothing/hands/rings.dm | 4 +- .../modules/clothing/head/head.dm | 4 +- .../modules/clothing/neck/collars.dm | 6 +- .../modules/clothing/storage/belts.dm | 16 +-- .../modules/clothing/suits/coats.dm | 8 +- .../modules/clothing/under/accessories.dm | 12 +-- .../clothing/~donator/donator_clothing.dm | 8 +- .../modules/mob/living/carbon/human/human.dm | 10 +- .../mob/living/carbon/human/human_defense.dm | 2 +- .../living/carbon/human/species/robotic.dm | 4 +- .../carbon/human/species/roundstartslime.dm | 12 +-- .../modules/mob/living/living_verbs.dm | 2 +- .../modules/mob/living/simple_mob/examine.dm | 4 +- .../chemistry/reagents/alcohol_reagents.dm | 4 +- .../chemistry/reagents/drink_reagents.dm | 6 +- .../chemistry/reagents/medicine_reagents.dm | 2 +- .../chemistry/reagents/other_reagents.dm | 2 +- .../modules/surgery/mechanic_steps.dm | 14 +-- .../modules/surgery/organs/genitals.dm | 4 +- .../modules/surgery/organs/ipc.dm | 34 +++---- .../modules/surgery/organs/vox.dm | 4 +- .../modules/surgery/robot_brain_surgery.dm | 10 +- .../surgery/robot_chassis_restoration.dm | 12 +-- .../modules/surgery/robot_healing.dm | 14 +-- .../modules/surgery/robot_restore_looks.dm | 8 +- .../modules/cyborg/code/borgpowertools.dm | 8 +- .../modules/cyborg/code/robot_upgrades.dm | 4 +- .../electric_welder/code/electric_welder.dm | 4 +- .../modules/emotes/code/scream_emote.dm | 2 +- .../modules/events/code/event_spawner.dm | 4 +- .../modules/exp_corps/code/clothing.dm | 8 +- .../exp_corps/code/expeditionary_trooper.dm | 4 +- modular_skyrat/modules/exp_corps/code/gear.dm | 4 +- modular_skyrat/modules/faction/code/id.dm | 2 +- .../modules/firefighter/code/firefighter.dm | 10 +- .../modules/fishing/code/fishing.dm | 4 +- .../ghostcafe/code/ghost_role_spawners.dm | 10 +- .../modules/goofsec/code/sol_fed.dm | 2 +- .../modules/gunhud/code/gun_hud_component.dm | 6 +- .../modules/gunpoint/code/gunpoint.dm | 6 +- .../modules/gunpoint/code/gunpoint_datum.dm | 36 +++---- .../modules/gunsgalore/code/guns/master.dm | 24 ++--- .../modules/gunsgalore/code/guns/mg34/mg34.dm | 10 +- .../modules/hev_suit/code/hev_suit.dm | 6 +- .../modules/horrorform/code/horror_form.dm | 14 +-- .../horrorform/code/true_changeling.dm | 48 ++++----- modular_skyrat/modules/hydra/code/neutral.dm | 12 +-- .../modules/hyposprays/code/hyposprays_II.dm | 6 +- .../modules/implants/code/augments_arms.dm | 6 +- .../modules/implants/code/augments_chest.dm | 2 +- .../implants/code/augments_internal.dm | 6 +- .../modules/inflatables/code/inflatable.dm | 20 ++-- .../modules/jukebox/code/dance_machine.dm | 14 +-- .../modules/layer_shift/code/mob_movement.dm | 14 +-- modular_skyrat/modules/liquids/code/drains.dm | 4 +- .../code/liquid_systems/liquid_effect.dm | 8 +- .../code/liquid_systems/liquid_plumbers.dm | 16 +-- .../code/liquid_systems/liquid_pump.dm | 14 +-- .../modules/liquids/code/ocean_flora.dm | 4 +- .../modules/lobbyscreen/code/load_servers.dm | 2 +- .../modules/mapping/code/dungeon.dm | 4 +- modular_skyrat/modules/mapping/code/fluff.dm | 2 +- modular_skyrat/modules/mapping/code/genpop.dm | 4 +- .../modules/mapping/code/machinery.dm | 4 +- modular_skyrat/modules/mapping/code/pool.dm | 2 +- .../modules/materials_glass/code/glass.dm | 20 ++-- .../modules/medical/code/bodypart_aid.dm | 10 +- .../modules/medical/code/carbon_defense.dm | 8 +- .../modules/medical/code/carbon_examine.dm | 2 +- modular_skyrat/modules/medical/code/splint.dm | 12 +-- .../modules/medical/code/wounds/bones.dm | 78 +++++++-------- .../modules/medical/code/wounds/burns.dm | 46 +++++---- .../modules/medical/code/wounds/muscle.dm | 10 +- .../modules/medical/code/wounds/pierce.dm | 18 ++-- .../modules/medical/code/wounds/slash.dm | 34 +++---- modular_skyrat/modules/mentor/code/follow.dm | 6 +- .../modules/mentor/code/mentorhelp.dm | 4 +- .../modules/mentor/code/mentorpm.dm | 26 ++--- .../modules/mentor/code/mentorsay.dm | 4 +- .../modules/mentor/code/mentorwho.dm | 2 +- .../modular_items/code/miscellaneous.dm | 6 +- .../code/reagents/medicine.dm | 2 +- .../modules/modular_weapons/code/rifle.dm | 4 +- .../modules/morenarcotics/code/cocaine.dm | 6 +- .../morenarcotics/code/cocaine_item.dm | 12 +-- .../modules/morenarcotics/code/crackpipe.dm | 6 +- .../modules/morenarcotics/code/opium.dm | 6 +- .../modules/morenarcotics/code/pcp.dm | 6 +- .../modules/morenarcotics/code/quaalude.dm | 4 +- .../modules/morenarcotics/code/thc.dm | 4 +- .../modules/morenarcotics/code/thc_item.dm | 4 +- .../modules/morenarcotics/code/vapecarts.dm | 10 +- .../modules/moretraitoritems/code/glue.dm | 6 +- .../modules/moretraitoritems/code/granters.dm | 8 +- .../morewizardstuffs/code/antag_spawner.dm | 4 +- .../morewizardstuffs/code/snapceleritas.dm | 2 +- .../morewizardstuffs/code/tiedshoes.dm | 8 +- .../code/multi_cell_charger.dm | 20 ++-- .../modules/mutants/code/mutant_cure.dm | 34 +++---- .../modules/mutants/code/mutant_datum.dm | 28 +++--- .../modules/panicbunker/code/panicbunker.dm | 4 +- .../modules/primitive_fun/code/ceramics.dm | 4 +- .../primitive_fun/code/glassblowing.dm | 4 +- .../code/guns/token_system/token_system.dm | 6 +- .../sec_haul/code/misc/bullet_drive.dm | 12 +-- .../modules/sec_haul/code/misc/policetape.dm | 36 +++---- .../code/peacekeeper/peacekeeper_clothing.dm | 10 +- .../code/security_medic/security_medic.dm | 4 +- .../modules/server_overflow/code/chat_link.dm | 4 +- .../code/borg_shapeshifter.dm | 16 +-- .../particle_accelerator.dm | 24 ++--- .../particle_accelerator/particle_control.dm | 26 ++--- .../code/particle_accelerator/wires.dm | 2 +- .../modules/specborg/code/robot_module.dm | 2 +- .../stasisrework/code/stasissleeper.dm | 36 +++---- .../modules/stone/code/ore_veins.dm | 14 +-- .../modules/tableflip/code/flipped_table.dm | 8 +- .../tribal_extended/code/weapons/bow.dm | 6 +- .../modules/trim_tokens/code/cards_ids.dm | 10 +- modular_skyrat/modules/verbs/code/looc.dm | 18 ++-- modular_skyrat/modules/verbs/code/subtle.dm | 12 +-- .../research/xenoarch/xenoarch_tool.dm | 6 +- modular_skyrat/readme.md | 2 +- 183 files changed, 1004 insertions(+), 995 deletions(-) diff --git a/code/__DEFINES/~skyrat_defines/combat.dm b/code/__DEFINES/~skyrat_defines/combat.dm index 79acd77e977..47f1c15608f 100644 --- a/code/__DEFINES/~skyrat_defines/combat.dm +++ b/code/__DEFINES/~skyrat_defines/combat.dm @@ -80,7 +80,7 @@ //It's really not recommended to use this proc to give feedback, hence why silent is defaulting to true. /mob/living/carbon/proc/KnockToFloor(silent = TRUE, ignore_canknockdown = FALSE, knockdown_amt = 1) if(!silent && body_position != LYING_DOWN) - to_chat(src, "You are knocked to the floor!") + to_chat(src, span_warning("You are knocked to the floor!")) Knockdown(knockdown_amt, ignore_canknockdown) /mob/living/proc/StaminaKnockdown(stamina_damage, disarm, brief_stun, hardstun, ignore_canknockdown = FALSE, paralyze_amount, knockdown_amt = 1) @@ -124,12 +124,12 @@ var/time_doing = 4 SECONDS if(target.stat != CONSCIOUS) time_doing = 2 SECONDS - target.visible_message("[user.name] holds [target.name]'s head tight and slams it down!", ignored_mobs=user) - to_chat(user, "You grasp [target.name]'s head and slam it down!") + target.visible_message(span_danger("[user.name] holds [target.name]'s head tight and slams it down!"), ignored_mobs=user) + to_chat(user, span_danger("You grasp [target.name]'s head and slam it down!")) else - target.visible_message("[user.name] holds [target.name]'s head and tries to overpower [target.p_them()]!", \ - "You struggle as [user.name] holds your head and tries to overpower you!", ignored_mobs=user) - to_chat(user, "You grasp [target.name]'s head and try to overpower [target.p_them()]...") + target.visible_message(span_danger("[user.name] holds [target.name]'s head and tries to overpower [target.p_them()]!"), \ + span_userdanger("'>You struggle as [user.name] holds your head and tries to overpower you!"), ignored_mobs=user) + to_chat(user, span_danger("You grasp [target.name]'s head and try to overpower [target.p_them()]...")) user.changeNext_move(time_doing) if(do_mob(user, target, time_doing)) var/armor_block = target.run_armor_check(affecting, MELEE) @@ -137,9 +137,9 @@ if(armor_block < HEADSMASH_BLOCK_ARMOR) head_knock = TRUE - target.visible_message("[user.name] violently slams [target.name]'s head into the floor!", \ - "[user.name] slams your head against the floor!", ignored_mobs=user) - to_chat(user, "You slam [target.name] head against the floor!") + target.visible_message(span_danger("[user.name] violently slams [target.name]'s head into the floor!"), \ + span_userdanger("'>[user.name] slams your head against the floor!"), ignored_mobs=user) + to_chat(user, span_danger("You slam [target.name] head against the floor!")) //Check to see if our head is protected by at least 20 melee armor if(head_knock) @@ -158,9 +158,9 @@ //Suplex! . = TRUE user.changeNext_move(3 SECONDS) - target.visible_message("[user.name] holds [target.name] tight and starts lifting [target.p_them()] up!", \ - "[user.name] holds you tight and lifts you up!", ignored_mobs=user) - to_chat(user, "You hold [target.name] tight and lift [target.p_them()] up...") + target.visible_message(span_danger("[user.name] holds [target.name] tight and starts lifting [target.p_them()] up!"), \ + span_userdanger("'>[user.name] holds you tight and lifts you up!"), ignored_mobs=user) + to_chat(user, span_danger("You hold [target.name] tight and lift [target.p_them()] up...")) if(do_mob(user, target, 3 SECONDS)) var/move_dir = get_dir(target, user) var/moved_turf = get_turf(target) @@ -169,9 +169,9 @@ if(IS_OPAQUE_TURF(next_turf)) break moved_turf = next_turf - target.visible_message("[user.name] suplexes [target.name] down to the ground!", \ - "[user.name] suplexes you!", ignored_mobs=user) - to_chat(user, "You suplex [target.name]!") + target.visible_message(span_danger("[user.name] suplexes [target.name] down to the ground!"), \ + span_userdanger("'>[user.name] suplexes you!"), ignored_mobs=user) + to_chat(user, span_danger("You suplex [target.name]!")) user.StaminaKnockdown(30, TRUE, TRUE) user.SpinAnimation(7,1) target.SpinAnimation(7,1) @@ -187,13 +187,13 @@ //Dislocation . = TRUE user.changeNext_move(4 SECONDS) - target.visible_message("[user.name] twists [target.name]'s [affecting.name] violently!", \ - "[user.name] twists your [affecting.name] violently!", ignored_mobs=user) - to_chat(user, "You start twisting [target.name]'s [affecting.name] violently!") + target.visible_message(span_danger("[user.name] twists [target.name]'s [affecting.name] violently!"), \ + span_userdanger("'>[user.name] twists your [affecting.name] violently!"), ignored_mobs=user) + to_chat(user, span_danger("You start twisting [target.name]'s [affecting.name] violently!")) if(do_mob(user, target, 4 SECONDS)) - target.visible_message("[user.name] dislocates [target.name]'s [affecting.name]!", \ - "[user.name] dislocates your [affecting.name]!", ignored_mobs=user) - to_chat(user, "You dislocate [target.name]'s [affecting.name]!") + target.visible_message(span_danger("[user.name] dislocates [target.name]'s [affecting.name]!"), \ + span_userdanger("'>[user.name] dislocates your [affecting.name]!"), ignored_mobs=user) + to_chat(user, span_danger("You dislocate [target.name]'s [affecting.name]!")) affecting.force_wound_upwards(/datum/wound/blunt/moderate) log_combat(user, target, "dislocates", "the [affecting.name]") diff --git a/code/__DEFINES/~skyrat_defines/span.dm b/code/__DEFINES/~skyrat_defines/span.dm index 68eef9ee21e..2699f0d7ff7 100644 --- a/code/__DEFINES/~skyrat_defines/span.dm +++ b/code/__DEFINES/~skyrat_defines/span.dm @@ -1 +1,12 @@ +#define span_emote(str) ("" + str + "") +#define span_header(str) ("" + str + "") +#define span_italics(str) ("" + str + "") +#define span_maptext(str) ("" + str + "") +#define span_mentor(str) ("" + str + "") +#define span_mentornotice(str) ("" + str + "") +#define span_oocplain(str) ("" + str + "") +#define span_pink(str) ("" + str + "") +#define span_rlooc(str) ("" + str + "") +#define span_smalldanger(str) ("" + str + "") #define span_userlove(str) ("" + str + "") +#define span_warningplain(str) ("" + str + "") diff --git a/modular_skyrat/master_files/code/datums/components/fullauto.dm b/modular_skyrat/master_files/code/datums/components/fullauto.dm index 6bb6c43f1a9..63240755cef 100644 --- a/modular_skyrat/master_files/code/datums/components/fullauto.dm +++ b/modular_skyrat/master_files/code/datums/components/fullauto.dm @@ -253,7 +253,7 @@ return FALSE var/obj/item/bodypart/other_hand = shooter.has_hand_for_held_index(shooter.get_inactive_hand_index()) if(weapon_weight == WEAPON_HEAVY && (shooter.get_inactive_held_item() || !other_hand)) - to_chat(shooter, "You need two hands to fire [src]!") + to_chat(shooter, span_warning("You need two hands to fire [src]!")) return FALSE return TRUE diff --git a/modular_skyrat/master_files/code/datums/martial/cqcplus.dm b/modular_skyrat/master_files/code/datums/martial/cqcplus.dm index 029d2b97887..77e2be519b8 100644 --- a/modular_skyrat/master_files/code/datums/martial/cqcplus.dm +++ b/modular_skyrat/master_files/code/datums/martial/cqcplus.dm @@ -15,7 +15,7 @@ if(!isturf(A.loc)) //NO MOTHERFLIPPIN MECHS! return BULLET_ACT_HIT if(A.throw_mode) - A.visible_message("[A] effortlessly swats the projectile aside! They can block bullets with their bare hands!", "You deflect the projectile!") + A.visible_message(span_danger("[A] effortlessly swats the projectile aside! They can block bullets with their bare hands!"), span_userdanger("You deflect the projectile!")) playsound(get_turf(A), pick('sound/weapons/bulletflyby.ogg', 'sound/weapons/bulletflyby2.ogg', 'sound/weapons/bulletflyby3.ogg'), 75, TRUE) P.firer = A P.set_angle(rand(0, 360))//SHING @@ -27,4 +27,4 @@ name = "old but gold manual" martialname = "close quarters combat plus" desc = "A small, black manual. There are drawn instructions of tactical hand-to-hand combat. This includes how to deflect projectiles too." - greet = "You've mastered the basics of CQC+." + greet = span_boldannounce("You've mastered the basics of CQC+.") diff --git a/modular_skyrat/master_files/code/datums/traits/good.dm b/modular_skyrat/master_files/code/datums/traits/good.dm index e6673c78242..e409ace4c4c 100644 --- a/modular_skyrat/master_files/code/datums/traits/good.dm +++ b/modular_skyrat/master_files/code/datums/traits/good.dm @@ -5,8 +5,8 @@ desc = "You're used to walking barefoot, and won't receive the negative effects of doing so." value = 2 mob_trait = TRAIT_HARD_SOLES - gain_text = "The ground doesn't feel so rough on your feet anymore." - lose_text = "You start feeling the ridges and imperfections on the ground." + gain_text = span_notice("The ground doesn't feel so rough on your feet anymore.") + lose_text = span_danger("You start feeling the ridges and imperfections on the ground.") medical_record_text = "Patient's feet are more resilient against traction." icon = "boot" @@ -26,8 +26,8 @@ desc = "(Aquatic innate) Underwater societies are home to you, space ain't much different. (Say *turf to cast)" value = 0 mob_trait = TRAIT_WATER_ASPECT - gain_text = "You feel like you can control water." - lose_text = "Somehow, you've lost your ability to control water!" + gain_text = span_notice("You feel like you can control water.") + lose_text = span_danger("Somehow, you've lost your ability to control water!") medical_record_text = "Patient holds a collection of nanobots designed to synthesize H2O." icon = "water" @@ -36,8 +36,8 @@ desc = "(Insect innate) Insect folk capable of weaving aren't unfamiliar with receiving envy from those lacking a natural 3D printer. (Say *turf to cast)" value = 0 mob_trait = TRAIT_WEBBING_ASPECT - gain_text = "You could easily spin a web." - lose_text = "Somehow, you've lost your ability to weave." + gain_text = span_notice("You could easily spin a web.") + lose_text = span_danger("Somehow, you've lost your ability to weave.") medical_record_text = "Patient has the ability to weave webs with naturally synthesized silk." icon = "spider-web" @@ -46,8 +46,8 @@ desc = "(Podperson innate) Kudzu research isn't pointless, rapid photosynthesis technology is here! (Say *turf to cast)" value = 0 mob_trait = TRAIT_FLORAL_ASPECT - gain_text = "You feel like you can grow vines." - lose_text = "Somehow, you've lost your ability to rapidly photosynthesize." + gain_text = span_notice("You feel like you can grow vines.") + lose_text = span_danger("Somehow, you've lost your ability to rapidly photosynthesize.") medical_record_text = "Patient can rapidly photosynthesize to grow vines." icon = "seedling" @@ -56,8 +56,8 @@ desc = "(Lizard innate) The ability to forge ash and flame, a mighty power - yet mostly used for theatrics. (Say *turf to cast)" value = 0 mob_trait = TRAIT_ASH_ASPECT - gain_text = "There is a forge smouldering inside of you." - lose_text = "Somehow, you've lost your ability to breathe fire." + gain_text = span_notice("There is a forge smouldering inside of you.") + lose_text = span_danger("Somehow, you've lost your ability to breathe fire.") medical_record_text = "Patients possess a fire breathing gland commonly found in lizard folk." icon = "fire" @@ -66,7 +66,7 @@ desc = "(Moth innate) Sparkle like the dust off of a moth's wing, or like a cheap red-light hook-up. (Say *turf to cast)" value = 0 mob_trait = TRAIT_SPARKLE_ASPECT - gain_text = "You're covered in sparkling dust!" - lose_text = "Somehow, you've completely cleaned yourself of glitter.." + gain_text = span_notice("You're covered in sparkling dust!") + lose_text = span_danger("Somehow, you've completely cleaned yourself of glitter..") medical_record_text = "Patient seems to be looking fabulous." icon = "hand-sparkles" diff --git a/modular_skyrat/master_files/code/datums/traits/negative.dm b/modular_skyrat/master_files/code/datums/traits/negative.dm index b614e56a050..dca1853b798 100644 --- a/modular_skyrat/master_files/code/datums/traits/negative.dm +++ b/modular_skyrat/master_files/code/datums/traits/negative.dm @@ -11,8 +11,8 @@ /datum/quirk/sensitivesnout name = "Sensitive Snout" desc = "Your face has always been sensitive, and it really hurts when someone pokes it!" - gain_text = "Your face is awfully sensitive." - lose_text = "Your face feels numb." + gain_text = span_notice("Your face is awfully sensitive.") + lose_text = span_notice("Your face feels numb.") medical_record_text = "Patient's nose seems to have a cluster of nerves in the tip, would advise against direct contact." value = -2 mob_trait = TRAIT_SENSITIVESNOUT @@ -22,8 +22,8 @@ name = "Monophobia" desc = "You will become increasingly stressed when not in company of others, triggering panic reactions ranging from sickness to heart attacks." value = -6 - gain_text = "You feel really lonely..." - lose_text = "You feel like you could be safe on your own." + gain_text = span_danger("You feel really lonely...") + lose_text = span_notice("You feel like you could be safe on your own.") medical_record_text = "Patient feels sick and distressed when not around other people, leading to potentially lethal levels of stress." icon = "people-arrows" @@ -40,8 +40,8 @@ /datum/quirk/ashwalkertalons name = "Chunky Fingers" desc = "Your digits are thick and tough and unable to use modular computers including tablets, certain devices like laser pointers, and non-adapted firearms." - gain_text = "Your fingers feel thicker and slightly less dextrous. You expect you'll have a difficult time using computers, certain small devices and firearms." - lose_text = "Your digits feel lithe and capable once more." + gain_text = span_notice("Your fingers feel thicker and slightly less dextrous. You expect you'll have a difficult time using computers, certain small devices and firearms.") + lose_text = span_notice("Your digits feel lithe and capable once more.") medical_record_text = "Patient's digits are thick and lack the dexterity for operating some small devices, computers and non-adapted firearms." value = -8 mob_trait = TRAIT_CHUNKYFINGERS diff --git a/modular_skyrat/master_files/code/datums/traits/neutral.dm b/modular_skyrat/master_files/code/datums/traits/neutral.dm index 06bccb10916..5dd050941ff 100644 --- a/modular_skyrat/master_files/code/datums/traits/neutral.dm +++ b/modular_skyrat/master_files/code/datums/traits/neutral.dm @@ -4,8 +4,8 @@ /datum/quirk/excitable name = "Excitable!" desc = "Head patting makes your tail wag! You're very excitable! WAG WAG." - gain_text = "You crave for some headpats!" - lose_text = "You no longer care for headpats all that much." + gain_text = span_notice("You crave for some headpats!") + lose_text = span_notice("You no longer care for headpats all that much.") medical_record_text = "Patient seems to get excited easily." value = 0 mob_trait = TRAIT_EXCITABLE @@ -14,8 +14,8 @@ /datum/quirk/ironass name = "Iron Ass" desc = "Your ass is incredibly firm, so firm infact that anyone slapping it will suffer grave injuries." - gain_text = "Your ass feels solid!" - lose_text = "Your ass doesn't feel so solid anymore." + gain_text = span_notice("Your ass feels solid!") + lose_text = span_notice("Your ass doesn't feel so solid anymore.") medical_record_text = "Patient's ass seems incredibly solid." value = 0 mob_trait = TRAIT_IRONASS @@ -24,8 +24,8 @@ /datum/quirk/dnr name = "Do Not Revive" desc = "For whatever reason, you cannot be revived in any way." - gain_text = "Your spirit gets too scarred to accept revival." - lose_text = "You can feel your soul healing again." + gain_text = span_notice("Your spirit gets too scarred to accept revival.") + lose_text = span_notice("You can feel your soul healing again.") medical_record_text = "Patient is a DNR, and cannot be revived in any way." value = 0 mob_trait = TRAIT_DNR @@ -92,11 +92,11 @@ if(flipped) info = initial(info) flipped = FALSE - to_chat(user, "You unflip the card.") + to_chat(user, span_notice("You unflip the card.")) else info = info2 flipped = TRUE - to_chat(user, "You flip the card.") + to_chat(user, span_notice("You flip the card.")) /datum/quirk/item_quirk/joker/process() if(pcooldown > world.time) diff --git a/modular_skyrat/master_files/code/game/machinery/doors/firedoor.dm b/modular_skyrat/master_files/code/game/machinery/doors/firedoor.dm index a360872fdb8..82459021947 100644 --- a/modular_skyrat/master_files/code/game/machinery/doors/firedoor.dm +++ b/modular_skyrat/master_files/code/game/machinery/doors/firedoor.dm @@ -8,13 +8,13 @@ return user.changeNext_move(CLICK_CD_MELEE) - user.visible_message("[user] bangs on \the [src].", \ - "You bang on \the [src].") + user.visible_message(span_notice("[user] bangs on \the [src]."), \ + span_notice("You bang on \the [src].")) playsound(loc, 'sound/effects/glassknock.ogg', 10, FALSE, frequency = 32000) /obj/machinery/door/proc/try_manual_override(mob/user) if(density) - to_chat(user, "You begin working the manual override mechanism...") + to_chat(user, span_notice("You begin working the manual override mechanism...")) if(do_after(user, 10 SECONDS, target = src)) try_to_crowbar(null, user) return TRUE @@ -22,7 +22,7 @@ /obj/machinery/door/firedoor/try_to_crowbar(obj/item/I, mob/user) if(welded || operating) - to_chat(user, "[src] refuses to budge!") + to_chat(user, span_warning("[src] refuses to budge!")) return if(density) diff --git a/modular_skyrat/master_files/code/game/objects/items/airlock_painter.dm b/modular_skyrat/master_files/code/game/objects/items/airlock_painter.dm index b9ddf95cb50..404c30b5c08 100644 --- a/modular_skyrat/master_files/code/game/objects/items/airlock_painter.dm +++ b/modular_skyrat/master_files/code/game/objects/items/airlock_painter.dm @@ -74,7 +74,7 @@ var/obj/item/organ/lungs/L = user.getorganslot(ORGAN_SLOT_LUNGS) if(can_use(user) && L) - user.visible_message("[user] is inhaling toner from [src]! It looks like [user.p_theyre()] trying to commit suicide!") + user.visible_message(span_suicide("[user] is inhaling toner from [src]! It looks like [user.p_theyre()] trying to commit suicide!")) use(user) // Once you've inhaled the toner, you throw up your lungs @@ -100,20 +100,20 @@ // TODO maybe add some colorful vomit? - user.visible_message("[user] vomits out [user.p_their()] [L]!") + user.visible_message(span_suicide("[user] vomits out [user.p_their()] [L]!")) playsound(user.loc, 'sound/effects/splat.ogg', 50, TRUE) L.forceMove(T) return (TOXLOSS|OXYLOSS) else if(can_use(user) && !L) - user.visible_message("[user] is spraying toner on [user.p_them()]self from [src]! It looks like [user.p_theyre()] trying to commit suicide.") + user.visible_message(span_suicide("[user] is spraying toner on [user.p_them()]self from [src]! It looks like [user.p_theyre()] trying to commit suicide.")) user.reagents.add_reagent(/datum/reagent/colorful_reagent, 1) user.reagents.expose(user, TOUCH, 1) return TOXLOSS else - user.visible_message("[user] is trying to inhale toner from [src]! It might be a suicide attempt if [src] had any toner.") + user.visible_message(span_suicide("[user] is trying to inhale toner from [src]! It might be a suicide attempt if [src] had any toner.")) return SHAME /obj/item/airlock_painter/decal @@ -144,7 +144,7 @@ . = ..() var/turf/open/floor/F = target if(!proximity) - to_chat(user, "You need to get closer!") + to_chat(user, span_notice("You need to get closer!")) return if(use_paint(user) && isturf(F)) F.AddElement(/datum/element/decal, 'icons/turf/decals.dmi', stored_decal_total, stored_dir, null, null, alpha, color, null, CLEAN_TYPE_PAINT, null) diff --git a/modular_skyrat/master_files/code/game/objects/items/hhmirror.dm b/modular_skyrat/master_files/code/game/objects/items/hhmirror.dm index d9f3ee1bf61..b1e99eff414 100644 --- a/modular_skyrat/master_files/code/game/objects/items/hhmirror.dm +++ b/modular_skyrat/master_files/code/game/objects/items/hhmirror.dm @@ -78,7 +78,7 @@ H.dna.features["mcolor"] = sanitize_hexcolor(new_mutantcolor) else - to_chat(H, "Invalid color. Your color is not bright enough.") + to_chat(H, span_notice("Invalid color. Your color is not bright enough.")) H.update_body() H.update_hair() @@ -93,14 +93,14 @@ if(H.gender == "male") if(alert(H, "Become a Witch?", "Confirmation", "Yes", "No") == "Yes") H.gender = "female" - to_chat(H, "Man, you feel like a woman!") + to_chat(H, span_notice("Man, you feel like a woman!")) else return else if(alert(H, "Become a Warlock?", "Confirmation", "Yes", "No") == "Yes") H.gender = "male" - to_chat(H, "Whoa man, you feel like a man!") + to_chat(H, span_notice("Whoa man, you feel like a man!")) else return H.dna.update_ui_block(DNA_GENDER_BLOCK) @@ -179,14 +179,14 @@ if(H.gender == "male") if(alert(H, "Become a Witch?", "Confirmation", "Yes", "No") == "Yes") H.gender = "female" - to_chat(H, "Man, you feel like a woman!") + to_chat(H, span_notice("Man, you feel like a woman!")) else return else if(alert(H, "Become a Warlock?", "Confirmation", "Yes", "No") == "Yes") H.gender = "male" - to_chat(H, "Whoa man, you feel like a man!") + to_chat(H, span_notice("Whoa man, you feel like a man!")) else return H.dna.update_ui_block(DNA_GENDER_BLOCK) diff --git a/modular_skyrat/master_files/code/game/objects/items/holy_weapons.dm b/modular_skyrat/master_files/code/game/objects/items/holy_weapons.dm index 944b9fbe4eb..8a285eb772b 100644 --- a/modular_skyrat/master_files/code/game/objects/items/holy_weapons.dm +++ b/modular_skyrat/master_files/code/game/objects/items/holy_weapons.dm @@ -93,7 +93,7 @@ /obj/item/nullrod/cultdagger/attack_self(mob/user) if(narsian) else if(user.mind && (user.mind.holy_role)) - to_chat(user, "\"Partake in the language of blood..\"") + to_chat(user, span_cultlarge("\"Partake in the language of blood..\"")) user.grant_language(/datum/language/narsie, TRUE, TRUE, LANGUAGE_MIND) special_desc_requirement = NONE // No point in keeping something that can't no longer be used narsian = TRUE @@ -107,7 +107,7 @@ /obj/item/nullrod/claymore/darkblade/attack_self(mob/user) if(narsian) else if(user.mind && (user.mind.holy_role)) - to_chat(user, "\"Partake in the language of blood..\"") + to_chat(user, span_cultlarge("\"Partake in the language of blood..\"")) user.grant_language(/datum/language/narsie, TRUE, TRUE, LANGUAGE_MIND) special_desc_requirement = NONE // No point in keeping something that can't no longer be used narsian = TRUE @@ -147,28 +147,28 @@ /obj/item/nullrod/rosary/attack(mob/living/M, mob/living/user, params) if(!user.mind || user.mind.assigned_role != "Chaplain") - to_chat(user, "You are not close enough with [deity_name] to use [src].") + to_chat(user, span_notice("You are not close enough with [deity_name] to use [src].")) return if(user.combat_mode) return ..() if(praying) - to_chat(user, "You are already using [src].") + to_chat(user, span_notice("You are already using [src].")) return - user.visible_message("[user] kneels[M == user ? null : " next to [M]"] and begins to utter a prayer to [deity_name].", \ - "You kneel[M == user ? null : " next to [M]"] and begin a prayer to [deity_name].") + user.visible_message(span_info("[user] kneels[M == user ? null : " next to [M]"] and begins to utter a prayer to [deity_name]."), \ + span_info("You kneel[M == user ? null : " next to [M]"] and begin a prayer to [deity_name].")) praying = TRUE if(do_after(user, 20, target = M)) M.reagents?.add_reagent(/datum/reagent/water/holywater, 5) - to_chat(M, "[user]'s prayer to [deity_name] has eased your pain!") + to_chat(M, span_notice("[user]'s prayer to [deity_name] has eased your pain!")) M.adjustToxLoss(-5, TRUE, TRUE) M.adjustOxyLoss(-5) M.adjustBruteLoss(-5) M.adjustFireLoss(-5) praying = FALSE else - to_chat(user, "Your prayer to [deity_name] was interrupted.") + to_chat(user, span_notice("Your prayer to [deity_name] was interrupted.")) praying = FALSE /obj/item/nullrod/scythe/sickle diff --git a/modular_skyrat/master_files/code/game/objects/items/oxygen_candle.dm b/modular_skyrat/master_files/code/game/objects/items/oxygen_candle.dm index 5f7242a0e03..3470cf1c08f 100644 --- a/modular_skyrat/master_files/code/game/objects/items/oxygen_candle.dm +++ b/modular_skyrat/master_files/code/game/objects/items/oxygen_candle.dm @@ -14,7 +14,7 @@ /obj/item/oxygen_candle/attack_self(mob/user) if(!pulled) playsound(src, 'sound/effects/fuse.ogg', 75, 1) - to_chat(user, "You pull the cord and [src] ignites.") + to_chat(user, span_notice("You pull the cord and [src] ignites.")) icon_state = "oxycandle_burning" pulled = TRUE processing = TRUE diff --git a/modular_skyrat/master_files/code/game/objects/structures/sauna_oven.dm b/modular_skyrat/master_files/code/game/objects/structures/sauna_oven.dm index 6fba2a3faf9..e653da407b1 100644 --- a/modular_skyrat/master_files/code/game/objects/structures/sauna_oven.dm +++ b/modular_skyrat/master_files/code/game/objects/structures/sauna_oven.dm @@ -18,8 +18,8 @@ /obj/structure/sauna_oven/examine(mob/user) . = ..() - . += "The rocks are [water_amount ? "moist" : "dry"]." - . += "There's [fuel_amount ? "some fuel" : "no fuel"] in the oven." + . += span_notice("The rocks are [water_amount ? "moist" : "dry"].") + . += span_notice("There's [fuel_amount ? "some fuel" : "no fuel"] in the oven.") /obj/structure/sauna_oven/Destroy() if(lit) @@ -33,11 +33,11 @@ if(lit) lit = FALSE STOP_PROCESSING(SSobj, src) - user.visible_message("[user] turns off [src].", "You turn off [src].") + user.visible_message(span_notice("[user] turns off [src]."), span_notice("You turn off [src].")) else if (fuel_amount) lit = TRUE START_PROCESSING(SSobj, src) - user.visible_message("[user] turns on [src].", "You turn on [src].") + user.visible_message(span_notice("[user] turns on [src]."), span_notice("You turn on [src].")) update_icon() /obj/structure/sauna_oven/update_overlays() @@ -51,9 +51,9 @@ /obj/structure/sauna_oven/attackby(obj/item/T, mob/user) if(T.tool_behaviour == TOOL_WRENCH) - to_chat(user, "You begin to deconstruct [src].") + to_chat(user, span_notice("You begin to deconstruct [src].")) if(T.use_tool(src, user, 60, volume=50)) - to_chat(user, "You successfully deconstructed [src].") + to_chat(user, span_notice("You successfully deconstructed [src].")) new /obj/item/stack/sheet/mineral/wood(get_turf(src), 30) qdel(src) @@ -63,34 +63,34 @@ return ..() if(reagent_container.reagents.has_reagent(/datum/reagent/water)) reagent_container.reagents.remove_reagent(/datum/reagent/water, 5) - user.visible_message("[user] pours some \ - water into [src].", "You pour \ - some water to [src].") + user.visible_message(span_notice("[user] pours some \ + water into [src]."), span_notice("You pour \ + some water to [src].")) water_amount += 5 * SAUNA_WATER_PER_WATER_UNIT else - to_chat(user, "There's no water in [reagent_container]") + to_chat(user, span_warning("There's no water in [reagent_container]")) else if(istype(T, /obj/item/stack/sheet/mineral/wood)) var/obj/item/stack/sheet/mineral/wood/wood = T if(fuel_amount > SAUNA_MAXIMUM_FUEL) - to_chat(user, "You can't fit any more of [T] in [src]!") + to_chat(user, span_warning("You can't fit any more of [T] in [src]!")) return fuel_amount += SAUNA_LOG_FUEL * wood.amount wood.use(wood.amount) - user.visible_message("[user] tosses some \ - wood into [src].", "You add \ - some fuel to [src].") + user.visible_message(span_notice("[user] tosses some \ + wood into [src]."), span_notice("You add \ + some fuel to [src].")) else if(istype(T, /obj/item/paper_bin)) var/obj/item/paper_bin/paper_bin = T - user.visible_message("[user] throws [T] into \ - [src].", "You add [T] to [src].\ - ") + user.visible_message(span_notice("[user] throws [T] into \ + [src]."), span_notice("You add [T] to [src].\ + ")) fuel_amount += SAUNA_PAPER_FUEL * paper_bin.total_paper qdel(paper_bin) else if(istype(T, /obj/item/paper)) - user.visible_message("[user] throws [T] into \ - [src].", "You throw [T] into [src].\ - ") + user.visible_message(span_notice("[user] throws [T] into \ + [src]."), span_notice("You throw [T] into [src].\ + ")) fuel_amount += SAUNA_PAPER_FUEL qdel(T) return ..() diff --git a/modular_skyrat/master_files/code/game/objects/structures/trash_pile.dm b/modular_skyrat/master_files/code/game/objects/structures/trash_pile.dm index e4b49651023..d2a285a5d55 100644 --- a/modular_skyrat/master_files/code/game/objects/structures/trash_pile.dm +++ b/modular_skyrat/master_files/code/game/objects/structures/trash_pile.dm @@ -38,27 +38,27 @@ var/atom/A = contents[contents.len] //Get the most recent hidden thing if(istype(A, /mob/living)) var/mob/living/M = A - to_chat(user,"You found someone in the trash!") + to_chat(user,span_notice("You found someone in the trash!")) eject_mob(M) else if (istype(A, /obj/item)) var/obj/item/I = A - to_chat(user,"You found something!") + to_chat(user,span_notice("You found something!")) I.forceMove(src.loc) else //You already searched this one bruh if(user.ckey in searchedby) - to_chat(user,"There's nothing else for you in \the [src]!") + to_chat(user,span_warning("There's nothing else for you in \the [src]!")) //You found an item! else produce_alpha_item() - to_chat(user,"You found something!") + to_chat(user,span_notice("You found something!")) searchedby += user.ckey /obj/structure/trash_pile/attack_hand(mob/user) //Human mob if(ishuman(user)) var/mob/living/carbon/human/H = user - H.visible_message("[user] searches through \the [src].","You search through \the [src].") + H.visible_message("[user] searches through \the [src].",span_notice("You search through \the [src].")) //Do the searching if(do_after(user,rand(4 SECONDS,6 SECONDS),target=src)) if(src.loc) //Let's check if the pile still exists @@ -84,21 +84,21 @@ /obj/structure/trash_pile/proc/eject_mob(var/mob/living/M) M.forceMove(src.loc) - to_chat(M,"You've been found!") + to_chat(M,span_warning("You've been found!")) playsound(M.loc, 'sound/machines/chime.ogg', 50, FALSE, -5) M.do_alert_animation(M) /obj/structure/trash_pile/proc/do_dive(mob/user) if(contents.len) for(var/mob/M in contents) - to_chat(user,"There's someone in the trash already!") + to_chat(user,span_warning("There's someone in the trash already!")) eject_mob(M) return FALSE return TRUE /obj/structure/trash_pile/proc/dive_in_pile(mob/user) - user.visible_message("[user] starts diving into [src].", \ - "You start diving into [src]...") + user.visible_message(span_warning("[user] starts diving into [src]."), \ + span_notice("You start diving into [src]...")) var/adjusted_dive_time = hide_person_time if(HAS_TRAIT(user, TRAIT_RESTRAINED)) //hiding takes twice as long when restrained. adjusted_dive_time *= 2 @@ -106,7 +106,7 @@ if(do_mob(user, user, adjusted_dive_time)) if(src.loc) //Checking if structure has been destroyed if(do_dive(user)) - to_chat(user,"You hide in the trashpile.") + to_chat(user,span_notice("You hide in the trashpile.")) user.forceMove(src) /obj/structure/trash_pile/proc/can_hide_item(obj/item/I) @@ -117,15 +117,15 @@ /obj/structure/trash_pile/attackby(obj/item/I, mob/living/user, params) if(!user.combat_mode) if(can_hide_item(I)) - to_chat(user,"You begin to stealthily hide [I] in the [src].") + to_chat(user,span_notice("You begin to stealthily hide [I] in the [src].")) if(do_mob(user, user, hide_item_time)) if(src.loc) if(user.transferItemToLoc(I, src)) - to_chat(user,"You hide [I] in the trash.") + to_chat(user,span_notice("You hide [I] in the trash.")) else - to_chat(user, "\The [I] is stuck to your hand, you cannot put it in the trash!") + to_chat(user, span_warning("\The [I] is stuck to your hand, you cannot put it in the trash!")) else - to_chat(user,"The [src] is way too full to fit [I].") + to_chat(user,span_warning("The [src] is way too full to fit [I].")) return . = ..() diff --git a/modular_skyrat/master_files/code/modules/admin/admin.dm b/modular_skyrat/master_files/code/modules/admin/admin.dm index e876bf898bd..c7995311b9d 100644 --- a/modular_skyrat/master_files/code/modules/admin/admin.dm +++ b/modular_skyrat/master_files/code/modules/admin/admin.dm @@ -17,4 +17,4 @@ GLOBAL_VAR_INIT(dchat_allowed, TRUE) return else //otherwise just toggle it GLOB.dchat_allowed = !GLOB.dchat_allowed - to_chat(world, "The dead chat channel has been globally [GLOB.dchat_allowed ? "enabled" : "disabled"].") + to_chat(world, span_oocplain("The dead chat channel has been globally [GLOB.dchat_allowed ? "enabled" : "disabled"].")) diff --git a/modular_skyrat/master_files/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm b/modular_skyrat/master_files/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm index 55db191ab70..bc3415eb109 100644 --- a/modular_skyrat/master_files/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm +++ b/modular_skyrat/master_files/code/modules/antagonists/nukeop/equipment/nuclearbomb.dm @@ -4,6 +4,6 @@ for(var/mob/living/M in GLOB.mob_living_list) if(M.loc.z == level) M.flash_act(100, TRUE, TRUE) - to_chat(M, "You feel your skin prickle with heat as you're ripped atom from atom in the raging inferno of a nuclear blast. Your last thought is 'Oh fuck.'") + to_chat(M, span_userdanger("You feel your skin prickle with heat as you're ripped atom from atom in the raging inferno of a nuclear blast. Your last thought is 'Oh fuck.'")) M.emote("scream") M.gib() diff --git a/modular_skyrat/master_files/code/modules/awaymission/mission_code/black_mesa.dm b/modular_skyrat/master_files/code/modules/awaymission/mission_code/black_mesa.dm index 015917d6877..c3422d36da3 100644 --- a/modular_skyrat/master_files/code/modules/awaymission/mission_code/black_mesa.dm +++ b/modular_skyrat/master_files/code/modules/awaymission/mission_code/black_mesa.dm @@ -180,7 +180,7 @@ var/mob/living/carbon/human/human_to_dunk = hit_atom if(!human_to_dunk.get_item_by_slot(ITEM_SLOT_HEAD) && prob(50)) //Anything on de head stops the head hump if(zombify(human_to_dunk)) - to_chat(human_to_dunk, "[src] latches onto your head as it pierces your skull, instantly killing you!") + to_chat(human_to_dunk, span_userdanger("[src] latches onto your head as it pierces your skull, instantly killing you!")) playsound(src, 'modular_skyrat/master_files/sound/blackmesa/headcrab/headbite.ogg', 100) human_to_dunk.death(FALSE) @@ -207,7 +207,7 @@ H.forceMove(src) oldguy = H update_appearance() - visible_message("The corpse of [H.name] suddenly rises!") + visible_message(span_warning("The corpse of [H.name] suddenly rises!")) charger = FALSE return TRUE diff --git a/modular_skyrat/master_files/code/modules/buildmode/submodes/offercontrol.dm b/modular_skyrat/master_files/code/modules/buildmode/submodes/offercontrol.dm index f4356541853..8daac846b6b 100644 --- a/modular_skyrat/master_files/code/modules/buildmode/submodes/offercontrol.dm +++ b/modular_skyrat/master_files/code/modules/buildmode/submodes/offercontrol.dm @@ -2,9 +2,9 @@ key = "offercontrol" /datum/buildmode_mode/offercontrol/show_help(client/c) - to_chat(c, "***********************************************************\n\ + to_chat(c, span_notice("***********************************************************\n\ Left Mouse Button on mob/living = Offer control to ghosts.\n\ - ***********************************************************") + ***********************************************************")) /datum/buildmode_mode/offercontrol/handle_click(client/c, params, object) if(!ismob(object)) diff --git a/modular_skyrat/master_files/code/modules/clothing/head/monkey_magnification_helmet.dm b/modular_skyrat/master_files/code/modules/clothing/head/monkey_magnification_helmet.dm index ee67e52f5aa..f4a5c46bf1a 100644 --- a/modular_skyrat/master_files/code/modules/clothing/head/monkey_magnification_helmet.dm +++ b/modular_skyrat/master_files/code/modules/clothing/head/monkey_magnification_helmet.dm @@ -16,12 +16,12 @@ /obj/item/clothing/head/helmet/monkey_sentience/examine(mob/user) . = ..() - . += "---WARNING: REMOVAL OF HELMET ON SUBJECT MAY LEAD TO:---" - . += "BLOOD RAGE" - . += "BRAIN DEATH" - . += "PRIMAL GENE ACTIVATION" - . += "GENETIC MAKEUP MASS SUSCEPTIBILITY" - . += "Ask your CMO if mind magnification is right for you." + . += span_boldwarning("---WARNING: REMOVAL OF HELMET ON SUBJECT MAY LEAD TO:---") + . += span_warning("BLOOD RAGE") + . += span_warning("BRAIN DEATH") + . += span_warning("PRIMAL GENE ACTIVATION") + . += span_warning("GENETIC MAKEUP MASS SUSCEPTIBILITY") + . += span_boldnotice("Ask your CMO if mind magnification is right for you.") /obj/item/clothing/head/helmet/monkey_sentience/update_icon_state() . = ..() @@ -35,7 +35,7 @@ return if(!ismonkey(user) || user.ckey) var/mob/living/something = user - to_chat(something, "You feel a stabbing pain in the back of your head for a moment.") + to_chat(something, span_boldnotice("You feel a stabbing pain in the back of your head for a moment.")) something.apply_damage(5,BRUTE,BODY_ZONE_HEAD,FALSE,FALSE,FALSE) //notably: no damage resist (it's in your helmet), no damage spread (it's in your helmet) playsound(src, 'sound/machines/buzz-sigh.ogg', 30, TRUE) return @@ -43,7 +43,7 @@ say("ERROR: Central Command has temporarily outlawed monkey sentience helmets in this sector. NEAREST LAWFUL SECTOR: 2.537 million light years away.") return magnification = user //this polls ghosts - visible_message("[src] powers up!") + visible_message(span_warning("[src] powers up!")) playsound(src, 'sound/machines/ping.ogg', 30, TRUE) RegisterSignal(magnification, COMSIG_SPECIES_LOSS, .proc/make_fall_off) INVOKE_ASYNC(src, /obj/item/clothing/head/helmet/monkey_sentience.proc/connect, user) @@ -57,14 +57,14 @@ if(!candidates.len) UnregisterSignal(magnification, COMSIG_SPECIES_LOSS) magnification = null - visible_message("[src] falls silent and drops on the floor. Maybe you should try again later?") + visible_message(span_notice("[src] falls silent and drops on the floor. Maybe you should try again later?")) playsound(src, 'sound/machines/buzz-sigh.ogg', 30, TRUE) user.dropItemToGround(src) return var/mob/picked = pick(candidates) magnification.key = picked.key playsound(src, 'sound/machines/microwave/microwave-end.ogg', 100, FALSE) - to_chat(magnification, "You're a mind magnified monkey! Protect your helmet with your life- if you lose it, your sentience goes with it!") + to_chat(magnification, span_notice("You're a mind magnified monkey! Protect your helmet with your life- if you lose it, your sentience goes with it!")) var/policy = get_policy(ROLE_MONKEY_HELMET) if(policy) to_chat(magnification, policy) @@ -86,7 +86,7 @@ ADD_TRAIT(magnification, TRAIT_PRIMITIVE, SPECIES_TRAIT) //We removed it, now that they're back to being dumb, add the trait again. if(!polling)//put on a viable head, but taken off after polling finished. if(magnification.client) - to_chat(magnification, "You feel your flicker of sentience ripped away from you, as everything becomes dim...") + to_chat(magnification, span_userdanger("You feel your flicker of sentience ripped away from you, as everything becomes dim...")) magnification.ghostize(FALSE) if(prob(10)) switch(rand(1,4)) @@ -107,5 +107,5 @@ /obj/item/clothing/head/helmet/monkey_sentience/proc/make_fall_off() SIGNAL_HANDLER if(magnification) - visible_message("[src] falls off of [magnification]'s head as it changes shape!") + visible_message(span_warning("[src] falls off of [magnification]'s head as it changes shape!")) magnification.dropItemToGround(src) diff --git a/modular_skyrat/master_files/code/modules/mob/living/simple_animal/friendly/dogs.dm b/modular_skyrat/master_files/code/modules/mob/living/simple_animal/friendly/dogs.dm index 4538b324c64..8cd1189039d 100644 --- a/modular_skyrat/master_files/code/modules/mob/living/simple_animal/friendly/dogs.dm +++ b/modular_skyrat/master_files/code/modules/mob/living/simple_animal/friendly/dogs.dm @@ -162,11 +162,11 @@ /mob/living/simple_animal/pet/dog/corgi/borgi/emag_act(user as mob) if(!emagged) emagged = 1 - visible_message(span_warning("[user] swipes a card through [src]."),span_notice("You overload [src]s internal reactor.")) + visible_message(span_warning("[user] swipes a card through [src]."), span_notice("You overload [src]s internal reactor.")) addtimer(CALLBACK(src, .proc/explode), 60 SECONDS) /mob/living/simple_animal/pet/dog/corgi/borgi/proc/explode() - visible_message(span_warning("[src] makes an odd whining noise.")) + visible_message(span_warning("[src] makes an odd whining noise.")) explosion(get_turf(src), 0, 1, 6, 9, 2, TRUE) death() diff --git a/modular_skyrat/master_files/code/modules/mob/living/simple_animal/simple_animal.dm b/modular_skyrat/master_files/code/modules/mob/living/simple_animal/simple_animal.dm index 4544db457d4..d773d1c5ef5 100644 --- a/modular_skyrat/master_files/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/modular_skyrat/master_files/code/modules/mob/living/simple_animal/simple_animal.dm @@ -28,7 +28,7 @@ if(!query || query == "No" || !src || QDELETED(src)) return if(key) - to_chat(user, "Someone else already took this mob!") + to_chat(user, span_warning("Someone else already took this mob!")) return key = user.key var/string_to_send = CONFIG_GET(string/pc_mob_text) diff --git a/modular_skyrat/master_files/code/modules/projectiles/guns/ballistic/automatic.dm b/modular_skyrat/master_files/code/modules/projectiles/guns/ballistic/automatic.dm index 5b33dbb4496..b47b0135a53 100644 --- a/modular_skyrat/master_files/code/modules/projectiles/guns/ballistic/automatic.dm +++ b/modular_skyrat/master_files/code/modules/projectiles/guns/ballistic/automatic.dm @@ -211,7 +211,7 @@ . = ..() . += "alt + click to [cover_open ? "close" : "open"] the dust cover." if(cover_open && magazine) - . += "It seems like you could use an empty hand to remove the magazine." + . += span_notice("It seems like you could use an empty hand to remove the magazine.") /obj/item/gun/ballistic/automatic/l6_saw/AltClick(mob/user) @@ -219,7 +219,7 @@ if(!user.canUseTopic(src)) return 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.")) playsound(src, 'sound/weapons/gun/l6/l6_door.ogg', 60, TRUE) update_appearance() @@ -234,7 +234,7 @@ /obj/item/gun/ballistic/automatic/l6_saw/afterattack(atom/target as mob|obj|turf, mob/living/user as mob|obj, flag, params) 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 else . = ..() @@ -246,13 +246,13 @@ ..() return if (!cover_open) - to_chat(user, "[src]'s cover is closed! Open it before trying to remove the magazine!") + to_chat(user, span_warning("[src]'s cover is closed! Open it before trying to remove the magazine!")) return ..() /obj/item/gun/ballistic/automatic/l6_saw/attackby(obj/item/A, mob/user, params) if(!cover_open && istype(A, mag_type)) - to_chat(user, "[src]'s dust cover prevents a magazine from being fit.") + to_chat(user, span_warning("[src]'s dust cover prevents a magazine from being fit.")) return ..() diff --git a/modular_skyrat/master_files/code/modules/projectiles/guns/gun.dm b/modular_skyrat/master_files/code/modules/projectiles/guns/gun.dm index fff2ea81409..3d58f67700c 100644 --- a/modular_skyrat/master_files/code/modules/projectiles/guns/gun.dm +++ b/modular_skyrat/master_files/code/modules/projectiles/guns/gun.dm @@ -191,14 +191,14 @@ if(gun_light) . += "It has \a [gun_light] [can_flashlight ? "" : "permanently "]mounted on it." if(can_flashlight) //if it has a light and this is false, the light is permanent. - . += "[gun_light] looks like it can be unscrewed from [src]." + . += span_info("[gun_light] looks like it can be unscrewed from [src].") else if(can_flashlight) . += "It has a mounting point for a seclite." if(bayonet) . += "It has \a [bayonet] [can_bayonet ? "" : "permanently "]affixed to it." if(can_bayonet) //if it has a bayonet and this is false, the bayonet is permanent. - . += "[bayonet] looks like it can be unscrewed from [src]." + . += span_info("[bayonet] looks like it can be unscrewed from [src].") if(can_bayonet) . += "It has a bayonet lug on it." if(has_gun_safety) @@ -215,7 +215,7 @@ var/max_mode = fire_select_modes.len if(max_mode <= 1) - to_chat(user, "[src] is not capable of switching firemodes!") + to_chat(user, span_warning("[src] is not capable of switching firemodes!")) return fire_select_index = 1 + fire_select_index % max_mode //Magic math to cycle through this shit! @@ -227,16 +227,16 @@ burst_size = 1 fire_delay = 0 SEND_SIGNAL(src, COMSIG_GUN_AUTOFIRE_DESELECTED, user) - to_chat(user, "You switch [src] to semi-automatic.") + to_chat(user, span_notice("You switch [src] to semi-automatic.")) if(SELECT_BURST_SHOT) burst_size = initial(burst_size) fire_delay = initial(fire_delay) SEND_SIGNAL(src, COMSIG_GUN_AUTOFIRE_DESELECTED, user) - to_chat(user, "You switch [src] to [burst_size]-round burst.") + to_chat(user, span_notice("You switch [src] to [burst_size]-round burst.")) if(SELECT_FULLY_AUTOMATIC) burst_size = 1 SEND_SIGNAL(src, COMSIG_GUN_AUTOFIRE_SELECTED, user) - to_chat(user, "You switch [src] to automatic.") + to_chat(user, span_notice("You switch [src] to automatic.")) playsound(user, 'sound/weapons/empty.ogg', 100, TRUE) update_appearance() @@ -260,7 +260,7 @@ return TRUE /obj/item/gun/proc/shoot_with_empty_chamber(mob/living/user as mob|obj) - to_chat(user, "*click*") + to_chat(user, span_danger("*click*")) playsound(src, dry_fire_sound, 30, TRUE) @@ -274,18 +274,18 @@ playsound(user, fire_sound, fire_sound_volume, vary_fire_sound) if(message) if(pointblank) - user.visible_message("[user] fires [src] point blank at [pbtarget]!", \ - "You fire [src] point blank at [pbtarget]!", \ - "You hear a gunshot!", COMBAT_MESSAGE_RANGE, pbtarget) - to_chat(pbtarget, "[user] fires [src] point blank at you!") + user.visible_message(span_danger("[user] fires [src] point blank at [pbtarget]!"), \ + span_danger("You fire [src] point blank at [pbtarget]!"), \ + span_hear("You hear a gunshot!"), COMBAT_MESSAGE_RANGE, pbtarget) + to_chat(pbtarget, span_userdanger("[user] fires [src] point blank at you!")) if(pb_knockback > 0 && ismob(pbtarget)) var/mob/PBT = pbtarget var/atom/throw_target = get_edge_target_turf(PBT, user.dir) PBT.throw_at(throw_target, pb_knockback, 2) else - user.visible_message("[user] fires [src]!", \ - "You fire [src]!", \ - "You hear a gunshot!", COMBAT_MESSAGE_RANGE) + user.visible_message(span_danger("[user] fires [src]!"), \ + span_danger("You fire [src]!"), \ + span_hear("You hear a gunshot!"), COMBAT_MESSAGE_RANGE) if(user.resting) // SKYRAT EDIT ADD - no crawlshooting user.Immobilize(20, TRUE) // SKYRAT EDIT END @@ -297,10 +297,10 @@ /obj/item/gun/attack_secondary(mob/living/victim, mob/living/user, params) if(user.GetComponent(/datum/component/gunpoint)) - to_chat(user, "You are already holding someone up!") + to_chat(user, span_warning("You are already holding someone up!")) return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN if(user == victim) - to_chat(user,"You can't hold yourself up!") + to_chat(user,span_warning("You can't hold yourself up!")) return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN user.AddComponent(/datum/component/gunpoint, victim, src) @@ -347,7 +347,7 @@ var/obj/item/bodypart/other_hand = user.has_hand_for_held_index(user.get_inactive_hand_index()) //returns non-disabled inactive hands if(weapon_weight == WEAPON_HEAVY && (user.get_inactive_held_item() || !other_hand)) - to_chat(user, "You need two hands to fire [src]!") + to_chat(user, span_warning("You need two hands to fire [src]!")) return //DUAL (or more!) WIELDING var/bonus_spread = 0 @@ -368,7 +368,7 @@ if(clumsy_check) if(istype(user)) if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(40)) - to_chat(user, "You shoot yourself in the foot with [src]!") + to_chat(user, span_userdanger("You shoot yourself in the foot with [src]!")) var/shot_leg = pick(BODY_ZONE_L_LEG, BODY_ZONE_R_LEG) process_fire(user, user, FALSE, params, shot_leg) SEND_SIGNAL(user, COMSIG_MOB_CLUMSY_SHOOT_FOOT) @@ -380,7 +380,7 @@ if(!handle_pins(user)) return FALSE if(has_gun_safety && safety) - to_chat(user, "The safety is on!") + to_chat(user, span_warning("The safety is on!")) return FALSE /obj/item/gun/proc/toggle_safety(mob/user, override) @@ -396,8 +396,8 @@ tsafety.button_icon_state = "safety_[safety ? "on" : "off"]" tsafety.UpdateButtonIcon() playsound(src, 'sound/weapons/empty.ogg', 100, TRUE) - user.visible_message("[user] toggles [src]'s safety [safety ? "ON" : "OFF"].", - "You toggle [src]'s safety [safety ? "ON" : "OFF"].") + user.visible_message(span_notice("[user] toggles [src]'s safety [safety ? "ON" : "OFF"]."), + span_notice("You toggle [src]'s safety [safety ? "ON" : "OFF"].")) SEND_SIGNAL(src, COMSIG_UPDATE_AMMO_HUD) /obj/item/gun/proc/handle_pins(mob/living/user) @@ -410,7 +410,7 @@ pin.auth_fail(user) return FALSE else - to_chat(user, "[src]'s trigger is locked. This weapon doesn't have a firing pin installed!") + to_chat(user, span_warning("[src]'s trigger is locked. This weapon doesn't have a firing pin installed!")) return FALSE /obj/item/gun/proc/recharge_newshot() @@ -427,7 +427,7 @@ if(chambered?.loaded_projectile) if(HAS_TRAIT(user, TRAIT_PACIFISM)) // If the user has the pacifist trait, then they won't be able to fire [src] if the round chambered inside of [src] is lethal. if(chambered.harmful) // Is the bullet chambered harmful? - to_chat(user, "[src] is lethally chambered! You don't want to risk harming anyone...") + to_chat(user, span_warning("[src] is lethally chambered! You don't want to risk harming anyone...")) return if(randomspread) sprd = round((rand(0, 1) - 0.5) * DUALWIELD_PENALTY_EXTRA_MULTIPLIER * (randomized_gun_spread + randomized_bonus_spread)) @@ -486,7 +486,7 @@ if(chambered) if(HAS_TRAIT(user, TRAIT_PACIFISM)) // If the user has the pacifist trait, then they won't be able to fire [src] if the round chambered inside of [src] is lethal. if(chambered.harmful) // Is the bullet chambered harmful? - to_chat(user, "[src] is lethally chambered! You don't want to risk harming anyone...") + to_chat(user, span_warning("[src] is lethally chambered! You don't want to risk harming anyone...")) return sprd = round((rand(0, 1) - 0.5) * DUALWIELD_PENALTY_EXTRA_MULTIPLIER * (randomized_gun_spread + randomized_bonus_spread)) before_firing(target,user) @@ -543,7 +543,7 @@ if(!gun_light) if(!user.transferItemToLoc(I, src)) return - to_chat(user, "You click [S] into place on [src].") + to_chat(user, span_notice("You click [S] into place on [src].")) set_gun_light(S) update_gunlight() alight = new(src) @@ -555,7 +555,7 @@ return ..() if(!user.transferItemToLoc(I, src)) return - to_chat(user, "You attach [K] to [src]'s bayonet lug.") + to_chat(user, span_notice("You attach [K] to [src]'s bayonet lug.")) bayonet = K update_appearance() @@ -582,13 +582,13 @@ return remove_gun_attachment(user, I, bayonet, "unfix") else if(pin && user.is_holding(src)) - user.visible_message("[user] attempts to remove [pin] from [src] with [I].", - "You attempt to remove [pin] from [src]. (It will take [DisplayTimeText(FIRING_PIN_REMOVAL_DELAY)].)", null, 3) + user.visible_message(span_warning("[user] attempts to remove [pin] from [src] with [I]."), + span_notice("You attempt to remove [pin] from [src]. (It will take [DisplayTimeText(FIRING_PIN_REMOVAL_DELAY)].)"), null, 3) if(I.use_tool(src, user, FIRING_PIN_REMOVAL_DELAY, volume = 50)) if(!pin) //check to see if the pin is still there, or we can spam messages by clicking multiple times during the tool delay return - user.visible_message("[pin] is pried out of [src] by [user], destroying the pin in the process.", - "You pry [pin] out with [I], destroying the pin in the process.", null, 3) + user.visible_message(span_notice("[pin] is pried out of [src] by [user], destroying the pin in the process."), + span_warning("You pry [pin] out with [I], destroying the pin in the process."), null, 3) QDEL_NULL(pin) return TRUE @@ -599,13 +599,13 @@ if(!user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) return if(pin && user.is_holding(src)) - user.visible_message("[user] attempts to remove [pin] from [src] with [I].", - "You attempt to remove [pin] from [src]. (It will take [DisplayTimeText(FIRING_PIN_REMOVAL_DELAY)].)", null, 3) + user.visible_message(span_warning("[user] attempts to remove [pin] from [src] with [I]."), + span_notice("You attempt to remove [pin] from [src]. (It will take [DisplayTimeText(FIRING_PIN_REMOVAL_DELAY)].)"), null, 3) if(I.use_tool(src, user, FIRING_PIN_REMOVAL_DELAY, 5, volume = 50)) if(!pin) //check to see if the pin is still there, or we can spam messages by clicking multiple times during the tool delay return - user.visible_message("[pin] is spliced out of [src] by [user], melting part of the pin in the process.", - "You splice [pin] out of [src] with [I], melting part of the pin in the process.", null, 3) + user.visible_message(span_notice("[pin] is spliced out of [src] by [user], melting part of the pin in the process."), + span_warning("You splice [pin] out of [src] with [I], melting part of the pin in the process."), null, 3) QDEL_NULL(pin) return TRUE @@ -616,20 +616,20 @@ if(!user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) return if(pin && user.is_holding(src)) - user.visible_message("[user] attempts to remove [pin] from [src] with [I].", - "You attempt to remove [pin] from [src]. (It will take [DisplayTimeText(FIRING_PIN_REMOVAL_DELAY)].)", null, 3) + user.visible_message(span_warning("[user] attempts to remove [pin] from [src] with [I]."), + span_notice("You attempt to remove [pin] from [src]. (It will take [DisplayTimeText(FIRING_PIN_REMOVAL_DELAY)].)"), null, 3) if(I.use_tool(src, user, FIRING_PIN_REMOVAL_DELAY, volume = 50)) if(!pin) //check to see if the pin is still there, or we can spam messages by clicking multiple times during the tool delay return - user.visible_message("[pin] is ripped out of [src] by [user], mangling the pin in the process.", - "You rip [pin] out of [src] with [I], mangling the pin in the process.", null, 3) + user.visible_message(span_notice("[pin] is ripped out of [src] by [user], mangling the pin in the process."), + span_warning("You rip [pin] out of [src] with [I], mangling the pin in the process."), null, 3) QDEL_NULL(pin) return TRUE /obj/item/gun/proc/remove_gun_attachment(mob/living/user, obj/item/tool_item, obj/item/item_to_remove, removal_verb) if(tool_item) tool_item.play_tool_sound(src) - to_chat(user, "You [removal_verb ? removal_verb : "remove"] [item_to_remove] from [src].") + to_chat(user, span_notice("You [removal_verb ? removal_verb : "remove"] [item_to_remove] from [src].")) item_to_remove.forceMove(drop_location()) if(Adjacent(user) && !issilicon(user)) @@ -699,7 +699,7 @@ var/mob/living/carbon/human/user = usr gun_light.on = !gun_light.on gun_light.update_brightness() - to_chat(user, "You toggle the gunlight [gun_light.on ? "on":"off"].") + to_chat(user, span_notice("You toggle the gunlight [gun_light.on ? "on":"off"].")) playsound(user, 'sound/weapons/empty.ogg', 100, TRUE) update_gunlight() @@ -713,8 +713,8 @@ if(azoom) azoom.Grant(user) if(w_class > WEIGHT_CLASS_SMALL && !suppressed) - user.visible_message("[user] grabs [src]!", - "You grab [src]!") + user.visible_message(span_warning("[user] grabs [src]!"), + span_warning("You grab [src]!")) /obj/item/gun/dropped(mob/user) . = ..() @@ -754,26 +754,26 @@ return if(user == target) - target.visible_message("[user] sticks [src] in [user.p_their()] mouth, ready to pull the trigger...", \ - "You stick [src] in your mouth, ready to pull the trigger...") + target.visible_message(span_warning("[user] sticks [src] in [user.p_their()] mouth, ready to pull the trigger..."), \ + span_userdanger("You stick [src] in your mouth, ready to pull the trigger...")) else - target.visible_message("[user] points [src] at [target]'s head, ready to pull the trigger...", \ - "[user] points [src] at your head, ready to pull the trigger...") + target.visible_message(span_warning("[user] points [src] at [target]'s head, ready to pull the trigger..."), \ + span_userdanger("[user] points [src] at your head, ready to pull the trigger...")) semicd = TRUE if(!bypass_timer && (!do_mob(user, target, 120) || user.zone_selected != BODY_ZONE_PRECISE_MOUTH)) if(user) if(user == target) - user.visible_message("[user] decided not to shoot.") + user.visible_message(span_notice("[user] decided not to shoot.")) else if(target?.Adjacent(user)) - target.visible_message("[user] has decided to spare [target]", "[user] has decided to spare your life!") + target.visible_message(span_notice("[user] has decided to spare [target]"), span_notice("[user] has decided to spare your life!")) semicd = FALSE return semicd = FALSE - target.visible_message("[user] pulls the trigger!", "[(user == target) ? "You pull" : "[user] pulls"] the trigger!") + target.visible_message(span_warning("[user] pulls the trigger!"), span_userdanger("[(user == target) ? "You pull" : "[user] pulls"] the trigger!")) if(chambered?.loaded_projectile) chambered.loaded_projectile.damage *= 5 diff --git a/modular_skyrat/master_files/code/modules/reagents/withdrawal/generic_addictions.dm b/modular_skyrat/master_files/code/modules/reagents/withdrawal/generic_addictions.dm index 73df07de92b..4d64cf26e28 100644 --- a/modular_skyrat/master_files/code/modules/reagents/withdrawal/generic_addictions.dm +++ b/modular_skyrat/master_files/code/modules/reagents/withdrawal/generic_addictions.dm @@ -14,14 +14,14 @@ if(3 to 5) affected_carbon.emote("cough") if(5 to 7) - to_chat(affected_carbon, "Your head hurts.") + to_chat(affected_carbon, span_warning("Your head hurts.")) affected_carbon.adjustStaminaLoss(4*strength) if(8) if(strength>=2) - to_chat(affected_carbon, "You feel a little dizzy.") + to_chat(affected_carbon, span_warning("You feel a little dizzy.")) affected_carbon.Dizzy(3*strength) if(8 to 10) - to_chat(affected_carbon, "You feel tired.") + to_chat(affected_carbon, span_warning("You feel tired.")) affected_carbon.adjustStaminaLoss(6*strength) /datum/addiction/nicotine/withdrawal_enters_stage_1(mob/living/carbon/affected_carbon, delta_time) diff --git a/modular_skyrat/master_files/code/modules/spells/wizard.dm b/modular_skyrat/master_files/code/modules/spells/wizard.dm index 2b7df5acf98..acdbcf90460 100644 --- a/modular_skyrat/master_files/code/modules/spells/wizard.dm +++ b/modular_skyrat/master_files/code/modules/spells/wizard.dm @@ -20,7 +20,7 @@ /obj/effect/proc_holder/spell/targeted/stimpack/cast(mob/living/user) ..() - to_chat(user, "Time appears to slow as your bodily functions rapidly speed up.") + to_chat(user, span_notice("Time appears to slow as your bodily functions rapidly speed up.")) user.SetKnockdown(0) user.setStaminaLoss(0) user.set_resting(FALSE) diff --git a/modular_skyrat/modules/3516/code/3516.dm b/modular_skyrat/modules/3516/code/3516.dm index dd2e8225bbe..8910fb27d09 100644 --- a/modular_skyrat/modules/3516/code/3516.dm +++ b/modular_skyrat/modules/3516/code/3516.dm @@ -35,18 +35,18 @@ var/mob/living/carbon/human/H = user var/obj/item/bodypart/selected_hand = H.get_active_hand() if(selected_hand.status != BODYPART_ROBOTIC) - to_chat(user, "You can't seem to figure out how to use [src], perhaps you need to check the manual?") + to_chat(user, span_warning("You can't seem to figure out how to use [src], perhaps you need to check the manual?")) return . = ..() /obj/item/gun/ballistic/automatic/pistol/j3516/insert_magazine(mob/user, obj/item/ammo_box/magazine/AM, display_message) if(!istype(AM, mag_type)) - to_chat(user, "\The [AM] doesn't seem to fit into \the [src]...") + to_chat(user, span_warning("\The [AM] doesn't seem to fit into \the [src]...")) return FALSE if(user.transferItemToLoc(AM, src)) magazine = AM if (display_message) - to_chat(user, "You load a new [magazine_wording] into \the [src].") + to_chat(user, span_notice("You load a new [magazine_wording] into \the [src].")) playsound(src, load_empty_sound, load_sound_volume, load_sound_vary) if (bolt_type == BOLT_TYPE_OPEN && !bolt_locked) chamber_round(TRUE) @@ -57,7 +57,7 @@ animate(transform = null, time = 2) return TRUE else - to_chat(user, "You cannot seem to get \the [src] out of your hands!") + to_chat(user, span_warning("You cannot seem to get \the [src] out of your hands!")) return FALSE @@ -73,16 +73,16 @@ var/obj/item/ammo_box/magazine/old_mag = magazine if (tac_load) if (insert_magazine(user, tac_load, FALSE)) - to_chat(user, "You perform an elite tactical reload on \the [src].") + to_chat(user, span_notice("You perform an elite tactical reload on \the [src].")) else - to_chat(user, "You dropped the old [magazine_wording], but the new one doesn't fit. How embarassing.") + to_chat(user, span_warning("You dropped the old [magazine_wording], but the new one doesn't fit. How embarassing.")) magazine = null else magazine = null user.put_in_hands(old_mag) old_mag.update_appearance() if (display_message) - to_chat(user, "You pull the [magazine_wording] out of \the [src].") + to_chat(user, span_notice("You pull the [magazine_wording] out of \the [src].")) update_appearance() animate(src, transform = turn(matrix(), 120), time = 2, loop = 1) //Le johnny robohand again animate(transform = turn(matrix(), 240), time = 2) diff --git a/modular_skyrat/modules/3516/code/bodypart_autosurgeon.dm b/modular_skyrat/modules/3516/code/bodypart_autosurgeon.dm index 217c7e0a70c..c880a879ede 100644 --- a/modular_skyrat/modules/3516/code/bodypart_autosurgeon.dm +++ b/modular_skyrat/modules/3516/code/bodypart_autosurgeon.dm @@ -20,10 +20,10 @@ /obj/item/autosurgeon/bodypart/attack_self(mob/user)//when the object it used... if(!uses) - to_chat(user, "[src] has already been used. The tools are dull and won't reactivate.") + to_chat(user, span_alert("[src] has already been used. The tools are dull and won't reactivate.")) return if(!storedbodypart) - to_chat(user, "[src] currently has no implant stored.") + to_chat(user, span_alert("[src] currently has no implant stored.")) return if(!ishuman(user)) return @@ -33,13 +33,13 @@ var/obj/item/bodypart/oldBP = H.get_bodypart(storedbodypart.body_zone) if(oldBP) - to_chat(H, "The [src] removes your [oldBP.name]!") + to_chat(H, span_warning("The [src] removes your [oldBP.name]!")) oldBP.dismember() - user.visible_message("[H] presses a button on [src], and you hear a short mechanical noise.", "You feel a sharp sting as [src] plunges into your body.") + user.visible_message(span_notice("[H] presses a button on [src], and you hear a short mechanical noise."), span_notice("You feel a sharp sting as [src] plunges into your body.")) if(!storedbodypart.attach_limb(H)) - to_chat(H, "The [src] fails to attach [storedbodypart]!") + to_chat(H, span_warning("The [src] fails to attach [storedbodypart]!")) return playsound(get_turf(H), 'sound/weapons/circsawhit.ogg', 50, TRUE) @@ -53,15 +53,15 @@ /obj/item/autosurgeon/bodypart/attackby(obj/item/I, mob/user, params) if(istype(I, bodypart_type)) if(storedbodypart) - to_chat(user, "[src] already has an implant stored.") + to_chat(user, span_alert("[src] already has an implant stored.")) return else if(!uses) - to_chat(user, "[src] has already been used up.") + to_chat(user, span_alert("[src] has already been used up.")) return if(!user.transferItemToLoc(I, src)) return storedbodypart = I - to_chat(user, "You insert the [I] into [src].") + to_chat(user, span_notice("You insert the [I] into [src].")) else return ..() @@ -69,14 +69,14 @@ if(..()) return TRUE if(!storedbodypart) - to_chat(user, "There's no implant in [src] for you to remove!") + to_chat(user, span_warning("There's no implant in [src] for you to remove!")) else var/atom/drop_loc = user.drop_location() for(var/J in src) var/atom/movable/AM = J AM.forceMove(drop_loc) - to_chat(user, "You remove the [storedbodypart] from [src].") + to_chat(user, span_notice("You remove the [storedbodypart] from [src].")) I.play_tool_sound(src) storedbodypart = null if(uses != INFINITE) diff --git a/modular_skyrat/modules/ERT_Factions/FTU/code/items.dm b/modular_skyrat/modules/ERT_Factions/FTU/code/items.dm index f2a4daaff99..7eb3936c8e5 100644 --- a/modular_skyrat/modules/ERT_Factions/FTU/code/items.dm +++ b/modular_skyrat/modules/ERT_Factions/FTU/code/items.dm @@ -28,7 +28,7 @@ /obj/item/melee/energy/sword/ignis/transform_messages(mob/living/user, supress_message_text) playsound(user, 'modular_skyrat/modules/ERT_Factions/FTU/sound/ignis_toggle.ogg', 35, TRUE) //changed it from 50% volume to 35% because deafness if(!supress_message_text) - to_chat(user, "[src] [active ? "is now active":"can now be concealed"].") + to_chat(user, span_notice("[src] [active ? "is now active":"can now be concealed"].")) */ ///////40x32 R37 PULSE RIFLE diff --git a/modular_skyrat/modules/QOL/code/_under.dm b/modular_skyrat/modules/QOL/code/_under.dm index 476838e9b71..13b1d5a2071 100644 --- a/modular_skyrat/modules/QOL/code/_under.dm +++ b/modular_skyrat/modules/QOL/code/_under.dm @@ -2,4 +2,4 @@ . = ..() if(has_sensor == HAS_SENSORS) sensor_mode = SENSOR_COORDS - to_chat(usr, "Your suit will now report your exact vital lifesigns as well as your coordinate position.") + to_chat(usr, span_notice("Your suit will now report your exact vital lifesigns as well as your coordinate position.")) diff --git a/modular_skyrat/modules/admin/code/adminhelp.dm b/modular_skyrat/modules/admin/code/adminhelp.dm index 2f1c4f882a5..4531bf3f630 100644 --- a/modular_skyrat/modules/admin/code/adminhelp.dm +++ b/modular_skyrat/modules/admin/code/adminhelp.dm @@ -20,9 +20,9 @@ last_AH = pop(prev_tickets) last_AH.PlayerTicketPanel() return - + // client had no tickets this round - to_chat(src, "You have not had an ahelp ticket this round.") + to_chat(src, span_warning("You have not had an ahelp ticket this round.")) return current_ticket.PlayerTicketPanel() diff --git a/modular_skyrat/modules/admin/code/aooc.dm b/modular_skyrat/modules/admin/code/aooc.dm index 0de764331d3..fbdc3637ec6 100644 --- a/modular_skyrat/modules/admin/code/aooc.dm +++ b/modular_skyrat/modules/admin/code/aooc.dm @@ -10,7 +10,7 @@ GLOBAL_LIST_EMPTY(ckey_to_aooc_name) set category = "OOC" if(GLOB.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) @@ -18,16 +18,16 @@ GLOBAL_LIST_EMPTY(ckey_to_aooc_name) if(!holder) if(!mob.mind || !length(mob.mind.antag_datums)) - to_chat(src, "You're not an antagonist!") + to_chat(src, span_danger("You're not an antagonist!")) return if(!GLOB.aooc_allowed) - to_chat(src, "AOOC is globally muted.") + to_chat(src, span_danger("AOOC is globally muted.")) return if(prefs.muted & MUTE_OOC) - to_chat(src, "You cannot use OOC (muted).") + to_chat(src, span_danger("You cannot use OOC (muted).")) return if(is_banned_from(ckey, "OOC")) - to_chat(src, "You have been banned from OOC.") + to_chat(src, span_danger("You have been banned from OOC.")) return if(QDELETED(src)) return @@ -41,7 +41,7 @@ GLOBAL_LIST_EMPTY(ckey_to_aooc_name) msg = emoji_parse(msg) if(!(prefs.chat_toggles & CHAT_OOC)) - to_chat(src, "You have OOC muted.") + to_chat(src, span_danger("You have OOC muted.")) return mob.log_talk(raw_msg, LOG_OOC, tag="AOOC") @@ -75,7 +75,7 @@ GLOBAL_LIST_EMPTY(ckey_to_aooc_name) var/mode = listeners[c] var/color = (!anon && CONFIG_GET(flag/allow_admin_ooccolor) && C.prefs?.read_preference(/datum/preference/color/ooc_color)) ? C.prefs?.read_preference(/datum/preference/color/ooc_color) : GLOB.AOOC_COLOR var/name = (mode == AOOC_LISTEN_ADMIN && anon) ? "([key])[keyname]" : keyname - to_chat(C, "AOOC: [name]: [msg]") + to_chat(C, span_oocplain("AOOC: [name]: [msg]")) #undef AOOC_LISTEN_PLAYER #undef AOOC_LISTEN_ADMIN @@ -101,7 +101,7 @@ GLOBAL_LIST_EMPTY(ckey_to_aooc_name) listeners[M.client] = TRUE for(var/c in listeners) var/client/C = c - to_chat(C, "The AOOC channel has been globally [GLOB.aooc_allowed ? "enabled" : "disabled"].") + to_chat(C, span_oocplain("The AOOC channel has been globally [GLOB.aooc_allowed ? "enabled" : "disabled"].")) /datum/admins/proc/toggleaooc() set category = "Server" diff --git a/modular_skyrat/modules/admin/code/loud_say.dm b/modular_skyrat/modules/admin/code/loud_say.dm index 1746533903f..1f8a3d56c88 100644 --- a/modular_skyrat/modules/admin/code/loud_say.dm +++ b/modular_skyrat/modules/admin/code/loud_say.dm @@ -14,7 +14,7 @@ msg = keywords_lookup(msg) var/custom_asay_color = (CONFIG_GET(flag/allow_admin_asaycolor) && prefs?.read_preference(/datum/preference/color/asay_color)) ? "" : "" - msg = " ADMIN: [key_name(usr, 1)] [ADMIN_FLW(mob)]: [custom_asay_color][msg][custom_asay_color ? "":null]" + msg = span_command_headset("ADMIN: [key_name(usr, 1)] [ADMIN_FLW(mob)]: [custom_asay_color][msg][custom_asay_color ? "":null]") to_chat(GLOB.admins, type = MESSAGE_TYPE_ADMINCHAT, html = msg, diff --git a/modular_skyrat/modules/admin/code/sooc.dm b/modular_skyrat/modules/admin/code/sooc.dm index 39f259abbef..2f502bc0b58 100644 --- a/modular_skyrat/modules/admin/code/sooc.dm +++ b/modular_skyrat/modules/admin/code/sooc.dm @@ -10,7 +10,7 @@ GLOBAL_LIST_EMPTY(ckey_to_sooc_name) set category = "OOC" if(GLOB.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) @@ -20,16 +20,16 @@ GLOBAL_LIST_EMPTY(ckey_to_sooc_name) if(!holder) var/job = mob?.mind.assigned_role.title if(!job || !job_lookup[job]) - to_chat(src, "You're not a security role!") + to_chat(src, span_danger("You're not a security role!")) return if(!GLOB.sooc_allowed) - to_chat(src, "SOOC is globally muted.") + to_chat(src, span_danger("SOOC is globally muted.")) return if(prefs.muted & MUTE_OOC) - to_chat(src, "You cannot use OOC (muted).") + to_chat(src, span_danger("You cannot use OOC (muted).")) return if(is_banned_from(ckey, "OOC")) - to_chat(src, "You have been banned from OOC.") + to_chat(src, span_danger("You have been banned from OOC.")) return if(QDELETED(src)) return @@ -43,7 +43,7 @@ GLOBAL_LIST_EMPTY(ckey_to_sooc_name) msg = emoji_parse(msg) if(!(prefs.chat_toggles & CHAT_OOC)) - to_chat(src, "You have OOC muted.") + to_chat(src, span_danger("You have OOC muted.")) return mob.log_talk(raw_msg, LOG_OOC, tag="SOOC") @@ -76,7 +76,7 @@ GLOBAL_LIST_EMPTY(ckey_to_sooc_name) var/mode = listeners[c] var/color = (!anon && CONFIG_GET(flag/allow_admin_ooccolor) && C.prefs?.read_preference(/datum/preference/color/ooc_color)) ? C.prefs?.read_preference(/datum/preference/color/ooc_color) : GLOB.SOOC_COLOR var/name = (mode == SOOC_LISTEN_ADMIN && anon) ? "([key])[keyname]" : keyname - to_chat(C, "SOOC: [name]: [msg]") + to_chat(C, span_oocplain("SOOC: [name]: [msg]")) #undef SOOC_LISTEN_PLAYER #undef SOOC_LISTEN_ADMIN @@ -102,7 +102,7 @@ GLOBAL_LIST_EMPTY(ckey_to_sooc_name) listeners[M.client] = TRUE for(var/c in listeners) var/client/C = c - to_chat(C, "The SOOC channel has been globally [GLOB.sooc_allowed ? "enabled" : "disabled"].") + to_chat(C, span_oocplain("The SOOC channel has been globally [GLOB.sooc_allowed ? "enabled" : "disabled"].")) /datum/admins/proc/togglesooc() set category = "Server" diff --git a/modular_skyrat/modules/aesthetics/guns/code/guns.dm b/modular_skyrat/modules/aesthetics/guns/code/guns.dm index c929697bd7d..406b66d817a 100644 --- a/modular_skyrat/modules/aesthetics/guns/code/guns.dm +++ b/modular_skyrat/modules/aesthetics/guns/code/guns.dm @@ -146,7 +146,7 @@ /obj/item/gun/energy/e_gun/nuclear/emag_act(mob/user, obj/item/card/emag/E) . = ..() if(pin) - to_chat(user, "You probably want to do this on a new gun!") + to_chat(user, span_warning("You probably want to do this on a new gun!")) return FALSE to_chat(user, "The gun suddenly feels quite fantastic!") new /obj/item/gun/energy/e_gun/nuclear/rainbow(get_turf(user)) @@ -293,13 +293,13 @@ name = "\improper Type-69 Surplus Rifle" desc = "One of countless obsolete ballistic rifles that still sees use as a cheap deterrent. Uses 10mm ammo and its bulky frame prevents one-hand firing." icon = 'modular_skyrat/modules/aesthetics/guns/icons/guns.dmi' - + /obj/item/gun/ballistic/automatic/c20r/unrestricted/cmg1 name = "\improper NT CMG-1" desc = "A bullpup three-round burst .45 PDW with an eerily familiar design. It has a foldable stock and a dot sight." icon_state = "cmg1" icon = 'modular_skyrat/modules/aesthetics/guns/icons/guns.dmi' - + /obj/item/gun/ballistic/automatic/ar/modular/model75 name = "\improper NT ARG-75" desc = "A contemporary rifle that just exited its prototype phase and has started production, a rare sight for now. It's equipped with a heavy duty integrally suppressed barrel, 1.4 times scope and a topmounted laser sight." diff --git a/modular_skyrat/modules/alerts/code/priority_announce.dm b/modular_skyrat/modules/alerts/code/priority_announce.dm index 610c5ac0313..8395a87bf0b 100644 --- a/modular_skyrat/modules/alerts/code/priority_announce.dm +++ b/modular_skyrat/modules/alerts/code/priority_announce.dm @@ -70,7 +70,7 @@ for(var/mob/M in GLOB.player_list) if(!isnewplayer(M) && M.can_hear()) - to_chat(M, "[title]
[message]

") + to_chat(M, span_minorannounce("[title]
[message]

")) if(sound) if(SSstation.announcer.event_sounds[sound]) diff --git a/modular_skyrat/modules/alt_vox/code/vox_procs.dm b/modular_skyrat/modules/alt_vox/code/vox_procs.dm index 5033fbe1390..8346cbaf8da 100644 --- a/modular_skyrat/modules/alt_vox/code/vox_procs.dm +++ b/modular_skyrat/modules/alt_vox/code/vox_procs.dm @@ -60,7 +60,7 @@ /mob/living/silicon/ai/proc/announcement() var/static/announcing_vox = 0 // Stores the time of the last announcement if(announcing_vox > world.time) - to_chat(src, "Please wait [DisplayTimeText(announcing_vox - world.time)].") + to_chat(src, span_notice("Please wait [DisplayTimeText(announcing_vox - world.time)].")) return var/message = input(src, "WARNING: Misuse of this verb can result in you being job banned. More help is available in 'Announcement Help'", "Announcement", src.last_announcement) as text|null @@ -74,7 +74,7 @@ return if(control_disabled) - to_chat(src, "Wireless interface disabled, unable to interact with announcement PA.") + to_chat(src, span_warning("Wireless interface disabled, unable to interact with announcement PA.")) return var/list/words = splittext(trim(message), " ") @@ -110,7 +110,7 @@ incorrect_words += word if(incorrect_words.len) - to_chat(src, "These words are not available on the announcement system: [english_list(incorrect_words)].") + to_chat(src, span_notice("These words are not available on the announcement system: [english_list(incorrect_words)].")) return announcing_vox = world.time + VOX_DELAY diff --git a/modular_skyrat/modules/altborgs/code/robot.dm b/modular_skyrat/modules/altborgs/code/robot.dm index 326d55b5d02..36782ffa7f8 100644 --- a/modular_skyrat/modules/altborgs/code/robot.dm +++ b/modular_skyrat/modules/altborgs/code/robot.dm @@ -23,7 +23,7 @@ set category = "AI Commands" set desc = "Select your resting pose." if(!is_dogborg()) - to_chat(src, "You can't do that!") + to_chat(src, span_warning("You can't do that!")) return var/choice = tgui_alert(src, "Select resting pose", "", list("Resting", "Sitting", "Belly up")) switch(choice) @@ -41,17 +41,17 @@ set name = "Lay down" set category = "AI Commands" if(!is_dogborg()) - to_chat(src, "You can't do that!") + to_chat(src, span_warning("You can't do that!")) return if(stat != CONSCIOUS) //Make sure we don't enable movement when not concious return if(robot_resting) - to_chat(src, "You are now getting up.") + to_chat(src, span_notice("You are now getting up.")) robot_resting = FALSE mobility_flags = MOBILITY_FLAGS_DEFAULT on_standing_up() else - to_chat(src, "You are now laying down.") + to_chat(src, span_notice("You are now laying down.")) robot_resting = robot_rest_style on_lying_down() update_icons() @@ -82,7 +82,7 @@ return if(wires.is_cut(WIRE_RESET_MODEL)) - to_chat(src,"ERROR: Module installer reply timeout. Please check internal connections.") + to_chat(src,span_userdanger("ERROR: Module installer reply timeout. Please check internal connections.")) return var/list/skyratmodel = list( diff --git a/modular_skyrat/modules/altborgs/code/robot_items.dm b/modular_skyrat/modules/altborgs/code/robot_items.dm index e245627f56f..02f7927945d 100644 --- a/modular_skyrat/modules/altborgs/code/robot_items.dm +++ b/modular_skyrat/modules/altborgs/code/robot_items.dm @@ -15,10 +15,10 @@ var/mob/living/mob = target if(check_zone(borg.zone_selected) == "head") - borg.visible_message("\the [borg] affectionally licks \the [mob]'s face!", "You affectionally lick \the [mob]'s face!") + borg.visible_message(span_warning("\the [borg] affectionally licks \the [mob]'s face!"), span_notice("You affectionally lick \the [mob]'s face!")) playsound(borg, 'sound/effects/attackblob.ogg', 50, 1) else - borg.visible_message("\the [borg] affectionally licks \the [mob]!", "You affectionally lick \the [mob]!") + borg.visible_message(span_warning("\the [borg] affectionally licks \the [mob]!"), span_notice("You affectionally lick \the [mob]!")) playsound(borg, 'sound/effects/attackblob.ogg', 50, 1) /obj/item/dogborg_nose @@ -34,4 +34,4 @@ if(!proximity) return do_attack_animation(target, null, src) - user.visible_message("[user] [pick("nuzzles", "pushes", "boops")] \the [target.name] with their nose!") + user.visible_message(span_notice("[user] [pick("nuzzles", "pushes", "boops")] \the [target.name] with their nose!")) diff --git a/modular_skyrat/modules/ambitions/code/ambition.dm b/modular_skyrat/modules/ambitions/code/ambition.dm index 164acfac26c..d04220bbd86 100644 --- a/modular_skyrat/modules/ambitions/code/ambition.dm +++ b/modular_skyrat/modules/ambitions/code/ambition.dm @@ -35,9 +35,9 @@ else owner_name = my_mind.current.real_name //Greet our antag player and give him a link to open ambitions! - to_chat(my_mind.current, "You're a story driven antagonist, this means you'll have to fill ambitions before you start antagonising!") - to_chat(my_mind.current, "After filling them out you'll get access to your uplink or powers.") - to_chat(my_mind.current, "Click here to set your ambitions, or access them at any time from your IC tab.") + to_chat(my_mind.current, span_boldwarning("You're a story driven antagonist, this means you'll have to fill ambitions before you start antagonising!")) + to_chat(my_mind.current, span_boldwarning("After filling them out you'll get access to your uplink or powers.")) + to_chat(my_mind.current, span_boldwarning("Click here to set your ambitions, or access them at any time from your IC tab.")) /datum/ambitions/proc/ShowPanel(mob/user, admin_view = FALSE) if(!user || !user.client) @@ -271,8 +271,8 @@ return GLOB.ambitions_to_review[src] = usr.ckey log_action("HANDLING") - message_admins("[key_name(usr, FALSE, TRUE)] is handling [owner_name]'s ambitions. (VIEW)") - to_chat(my_mind.current, "[key_name(usr, FALSE, FALSE)] is handling your ambitions.") + message_admins(span_adminhelp("[key_name(usr, FALSE, TRUE)] is handling [owner_name]'s ambitions. (VIEW)")) + to_chat(my_mind.current, span_boldnotice("[key_name(usr, FALSE, FALSE)] is handling your ambitions.")) if("request_changes") cancel_auto_approve() var/changes_wanted = input(usr, "Requested changes:", "Ambitions") as message|null @@ -280,8 +280,8 @@ if(changes_wanted) last_requested_change = changes_wanted log_action("CHANGES REQUESTED: [changes_wanted]") - to_chat(my_mind.current, "[key_name(usr, FALSE, FALSE)] requested changes on your ambitions: [changes_wanted]. (VIEW)") - message_admins("[key_name(usr, FALSE, TRUE)] requested changes in [ADMIN_TPMONTY(my_mind.current)]'s ambitions. (VIEW)") + to_chat(my_mind.current, span_boldwarning("[key_name(usr, FALSE, FALSE)] requested changes on your ambitions: [changes_wanted]. (VIEW)")) + message_admins(span_adminhelp("[key_name(usr, FALSE, TRUE)] requested changes in [ADMIN_TPMONTY(my_mind.current)]'s ambitions. (VIEW)")) if("discard_review") var/action = tgui_alert(usr, "Are you sure you want to discard this review request (Use request changes if you want it changed instead)?", "", list("Yes", "No")) if(action && action == "Yes" && admin_review_requested) @@ -291,8 +291,8 @@ last_requested_change = null GLOB.ambitions_to_review -= src log_action("DISCARDED: Review discarded without approval") - to_chat(my_mind.current, "Your ambitions review request was discarded by [key_name(usr, FALSE, FALSE)].") - message_admins("[ADMIN_TPMONTY(my_mind.current)]'s ambitions review request was DISCARDED by [key_name(usr, FALSE, TRUE)]. (VIEW)") + to_chat(my_mind.current, span_warning("Your ambitions review request was discarded by [key_name(usr, FALSE, FALSE)].")) + message_admins(span_adminhelp("[ADMIN_TPMONTY(my_mind.current)]'s ambitions review request was DISCARDED by [key_name(usr, FALSE, TRUE)]. (VIEW)")) if("approve") cancel_auto_approve() admin_approval = TRUE @@ -300,8 +300,8 @@ last_requested_change = null GLOB.ambitions_to_review -= src log_action("APPROVED", FALSE) - to_chat(my_mind.current, "Your ambitions were approved by [key_name(usr, FALSE, FALSE)].") - message_admins("[ADMIN_TPMONTY(my_mind.current)]'s ambitions were approved by [key_name(usr, FALSE, TRUE)]. (VIEW)") + to_chat(my_mind.current, span_nicegreen("Your ambitions were approved by [key_name(usr, FALSE, FALSE)].")) + message_admins(span_nicegreen("[ADMIN_TPMONTY(my_mind.current)]'s ambitions were approved by [key_name(usr, FALSE, TRUE)]. (VIEW)")) submit() if("logs") var/datum/browser/popup = new(usr, "Ambition logging", "Ambition logs", 500, 200) @@ -321,7 +321,7 @@ ShowTemplatePanel(usr) return if("requested_done") - to_chat(src, "You notify admins that you have adressed the requested changes.") + to_chat(src, span_nicegreen("You notify admins that you have adressed the requested changes.")) message_admins(span_adminhelp("[ADMIN_TPMONTY(usr)] notifies that he has finished the requested changes in his ambitions. (VIEW)")) if("request_review") admin_review_requested = TRUE diff --git a/modular_skyrat/modules/ammo_workbench/code/ammo_workbench.dm b/modular_skyrat/modules/ammo_workbench/code/ammo_workbench.dm index 8f3a92f2654..7139cd88e23 100644 --- a/modular_skyrat/modules/ammo_workbench/code/ammo_workbench.dm +++ b/modular_skyrat/modules/ammo_workbench/code/ammo_workbench.dm @@ -421,7 +421,7 @@ if(!user.transferItemToLoc(O, src)) return FALSE if(loaded_magazine) - to_chat(user, "You swap quickly swap [O] for [loaded_magazine].") + to_chat(user, span_notice("You swap quickly swap [O] for [loaded_magazine].")) loaded_magazine.forceMove(drop_location()) user.put_in_hands(loaded_magazine) loaded_magazine = null @@ -432,7 +432,7 @@ deltimer(timer_id) timer_id = null loaded_magazine = O - to_chat(user, "You insert [O] to into [src]'s reciprocal.") + to_chat(user, span_notice("You insert [O] to into [src]'s reciprocal.")) flick("h_lathe_load", src) update_appearance() playsound(loc, 'sound/weapons/autoguninsert.ogg', 35, 1) @@ -441,7 +441,7 @@ if(!user.transferItemToLoc(O, src)) return FALSE loaded_datadisk = O - to_chat(user, "You insert [O] to into [src]'s floppydisk port.") + to_chat(user, span_notice("You insert [O] to into [src]'s floppydisk port.")) flick("h_lathe_load", src) update_appearance() playsound(loc, 'sound/machines/terminal_insert_disc.ogg', 35, 1) @@ -450,19 +450,19 @@ /obj/machinery/ammo_workbench/proc/is_insertion_ready(mob/user, obj/item/O) if(panel_open) - to_chat(user, "You can't load [src] while it's opened!") + to_chat(user, span_warning("You can't load [src] while it's opened!")) return FALSE if(disabled) - to_chat(user, "The insertion belts of [src] won't engage!") + to_chat(user, span_warning("The insertion belts of [src] won't engage!")) return FALSE if(machine_stat & BROKEN) - to_chat(user, "[src] is broken.") + to_chat(user, span_warning("[src] is broken.")) return FALSE if(machine_stat & NOPOWER) - to_chat(user, "[src] has no power.") + to_chat(user, span_warning("[src] has no power.")) return FALSE if(istype(O, /obj/item/disk/ammo_workbench) && loaded_datadisk) - to_chat(user, "[src] already has a disk inserted.") + to_chat(user, span_warning("[src] already has a disk inserted.")) return FALSE return TRUE diff --git a/modular_skyrat/modules/awaymissions_skyrat/code/mothership_astrum.dm b/modular_skyrat/modules/awaymissions_skyrat/code/mothership_astrum.dm index 6e9e0545f63..f614c0d886b 100644 --- a/modular_skyrat/modules/awaymissions_skyrat/code/mothership_astrum.dm +++ b/modular_skyrat/modules/awaymissions_skyrat/code/mothership_astrum.dm @@ -314,7 +314,7 @@ flags_1 = NODECONSTRUCT_1 /obj/machinery/scanner_gate/anti_nanite/emag_act(mob/user) - to_chat(user, "This gate has advanced security measures!") + to_chat(user, span_notice("This gate has advanced security measures!")) return /obj/machinery/scanner_gate/anti_nanite/attackby(obj/item/W, mob/user, params) diff --git a/modular_skyrat/modules/banning/code/skyrat_bans.dm b/modular_skyrat/modules/banning/code/skyrat_bans.dm index 6c88835bf6d..b818074aa66 100644 --- a/modular_skyrat/modules/banning/code/skyrat_bans.dm +++ b/modular_skyrat/modules/banning/code/skyrat_bans.dm @@ -10,7 +10,7 @@ GLOBAL_LIST_EMPTY(hell) //eorg banned players go here . = ..() if(ckey) if(is_banned_from(ckey, BAN_DONOTREVIVE)) - to_chat(src, "As you are revival banned, you cannot reenter your body.") + to_chat(src, span_notice("As you are revival banned, you cannot reenter your body.")) can_reenter_corpse = FALSE /proc/process_eorg_bans() diff --git a/modular_skyrat/modules/biohazard_blob/code/biohazard_blob_disease.dm b/modular_skyrat/modules/biohazard_blob/code/biohazard_blob_disease.dm index 9ea36e4011d..e4367e32be5 100644 --- a/modular_skyrat/modules/biohazard_blob/code/biohazard_blob_disease.dm +++ b/modular_skyrat/modules/biohazard_blob/code/biohazard_blob_disease.dm @@ -21,41 +21,41 @@ if(2) if(DT_PROB(2, delta_time)) affected_mob.emote("twitch") - to_chat(affected_mob, "You twitch.") + to_chat(affected_mob, span_danger("You twitch.")) if(DT_PROB(2, delta_time)) - to_chat(affected_mob, "You feel tired.") + to_chat(affected_mob, span_danger("You feel tired.")) if(DT_PROB(5, delta_time)) - to_chat(affected_mob, "Your head hurts.") + to_chat(affected_mob, span_danger("Your head hurts.")) if(3,4) if(DT_PROB(2, delta_time)) - to_chat(affected_mob, "You see four of everything!") + to_chat(affected_mob, span_userdanger("You see four of everything!")) affected_mob.Dizzy(5) if(DT_PROB(2, delta_time)) - to_chat(affected_mob, "You suddenly feel exhausted.") + to_chat(affected_mob, span_danger("You suddenly feel exhausted.")) affected_mob.adjustStaminaLoss(30, FALSE) if(DT_PROB(2, delta_time)) - to_chat(affected_mob, "You feel hot.") + to_chat(affected_mob, span_danger("You feel hot.")) affected_mob.adjust_bodytemperature(20) if(DT_PROB(5, delta_time)) - to_chat(affected_mob, "You feel air escape from your lungs painfully.") + to_chat(affected_mob, span_danger("You feel air escape from your lungs painfully.")) affected_mob.adjustOxyLoss(25, FALSE) affected_mob.emote("gasp") if(5) if(DT_PROB(5, delta_time)) - to_chat(affected_mob, "[pick("Your muscles seize!", "You collapse!")]") + to_chat(affected_mob, span_userdanger("[pick("Your muscles seize!", "You collapse!")]")) affected_mob.adjustStaminaLoss(50, FALSE) affected_mob.Paralyze(40, FALSE) affected_mob.adjustBruteLoss(5) //It's damaging the muscles if(DT_PROB(2, delta_time)) affected_mob.adjustStaminaLoss(100, FALSE) - affected_mob.visible_message("[affected_mob] faints!", "You surrender yourself and feel at peace...") + affected_mob.visible_message(span_warning("[affected_mob] faints!"), span_userdanger("You surrender yourself and feel at peace...")) affected_mob.AdjustSleeping(100) if(DT_PROB(5, delta_time)) - to_chat(affected_mob, "You feel your mind relax and your thoughts drift!") + to_chat(affected_mob, span_userdanger("You feel your mind relax and your thoughts drift!")) affected_mob.set_confusion(min(100, affected_mob.get_confusion() + 8)) affected_mob.adjustOrganLoss(ORGAN_SLOT_BRAIN, 10) if(DT_PROB(10, delta_time)) - to_chat(affected_mob, "[pick("You feel uncomfortably hot...", "You feel like unzipping your jumpsuit", "You feel like taking off some clothes...")]") + to_chat(affected_mob, span_danger("[pick("You feel uncomfortably hot...", "You feel like unzipping your jumpsuit", "You feel like taking off some clothes...")]")) affected_mob.adjust_bodytemperature(30) if(DT_PROB(5, delta_time)) affected_mob.vomit(20) diff --git a/modular_skyrat/modules/biohazard_blob/code/biohazard_blob_structures.dm b/modular_skyrat/modules/biohazard_blob/code/biohazard_blob_structures.dm index af30759530d..8d1d3563317 100644 --- a/modular_skyrat/modules/biohazard_blob/code/biohazard_blob_structures.dm +++ b/modular_skyrat/modules/biohazard_blob/code/biohazard_blob_structures.dm @@ -96,7 +96,7 @@ var/turf/my_turf = get_turf(src) switch(blob_type) if(BIO_BLOB_TYPE_FUNGUS) - visible_message("The [src] emitts a cloud!") + visible_message(span_warning("The [src] emitts a cloud!")) var/datum/reagents/R = new/datum/reagents(300) R.my_atom = src R.add_reagent(/datum/reagent/cordycepsspores, 50) @@ -105,10 +105,10 @@ smoke.attach(src) smoke.start() if(BIO_BLOB_TYPE_FIRE) - visible_message("The [src] puffs a cloud of flames!") + visible_message(span_warning("The [src] puffs a cloud of flames!")) my_turf.atmos_spawn_air("o2=20;plasma=20;TEMP=600") if(BIO_BLOB_TYPE_EMP) - visible_message("The [src] sends out electrical discharges!") + visible_message(span_warning("The [src] sends out electrical discharges!")) empulse(src, 5, 10) if(prob(50)) for(var/mob/living/M in get_hearers_in_view(3, my_turf)) @@ -120,7 +120,7 @@ do_sparks(3, TRUE, src) tesla_zap(src, 4, 10000, ZAP_MOB_DAMAGE | ZAP_OBJ_DAMAGE) if(BIO_BLOB_TYPE_TOXIC) - visible_message("The [src] spews out foam!") + visible_message(span_warning("The [src] spews out foam!")) var/datum/reagents/R = new/datum/reagents(300) R.my_atom = src R.add_reagent(/datum/reagent/toxin, 30) @@ -128,7 +128,7 @@ foam.set_up(40, my_turf, R) foam.start() if(BIO_BLOB_TYPE_RADIOACTIVE) - visible_message("The [src] emits a strong radiation pulse!") + visible_message(span_warning("The [src] emits a strong radiation pulse!")) radiation_pulse(src, 1500, 10, FALSE, TRUE) var/datum/reagents/R = new/datum/reagents(300) R.my_atom = src @@ -287,7 +287,7 @@ if(!is_full) return var/turf/T = get_turf(src) - visible_message("The [src] ruptures!") + visible_message(span_warning("The [src] ruptures!")) switch(blob_type) if(BIO_BLOB_TYPE_FUNGUS) var/datum/reagents/R = new/datum/reagents(300) diff --git a/modular_skyrat/modules/bongs/code/bong.dm b/modular_skyrat/modules/bongs/code/bong.dm index 3ebd43fe91d..9084d0b952b 100644 --- a/modular_skyrat/modules/bongs/code/bong.dm +++ b/modular_skyrat/modules/bongs/code/bong.dm @@ -25,7 +25,7 @@ var/obj/item/food/grown/grown_item = used_item if(!packeditem) if(HAS_TRAIT(grown_item, TRAIT_DRIED)) - to_chat(user, "You stuff [grown_item] into [src].") + to_chat(user, span_notice("You stuff [grown_item] into [src].")) bonghits = useable_bonghits packeditem = TRUE if(grown_item.reagents) @@ -33,12 +33,12 @@ quarter_volume = reagents.total_volume/useable_bonghits qdel(grown_item) else - to_chat(user, "It has to be dried first!") + to_chat(user, span_warning("It has to be dried first!")) else - to_chat(user, "It is already packed!") + to_chat(user, span_warning("It is already packed!")) else if(istype(used_item, /obj/item/reagent_containers/hash)) //for hash/dabs if(!packeditem) - to_chat(user, "You stuff [used_item] into [src].") + to_chat(user, span_notice("You stuff [used_item] into [src].")) bonghits = useable_bonghits packeditem = TRUE if(used_item.reagents) @@ -52,20 +52,20 @@ light(lighting_text) name = "lit [initial(name)]" else - to_chat(user, "There is nothing to smoke!") + to_chat(user, span_warning("There is nothing to smoke!")) else return ..() /obj/item/bong/attack_self(mob/user) var/turf/location = get_turf(user) if(lit) - user.visible_message("[user] puts out [src].", "You put out [src].") + user.visible_message(span_notice("[user] puts out [src]."), span_notice("You put out [src].")) lit = FALSE icon_state = icon_off inhand_icon_state = icon_off return if(!lit && bonghits > 0) - to_chat(user, "You empty [src] onto [location].") + to_chat(user, span_notice("You empty [src] onto [location].")) new /obj/effect/decal/cleanable/ash(location) packeditem = FALSE bonghits = 0 @@ -75,10 +75,10 @@ /obj/item/bong/attack(mob/hit_mob, mob/user, def_zone) if(packeditem && lit) if(hit_mob == user) - hit_mob.visible_message("[user] starts taking a hit from the [src].") + hit_mob.visible_message(span_notice("[user] starts taking a hit from the [src].")) playsound(src, 'sound/chemistry/heatdam.ogg', 50, TRUE) if(do_after(user,40)) - to_chat(hit_mob, "You finish taking a hit from the [src].") + to_chat(hit_mob, span_notice("You finish taking a hit from the [src].")) if(reagents.total_volume) reagents.trans_to(hit_mob, quarter_volume, transfered_by = user, methods = VAPOR) bonghits-- @@ -86,7 +86,7 @@ if(istype(pos) && pos.air.return_pressure() < 2*ONE_ATMOSPHERE) pos.atmos_spawn_air("water_vapor=10;TEMP=T20C + 20") if(bonghits <= 0) - to_chat(hit_mob, "Your [name] goes out.") + to_chat(hit_mob, span_notice("Your [name] goes out.")) lit = FALSE packeditem = FALSE icon_state = icon_off @@ -138,10 +138,10 @@ /obj/item/bong/lungbuster/attack(mob/hit_mob, mob/user, def_zone) if(packeditem && lit) if(hit_mob == user) - hit_mob.visible_message("[user] starts taking a hit from the [src].") + hit_mob.visible_message(span_notice("[user] starts taking a hit from the [src].")) playsound(src, 'sound/chemistry/heatdam.ogg', 50, TRUE) if(do_after(user,40)) - to_chat(hit_mob, "You finish taking a hit from the [src].") + to_chat(hit_mob, span_notice("You finish taking a hit from the [src].")) if(reagents.total_volume) reagents.trans_to(hit_mob, quarter_volume, transfered_by = user, methods = VAPOR) bonghits-- @@ -155,7 +155,7 @@ playsound(hit_mob, pick('modular_skyrat/master_files/sound/effects/lungbust_cough1.ogg','modular_skyrat/master_files/sound/effects/lungbust_cough2.ogg'), 50, TRUE) hit_mob.emote("cough") if(bonghits <= 0) - to_chat(hit_mob, "Your [name] goes out.") + to_chat(hit_mob, span_notice("Your [name] goes out.")) lit = FALSE packeditem = FALSE icon_state = icon_off diff --git a/modular_skyrat/modules/brigoff/code/brigoff.dm b/modular_skyrat/modules/brigoff/code/brigoff.dm index 750c404436e..4d136c362f6 100644 --- a/modular_skyrat/modules/brigoff/code/brigoff.dm +++ b/modular_skyrat/modules/brigoff/code/brigoff.dm @@ -39,8 +39,8 @@ /datum/job/brigoff/after_spawn(mob/living/carbon/human/H, mob/M) . = ..() - to_chat(M, "You are a GUARD not a Security Officer, do NOT run off and be Security unless it's red alert!.") - to_chat(M, "You shouldn't leave the brig for long peroids of time. Remember: You aren't a Security Officer.") + to_chat(M, span_userdanger("You are a GUARD not a Security Officer, do NOT run off and be Security unless it's red alert!.")) + to_chat(M, span_warning("You shouldn't leave the brig for long peroids of time. Remember: You aren't a Security Officer.")) to_chat(M, "You are a Brig Officer of the Frontier Space Station 13, your duties include Prisoner escort and ensuring the Prisoners stay in line.") diff --git a/modular_skyrat/modules/bsa_overhaul/code/bsa_cannon.dm b/modular_skyrat/modules/bsa_overhaul/code/bsa_cannon.dm index 72517cd7361..9462669d15c 100644 --- a/modular_skyrat/modules/bsa_overhaul/code/bsa_cannon.dm +++ b/modular_skyrat/modules/bsa_overhaul/code/bsa_cannon.dm @@ -55,7 +55,7 @@ return var/obj/item/multitool/M = I M.buffer = src - to_chat(user, "You store linkage information in [I]'s buffer.") + to_chat(user, span_notice("You store linkage information in [I]'s buffer.")) return TRUE /obj/machinery/bsa/front @@ -68,7 +68,7 @@ return var/obj/item/multitool/M = I M.buffer = src - to_chat(user, "You store linkage information in [I]'s buffer.") + to_chat(user, span_notice("You store linkage information in [I]'s buffer.")) return TRUE /obj/machinery/bsa/middle @@ -86,13 +86,13 @@ if(istype(M.buffer, /obj/machinery/bsa/back)) back = M.buffer M.buffer = null - to_chat(user, "You link [src] with [back].") + to_chat(user, span_notice("You link [src] with [back].")) else if(istype(M.buffer, /obj/machinery/bsa/front)) front = M.buffer M.buffer = null - to_chat(user, "You link [src] with [front].") + to_chat(user, span_notice("You link [src] with [front].")) else - to_chat(user, "[I]'s data buffer is empty!") + to_chat(user, span_warning("[I]'s data buffer is empty!")) return TRUE /obj/machinery/bsa/middle/proc/check_completion() @@ -317,7 +317,7 @@ return var/obj/item/multitool/M = I M.buffer = src - to_chat(user, "You store linkage information in [I]'s buffer.") + to_chat(user, span_notice("You store linkage information in [I]'s buffer.")) return TRUE /obj/machinery/bsa_powercore/wrench_act(mob/living/user, obj/item/I) @@ -329,10 +329,10 @@ attached = locate() in T if(!attached) set_light(0) - to_chat(user, "[src] must be placed over an exposed, powered cable node!") + to_chat(user, span_warning("[src] must be placed over an exposed, powered cable node!")) else set_light(5) - to_chat(user, "You attach [src] to the cable below.") + to_chat(user, span_notice("You attach [src] to the cable below.")) else attached = null update_appearance() diff --git a/modular_skyrat/modules/bsa_overhaul/code/bsa_computer.dm b/modular_skyrat/modules/bsa_overhaul/code/bsa_computer.dm index aef4bbcd98b..355385199f1 100644 --- a/modular_skyrat/modules/bsa_overhaul/code/bsa_computer.dm +++ b/modular_skyrat/modules/bsa_overhaul/code/bsa_computer.dm @@ -21,17 +21,17 @@ if(M.buffer) if(istype(M.buffer, /obj/machinery/bsa_powercore)) if(!cannon) - to_chat(user, "There is no cannon linked to this control unit!") + to_chat(user, span_warning("There is no cannon linked to this control unit!")) return FALSE if(core) - to_chat(user, "There is already a core linked to this control unit!") + to_chat(user, span_warning("There is already a core linked to this control unit!")) return FALSE core = M.buffer core.control_unit = src M.buffer = null - to_chat(user, "You link [src] with [core].") + to_chat(user, span_notice("You link [src] with [core].")) else - to_chat(user, "[I]'s data buffer is empty!") + to_chat(user, span_warning("[I]'s data buffer is empty!")) return TRUE /obj/machinery/computer/bsa_control/ui_state(mob/user) diff --git a/modular_skyrat/modules/bsrpd/code/bsrpd.dm b/modular_skyrat/modules/bsrpd/code/bsrpd.dm index 9fb0016cd8f..76adae8a424 100644 --- a/modular_skyrat/modules/bsrpd/code/bsrpd.dm +++ b/modular_skyrat/modules/bsrpd/code/bsrpd.dm @@ -19,19 +19,19 @@ /obj/item/pipe_dispenser/bluespace/attackby(obj/item/item, mob/user, param) if(istype(item, /obj/item/stack/sheet/bluespace_crystal)) if(BSRPD_CAPAC_NEW > (BSRPD_CAPAC_MAX - bs_capac) || bs_use == 0) - to_chat(user, "You cannot recharge [src] anymore!") + to_chat(user, span_warning("You cannot recharge [src] anymore!")) return item.use(1) - to_chat(user, "You recharge the bluespace capacitor inside of [src]") + to_chat(user, span_notice("You recharge the bluespace capacitor inside of [src]")) bs_capac += BSRPD_CAPAC_NEW return if(istype(item, /obj/item/assembly/signaler/anomaly/bluespace)) if(bs_use) - to_chat(user, "You slot [item] into [src]; supercharging the bluespace capacitor!") + to_chat(user, span_notice("You slot [item] into [src]; supercharging the bluespace capacitor!")) bs_use = 0 qdel(item) else - to_chat(user, "You cannot improve the [src] further.") + to_chat(user, span_warning("You cannot improve the [src] further.")) return return ..() @@ -48,7 +48,7 @@ if(prox) // If we are in proximity to the target, don't use charge and don't call this shitcode. return ..() if(bs_capac < (bs_use * (bs_prog + 1))) - to_chat(user, "The [src] lacks the charge to do that.") + to_chat(user, span_warning("The [src] lacks the charge to do that.")) return FALSE bs_prog++ // So people can't just spam click and get more uses user.Beam(target, icon_state = "rped_upgrade", time = 1 SECONDS) diff --git a/modular_skyrat/modules/cell_component/code/cell_component.dm b/modular_skyrat/modules/cell_component/code/cell_component.dm index bb3bb48b4bd..189edf7ab5c 100644 --- a/modular_skyrat/modules/cell_component/code/cell_component.dm +++ b/modular_skyrat/modules/cell_component/code/cell_component.dm @@ -108,18 +108,18 @@ component_cell_out_of_charge/component_cell_removed proc using loc where necessa if(!inserted_cell) if(user) - to_chat(user, "There is no cell inside [equipment]") + to_chat(user, span_danger("There is no cell inside [equipment]")) return COMPONENT_NO_CELL if(check_only && inserted_cell.charge < use_amount) if(user) - to_chat(user, "The cell inside [equipment] does not have enough charge to perform this action!") + to_chat(user, span_danger("The cell inside [equipment] does not have enough charge to perform this action!")) return COMPONENT_NO_CHARGE if(!inserted_cell.use(use_amount)) inserted_cell.update_appearance() //Updates the attached cell sprite - Why does this not happen in cell.use? if(user) - to_chat(user, "The cell inside [equipment] does not have enough charge to perform this action!") + to_chat(user, span_danger("The cell inside [equipment] does not have enough charge to perform this action!")) return COMPONENT_NO_CHARGE inserted_cell.update_appearance() @@ -130,12 +130,12 @@ component_cell_out_of_charge/component_cell_removed proc using loc where necessa SIGNAL_HANDLER if(!inserted_cell) - examine_list += "It does not have a cell inserted!" + examine_list += span_danger("It does not have a cell inserted!") else if(!inside_robot) - examine_list += "It has [inserted_cell] inserted. It has [inserted_cell.percent()]% charge left. \ - Ctrl+Shift+Click to remove the [inserted_cell]." + examine_list += span_notice("It has [inserted_cell] inserted. It has [inserted_cell.percent()]% charge left. \ + Ctrl+Shift+Click to remove the [inserted_cell].") else - examine_list += "It is drawing power from an external powersource, reading [inserted_cell.percent()]% charge." + examine_list += span_notice("It is drawing power from an external powersource, reading [inserted_cell.percent()]% charge.") /// Handling of cell removal. /datum/component/cell/proc/remove_cell(datum/source, mob/user) @@ -153,7 +153,7 @@ component_cell_out_of_charge/component_cell_removed proc using loc where necessa return if(inserted_cell) - to_chat(user, "You remove [inserted_cell] from [equipment]!") + to_chat(user, span_notice("You remove [inserted_cell] from [equipment]!")) playsound(equipment, 'sound/weapons/magout.ogg', 40, TRUE) inserted_cell.forceMove(get_turf(equipment)) INVOKE_ASYNC(user, /mob/living.proc/put_in_hands, inserted_cell) @@ -162,7 +162,7 @@ component_cell_out_of_charge/component_cell_removed proc using loc where necessa on_cell_removed.Invoke() handle_cell_overlays(TRUE) else - to_chat(user, "There is no cell inserted in [equipment]!") + to_chat(user, span_danger("There is no cell inserted in [equipment]!")) /// Handling of cell insertion. /datum/component/cell/proc/insert_cell(datum/source, obj/item/inserting_item, mob/living/user, params) @@ -177,10 +177,10 @@ component_cell_out_of_charge/component_cell_removed proc using loc where necessa return if(inserted_cell) //No quickswap compatibility - to_chat(user, "There is already a cell inserted in [equipment]!") + to_chat(user, span_danger("There is already a cell inserted in [equipment]!")) return - to_chat(user, "You insert [inserting_item] into [equipment]!") + to_chat(user, span_notice("You insert [inserting_item] into [equipment]!")) playsound(equipment, 'sound/weapons/magin.ogg', 40, TRUE) inserted_cell = inserting_item inserting_item.forceMove(parent) diff --git a/modular_skyrat/modules/cell_component/code/flashlight.dm b/modular_skyrat/modules/cell_component/code/flashlight.dm index 66322a2a6d7..3c4ea68c262 100644 --- a/modular_skyrat/modules/cell_component/code/flashlight.dm +++ b/modular_skyrat/modules/cell_component/code/flashlight.dm @@ -29,7 +29,7 @@ /obj/item/flashlight/examine(mob/user) . = ..() if(has_modes) - . += "This flashlight has modes! Ctrl+click it to change the mode." + . += span_notice("This flashlight has modes! Ctrl+click it to change the mode.") /obj/item/flashlight/CtrlClick(mob/user) . = ..() @@ -41,21 +41,21 @@ light_power = initial(light_power) set_light_on(on) flashlight_mode = 1 - to_chat(user, "You set [src] to low.") + to_chat(user, span_notice("You set [src] to low.")) if(1) power_use_amount = POWER_CELL_USE_VERY_LOW light_range = initial(light_range) + 2 light_power = initial(light_power) + 1 set_light_on(on) flashlight_mode = 2 - to_chat(user, "You set [src] to medium.") + to_chat(user, span_notice("You set [src] to medium.")) if(2) power_use_amount = POWER_CELL_USE_LOW light_range = initial(light_range) + 4 light_power = initial(light_power) + 2 set_light_on(on) flashlight_mode = 0 - to_chat(user, "You set [src] to high.") + to_chat(user, span_notice("You set [src] to high.")) /obj/item/flashlight/attack_self(mob/user) . = ..() diff --git a/modular_skyrat/modules/cme/code/cme.dm b/modular_skyrat/modules/cme/code/cme.dm index 2f146fbf486..486630baa5b 100644 --- a/modular_skyrat/modules/cme/code/cme.dm +++ b/modular_skyrat/modules/cme/code/cme.dm @@ -238,7 +238,7 @@ Armageddon is truly going to fuck the station, use it sparingly. /obj/effect/cme/proc/burst() if(neutralized) - visible_message("[src] fizzles out into nothingness.") + visible_message(span_notice("[src] fizzles out into nothingness.")) new /obj/effect/particle_effect/smoke/bad(loc) qdel(src) return @@ -252,7 +252,7 @@ Armageddon is truly going to fuck the station, use it sparingly. /obj/effect/cme/armageddon/burst() if(neutralized) - visible_message("[src] fizzles out into nothingness.") + visible_message(span_notice("[src] fizzles out into nothingness.")) new /obj/effect/particle_effect/smoke/bad(loc) qdel(src) return diff --git a/modular_skyrat/modules/cortical_borer/code/cortical_borer.dm b/modular_skyrat/modules/cortical_borer/code/cortical_borer.dm index 991ddb96288..36cde8bfc9e 100644 --- a/modular_skyrat/modules/cortical_borer/code/cortical_borer.dm +++ b/modular_skyrat/modules/cortical_borer/code/cortical_borer.dm @@ -142,7 +142,7 @@ continue cb_owner.human_host.temporarilyRemoveItemFromInventory(hosts_items, TRUE) playsound(cb_owner.human_host, 'sound/effects/blobattack.ogg', 30, TRUE) - cb_owner.human_host.visible_message(span_warning("With a sickening crunch, [cb_owner.human_host] reforms [cb_owner.human_host.p_their()] armblade into an arm!"), span_notice("We assimilate the armblade back into our body."), "The [name] were:" + parts += span_header("The [name] were:") parts += printborerlist(members) var/survival = FALSE for(var/mob/living/simple_animal/cortical_borer/check_borer in GLOB.cortical_borers) diff --git a/modular_skyrat/modules/cryosleep/code/cryopod.dm b/modular_skyrat/modules/cryosleep/code/cryopod.dm index 52833c8a9a1..93bd919958e 100644 --- a/modular_skyrat/modules/cryosleep/code/cryopod.dm +++ b/modular_skyrat/modules/cryosleep/code/cryopod.dm @@ -314,9 +314,9 @@ GLOBAL_LIST_EMPTY(cryopod_computers) return if(target == user) - visible_message("[user] starts climbing into the cryo pod.") + visible_message(span_info("plain'>[user] starts climbing into the cryo pod.")) else - visible_message("[user] starts putting [target] into the cryo pod.") + visible_message(span_info("plain'>[user] starts putting [target] into the cryo pod.")) to_chat(target, span_warning("If you ghost, log out or close your client now, your character will shortly be permanently removed from the round.")) diff --git a/modular_skyrat/modules/customization/game/objects/items/devices/ttsdevice.dm b/modular_skyrat/modules/customization/game/objects/items/devices/ttsdevice.dm index b2fbbca04ed..4ee0a912c6e 100644 --- a/modular_skyrat/modules/customization/game/objects/items/devices/ttsdevice.dm +++ b/modular_skyrat/modules/customization/game/objects/items/devices/ttsdevice.dm @@ -1,6 +1,6 @@ /obj/item/ttsdevice name = "TTS Device" - desc = "A small device with a keyboard attached. Anything entered on the keyboard is played out the speaker. \nAlt-click the device to make it beep. \nCtrl-click to name the device." + desc = "A small device with a keyboard attached. Anything entered on the keyboard is played out the speaker. \nAlt-click the device to make it beep. \nCtrl-click to name the device." icon = 'icons/obj/device.dmi' icon_state = "gangtool-purple" lefthand_file = 'icons/mob/inhands/misc/devices_lefthand.dmi' @@ -20,13 +20,13 @@ /obj/item/ttsdevice/AltClick(mob/living/user) var/noisechoice = input(user, "What noise would you like to make?", "Robot Noises") as null|anything in list("Beep","Buzz","Ping") if(noisechoice == "Beep") - user.visible_message("[user] has made their TTS beep!", "You make your TTS beep!") + user.visible_message(span_notice("[user] has made their TTS beep!"), "You make your TTS beep!") playsound(user, 'sound/machines/twobeep.ogg', 50, 1, -1) if(noisechoice == "Buzz") - user.visible_message("[user] has made their TTS buzz!", "You make your TTS buzz!") + user.visible_message(span_notice("[user] has made their TTS buzz!"), "You make your TTS buzz!") playsound(user, 'sound/machines/buzz-sigh.ogg', 50, 1, -1) if(noisechoice == "Ping") - user.visible_message("[user] has made their TTS ping!", "You make your TTS ping!") + user.visible_message(span_notice("[user] has made their TTS ping!"), "You make your TTS ping!") playsound(user, 'sound/machines/ping.ogg', 50, 1, -1) /obj/item/ttsdevice/CtrlClick(mob/living/user) diff --git a/modular_skyrat/modules/customization/modules/client/preferences.dm b/modular_skyrat/modules/customization/modules/client/preferences.dm index 992f3b544a3..607c852dfc8 100644 --- a/modular_skyrat/modules/customization/modules/client/preferences.dm +++ b/modular_skyrat/modules/customization/modules/client/preferences.dm @@ -297,7 +297,7 @@ GLOBAL_LIST_INIT(food, list( message_admins("[usr] is bypassing the flavor text requirements.") return TRUE if(inform_client) - to_chat(parent, "You must have a flavor text!") + to_chat(parent, span_userdanger("You must have a flavor text!")) return FALSE if(length(replacetext(features["flavor_text"], " ", "")) < FLAVORTEXT_JOIN_MINIMUM) // No you can't use whitespace to meet the requirement if(check_rights(R_ADMIN, FALSE)) @@ -306,7 +306,7 @@ GLOBAL_LIST_INIT(food, list( message_admins("[usr] is bypassing the flavor text requirements.") return TRUE if(inform_client) - to_chat(parent, "Your flavor text must be longer than [FLAVORTEXT_JOIN_MINIMUM] characters!") + to_chat(parent, span_userdanger("Your flavor text must be longer than [FLAVORTEXT_JOIN_MINIMUM] characters!")) return FALSE return TRUE @@ -1449,7 +1449,7 @@ GLOBAL_LIST_INIT(food, list( if(job.alt_titles.len) rank_title_line = "[rank_title_line]" else - rank_title_line = "[rank_title_line]" //Make it dark if we're not adding a button for alt titles + rank_title_line = span_dark("[rank_title_line]") //Make it dark if we're not adding a button for alt titles HTML += rank_title_line @@ -1739,7 +1739,7 @@ GLOBAL_LIST_INIT(food, list( to_chat(user, span_warning("You can't have more than [MAX_QUIRKS] positive quirks!")) return if(balance - value < 0) - to_chat(user, "You don't have enough balance to gain this quirk!") + to_chat(user, span_warning("You don't have enough balance to gain this quirk!")) return all_quirks += quirk SetQuirks(user) @@ -3539,7 +3539,7 @@ GLOBAL_LIST_INIT(food, list( if(language_skill && !required) unlearn_button = "Unlearn" else - unlearn_button = "Unlearn" + unlearn_button = span_linkOff("Unlearn") var/understood_button if(languages[lang_path]) //Has a href in case you want to downgrade from spoken to understood @@ -3547,14 +3547,14 @@ GLOBAL_LIST_INIT(food, list( else if(can_buy_language(lang_path, LANGUAGE_UNDERSTOOD)) understood_button = "Understood" else - understood_button = "Understood" + understood_button = span_linkOff("Understood") var/spoken_button if(languages[lang_path] >= LANGUAGE_SPOKEN) spoken_button = "Spoken" else if(can_buy_language(lang_path, LANGUAGE_SPOKEN)) spoken_button = "Spoken" else - spoken_button = "Spoken" + spoken_button = span_linkOff("Spoken") dat += "" dat += "[initial(lang_datum.name)]" dat += "[initial(lang_datum.desc)]" diff --git a/modular_skyrat/modules/customization/modules/client/preferences_savefile.dm b/modular_skyrat/modules/customization/modules/client/preferences_savefile.dm index 5b5bed9eeaf..01e328ad627 100644 --- a/modular_skyrat/modules/customization/modules/client/preferences_savefile.dm +++ b/modular_skyrat/modules/customization/modules/client/preferences_savefile.dm @@ -125,8 +125,8 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car addtimer(CALLBACK(src, .proc/announce_conflict, notadded), 5 SECONDS) /datum/preferences/proc/announce_conflict(list/notadded) - to_chat(parent, "Keybinding Conflict\n\ - There are new keybindings that default to keys you've already bound. The new ones will be unbound.") + to_chat(parent, span_warning("plain'>Keybinding Conflict\n\ + There are new keybindings that default to keys you've already bound. The new ones will be unbound.")) for(var/item in notadded) var/datum/keybinding/conflicted = item to_chat(parent, span_danger("[conflicted.category]: [conflicted.full_name] needs updating")) diff --git a/modular_skyrat/modules/customization/modules/clothing/ears/ears.dm b/modular_skyrat/modules/customization/modules/clothing/ears/ears.dm index 00c167ca68a..415b250caab 100644 --- a/modular_skyrat/modules/customization/modules/clothing/ears/ears.dm +++ b/modular_skyrat/modules/customization/modules/clothing/ears/ears.dm @@ -26,7 +26,7 @@ /obj/item/clothing/ears/headphones/proc/toggle(owner) headphones_on = !headphones_on update_icon() - to_chat(owner, "You turn the music [headphones_on? "on. Untz Untz Untz!" : "off."]") + to_chat(owner, span_notice("You turn the music [headphones_on? "on. Untz Untz Untz!" : "off."]")) /datum/action/item_action/toggle_headphones name = "Toggle Headphones" diff --git a/modular_skyrat/modules/customization/modules/clothing/glasses/glasses.dm b/modular_skyrat/modules/customization/modules/clothing/glasses/glasses.dm index 95efe56b9d9..d865ea64933 100644 --- a/modular_skyrat/modules/customization/modules/clothing/glasses/glasses.dm +++ b/modular_skyrat/modules/customization/modules/clothing/glasses/glasses.dm @@ -29,13 +29,13 @@ if(!can_use(usr)) return if(!can_switch_eye) - to_chat(usr, "You cannot wear this any differently!") + to_chat(usr, span_warning("You cannot wear this any differently!")) return eyepatch_do_switch() if(current_eye == "_L") - to_chat(usr, "You adjust the eyepatch to wear it over your left eye.") + to_chat(usr, span_notice("You adjust the eyepatch to wear it over your left eye.")) else if(current_eye == "_R") - to_chat(usr, "You adjust the eyepatch to wear it over your right eye.") + to_chat(usr, span_notice("You adjust the eyepatch to wear it over your right eye.")) usr.update_inv_glasses() usr.update_overlays() diff --git a/modular_skyrat/modules/customization/modules/clothing/hands/rings.dm b/modular_skyrat/modules/customization/modules/clothing/hands/rings.dm index 05702a903dd..7c11c81691b 100644 --- a/modular_skyrat/modules/customization/modules/clothing/hands/rings.dm +++ b/modular_skyrat/modules/customization/modules/clothing/hands/rings.dm @@ -14,7 +14,7 @@ strip_delay = 40 /obj/item/clothing/gloves/ring/suicide_act(mob/living/carbon/user) - user.visible_message("\[user] is putting the [src] in [user.p_their()] mouth! It looks like [user] is trying to choke on the [src]!") + user.visible_message(span_suicide("\[user] is putting the [src] in [user.p_their()] mouth! It looks like [user] is trying to choke on the [src]!")) return OXYLOSS @@ -26,7 +26,7 @@ worn_icon_state = "dring" /obj/item/clothing/gloves/ring/diamond/attack_self(mob/user) - user.visible_message("\The [user] gets down on one knee, presenting \the [src].","You get down on one knee, presenting \the [src].") + user.visible_message(span_warning("\The [user] gets down on one knee, presenting \the [src]."),span_warning("You get down on one knee, presenting \the [src].")) /obj/item/clothing/gloves/ring/silver name = "silver ring" diff --git a/modular_skyrat/modules/customization/modules/clothing/head/head.dm b/modular_skyrat/modules/customization/modules/clothing/head/head.dm index 527344f0945..7f984148229 100644 --- a/modular_skyrat/modules/customization/modules/clothing/head/head.dm +++ b/modular_skyrat/modules/customization/modules/clothing/head/head.dm @@ -343,10 +343,10 @@ return if(goggles) icon_state = "gblast_helmet" - to_chat(user, "You put all your effort into pulling the goggles up.") + to_chat(user, span_notice("You put all your effort into pulling the goggles up.")) else icon_state = "gblast_helmetv" - to_chat(user, "You focus all your willpower to put the goggles down on your eyes.") + to_chat(user, span_notice("You focus all your willpower to put the goggles down on your eyes.")) goggles = !goggles if(user) user.head_update(src, forced = 1) diff --git a/modular_skyrat/modules/customization/modules/clothing/neck/collars.dm b/modular_skyrat/modules/customization/modules/clothing/neck/collars.dm index 9bec5816095..ec23a9b114e 100644 --- a/modular_skyrat/modules/customization/modules/clothing/neck/collars.dm +++ b/modular_skyrat/modules/customization/modules/clothing/neck/collars.dm @@ -62,16 +62,16 @@ /obj/item/clothing/neck/human_petcollar/locked/attackby(obj/item/K, mob/user, params) if(istype(K, /obj/item/key/collar)) if(lock != FALSE) - to_chat(user, "With a click the collar unlocks!") + to_chat(user, span_warning("With a click the collar unlocks!")) lock = FALSE else - to_chat(user, "With a click the collar locks!") + to_chat(user, span_warning("With a click the collar locks!")) lock = TRUE return /obj/item/clothing/neck/human_petcollar/locked/attack_hand(mob/user) if(loc == user && user.get_item_by_slot(ITEM_SLOT_NECK) && lock != FALSE) - to_chat(user, "The collar is locked! You'll need unlock the collar before you can take it off!") + to_chat(user, span_warning("The collar is locked! You'll need unlock the collar before you can take it off!")) return ..() diff --git a/modular_skyrat/modules/customization/modules/clothing/storage/belts.dm b/modular_skyrat/modules/customization/modules/clothing/storage/belts.dm index 807c8380b1a..7b929f80c2b 100644 --- a/modular_skyrat/modules/customization/modules/clothing/storage/belts.dm +++ b/modular_skyrat/modules/customization/modules/clothing/storage/belts.dm @@ -16,11 +16,11 @@ if(used_belt.Adjacent(M) && dump_destination && M.Adjacent(dump_destination)) var/obj/item/storage/belt/storage_pouch/pouch = locate() in real_location() if (!pouch) - to_chat(M, "[parent] doesn't seem to have a pouch to empty.") + to_chat(M, span_warning("[parent] doesn't seem to have a pouch to empty.")) return FALSE //oopsie!! If we don't have a pouch! You're fucked! var/datum/component/storage/STR = pouch.GetComponent(/datum/component/storage) if(locked) - to_chat(M, "[parent] seems to be locked!") + to_chat(M, span_warning("[parent] seems to be locked!")) return FALSE if(dump_destination.storage_contents_dump_act(STR, M)) playsound(used_belt, "rustle", 50, TRUE, -5) @@ -42,13 +42,13 @@ add_fingerprint(user) playsound(src, 'sound/items/unsheath.ogg', 50, TRUE, -5) if(!user.put_in_hands(drawn_item)) - to_chat(user, "You fumble for [drawn_item] and it falls on the floor.") + to_chat(user, span_notice("You fumble for [drawn_item] and it falls on the floor.")) update_appearance() return - user.visible_message("[user] takes [drawn_item] out of [src].", "You take [drawn_item] out of [src].") + user.visible_message(span_notice("[user] takes [drawn_item] out of [src]."), span_notice("You take [drawn_item] out of [src].")) update_appearance() else - to_chat(user, "[src] is empty!") + to_chat(user, span_warning("[src] is empty!")) . = ..() /obj/item/storage/belt/crusader/update_icon(updates) @@ -62,9 +62,9 @@ /obj/item/storage/belt/crusader/examine(mob/user) . = ..() - .+= "Ctrl-click it to easily open its inventory." + .+= span_notice("Ctrl-click it to easily open its inventory.") if(contents.len == 2) //If there's no sword/rod in the sheath slot it doesnt display the alt-click instruction - . += "Alt-click it to quickly draw the blade." + . += span_notice("Alt-click it to quickly draw the blade.") return /obj/item/storage/belt/crusader/ComponentInitialize() @@ -109,7 +109,7 @@ icon = 'modular_skyrat/master_files/icons/obj/clothing/belts.dmi' worn_icon = 'modular_skyrat/master_files/icons/mob/clothing/belt.dmi' name = "storage pouch" - desc = "Click on this to open your belt's inventory!" + desc = span_notice("Click on this to open your belt's inventory!") icon_state = "storage_pouch_icon" worn_icon_state = "no name" //Intentionally sets the worn icon to an error w_class = WEIGHT_CLASS_BULKY //Still cant put it in your bags, its technically a belt diff --git a/modular_skyrat/modules/customization/modules/clothing/suits/coats.dm b/modular_skyrat/modules/customization/modules/clothing/suits/coats.dm index 54885927d5a..396f748468f 100644 --- a/modular_skyrat/modules/customization/modules/clothing/suits/coats.dm +++ b/modular_skyrat/modules/customization/modules/clothing/suits/coats.dm @@ -80,8 +80,8 @@ return else user.dropItemToGround(src) - to_chat(user,"\"Amusing that you think you are fit to wear this.\"") - to_chat(user,"Your skin burns where the coat touched your skin!") + to_chat(user,span_largebrass("\"Amusing that you think you are fit to wear this.\"")) + to_chat(user,span_userdanger("Your skin burns where the coat touched your skin!")) user.adjustFireLoss(rand(10,16))*/ /obj/item/clothing/suit/hooded/wintercoat/narsie @@ -104,8 +104,8 @@ return else user.dropItemToGround(src) - to_chat(user,"\"You are not fit to wear my follower's coat!\"") - to_chat(user,"Sharp spines jab you from within the coat!") + to_chat(user,span_cultlarge("\"You are not fit to wear my follower's coat!\"")) + to_chat(user,span_userdanger("Sharp spines jab you from within the coat!")) user.adjustBruteLoss(rand(10,16))*/ /obj/item/clothing/head/hooded/winterhood/narsie diff --git a/modular_skyrat/modules/customization/modules/clothing/under/accessories.dm b/modular_skyrat/modules/customization/modules/clothing/under/accessories.dm index 12520828e24..2e2ea83f788 100644 --- a/modular_skyrat/modules/customization/modules/clothing/under/accessories.dm +++ b/modular_skyrat/modules/customization/modules/clothing/under/accessories.dm @@ -35,13 +35,13 @@ if(isliving(user)) 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].")) /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.")) user.do_attack_animation(M) cooldown = 30 @@ -59,7 +59,7 @@ /obj/item/clothing/accessory/badge/sheriff/attack(mob/living/carbon/human/M, mob/living/user) if(isliving(user)) - user.visible_message("[user] invades [M]'s personal space, the sheriff badge into their face!.","You invade [M]'s personal space, thrusting the sheriff badge into their face insistently.") + user.visible_message(span_danger("[user] invades [M]'s personal space, the sheriff badge into their face!."),span_danger("You invade [M]'s personal space, thrusting the sheriff badge into their face insistently.")) user.do_attack_animation(M) cooldown = 30 @@ -85,11 +85,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 = TRUE - to_chat(user, "You crack the holobadge security checks.") + to_chat(user, span_danger("You crack the holobadge security checks.")) return TRUE /obj/item/clothing/accessory/badge/holo/attackby(var/obj/item/object as obj, var/mob/user as mob) diff --git a/modular_skyrat/modules/customization/modules/clothing/~donator/donator_clothing.dm b/modular_skyrat/modules/customization/modules/clothing/~donator/donator_clothing.dm index 5dafbefe66b..984012c6717 100644 --- a/modular_skyrat/modules/customization/modules/clothing/~donator/donator_clothing.dm +++ b/modular_skyrat/modules/customization/modules/clothing/~donator/donator_clothing.dm @@ -289,7 +289,7 @@ return if("Maybe") playsound(src, 'sound/machines/buzz-sigh.ogg', 50, FALSE) - audible_message("The [src] buzzes!") + audible_message(span_warning("The [src] buzzes!")) return /obj/item/canvas/drawingtablet/get_paint_tool_color() @@ -558,11 +558,11 @@ if(goggles) icon_state = "avipilotup" inhand_icon_state = "avipilotup" - to_chat(user, "You put all your effort into pulling the goggles up.") + to_chat(user, span_notice("You put all your effort into pulling the goggles up.")) else icon_state = "avipilotdown" inhand_icon_state = "avipilotdown" - to_chat(user, "You focus all your willpower to put the goggles down on your eyes.") + to_chat(user, span_notice("You focus all your willpower to put the goggles down on your eyes.")) goggles = !goggles if(user) user.head_update(src, forced = 1) @@ -714,7 +714,7 @@ update_icon() ooser.update_inv_wear_mask() ooser.update_action_buttons_icon() - to_chat(ooser, "You toggle the [src] to [possible_colors[c_color_index]].") + to_chat(ooser, span_notice("You toggle the [src] to [possible_colors[c_color_index]].")) //Donation reward for asky / Zulie /obj/item/clothing/suit/hooded/cloak/zuliecloak diff --git a/modular_skyrat/modules/customization/modules/mob/living/carbon/human/human.dm b/modular_skyrat/modules/customization/modules/mob/living/carbon/human/human.dm index 47048f16ba9..929ea20b8dd 100644 --- a/modular_skyrat/modules/customization/modules/mob/living/carbon/human/human.dm +++ b/modular_skyrat/modules/customization/modules/mob/living/carbon/human/human.dm @@ -18,7 +18,7 @@ continue line += ORG.get_description_string(G) if(length(line)) - to_chat(usr, "[jointext(line, "\n")]") + to_chat(usr, span_notice("[jointext(line, "\n")]")) if("open_examine_panel") tgui.holder = src tgui.ui_interact(usr) //datum has a tgui component, here we open the window @@ -56,7 +56,7 @@ set desc = "Allows you to toggle which underwear should show or be hidden. Underwear will obscure genitals." if(stat != CONSCIOUS) - to_chat(usr, "You can't toggle underwear visibility right now...") + to_chat(usr, span_warning("You can't toggle underwear visibility right now...")) return var/underwear_button = underwear_visibility & UNDERWEAR_HIDE_UNDIES ? "Show underwear" : "Hide underwear" @@ -91,12 +91,12 @@ set desc = "Allows you to choose to try and hide your mutant bodyparts under your clothes." if(stat != CONSCIOUS) - to_chat(usr, "You can't do this right now...") + to_chat(usr, span_warning("You can't do this right now...")) return if(!try_hide_mutant_parts && !do_after(src, 3 SECONDS,target = src)) return try_hide_mutant_parts = !try_hide_mutant_parts - to_chat(usr, "[try_hide_mutant_parts ? "You try and hide your mutant body parts under your clothes." : "You no longer try and hide your mutant body parts"]") + to_chat(usr, span_notice("[try_hide_mutant_parts ? "You try and hide your mutant body parts under your clothes." : "You no longer try and hide your mutant body parts"]")) update_mutant_bodyparts() /mob/living/carbon/human/verb/acting() @@ -105,7 +105,7 @@ set desc = "Slur, stutter or jitter for a short duration." if(stat != CONSCIOUS) - to_chat(usr, "You can't do this right now...") + to_chat(usr, span_warning("You can't do this right now...")) return var/list/choices = list("Drunkenness", "Stuttering", "Jittering") diff --git a/modular_skyrat/modules/customization/modules/mob/living/carbon/human/human_defense.dm b/modular_skyrat/modules/customization/modules/mob/living/carbon/human/human_defense.dm index 8f59049d76f..f46ce668c16 100644 --- a/modular_skyrat/modules/customization/modules/mob/living/carbon/human/human_defense.dm +++ b/modular_skyrat/modules/customization/modules/mob/living/carbon/human/human_defense.dm @@ -8,7 +8,7 @@ for(var/obj/item/bodypart/L in src.bodyparts) if(L.status == BODYPART_ROBOTIC) if(!informed) - to_chat(src, "You feel a sharp pain as your robotic limbs overload.") + to_chat(src, span_userdanger("You feel a sharp pain as your robotic limbs overload.")) informed = TRUE switch(severity) if(1) diff --git a/modular_skyrat/modules/customization/modules/mob/living/carbon/human/species/robotic.dm b/modular_skyrat/modules/customization/modules/mob/living/carbon/human/species/robotic.dm index 3a682582be3..18bbdd51224 100644 --- a/modular_skyrat/modules/customization/modules/mob/living/carbon/human/species/robotic.dm +++ b/modular_skyrat/modules/customization/modules/mob/living/carbon/human/species/robotic.dm @@ -43,12 +43,12 @@ H.adjustFireLoss(1) //Still deal some damage in case a cold environment would be preventing us from the sweet release to robot heaven H.adjust_bodytemperature(13) //We're overheating!! if(prob(10)) - to_chat(H, "Alert: Critical damage taken! Cooling systems failing!") + to_chat(H, span_warning("Alert: Critical damage taken! Cooling systems failing!")) do_sparks(3, TRUE, H) /datum/species/robotic/spec_revival(mob/living/carbon/human/H) playsound(H.loc, 'sound/machines/chime.ogg', 50, 1, -1) - H.visible_message("[H]'s monitor lights up.", "All systems nominal. You're back online!") + H.visible_message(span_notice("[H]'s monitor lights up."), span_notice("All systems nominal. You're back online!")) /datum/species/robotic/on_species_gain(mob/living/carbon/human/C) . = ..() diff --git a/modular_skyrat/modules/customization/modules/mob/living/carbon/human/species/roundstartslime.dm b/modular_skyrat/modules/customization/modules/mob/living/carbon/human/species/roundstartslime.dm index 9b14042948b..1950036608b 100644 --- a/modular_skyrat/modules/customization/modules/mob/living/carbon/human/species/roundstartslime.dm +++ b/modular_skyrat/modules/customization/modules/mob/living/carbon/human/species/roundstartslime.dm @@ -36,11 +36,11 @@ if(slime_restricted && !isjellyperson(H)) return if(slime_restricted) - H.visible_message("[owner] gains a look of \ + H.visible_message(span_notice("[owner] gains a look of \ concentration while standing perfectly still.\ - Their body seems to shift and starts getting more goo-like.", - "You focus intently on altering your body while \ - standing perfectly still...") + Their body seems to shift and starts getting more goo-like."), + span_notice("You focus intently on altering your body while \ + standing perfectly still...")) change_form() /datum/action/innate/slime_change/proc/change_form() @@ -194,10 +194,10 @@ var/obj/item/organ/genital/breasts/melons = H.getorganslot(ORGAN_SLOT_BREASTS) if(melons) melons.lactates = DNA.features["breasts_lactation"] - to_chat(H, "Your breasts [DNA.features["breasts_lactation"] ? "will now lactate" : "will not lactate anymore"].") + to_chat(H, span_notice("Your breasts [DNA.features["breasts_lactation"] ? "will now lactate" : "will not lactate anymore"].")) if("Penis Taur Mode") DNA.features["penis_taur_mode"] = !DNA.features["penis_taur_mode"] - to_chat(H, "Your penis [DNA.features["penis_taur_mode"] ? "will be at your taur part" : "will not be at your taur part anymore"].") + to_chat(H, span_notice("Your penis [DNA.features["penis_taur_mode"] ? "will be at your taur part" : "will not be at your taur part anymore"].")) if("Penis Size") var/new_length = input(H, "Choose your penis length:\n([PENIS_MIN_LENGTH]-[PENIS_MAX_LENGTH] in inches)", "DNA Alteration") as num|null if(new_length) diff --git a/modular_skyrat/modules/customization/modules/mob/living/living_verbs.dm b/modular_skyrat/modules/customization/modules/mob/living/living_verbs.dm index 86ace84a313..10d437ee23a 100644 --- a/modular_skyrat/modules/customization/modules/mob/living/living_verbs.dm +++ b/modular_skyrat/modules/customization/modules/mob/living/living_verbs.dm @@ -4,7 +4,7 @@ set desc = "Allows you to set a temporary flavor text." if(stat != CONSCIOUS) - to_chat(usr, "You can't set your temporary flavor text now...") + to_chat(usr, span_warning("You can't set your temporary flavor text now...")) return var/msg = input(usr, "Set the temporary flavor text in your 'examine' verb. This is for describing what people can tell by looking at your character.", "Temporary Flavor Text", temporary_flavor_text) as message|null diff --git a/modular_skyrat/modules/customization/modules/mob/living/simple_mob/examine.dm b/modular_skyrat/modules/customization/modules/mob/living/simple_mob/examine.dm index 1d504604c45..2746ae43c51 100644 --- a/modular_skyrat/modules/customization/modules/mob/living/simple_mob/examine.dm +++ b/modular_skyrat/modules/customization/modules/mob/living/simple_mob/examine.dm @@ -3,6 +3,6 @@ //Temporary flavor text addition: if(temporary_flavor_text) if(length_char(temporary_flavor_text) <= 40) - . += "[temporary_flavor_text]" + . += span_notice("[temporary_flavor_text]") else - . += "[copytext_char(temporary_flavor_text, 1, 37)]... More..." + . += span_notice("[copytext_char(temporary_flavor_text, 1, 37)]... More...") diff --git a/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/alcohol_reagents.dm b/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/alcohol_reagents.dm index 058ae949703..01879b68f7f 100644 --- a/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/alcohol_reagents.dm +++ b/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/alcohol_reagents.dm @@ -31,7 +31,7 @@ if(C.mob_biotypes & MOB_ROBOTIC) return if(method == INGEST) - to_chat(C, pick("That was awful!", "That was disgusting!")) + to_chat(C, pick(span_danger("That was awful!"), span_danger("That was disgusting!"))) /datum/reagent/consumable/ethanol/synthanol/robottears name = "Robot Tears" @@ -109,7 +109,7 @@ /datum/reagent/consumable/ethanol/gunfire/on_mob_life(mob/living/carbon/M) if (prob(3)) - to_chat(M,"You feel the gunfire pop in your mouth.") + to_chat(M,span_notice("You feel the gunfire pop in your mouth.")) return ..() /datum/reagent/consumable/ethanol/hellfire diff --git a/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/drink_reagents.dm b/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/drink_reagents.dm index 152ad7d49b0..cee88747aa4 100644 --- a/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/drink_reagents.dm +++ b/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/drink_reagents.dm @@ -13,7 +13,7 @@ /datum/reagent/consumable/tea/pinkmilk/on_mob_life(mob/living/carbon/M) if(prob(15)) - to_chat(M, "[pick("You cant help to smile.","You feel nostalgia all of sudden.","You remember to relax.")]") + to_chat(M, span_notice("[pick("You cant help to smile.","You feel nostalgia all of sudden.","You remember to relax.")]")) ..() . = 1 @@ -30,7 +30,7 @@ /datum/reagent/consumable/tea/pinktea/on_mob_life(mob/living/carbon/M) if(prob(10)) - to_chat(M, "[pick("Diamond skies where white deer fly.","Sipping strawberry tea.","Silver raindrops drift through timeless, Neverending June.","Crystal ... pearls free, with love!","Beaming love into me.")]") + to_chat(M, span_notice("[pick("Diamond skies where white deer fly.","Sipping strawberry tea.","Silver raindrops drift through timeless, Neverending June.","Crystal ... pearls free, with love!","Beaming love into me.")]")) ..() . = 1 @@ -49,7 +49,7 @@ if(prob(20)) M.emote("nya") if(prob(20)) - to_chat(M, "[pick("Headpats feel nice.", "Backrubs would be nice.", "Mew")]") + to_chat(M, span_notice("[pick("Headpats feel nice.", "Backrubs would be nice.", "Mew")]")) ..() /datum/reagent/consumable/milkshake diff --git a/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/medicine_reagents.dm b/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/medicine_reagents.dm index 2a625873b45..ab8002852c6 100644 --- a/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/medicine_reagents.dm +++ b/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/medicine_reagents.dm @@ -61,7 +61,7 @@ M.adjustFireLoss(-reac_volume) M.adjustBruteLoss(-reac_volume) if(show_message) - to_chat(M, "You feel much better...") + to_chat(M, span_notice("You feel much better...")) ..() /datum/reagent/medicine/nanite_slurry/on_mob_life(mob/living/carbon/M) diff --git a/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/other_reagents.dm b/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/other_reagents.dm index e65968d0b31..3582b3654bd 100644 --- a/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/other_reagents.dm +++ b/modular_skyrat/modules/customization/modules/reagents/chemistry/reagents/other_reagents.dm @@ -45,5 +45,5 @@ if(prob(20)) M.emote("nya") if(prob(20)) - to_chat(M, "[pick("Headpats feel nice.", "The feeling of a hairball...", "Backrubs would be nice.", "Mew")]") + to_chat(M, span_notice("[pick("Headpats feel nice.", "The feeling of a hairball...", "Backrubs would be nice.", "Mew")]")) ..() diff --git a/modular_skyrat/modules/customization/modules/surgery/mechanic_steps.dm b/modular_skyrat/modules/customization/modules/surgery/mechanic_steps.dm index 7a51548272c..f4cf579432e 100644 --- a/modular_skyrat/modules/customization/modules/surgery/mechanic_steps.dm +++ b/modular_skyrat/modules/customization/modules/surgery/mechanic_steps.dm @@ -9,7 +9,7 @@ time = 24 /datum/surgery_step/cut_wires/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to cut loose wires in [target]'s [parse_zone(target_zone)]...", + display_results(user, target, span_notice("You begin to cut loose wires in [target]'s [parse_zone(target_zone)]..."), "[user] begins to cut loose wires in [target]'s [parse_zone(target_zone)].", "[user] begins to cut loose wires in [target]'s [parse_zone(target_zone)].") @@ -31,7 +31,7 @@ return TRUE /datum/surgery_step/pry_off_plating/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to pry off [target]'s [parse_zone(target_zone)] plating...", + display_results(user, target, span_notice("You begin to pry off [target]'s [parse_zone(target_zone)] plating..."), "[user] begins to pry off [target]'s [parse_zone(target_zone)] plating.", "[user] begins to pry off [target]'s [parse_zone(target_zone)] plating.") @@ -48,7 +48,7 @@ return TRUE /datum/surgery_step/weld_plating/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to weld [target]'s [parse_zone(target_zone)] plating...", + display_results(user, target, span_notice("You begin to weld [target]'s [parse_zone(target_zone)] plating..."), "[user] begins to weld [target]'s [parse_zone(target_zone)] plating.", "[user] begins to weld [target]'s [parse_zone(target_zone)] plating.") @@ -62,7 +62,7 @@ /datum/surgery_step/replace_wires/tool_check(mob/user, obj/item/tool) var/obj/item/stack/cable_coil/coil = tool if(coil.get_amount() < cableamount) - to_chat(user, "Not enough cable!") + to_chat(user, span_warning("Not enough cable!")) return FALSE return TRUE @@ -73,7 +73,7 @@ return TRUE /datum/surgery_step/replace_wires/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to replace [target]'s [parse_zone(target_zone)] wiring...", + display_results(user, target, span_notice("You begin to replace [target]'s [parse_zone(target_zone)] wiring..."), "[user] begins to replace [target]'s [parse_zone(target_zone)] wiring.", "[user] begins to replace [target]'s [parse_zone(target_zone)] wiring.") @@ -87,7 +87,7 @@ /datum/surgery_step/add_plating/tool_check(mob/user, obj/item/tool) var/obj/item/stack/sheet/iron/plat = tool if(plat.get_amount() < ironamount) - to_chat(user, "Not enough iron!") + to_chat(user, span_warning("Not enough iron!")) return FALSE return TRUE @@ -98,6 +98,6 @@ return TRUE /datum/surgery_step/add_plating/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to add plating to [target]'s [parse_zone(target_zone)]...", + display_results(user, target, span_notice("You begin to add plating to [target]'s [parse_zone(target_zone)]..."), "[user] begins to add plating to [target]'s [parse_zone(target_zone)].", "[user] begins to add plating to [target]'s [parse_zone(target_zone)].") diff --git a/modular_skyrat/modules/customization/modules/surgery/organs/genitals.dm b/modular_skyrat/modules/customization/modules/surgery/organs/genitals.dm index f4ab0e00960..76477dddde0 100644 --- a/modular_skyrat/modules/customization/modules/surgery/organs/genitals.dm +++ b/modular_skyrat/modules/customization/modules/surgery/organs/genitals.dm @@ -358,7 +358,7 @@ set desc = "Allows you to toggle which genitals should show through clothes or not." if(stat != CONSCIOUS) - to_chat(usr, "You can't toggle genitals visibility right now...") + to_chat(usr, span_warning("You can't toggle genitals visibility right now...")) return var/list/genital_list = list() @@ -387,7 +387,7 @@ set desc = "Allows you to toggle how aroused your private parts are." if(stat != CONSCIOUS) - to_chat(usr, "You can't toggle arousal right now...") + to_chat(usr, span_warning("You can't toggle arousal right now...")) return var/list/genital_list = list() diff --git a/modular_skyrat/modules/customization/modules/surgery/organs/ipc.dm b/modular_skyrat/modules/customization/modules/surgery/organs/ipc.dm index abacf8fdb0e..5be7aa54c82 100644 --- a/modular_skyrat/modules/customization/modules/surgery/organs/ipc.dm +++ b/modular_skyrat/modules/customization/modules/surgery/organs/ipc.dm @@ -20,10 +20,10 @@ switch(severity) if(1) owner.adjustOrganLoss(ORGAN_SLOT_BRAIN, 75, 150) - to_chat(owner, "Alert: Posibrain heavily damaged.") + to_chat(owner, span_warning("Alert: Posibrain heavily damaged.")) if(2) owner.adjustOrganLoss(ORGAN_SLOT_BRAIN, 25, 150) - to_chat(owner, "Alert: Posibrain damaged.") + to_chat(owner, span_warning("Alert: Posibrain damaged.")) /obj/item/organ/stomach/robot_ipc name = "IPC micro cell" @@ -43,10 +43,10 @@ switch(severity) if(1) owner.nutrition = 50 - to_chat(owner, "Alert: Detected severe battery discharge!") + to_chat(owner, span_warning("Alert: Detected severe battery discharge!")) if(2) owner.nutrition = 250 - to_chat(owner, "Alert: Minor battery discharge!") + to_chat(owner, span_warning("Alert: Minor battery discharge!")) /obj/item/organ/ears/robot_ipc name = "auditory sensors" @@ -69,12 +69,12 @@ owner.Dizzy(30) owner.Knockdown(80) deaf = 30 - to_chat(owner, "Your robotic ears are ringing, uselessly.") + to_chat(owner, span_warning("Your robotic ears are ringing, uselessly.")) if(2) owner.Jitter(15) owner.Dizzy(15) owner.Knockdown(40) - to_chat(owner, "Your robotic ears buzz.") + to_chat(owner, span_warning("Your robotic ears buzz.")) /obj/item/organ/tongue/robot_ipc name = "robotic voicebox" @@ -102,7 +102,7 @@ . = ..() if(!owner || . & EMP_PROTECT_SELF) return - to_chat(owner, "Static obfuscates your vision!") + to_chat(owner, span_warning("Static obfuscates your vision!")) owner.flash_act(visual = 1) if(severity == EMP_HEAVY) owner.adjustOrganLoss(ORGAN_SLOT_EYES, 20) @@ -132,7 +132,7 @@ return switch(severity) if(1) - to_chat(owner, "Alert: Critical cooling system failure!") + to_chat(owner, span_warning("Alert: Critical cooling system failure!")) owner.adjust_bodytemperature(100*TEMPERATURE_DAMAGE_COEFFICIENT) if(2) owner.adjust_bodytemperature(30*TEMPERATURE_DAMAGE_COEFFICIENT) @@ -174,18 +174,18 @@ var/mob/living/carbon/human/ipc = user var/obj/item/organ/stomach/robot_ipc/cell = locate(/obj/item/organ/stomach/robot_ipc) in ipc.internal_organs if(!cell) - to_chat(ipc, "You try to siphon energy from the [target_apc], but your power cell is gone!") + to_chat(ipc, span_warning("You try to siphon energy from the [target_apc], but your power cell is gone!")) return if(target_apc.cell && target_apc.cell.charge > 0) if(ipc.nutrition >= NUTRITION_LEVEL_WELL_FED) - to_chat(user, "You are already fully charged!") + to_chat(user, span_warning("You are already fully charged!")) return else powerdraw_loop(target_apc, ipc) return - to_chat(user, "There is no charge to draw from that APC.") + to_chat(user, span_warning("There is no charge to draw from that APC.")) #define IPC_CHARGE_MAX 150 #define IPC_CHARGE_MIN 50 @@ -193,37 +193,37 @@ #define IPC_CHARGE_DELAY_PER_100 10 /obj/item/apc_powercord/proc/powerdraw_loop(obj/machinery/power/apc/target_apc, mob/living/carbon/human/user) - user.visible_message("[user] inserts a power connector into the [target_apc].", "You begin to draw power from the [target_apc].") + user.visible_message(span_notice("[user] inserts a power connector into the [target_apc]."), span_notice("You begin to draw power from the [target_apc].")) while(TRUE) var/power_needed = NUTRITION_LEVEL_WELL_FED - user.nutrition // How much charge do we need in total? // Do we even need anything? if(power_needed <= 0) - to_chat(user, "You are fully charged.") + to_chat(user, span_notice("You are fully charged.")) break // Is the APC almost empty? if(target_apc.cell.percent() < 10) - to_chat(user, "[target_apc]'s emergency power is active.") + to_chat(user, span_warning("[target_apc]'s emergency power is active.")) break // Calculate how much to draw this cycle var/power_use = clamp(power_needed, IPC_CHARGE_MIN, IPC_CHARGE_MAX) power_use = clamp(power_use, 0, target_apc.cell.charge) // Are we able to draw anything? if(power_use==0) - to_chat(user, "[target_apc] lacks the power to charge you.") + to_chat(user, span_warning("[target_apc] lacks the power to charge you.")) break // Calculate the delay. var/power_delay = (power_use/100) * IPC_CHARGE_DELAY_PER_100 // Attempt to run a charging cycle. if(!do_after(user, power_delay, target = target_apc)) - to_chat(user, "You accidentally rip the powercord from [target_apc].") + to_chat(user, span_warning("You accidentally rip the powercord from [target_apc].")) break // Use the power and increase nutrition. target_apc.cell.use(power_use) user.nutrition += power_use / IPC_CHARGE_PER_NUTRITION do_sparks(1, FALSE, target_apc) - user.visible_message("[user] unplugs from the [target_apc].", "You unplug from the [target_apc].") + user.visible_message(span_notice("[user] unplugs from the [target_apc]."), span_notice("You unplug from the [target_apc].")) #undef IPC_CHARGE_MAX #undef IPC_CHARGE_MIN diff --git a/modular_skyrat/modules/customization/modules/surgery/organs/vox.dm b/modular_skyrat/modules/customization/modules/surgery/organs/vox.dm index f0b43c08e51..115a4143b8d 100644 --- a/modular_skyrat/modules/customization/modules/surgery/organs/vox.dm +++ b/modular_skyrat/modules/customization/modules/surgery/organs/vox.dm @@ -28,13 +28,13 @@ return switch(severity) if(1) - to_chat(owner, "You feel [pick("like your brain is being fried", "a sharp pain in your head")]!") + to_chat(owner, span_boldwarning("You feel [pick("like your brain is being fried", "a sharp pain in your head")]!")) owner.adjustOrganLoss(ORGAN_SLOT_BRAIN, 20, 150) owner.jitteriness += 30 owner.stuttering += 30 owner.add_confusion(10) if(2) - to_chat(owner, "You feel [pick("disoriented", "confused", "dizzy")].") + to_chat(owner, span_warning("You feel [pick("disoriented", "confused", "dizzy")].")) owner.adjustOrganLoss(ORGAN_SLOT_BRAIN, 10, 150) owner.jitteriness += 10 owner.stuttering += 10 diff --git a/modular_skyrat/modules/customization/modules/surgery/robot_brain_surgery.dm b/modular_skyrat/modules/customization/modules/surgery/robot_brain_surgery.dm index 9e3acd669f5..84d0ba71582 100644 --- a/modular_skyrat/modules/customization/modules/surgery/robot_brain_surgery.dm +++ b/modular_skyrat/modules/customization/modules/surgery/robot_brain_surgery.dm @@ -24,12 +24,12 @@ return TRUE /datum/surgery_step/fix_robot_brain/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to fix [target]'s posibrain...", + display_results(user, target, span_notice("You begin to fix [target]'s posibrain..."), "[user] begins to fix [target]'s posibrain.", "[user] begins to perform surgery on [target]'s posibrain.") /datum/surgery_step/fix_robot_brain/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You succeed in fixing [target]'s posibrain.", + display_results(user, target, span_notice("You succeed in fixing [target]'s posibrain."), "[user] successfully fixes [target]'s posibrain!", "[user] completes the surgery on [target]'s posibrain.") if(target.mind && target.mind.has_antag_datum(/datum/antagonist/brainwashed)) @@ -40,11 +40,11 @@ /datum/surgery_step/fix_robot_brain/failure(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) if(target.getorganslot(ORGAN_SLOT_BRAIN)) - display_results(user, target, "You screw up, causing more damage!", - "[user] screws up, causing damage to the circuits!", + display_results(user, target, span_warning("You screw up, causing more damage!"), + span_warning("[user] screws up, causing damage to the circuits!"), "[user] completes the surgery on [target]'s posibrain.") target.adjustOrganLoss(ORGAN_SLOT_BRAIN, 60) target.gain_trauma_type(BRAIN_TRAUMA_SEVERE, TRAUMA_RESILIENCE_LOBOTOMY) else - user.visible_message("[user] suddenly notices that the posibrain [user.p_they()] [user.p_were()] working on is not there anymore.", "You suddenly notice that the posibrain you were working on is not there anymore.") + user.visible_message(span_warning("[user] suddenly notices that the posibrain [user.p_they()] [user.p_were()] working on is not there anymore."), span_warning("You suddenly notice that the posibrain you were working on is not there anymore.")) return FALSE diff --git a/modular_skyrat/modules/customization/modules/surgery/robot_chassis_restoration.dm b/modular_skyrat/modules/customization/modules/surgery/robot_chassis_restoration.dm index 77db39715d3..7015c3d7c16 100644 --- a/modular_skyrat/modules/customization/modules/surgery/robot_chassis_restoration.dm +++ b/modular_skyrat/modules/customization/modules/surgery/robot_chassis_restoration.dm @@ -19,7 +19,7 @@ time = 120 /datum/surgery_step/pry_off_plating/fullbody/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to pry off [target]'s plating...", + display_results(user, target, span_notice("You begin to pry off [target]'s plating..."), "[user] begins to pry off [target]'s plating.", "[user] begins to pry off [target]'s plating.") @@ -27,7 +27,7 @@ time = 120 /datum/surgery_step/cut_wires/fullbody/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to cut [target]'s loose wires...", + display_results(user, target, span_notice("You begin to cut [target]'s loose wires..."), "[user] begins to cut [target]'s loose wires.", "[user] begins to cut [target]'s loose wires.") @@ -35,7 +35,7 @@ time = 120 /datum/surgery_step/weld_plating/fullbody/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to weld [target]'s plating...", + display_results(user, target, span_notice("You begin to weld [target]'s plating..."), "[user] begins to weld [target]'s plating.", "[user] begins to weld [target]'s plating.") @@ -44,7 +44,7 @@ cableamount = 15 /datum/surgery_step/replace_wires/fullbody/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to replace [target]'s wiring...", + display_results(user, target, span_notice("You begin to replace [target]'s wiring..."), "[user] begins to replace [target]'s wiring.", "[user] begins to replace [target]'s wiring.") @@ -53,7 +53,7 @@ ironamount = 15 /datum/surgery_step/add_plating/fullbody/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to add plating to [target]...", + display_results(user, target, span_notice("You begin to add plating to [target]..."), "[user] begins to add plating to [target].", "[user] begins to add plating to [target].") @@ -64,7 +64,7 @@ time = 120 /datum/surgery_step/finalize_chassis_restoration/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to finalize [target]'s chassis...", + display_results(user, target, span_notice("You begin to finalize [target]'s chassis..."), "[user] begins to finalize [target]'s chassis.", "[user] begins to finalize [target]'s chassis.") diff --git a/modular_skyrat/modules/customization/modules/surgery/robot_healing.dm b/modular_skyrat/modules/customization/modules/surgery/robot_healing.dm index f2d0e81f1ee..ed314b692ad 100644 --- a/modular_skyrat/modules/customization/modules/surgery/robot_healing.dm +++ b/modular_skyrat/modules/customization/modules/surgery/robot_healing.dm @@ -53,9 +53,9 @@ if(istype(surgery,/datum/surgery/robot_healing)) var/datum/surgery/robot_healing/the_surgery = surgery if(!the_surgery.antispam) - display_results(user, target, "You attempt to fix some of [target]'s [woundtype].", - "[user] attempts to fix some of [target]'s [woundtype].", - "[user] attempts to fix some of [target]'s [woundtype].") + display_results(user, target, span_notice("You attempt to fix some of [target]'s [woundtype]."), + span_notice("[user] attempts to fix some of [target]'s [woundtype]."), + span_notice("[user] attempts to fix some of [target]'s [woundtype].")) /datum/surgery_step/robot_heal/initiate(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery, try_to_fail = FALSE) if(..()) @@ -88,7 +88,7 @@ umsg += " as best as you can while they have clothing on" tmsg += " as best as they can while [target] has clothing on" target.heal_bodypart_damage(urhealedamt_brute,urhealedamt_burn, 0, BODYPART_ROBOTIC) - display_results(user, target, "[umsg].", + display_results(user, target, span_notice("[umsg]."), "[tmsg].", "[tmsg].") if(istype(surgery, /datum/surgery/robot_healing)) @@ -97,9 +97,9 @@ return TRUE /datum/surgery_step/robot_heal/failure(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You screwed up!", - "[user] screws up!", - "[user] fixes some of [target]'s damage.", TRUE) + display_results(user, target, span_warning("You screwed up!"), + span_warning("[user] screws up!"), + span_notice("[user] fixes some of [target]'s damage."), TRUE) var/urdamageamt_brute = 0 if(healsbrute) urdamageamt_brute = brutehealing * 0.8 diff --git a/modular_skyrat/modules/customization/modules/surgery/robot_restore_looks.dm b/modular_skyrat/modules/customization/modules/surgery/robot_restore_looks.dm index af492940790..6c5ab5ee22b 100644 --- a/modular_skyrat/modules/customization/modules/surgery/robot_restore_looks.dm +++ b/modular_skyrat/modules/customization/modules/surgery/robot_restore_looks.dm @@ -18,17 +18,17 @@ /datum/surgery_step/restore_paintjob/tool_check(mob/user, obj/item/tool) var/obj/item/toy/crayon/spraycan/sc = tool if(sc.is_capped) - to_chat(user, "Take the cap off first!") + to_chat(user, span_warning("Take the cap off first!")) return FALSE if(sc.charges < 10) - to_chat(user, "Not enough paint in the can!") + to_chat(user, span_warning("Not enough paint in the can!")) return FALSE return TRUE /datum/surgery_step/restore_paintjob/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) var/obj/item/toy/crayon/spraycan/sc = tool sc.use_charges(user, 10, FALSE) - sc.audible_message("You hear spraying.") + sc.audible_message(span_notice("You hear spraying.")) playsound(target.loc, 'sound/effects/spray.ogg', 5, 1, 5) if(target?.dna?.species) for(var/obj/item/bodypart/O in target.bodyparts) @@ -44,6 +44,6 @@ return TRUE /datum/surgery_step/restore_paintjob/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery) - display_results(user, target, "You begin to spray paint on [target]...", + display_results(user, target, span_notice("You begin to spray paint on [target]..."), "[user] begins to spray paint on [target]'s [parse_zone(target_zone)].", "[user] begins to spray paint on [target]'s [parse_zone(target_zone)].") diff --git a/modular_skyrat/modules/cyborg/code/borgpowertools.dm b/modular_skyrat/modules/cyborg/code/borgpowertools.dm index 8f6e6812c5a..d45be282dd7 100644 --- a/modular_skyrat/modules/cyborg/code/borgpowertools.dm +++ b/modular_skyrat/modules/cyborg/code/borgpowertools.dm @@ -15,12 +15,12 @@ playsound(get_turf(user), 'sound/items/change_jaws.ogg', 50, TRUE) if(tool_behaviour == TOOL_CROWBAR) tool_behaviour = TOOL_WIRECUTTER - to_chat(user, "You attach the cutting jaws to [src].") + to_chat(user, span_notice("You attach the cutting jaws to [src].")) icon_state = "jaws_cutter_cyborg" usesound = 'sound/items/jaws_cut.ogg' else tool_behaviour = TOOL_CROWBAR - to_chat(user, "You attach the prying jaws to [src].") + to_chat(user, span_notice("You attach the prying jaws to [src].")) icon_state = "jaws_pry_cyborg" usesound = 'sound/items/jaws_pry.ogg' @@ -42,9 +42,9 @@ playsound(get_turf(user), 'sound/items/change_drill.ogg', 50, TRUE) if(tool_behaviour == TOOL_SCREWDRIVER) tool_behaviour = TOOL_WRENCH - to_chat(user, "You attach the bolt bit to [src].") + to_chat(user, span_notice("You attach the bolt bit to [src].")) icon_state = "drill_bolt_cyborg" else tool_behaviour = TOOL_SCREWDRIVER - to_chat(user, "You attach the screw bit to [src].") + to_chat(user, span_notice("You attach the screw bit to [src].")) icon_state = "drill_screw_cyborg" diff --git a/modular_skyrat/modules/cyborg/code/robot_upgrades.dm b/modular_skyrat/modules/cyborg/code/robot_upgrades.dm index ae57d914d5a..9ace40561b7 100644 --- a/modular_skyrat/modules/cyborg/code/robot_upgrades.dm +++ b/modular_skyrat/modules/cyborg/code/robot_upgrades.dm @@ -13,10 +13,10 @@ if(.) if(borg.hasShrunk) - to_chat(usr, "This unit already has a shrink module installed!") + to_chat(usr, span_warning("This unit already has a shrink module installed!")) return FALSE if(R_TRAIT_SMALL in borg.model.model_features) - to_chat(usr, "This unit's chassis cannot be shrunk any further.") + to_chat(usr, span_warning("This unit's chassis cannot be shrunk any further.")) return FALSE borg.hasShrunk = TRUE diff --git a/modular_skyrat/modules/electric_welder/code/electric_welder.dm b/modular_skyrat/modules/electric_welder/code/electric_welder.dm index 92334ad4de3..0b108d01bcf 100644 --- a/modular_skyrat/modules/electric_welder/code/electric_welder.dm +++ b/modular_skyrat/modules/electric_welder/code/electric_welder.dm @@ -27,10 +27,10 @@ powered = !powered playsound(src, 'sound/effects/sparks4.ogg', 100, TRUE) if(powered) - to_chat(user, "You turn [src] on.") + to_chat(user, span_notice("You turn [src] on.")) switched_on() return - to_chat(user, "You turn [src] off.") + to_chat(user, span_notice("You turn [src] off.")) switched_off() /obj/item/weldingtool/electric/switched_on(mob/user) diff --git a/modular_skyrat/modules/emotes/code/scream_emote.dm b/modular_skyrat/modules/emotes/code/scream_emote.dm index 112784c9646..3f6980c3dd3 100644 --- a/modular_skyrat/modules/emotes/code/scream_emote.dm +++ b/modular_skyrat/modules/emotes/code/scream_emote.dm @@ -46,7 +46,7 @@ var/mob/living/silicon/robot/R = user if(R.cell?.charge < 200) - to_chat(R, "Scream module deactivated. Please recharge.") + to_chat(R, span_warning("Scream module deactivated. Please recharge.")) return FALSE R.cell.use(200) return ..() diff --git a/modular_skyrat/modules/events/code/event_spawner.dm b/modular_skyrat/modules/events/code/event_spawner.dm index cb91c0b52e5..2db9130e5a2 100644 --- a/modular_skyrat/modules/events/code/event_spawner.dm +++ b/modular_skyrat/modules/events/code/event_spawner.dm @@ -163,7 +163,7 @@ H.ckey = user.ckey //Greet! - to_chat(H, "You are the [job_name]") - to_chat(H, "[flavor_text]") + to_chat(H, span_big("You are the [job_name]")) + to_chat(H, span_bold("[flavor_text]")) if(disappear_after_spawn) qdel(src) diff --git a/modular_skyrat/modules/exp_corps/code/clothing.dm b/modular_skyrat/modules/exp_corps/code/clothing.dm index 84eedf9a561..b52f4ebff50 100644 --- a/modular_skyrat/modules/exp_corps/code/clothing.dm +++ b/modular_skyrat/modules/exp_corps/code/clothing.dm @@ -189,10 +189,10 @@ return my_helmet.nightvision = !my_helmet.nightvision if(my_helmet.nightvision) - to_chat(owner, "You flip the NV goggles down.") + to_chat(owner, span_notice("You flip the NV goggles down.")) my_helmet.enable_nv() else - to_chat(owner, "You flip the NV goggles up.") + to_chat(owner, span_notice("You flip the NV goggles up.")) my_helmet.disable_nv() my_helmet.update_appearance() @@ -228,10 +228,10 @@ nightvision = !nightvision if(nightvision) - to_chat(user, "You flip the NV goggles down.") + to_chat(user, span_notice("You flip the NV goggles down.")) enable_nv() else - to_chat(user, "You flip the NV goggles up.") + to_chat(user, span_notice("You flip the NV goggles up.")) disable_nv() update_appearance() diff --git a/modular_skyrat/modules/exp_corps/code/expeditionary_trooper.dm b/modular_skyrat/modules/exp_corps/code/expeditionary_trooper.dm index 486b62c5324..cee04f63ecd 100644 --- a/modular_skyrat/modules/exp_corps/code/expeditionary_trooper.dm +++ b/modular_skyrat/modules/exp_corps/code/expeditionary_trooper.dm @@ -33,8 +33,8 @@ /datum/job/expeditionary_trooper/after_spawn(mob/living/carbon/human/H, mob/M) . = ..() - to_chat(M, "As a Vanguard Operative you are not part of security! You must not perform security duties unless absolutely nessecary. \ - Do not valid hunt using your equipment. Use common sense. Failure to follow these simple rules will result in a job ban.") + to_chat(M, span_redtext("As a Vanguard Operative you are not part of security! You must not perform security duties unless absolutely nessecary. \ + Do not valid hunt using your equipment. Use common sense. Failure to follow these simple rules will result in a job ban.")) /datum/outfit/job/expeditionary_trooper name = "Vanguard Operative" diff --git a/modular_skyrat/modules/exp_corps/code/gear.dm b/modular_skyrat/modules/exp_corps/code/gear.dm index 018711b5c64..8843c5e2139 100644 --- a/modular_skyrat/modules/exp_corps/code/gear.dm +++ b/modular_skyrat/modules/exp_corps/code/gear.dm @@ -116,7 +116,7 @@ if(!isliving(user) || !user.CanReach(parent) || user.incapacitated()) return FALSE if(locked) - to_chat(user, "[parent] seems to be locked!") + to_chat(user, span_warning("[parent] seems to be locked!")) return var/obj/item/knife/combat/knife_to_draw = locate() in real_location() @@ -125,7 +125,7 @@ remove_from_storage(knife_to_draw, get_turf(user)) playsound(parent, 'modular_skyrat/modules/sec_haul/sound/holsterout.ogg', 50, TRUE, -5) INVOKE_ASYNC(user, /mob/.proc/put_in_hands, knife_to_draw) - user.visible_message("[user] draws [knife_to_draw] from [parent]!", "You draw [knife_to_draw] from [parent].") + user.visible_message(span_warning("[user] draws [knife_to_draw] from [parent]!"), span_notice("You draw [knife_to_draw] from [parent].")) /obj/item/storage/bag/ammo/marksman/PopulateContents() //can kill most basic enemies with 5 knives, though marksmen shouldn't be soloing enemies anyways new /obj/item/knife/combat/marksman(src) diff --git a/modular_skyrat/modules/faction/code/id.dm b/modular_skyrat/modules/faction/code/id.dm index e75520632b5..f41106bb7de 100644 --- a/modular_skyrat/modules/faction/code/id.dm +++ b/modular_skyrat/modules/faction/code/id.dm @@ -25,7 +25,7 @@ if(extra_access) for(var/acs in extra_access) I.access |= acs - to_chat(user, "You upgrade [I] with extra access.") + to_chat(user, span_notice("You upgrade [I] with extra access.")) qdel(src) /obj/item/card/faction_access/guest diff --git a/modular_skyrat/modules/firefighter/code/firefighter.dm b/modular_skyrat/modules/firefighter/code/firefighter.dm index 76c135ccfd0..e84ff153f14 100644 --- a/modular_skyrat/modules/firefighter/code/firefighter.dm +++ b/modular_skyrat/modules/firefighter/code/firefighter.dm @@ -46,19 +46,19 @@ /obj/item/mecha_parts/mecha_equipment/ripleyupgradef/can_attach(obj/vehicle/sealed/mecha/working/ripley/M) if(M.type != /obj/vehicle/sealed/mecha/working/ripley) - to_chat(loc, "This conversion kit can only be applied to APLU MK-I models.") + to_chat(loc, span_warning("This conversion kit can only be applied to APLU MK-I models.")) return FALSE if(LAZYLEN(M.cargo)) - to_chat(loc, "[M]'s cargo hold must be empty before this conversion kit can be applied.") + to_chat(loc, span_warning("[M]'s cargo hold must be empty before this conversion kit can be applied.")) return FALSE if(!(M.mecha_flags & ADDING_MAINT_ACCESS_POSSIBLE)) //non-removable upgrade, so lets make sure the pilot or owner has their say. - to_chat(loc, "[M] must have maintenance protocols active in order to allow this conversion kit.") + to_chat(loc, span_warning("[M] must have maintenance protocols active in order to allow this conversion kit.")) return FALSE if(LAZYLEN(M.occupants)) //We're actualy making a new mech and swapping things over, it might get weird if players are involved - to_chat(loc, "[M] must be unoccupied before this conversion kit can be applied.") + to_chat(loc, span_warning("[M] must be unoccupied before this conversion kit can be applied.")) return FALSE if(!M.cell) //Turns out things break if the cell is missing - to_chat(loc, "The conversion process requires a cell installed.") + to_chat(loc, span_warning("The conversion process requires a cell installed.")) return FALSE return TRUE diff --git a/modular_skyrat/modules/fishing/code/fishing.dm b/modular_skyrat/modules/fishing/code/fishing.dm index 6f7224c83f1..1944e5dc950 100644 --- a/modular_skyrat/modules/fishing/code/fishing.dm +++ b/modular_skyrat/modules/fishing/code/fishing.dm @@ -107,8 +107,8 @@ GLOBAL_LIST_INIT(fishing_weights, list( skill_name = "Fishing Master" skill_description = "Master the ability to fish." skill_icon = "certificate" - activate_message = "The fish and junk become far more visible beneath the surface." - deactivate_message = "The surface begins to cloud up, making it hard to see beneath." + activate_message = span_notice("The fish and junk become far more visible beneath the surface.") + deactivate_message = span_notice("The surface begins to cloud up, making it hard to see beneath.") /obj/item/fishing_rod name = "fishing rod" diff --git a/modular_skyrat/modules/ghostcafe/code/ghost_role_spawners.dm b/modular_skyrat/modules/ghostcafe/code/ghost_role_spawners.dm index 12da7e656d7..a8a3ecc9e4b 100644 --- a/modular_skyrat/modules/ghostcafe/code/ghost_role_spawners.dm +++ b/modular_skyrat/modules/ghostcafe/code/ghost_role_spawners.dm @@ -33,7 +33,7 @@ /area/centcom/holding/cafebuild, /area/centcom/holding/cafevox, /area/centcom/holding/cafedorms, /area/centcom/holding/cafepark, /area/centcom/holding/cafeplumbing)) ADD_TRAIT(new_spawn, TRAIT_SIXTHSENSE, GHOSTROLE_TRAIT) ADD_TRAIT(new_spawn, TRAIT_FREE_GHOST, GHOSTROLE_TRAIT) - to_chat(new_spawn,"Ghosting is free!") + to_chat(new_spawn,span_warning("Ghosting is free!")) var/datum/action/toggle_dead_chat_mob/D = new(new_spawn) D.Grant(new_spawn) @@ -62,8 +62,8 @@ /area/centcom/holding/cafebuild, /area/centcom/holding/cafevox, /area/centcom/holding/cafedorms, /area/centcom/holding/cafepark, /area/centcom/holding/cafeplumbing)) ADD_TRAIT(new_spawn, TRAIT_SIXTHSENSE, GHOSTROLE_TRAIT) ADD_TRAIT(new_spawn, TRAIT_FREE_GHOST, GHOSTROLE_TRAIT) - to_chat(new_spawn,"Ghosting is free!") - //to_chat(new_spawn,"Be warned: People who opt out of EORG will come here. Do not make the area uninhabitable and do NOT commit EORG. This is a safe-zone. If you attack people in EORG, you will be banned for griefing.") + to_chat(new_spawn,span_warning("Ghosting is free!")) + //to_chat(new_spawn,span_narsiesmall("Be warned: People who opt out of EORG will come here. Do not make the area uninhabitable and do NOT commit EORG. This is a safe-zone. If you attack people in EORG, you will be banned for griefing.")) var/datum/action/toggle_dead_chat_mob/D = new(new_spawn) new_spawn.put_in_hand(new /obj/item/storage/box/syndie_kit/chameleon/ghostcafe, LEFT_HANDS, forced = TRUE) new_spawn.equip_outfit_and_loadout(/datum/outfit/ghostcafe, new_spawn.client.prefs, FALSE, null) @@ -87,10 +87,10 @@ var/mob/M = target if(HAS_TRAIT_FROM(M,TRAIT_SIXTHSENSE,GHOSTROLE_TRAIT)) REMOVE_TRAIT(M,TRAIT_SIXTHSENSE,GHOSTROLE_TRAIT) - to_chat(M,"You're no longer hearing deadchat.") + to_chat(M,span_notice("You're no longer hearing deadchat.")) else ADD_TRAIT(M,TRAIT_SIXTHSENSE,GHOSTROLE_TRAIT) - to_chat(M,"You're once again hearing deadchat.") + to_chat(M,span_notice("You're once again hearing deadchat.")) /obj/item/storage/box/syndie_kit/chameleon/ghostcafe name = "cafe costuming kit" diff --git a/modular_skyrat/modules/goofsec/code/sol_fed.dm b/modular_skyrat/modules/goofsec/code/sol_fed.dm index 8b88deeb4aa..b18fc5db814 100644 --- a/modular_skyrat/modules/goofsec/code/sol_fed.dm +++ b/modular_skyrat/modules/goofsec/code/sol_fed.dm @@ -30,7 +30,7 @@ GLOBAL_LIST_INIT(emergency_responders, list()) ..() /datum/antagonist/ert/request_911/greet() - var/missiondesc = "You are the [name]." + var/missiondesc = span_warningplain("You are the [name].") missiondesc += "
You are NOT a Nanotrasen Employee. You work for the Sol Federation as a [role]." missiondesc += "
You are responding to emergency calls from the station for immediate SolFed [department] assistance!\n" missiondesc += "
Your Mission:" diff --git a/modular_skyrat/modules/gunhud/code/gun_hud_component.dm b/modular_skyrat/modules/gunhud/code/gun_hud_component.dm index 9a6810c58c2..33c8a4e58df 100644 --- a/modular_skyrat/modules/gunhud/code/gun_hud_component.dm +++ b/modular_skyrat/modules/gunhud/code/gun_hud_component.dm @@ -106,12 +106,12 @@ hud.maptext_x = -8 if(!pew.can_shoot()) hud.icon_state = "eammo_counter_empty" - hud.maptext = "
[batt_percent]%
[shot_cost_percent]%
" + hud.maptext = span_maptext("
[batt_percent]%
[shot_cost_percent]%
") return if(batt_percent <= 25) - hud.maptext = "
[batt_percent]%
[shot_cost_percent]%
" + hud.maptext = span_maptext("
[batt_percent]%
[shot_cost_percent]%
") return - hud.maptext = "
[batt_percent]%
[shot_cost_percent]%
" + hud.maptext = span_maptext("
[batt_percent]%
[shot_cost_percent]%
") else if(istype(parent, /obj/item/weldingtool)) var/obj/item/weldingtool/welder = parent diff --git a/modular_skyrat/modules/gunpoint/code/gunpoint.dm b/modular_skyrat/modules/gunpoint/code/gunpoint.dm index a01c7e5e563..bcd316f894e 100644 --- a/modular_skyrat/modules/gunpoint/code/gunpoint.dm +++ b/modular_skyrat/modules/gunpoint/code/gunpoint.dm @@ -41,14 +41,14 @@ /mob/living/proc/CanGunpointAt(mob/living/L, notice = FALSE) if(resting) if(notice) - to_chat(src, "You need to be standing to get a good aim!") + to_chat(src, span_warning("You need to be standing to get a good aim!")) return FALSE if(!(L in viewers(8, src))) if(notice) - to_chat(src, "Your target is out of your view!") + to_chat(src, span_warning("Your target is out of your view!")) return FALSE if(L.alpha < 70) if(notice) - to_chat(src, "You can't quite make out your target!") + to_chat(src, span_warning("You can't quite make out your target!")) return FALSE return TRUE diff --git a/modular_skyrat/modules/gunpoint/code/gunpoint_datum.dm b/modular_skyrat/modules/gunpoint/code/gunpoint_datum.dm index 78f98e05c65..826bee516b6 100644 --- a/modular_skyrat/modules/gunpoint/code/gunpoint_datum.dm +++ b/modular_skyrat/modules/gunpoint/code/gunpoint_datum.dm @@ -38,7 +38,7 @@ aimed_gun = gun source.face_atom(target) - source.visible_message("[source.name] aims at [target.name] with the [aimed_gun.name]!") + source.visible_message(span_danger("[source.name] aims at [target.name] with the [aimed_gun.name]!")) was_running = (source.m_intent == MOVE_INTENT_RUN) if(was_running) @@ -82,7 +82,7 @@ return if(!allow_use && CanReact()) source.log_message("[source] shot [target] because they attacked/disarmed/pulled", LOG_ATTACK) - to_chat(source, "You pull the trigger instinctively to [target.name] actions!") + to_chat(source, span_warning("You pull the trigger instinctively to [target.name] actions!")) INVOKE_ASYNC(src, .proc/ShootTarget) /datum/gunpoint/proc/LockOn() @@ -93,11 +93,11 @@ locked = TRUE log_combat(target, source, "locked onto with aiming") playsound(get_turf(source), 'modular_skyrat/modules/gunpoint/sound/targeton.ogg', 50,1) - to_chat(source, "You lock onto [target.name]!") - target.visible_message("[source.name] holds [target.name] at gunpoint with the [aimed_gun.name]!", "[source.name] holds you at gunpoint with the [aimed_gun.name]!") + to_chat(source, span_notice("You lock onto [target.name]!")) + target.visible_message(span_warning("[source.name] holds [target.name] at gunpoint with the [aimed_gun.name]!"), span_userdanger("[source.name] holds you at gunpoint with the [aimed_gun.name]!")) if(target.gunpointed.len == 1)//First case - to_chat(target, "You'll get shot if you use radio, move or interact with items!") - to_chat(target, "You can however take items out, toss harmless items or drop them.") + to_chat(target, span_danger("You'll get shot if you use radio, move or interact with items!")) + to_chat(target, span_notice("You can however take items out, toss harmless items or drop them.")) var/list/choice_list = ConstructChoiceList() gunpoint_gui = show_radial_menu_gunpoint(source, target , choice_list, select_proc = CALLBACK(src, .proc/GunpointGuiReact, source), radius = 42) if(target.gp_effect.icon_state != "locked") @@ -132,7 +132,7 @@ source.gunpointing = null if(locked) QDEL_NULL(gunpoint_gui) - target.visible_message("[source.name] no longer holds [target.name] at gunpoint.", "[source.name] no longer holds you at gunpoint.") + target.visible_message(span_notice("[source.name] no longer holds [target.name] at gunpoint."), span_notice("[source.name] no longer holds you at gunpoint.")) source = null target = null aimed_gun = null @@ -159,7 +159,7 @@ if(!allow_radio && CanReact()) if(direct) source.log_message("[source] shot [target] because they spoke on radio", LOG_ATTACK) - to_chat(source, "You pull the trigger instinctively as [target.name] speaks on the radio!") + to_chat(source, span_warning("You pull the trigger instinctively as [target.name] speaks on the radio!")) INVOKE_ASYNC(src, .proc/ShootTarget) /datum/gunpoint/proc/MovedReact(datum/datum_source, atom/moved, direction, forced) @@ -184,7 +184,7 @@ return if(!allow_use && CanReact()) source.log_message("[source] shot [target] because they used an item", LOG_ATTACK) - to_chat(source, "You pull the trigger instinctively as [target.name] uses an item!") + to_chat(source, span_warning("You pull the trigger instinctively as [target.name] uses an item!")) ShootTarget() /datum/gunpoint/proc/SourceMoved(datum/datum_source) @@ -214,16 +214,16 @@ safe = FALSE break if(safe) - to_chat(target, "[source.name] signals you can use radio.") + to_chat(target, span_notice("[source.name] signals you can use radio.")) else - to_chat(target, "[source.name] signals you can use radio, however other people still don't") + to_chat(target, span_danger("[source.name] signals you can use radio, however other people still don't")) else var/forbid_counts = 0 for(var/datum/gunpoint/gp in target.gunpointed) if(gp.allow_radio == FALSE) forbid_counts += 1 if(forbid_counts == 1) //Only first one warns the victim - to_chat(target, "[source.name] signals you can't use radio.") + to_chat(target, span_danger("[source.name] signals you can't use radio.")) if("use") allow_use = !allow_use if(allow_use) @@ -233,16 +233,16 @@ safe = FALSE break if(safe) - to_chat(target, "[source.name] signals you can interact with items.") + to_chat(target, span_notice("[source.name] signals you can interact with items.")) else - to_chat(target, "[source.name] signals you can interact with items, however other people still don't") + to_chat(target, span_danger("[source.name] signals you can interact with items, however other people still don't")) else var/forbid_counts = 0 for(var/datum/gunpoint/gp in target.gunpointed) if(gp.allow_use == FALSE) forbid_counts += 1 if(forbid_counts == 1) //Only first one warns the victim - to_chat(target, "[source.name] signals you can't interact with items.") + to_chat(target, span_danger("[source.name] signals you can't interact with items.")) if("move") allow_move = !allow_move if(allow_move) @@ -252,16 +252,16 @@ safe = FALSE break if(safe) - to_chat(target, "[source.name] signals you can move.") + to_chat(target, span_notice("[source.name] signals you can move.")) else - to_chat(target, "[source.name] signals you can move, however other people still don't") + to_chat(target, span_danger("[source.name] signals you can move, however other people still don't")) else var/forbid_counts = 0 for(var/datum/gunpoint/gp in target.gunpointed) if(gp.allow_move == FALSE) forbid_counts += 1 if(forbid_counts == 1) //Only first one warns the victim - to_chat(target, "[source.name] signals you can't move.") + to_chat(target, span_danger("[source.name] signals you can't move.")) var/list/new_choices = ConstructChoiceList() gunpoint_gui.entry_animation = FALSE gunpoint_gui.change_choices(new_choices,FALSE) diff --git a/modular_skyrat/modules/gunsgalore/code/guns/master.dm b/modular_skyrat/modules/gunsgalore/code/guns/master.dm index 64b6488c676..51aa789d14c 100644 --- a/modular_skyrat/modules/gunsgalore/code/guns/master.dm +++ b/modular_skyrat/modules/gunsgalore/code/guns/master.dm @@ -80,19 +80,19 @@ unjam_time = clamp((jam_chance*10)/(durability/10), 0, 50) jammed = TRUE playsound(src, 'sound/effects/stall.ogg', 60, TRUE) - to_chat(user, "The [src] jams!") + to_chat(user, span_danger("The [src] jams!")) SEND_SIGNAL(src, COMSIG_GUN_JAMMED) else if(jammed) to_chat(user, "You start to unjam the bolt!") if(do_after(user, unjam_time)) jammed = FALSE - to_chat(user, "You unjam the [src]'s bolt.") + to_chat(user, span_notice("You unjam the [src]'s bolt.")) playsound(src, 'sound/weapons/gun/l6/l6_rack.ogg', 60, TRUE) /obj/item/gun/ballistic/can_trigger_gun(mob/living/user) . = ..() if(realistic && jammed) - to_chat(user, "[src] is jammed!") + to_chat(user, span_warning("[src] is jammed!")) return FALSE /obj/item/gun/ballistic/shoot_live_shot(mob/living/user, pointblank, atom/pbtarget, message) @@ -149,13 +149,13 @@ if(51 to 70) . += "It looks very dirty." else - . += "It is filthy!" + . += span_warning("It is filthy!") switch(FLOOR(durability, 1)) if(0 to 9) - . += "It is falling apart!" + . += span_warning("It is falling apart!") if(10 to 29) - . += "It looks battle scarred!" + . += span_warning("It looks battle scarred!") if(30 to 49) . += "It looks well worn." if(50 to 69) @@ -164,9 +164,9 @@ . += "It looks factory new." if(jammed) - . += "It is jammed, alt+click it to unjam it!" + . += span_warning("It is jammed, alt+click it to unjam it!") else if(durability < 10) - . += "It is barely functioning!" + . += span_warning("It is barely functioning!") else . += "It is functioning normally." @@ -181,17 +181,17 @@ if(C.amount < 5) to_chat(user, "There's not enough [C] to clean the gun with!") else - to_chat(user, "You start cleaning the [src].") + to_chat(user, span_notice("You start cleaning the [src].")) if(do_after(user, 20 SECONDS)) dirt_level -= 35 if(dirt_level < 0) dirt_level = 0 C.use(5) - to_chat(user, "You clean the [src], improving it's reliability!") + to_chat(user, span_notice("You clean the [src], improving it's reliability!")) if(istype(A, /obj/item/gun_maintenance_supplies)) - to_chat(user, "You start maintaining the [src].") + to_chat(user, span_notice("You start maintaining the [src].")) if(do_after(user, 10 SECONDS, target = src)) - user.visible_message("[user] finishes maintenance of [src].") + user.visible_message(span_notice("[user] finishes maintenance of [src].")) dirt_level = 0 qdel(A) diff --git a/modular_skyrat/modules/gunsgalore/code/guns/mg34/mg34.dm b/modular_skyrat/modules/gunsgalore/code/guns/mg34/mg34.dm index cd80adf267e..8f7c0c86cca 100644 --- a/modular_skyrat/modules/gunsgalore/code/guns/mg34/mg34.dm +++ b/modular_skyrat/modules/gunsgalore/code/guns/mg34/mg34.dm @@ -38,7 +38,7 @@ . = ..() . += "alt + click to [cover_open ? "close" : "open"] the dust cover." if(cover_open && magazine) - . += "It seems like you could use an empty hand to remove the magazine." + . += span_notice("It seems like you could use an empty hand to remove the magazine.") /obj/item/gun/ballistic/automatic/mg34/AltClick(mob/user) @@ -46,7 +46,7 @@ if(!user.canUseTopic(src)) return 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.")) playsound(src, 'sound/weapons/gun/l6/l6_door.ogg', 60, TRUE) update_appearance() @@ -61,7 +61,7 @@ /obj/item/gun/ballistic/automatic/mg34/afterattack(atom/target as mob|obj|turf, mob/living/user as mob|obj, flag, params) 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 else . = ..() @@ -73,13 +73,13 @@ ..() return if (!cover_open) - to_chat(user, "[src]'s cover is closed! Open it before trying to remove the magazine!") + to_chat(user, span_warning("[src]'s cover is closed! Open it before trying to remove the magazine!")) return ..() /obj/item/gun/ballistic/automatic/mg34/attackby(obj/item/A, mob/user, params) if(!cover_open && istype(A, mag_type)) - to_chat(user, "[src]'s dust cover prevents a magazine from being fit.") + to_chat(user, span_warning("[src]'s dust cover prevents a magazine from being fit.")) return ..() diff --git a/modular_skyrat/modules/hev_suit/code/hev_suit.dm b/modular_skyrat/modules/hev_suit/code/hev_suit.dm index 85c9d7f8818..585c0d7feca 100644 --- a/modular_skyrat/modules/hev_suit/code/hev_suit.dm +++ b/modular_skyrat/modules/hev_suit/code/hev_suit.dm @@ -164,7 +164,7 @@ if(!new_setting) new_setting = HEV_NOTIFICATION_TEXT_AND_VOICE - to_chat(my_suit.current_user, "[my_suit] notification mode is now [new_setting].") + to_chat(my_suit.current_user, span_notice("[my_suit] notification mode is now [new_setting].")) my_suit.send_notifications = new_setting @@ -438,7 +438,7 @@ return current_internals_tank = current_user.get_item_by_slot(ITEM_SLOT_SUITSTORE) ADD_TRAIT(current_internals_tank, TRAIT_NODROP, "hev_trait") - to_chat(current_user, "You hear a click as [current_internals_tank] is secured to your suit.") + to_chat(current_user, span_notice("You hear a click as [current_internals_tank] is secured to your suit.")) playsound(src, 'modular_skyrat/master_files/sound/blackmesa/hev/03_atmospherics_on.ogg', 50) send_message("...CALIBRATED", HEV_COLOR_GREEN) send_message("CALIBRATING VITALSIGN MONITORING SYSTEMS...") @@ -642,7 +642,7 @@ timer_id = addtimer(CALLBACK(src, .proc/finished), 4 SECONDS, TIMER_STOPPABLE) /obj/item/clothing/suit/space/hardsuit/hev_suit/proc/finished() - to_chat(current_user, "You feel [src] seal around your body, locking it in place!") + to_chat(current_user, span_notice("You feel [src] seal around your body, locking it in place!")) ADD_TRAIT(src, TRAIT_NODROP, "hev_trait") send_message("ALL SYSTEMS ONLINE, WELCOME [uppertext(current_user.real_name)]", HEV_COLOR_GREEN) playsound(src, 'modular_skyrat/master_files/sound/blackmesa/hev/09_safe_day.ogg', 50) diff --git a/modular_skyrat/modules/horrorform/code/horror_form.dm b/modular_skyrat/modules/horrorform/code/horror_form.dm index 86afd551c0f..f8d631796be 100644 --- a/modular_skyrat/modules/horrorform/code/horror_form.dm +++ b/modular_skyrat/modules/horrorform/code/horror_form.dm @@ -16,14 +16,14 @@ /datum/action/changeling/horror_form/sting_action(mob/living/carbon/human/user) if(!user || user.notransform) return 0 - user.visible_message("[user] writhes and contorts, their body expanding to inhuman proportions!", \ - "We begin our transformation to our true form!") + user.visible_message(span_warning("[user] writhes and contorts, their body expanding to inhuman proportions!"), \ + span_danger("We begin our transformation to our true form!")) if(!do_after(user, 30, target = user, timed_action_flags = IGNORE_HELD_ITEM)) - user.visible_message("[user]'s transformation abruptly reverts itself!", \ - "Our transformation has been interrupted!") + user.visible_message(span_warning("[user]'s transformation abruptly reverts itself!"), \ + span_warning("Our transformation has been interrupted!")) return 0 - user.visible_message("[user] grows into an abomination and lets out an awful scream!", \ - "We cast off our petty shell and enter our true form!") + user.visible_message(span_warning("[user] grows into an abomination and lets out an awful scream!"), \ + span_userdanger("We cast off our petty shell and enter our true form!")) if(user.handcuffed) var/obj/O = user.get_item_by_slot(ITEM_SLOT_HANDCUFFED) if(istype(O)) @@ -40,7 +40,7 @@ var/obj/structure/closet/C = user.loc if(istype(C)) if(C && user.loc == C) - C.visible_message("[C]'s door breaks and opens!") + C.visible_message(span_warning("[C]'s door breaks and opens!")) new /obj/effect/decal/cleanable/greenglow(C.drop_location()) C.welded = FALSE C.locked = FALSE diff --git a/modular_skyrat/modules/horrorform/code/true_changeling.dm b/modular_skyrat/modules/horrorform/code/true_changeling.dm index 051367ad3a9..a75ab26cc0a 100644 --- a/modular_skyrat/modules/horrorform/code/true_changeling.dm +++ b/modular_skyrat/modules/horrorform/code/true_changeling.dm @@ -38,9 +38,9 @@ var/datum/action/innate/turn_to_human var/datum/action/innate/devour var/transformed_time = 0 - var/playstyle_string = "We have entered our true form! We are unbelievably powerful, and regenerate life at a steady rate. However, most of \ + var/playstyle_string = span_infoplain("We have entered our true form! We are unbelievably powerful, and regenerate life at a steady rate. However, most of \ our abilities are useless in this form, and we must utilise the abilities that we have gained as a result of our transformation. Currently, we are incapable of returning to a human. \ - After several minutes, we will once again be able to revert into a human. Taking too much damage will cause us to reach equilibrium and our cells will combust into a shower of gore, watch out!" + After several minutes, we will once again be able to revert into a human. Taking too much damage will cause us to reach equilibrium and our cells will combust into a shower of gore, watch out!") var/mob/living/carbon/human/stored_changeling = null //The changeling that transformed var/devouring = FALSE //If the true changeling is currently devouring a human @@ -71,7 +71,7 @@ if(stat) return if(act == "scream") - message = "[src] makes a loud, bone-chilling roar!" + message = span_emote("[src] makes a loud, bone-chilling roar!") act = "me" scream(message) return @@ -79,7 +79,7 @@ /mob/living/simple_animal/hostile/true_changeling/proc/scream(message) if(!message) - message = "[src] makes a loud, bone-chilling roar!" + message = span_emote("[src] makes a loud, bone-chilling roar!") var/frequency = get_rand_frequency() //so sound frequency is consistent for(var/mob/M in range(35, src)) //You can hear the scream 7 screens away // Double check for client @@ -101,17 +101,17 @@ scream() spawn_gibs() if(stored_changeling && mind) - visible_message("[src] lets out a furious scream as it reaches equilibrium, as it starts exploding into a shower of gore!", \ - "We lack the power to maintain our mass, we have reached critic-...") + visible_message(span_warning("[src] lets out a furious scream as it reaches equilibrium, as it starts exploding into a shower of gore!"), \ + span_userdanger("We lack the power to maintain our mass, we have reached critic-...")) anchored = TRUE turn_to_human.Remove() AddComponent(/datum/component/pellet_cloud, projectile_type=/obj/projectile/bullet/pellet/bone_fragment, magnitude=8) addtimer(CALLBACK(src, .proc/real_death), rand(3 SECONDS, 6 SECONDS)) else - visible_message("[src] lets out a waning scream as it falls, twitching, to the floor.") + visible_message(span_warning("[src] lets out a waning scream as it falls, twitching, to the floor.")) spawn(450) if(src) - visible_message("[src] stumbles upright and begins to move!") + visible_message(span_warning("[src] stumbles upright and begins to move!")) revive() //Changelings can self-revive, and true changelings are no exception scream() @@ -120,8 +120,8 @@ spawn_gibs() scream() icon_state = "horror_dead" - visible_message("[src] has surpassed equilibrium and can no longer support itself, exploding in a shower of bone and gore!", \ - "ARRRRRRGHHHH!!!") + visible_message(span_warning("[src] has surpassed equilibrium and can no longer support itself, exploding in a shower of bone and gore!"), \ + span_userdanger("ARRRRRRGHHHH!!!")) stored_changeling.loc = get_turf(src) mind.transfer_to(stored_changeling) stored_changeling.Paralyze(10 SECONDS) //Make them helpless for 10 seconds @@ -177,17 +177,17 @@ /datum/action/innate/turn_to_human/Trigger() var/mob/living/simple_animal/hostile/true_changeling/C = owner if(!C.stored_changeling) - to_chat(C,"We do not have a form other than this!") + to_chat(C,span_warning("We do not have a form other than this!")) return FALSE if(C.stored_changeling.stat == DEAD) - to_chat(C,"Our human form is dead!") + to_chat(C,span_warning("Our human form is dead!")) return FALSE if(world.time - C.transformed_time < TRUE_CHANGELING_REFORM_THRESHOLD) var/timeleft = (C.transformed_time + TRUE_CHANGELING_REFORM_THRESHOLD) - world.time - to_chat(C,"We are still unable to change back at will! We need to wait [round(timeleft/600)+1] minutes.") + to_chat(C,span_warning("We are still unable to change back at will! We need to wait [round(timeleft/600)+1] minutes.")) return FALSE - C.visible_message("[C] suddenly crunches and twists into a smaller form!", \ - "We return to our lesser form.") + C.visible_message(span_warning("[C] suddenly crunches and twists into a smaller form!"), \ + span_danger("We return to our lesser form.")) C.stored_changeling.loc = get_turf(C) C.mind.transfer_to(C.stored_changeling) C.stored_changeling.Stun(2 SECONDS) @@ -205,7 +205,7 @@ /datum/action/innate/devour/Trigger() var/mob/living/simple_animal/hostile/true_changeling/T = owner if(T.devouring) - T << "We are already feasting on a human!" + T << span_warning("We are already feasting on a human!") return FALSE var/list/potential_targets = list() for(var/mob/living/carbon/human/H in range(1, usr)) @@ -213,7 +213,7 @@ continue potential_targets.Add(H) if(!potential_targets.len) - T << "There are no humans nearby!" + T << span_warning("There are no humans nearby!") return FALSE var/mob/living/carbon/human/lunch if(potential_targets.len == 1) @@ -223,20 +223,20 @@ if(!lunch && !ishuman(lunch)) return FALSE if(lunch.getBruteLoss() + lunch.getFireLoss() >= 200) //Overall physical damage, basically - T.visible_message("[lunch] provides no further nutrients for [T]!", \ - "[lunch] has no more useful flesh for us to consume!!") + T.visible_message(span_warning("[lunch] provides no further nutrients for [T]!"), \ + span_danger("[lunch] has no more useful flesh for us to consume!!")) return FALSE T.devouring = TRUE - T.visible_message("[T] begins ripping apart and feasting on [lunch]!", \ - "We begin to feast upon [lunch]...") + T.visible_message(span_warning("[T] begins ripping apart and feasting on [lunch]!"), \ + span_danger("We begin to feast upon [lunch]...")) if(!do_mob(usr, 50, target = lunch)) T.devouring = FALSE return FALSE T.devouring = FALSE lunch.adjustBruteLoss(60) - T.visible_message("[T] tears a chunk from [lunch]'s flesh!", \ - "We tear a chunk of flesh from [lunch] and devour it!") - lunch << "[T] takes a huge bite out of you!" + T.visible_message(span_warning("[T] tears a chunk from [lunch]'s flesh!"), \ + span_danger("We tear a chunk of flesh from [lunch] and devour it!")) + lunch << span_userdanger("[T] takes a huge bite out of you!") lunch.spawn_gibs() var/dismembered = FALSE for(var/obj/item/bodypart/BP in lunch.bodyparts) diff --git a/modular_skyrat/modules/hydra/code/neutral.dm b/modular_skyrat/modules/hydra/code/neutral.dm index 834df46d170..87fa4061dea 100644 --- a/modular_skyrat/modules/hydra/code/neutral.dm +++ b/modular_skyrat/modules/hydra/code/neutral.dm @@ -3,8 +3,8 @@ desc = "You are a tri-headed creature. To use, format name like (Rucks-Sucks-Ducks)" value = 0 mob_trait = TRAIT_HYDRA_HEADS - gain_text = "You hear two other voices inside of your head(s)." - lose_text = "All of your minds become singular." + gain_text = span_notice("You hear two other voices inside of your head(s).") + lose_text = span_danger("All of your minds become singular.") medical_record_text = "There are multiple heads and personalities affixed to one body." icon = "horse-head" @@ -34,13 +34,13 @@ /datum/action/innate/hydrareset/Activate() var/mob/living/carbon/human/hydra = owner hydra.real_name = hydra.name_archive - hydra.visible_message("[hydra.name] pushes all three heads forwards; they seem to be talking as a collective.", \ - "You are now talking as [hydra.name_archive]!", ignored_mobs=owner) + hydra.visible_message(span_notice("[hydra.name] pushes all three heads forwards; they seem to be talking as a collective."), \ + span_notice("You are now talking as [hydra.name_archive]!"), ignored_mobs=owner) /datum/action/innate/hydra/Activate() //Oops, all hydra! var/mob/living/carbon/human/hydra = owner var/list/names = splittext(hydra.name_archive,"-") var/selhead = input("Who would you like to speak as?","Heads:") in names hydra.real_name = selhead - hydra.visible_message("[hydra.name] pulls the rest of their heads back; and puts [selhead]'s forward.", \ - "You are now talking as [selhead]!", ignored_mobs=owner) + hydra.visible_message(span_notice("[hydra.name] pulls the rest of their heads back; and puts [selhead]'s forward."), \ + span_notice("You are now talking as [selhead]!"), ignored_mobs=owner) diff --git a/modular_skyrat/modules/hyposprays/code/hyposprays_II.dm b/modular_skyrat/modules/hyposprays/code/hyposprays_II.dm index 469c487d0fc..b15c03d27ac 100644 --- a/modular_skyrat/modules/hyposprays/code/hyposprays_II.dm +++ b/modular_skyrat/modules/hyposprays/code/hyposprays_II.dm @@ -164,7 +164,7 @@ return /obj/item/hypospray/mkii/afterattack(atom/target, mob/living/user, proximity) - if((istype(target, /obj/item/reagent_containers/glass/vial))) + if(istype(target, /obj/item/reagent_containers/glass/vial)) insert_vial(target, user, vial) return TRUE @@ -202,7 +202,7 @@ return log_attack("[user.name] ([user.ckey]) applied [src] to [injectee.name] ([injectee.ckey]), which had [contained] (COMBAT MODE: [uppertext(user.combat_mode)]) (MODE: [mode])") if(injectee != user) - injectee.visible_message(span_danger("[user] uses the [src] on [injectee]!"), \ + injectee.visible_message(span_danger("[user] uses the [src] on [injectee]!"), \ span_userdanger("[user] uses the [src] on you!")) else injectee.log_message("applied [src] to themselves ([contained]).", LOG_ATTACK) @@ -215,7 +215,7 @@ var/long_sound = vial.amount_per_transfer_from_this >= 15 playsound(loc, long_sound ? 'modular_skyrat/modules/hyposprays/sound/hypospray_long.ogg' : pick('modular_skyrat/modules/hyposprays/sound/hypospray.ogg','modular_skyrat/modules/hyposprays/sound/hypospray2.ogg'), 50, 1, -1) - to_chat(user, span_notice("You [fp_verb] [vial.amount_per_transfer_from_this] units of the solution. The hypospray's cartridge now contains [vial.reagents.total_volume] units.
")) + to_chat(user, span_notice("You [fp_verb] [vial.amount_per_transfer_from_this] units of the solution. The hypospray's cartridge now contains [vial.reagents.total_volume] units.")) update_appearance() /obj/item/hypospray/mkii/attack_self(mob/living/user) diff --git a/modular_skyrat/modules/implants/code/augments_arms.dm b/modular_skyrat/modules/implants/code/augments_arms.dm index 3aba408ee0c..c297d2b7a40 100644 --- a/modular_skyrat/modules/implants/code/augments_arms.dm +++ b/modular_skyrat/modules/implants/code/augments_arms.dm @@ -30,7 +30,7 @@ /obj/item/organ/cyberimp/arm/armblade/emag_act() for(var/datum/weakref/created_item in items_list) - to_chat(usr, "You unlock [src]'s integrated energy arm blade! You madman!") + to_chat(usr, span_notice("You unlock [src]'s integrated energy arm blade! You madman!")) items_list += WEAKREF(new /obj/item/melee/implantarmblade/energy(src)) return TRUE @@ -59,7 +59,7 @@ /obj/item/organ/cyberimp/arm/janitor/emag_act() for(var/datum/weakref/created_item in items_list) - to_chat(usr, "You unlock [src]'s integrated deluxe cleaning supplies!") + to_chat(usr, span_notice("You unlock [src]'s integrated deluxe cleaning supplies!")) items_list += WEAKREF(new /obj/item/soap/syndie(src)) //We add not replace. items_list += WEAKREF(new /obj/item/reagent_containers/spray/cyborg_lube(src)) return TRUE @@ -71,6 +71,6 @@ /obj/item/organ/cyberimp/arm/lighter/emag_act() for(var/datum/weakref/created_item in items_list) - to_chat(usr, "You unlock [src]'s integrated Zippo lighter! Finally, classy smoking!") + to_chat(usr, span_notice("You unlock [src]'s integrated Zippo lighter! Finally, classy smoking!")) items_list += WEAKREF(new /obj/item/lighter(src)) //Now you can choose between bad and worse! return TRUE diff --git a/modular_skyrat/modules/implants/code/augments_chest.dm b/modular_skyrat/modules/implants/code/augments_chest.dm index dfe1ffb8026..e8396c3f159 100644 --- a/modular_skyrat/modules/implants/code/augments_chest.dm +++ b/modular_skyrat/modules/implants/code/augments_chest.dm @@ -12,7 +12,7 @@ /obj/item/organ/cyberimp/chest/scanner/ui_action_click(owner, action) if(istype(action, /datum/action/item_action/organ_action/use)) if(organ_flags & ORGAN_FAILING) - to_chat(owner, "Your health analyzer relays an error! It can't interface with your body in its current condition!") + to_chat(owner, span_warning("Your health analyzer relays an error! It can't interface with your body in its current condition!")) return else healthscan(owner, owner, 1, TRUE) diff --git a/modular_skyrat/modules/implants/code/augments_internal.dm b/modular_skyrat/modules/implants/code/augments_internal.dm index 7ff024239f6..05bbdf884c7 100644 --- a/modular_skyrat/modules/implants/code/augments_internal.dm +++ b/modular_skyrat/modules/implants/code/augments_internal.dm @@ -10,7 +10,7 @@ if(H.stat == UNCONSCIOUS && cooldown==FALSE) H.AdjustUnconscious(-100, FALSE) H.AdjustSleeping(-100, FALSE) - to_chat(owner, "You feel a rush of energy course through your body!") + to_chat(owner, span_notice("You feel a rush of energy course through your body!")) cooldown = TRUE addtimer(CALLBACK(src, .proc/sleepytimerend), 50) else @@ -18,7 +18,7 @@ /obj/item/organ/cyberimp/brain/anti_sleep/proc/sleepytimerend() cooldown = FALSE - to_chat(owner, "You hear a small beep in your head as your CNS Jumpstarter finishes recharging.") + to_chat(owner, span_notice("You hear a small beep in your head as your CNS Jumpstarter finishes recharging.")) /obj/item/organ/cyberimp/brain/anti_sleep/emp_act(severity, mob/living/carbon/human/H) . = ..() @@ -32,4 +32,4 @@ /obj/item/organ/cyberimp/brain/anti_sleep/proc/reboot() organ_flags &= ~ORGAN_FAILING - cooldown = FALSE + cooldown = FALSE diff --git a/modular_skyrat/modules/inflatables/code/inflatable.dm b/modular_skyrat/modules/inflatables/code/inflatable.dm index e7812dfcf58..a5d337e313f 100644 --- a/modular_skyrat/modules/inflatables/code/inflatable.dm +++ b/modular_skyrat/modules/inflatables/code/inflatable.dm @@ -8,10 +8,10 @@ /obj/item/inflatable/attack_self(mob/user) if(locate(/obj/structure/inflatable) in user.loc) - to_chat(user, "You cannot place inflatable walls upon eachother!") + to_chat(user, span_warning("You cannot place inflatable walls upon eachother!")) return playsound(loc, 'sound/items/zip.ogg', 75, 1) - to_chat(user, "You inflate [src].") + to_chat(user, span_notice("You inflate [src].")) if(do_mob(user, src, 10)) var/obj/structure/inflatable/R = new structuretype(user.loc) transfer_fingerprints_to(R) @@ -94,7 +94,7 @@ if(!istype(W)) return if(W.sharpness) - visible_message("[user] pierces [src] with [W]!") + visible_message(span_danger("[user] pierces [src] with [W]!")) deflate(TRUE) if(W.damtype == BRUTE || W.damtype == BURN) ..() @@ -110,10 +110,10 @@ playsound(loc, 'sound/machines/hiss.ogg', 75, 1) var/obj/item/inflatable/R if(violent) - visible_message("[src] rapidly deflates!") + visible_message(span_danger("[src] rapidly deflates!")) R = new torntype(loc) else - visible_message("[src] slowly deflates.") + visible_message(span_danger("[src] slowly deflates.")) sleep(50) R = new itemtype(loc) transfer_fingerprints_to(R) @@ -216,19 +216,19 @@ var/fixedtype = /obj/item/inflatable /obj/item/inflatable/torn/attack_self(mob/user) - to_chat(user, "The inflatable wall is too torn to be inflated, fix it with something!") + to_chat(user, span_warning("The inflatable wall is too torn to be inflated, fix it with something!")) add_fingerprint(user) /obj/item/inflatable/torn/attackby(obj/item/I, mob/user) if(istype(I, /obj/item/stack/sticky_tape)) var/obj/item/stack/sticky_tape/T = I if(T.amount < 2) - to_chat(user, "There is not enough tape!") + to_chat(user, span_danger("There is not enough tape!")) return - to_chat(user, "You begin fixing the [src]!") + to_chat(user, span_notice("You begin fixing the [src]!")) playsound(user, 'modular_skyrat/modules/inflatables/sound/ducttape1.ogg', 50, 1) if(do_mob(user, src, 20)) - to_chat(user, "You fix the [src] using the ducttape!") + to_chat(user, span_notice("You fix the [src] using the ducttape!")) T.use(2) new fixedtype(user.loc) qdel(src) @@ -259,7 +259,7 @@ new /obj/item/inflatable(src) /obj/item/inflatable/suicide_act(mob/living/user) - visible_message(user, "[user] starts shoving the [src] up his ass! It looks like hes going to pull the cord, oh shit!") + visible_message(user, span_danger("[user] starts shoving the [src] up his ass! It looks like hes going to pull the cord, oh shit!")) playsound(user.loc, 'sound/machines/hiss.ogg', 75, 1) new structuretype(user.loc) user.gib() diff --git a/modular_skyrat/modules/jukebox/code/dance_machine.dm b/modular_skyrat/modules/jukebox/code/dance_machine.dm index b33cdf7dab7..005b8e6f59d 100644 --- a/modular_skyrat/modules/jukebox/code/dance_machine.dm +++ b/modular_skyrat/modules/jukebox/code/dance_machine.dm @@ -44,10 +44,10 @@ if(!active && !(flags_1 & NODECONSTRUCT_1)) if(O.tool_behaviour == TOOL_WRENCH) if(!anchored && !isinspace()) - to_chat(user,"You secure [src] to the floor.") + to_chat(user,span_notice("You secure [src] to the floor.")) set_anchored(TRUE) else if(anchored) - to_chat(user,"You unsecure and disconnect [src].") + to_chat(user,span_notice("You unsecure and disconnect [src].")) set_anchored(FALSE) playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE) return @@ -66,13 +66,13 @@ /obj/machinery/jukebox/ui_status(mob/user) if(!anchored) - to_chat(user,"This device must be anchored by a wrench!") + to_chat(user,span_warning("This device must be anchored by a wrench!")) return UI_CLOSE if(!allowed(user) && !isobserver(user)) - to_chat(user,"Error: Access Denied.") + to_chat(user,span_warning("Error: Access Denied.")) return UI_CLOSE if(!SSjukeboxes.songs.len && !isobserver(user)) - to_chat(user,"Error: No music tracks have been authorized for your station. Petition Central Command to resolve this issue.") + to_chat(user,span_warning("Error: No music tracks have been authorized for your station. Petition Central Command to resolve this issue.")) return UI_CLOSE return ..() @@ -112,7 +112,7 @@ return if(!active) if(stop > world.time) - to_chat(usr, "Error: The device is still resetting from the last activation, it will be ready again in [DisplayTimeText(stop-world.time)].") + to_chat(usr, span_warning("Error: The device is still resetting from the last activation, it will be ready again in [DisplayTimeText(stop-world.time)].")) return activate_music() return TRUE @@ -121,7 +121,7 @@ return TRUE if("select_track") if(active) - to_chat(usr, "Error: You cannot change the song until the current one is over.") + to_chat(usr, span_warning("Error: You cannot change the song until the current one is over.")) return var/list/available = list() for(var/datum/track/S in SSjukeboxes.songs) diff --git a/modular_skyrat/modules/layer_shift/code/mob_movement.dm b/modular_skyrat/modules/layer_shift/code/mob_movement.dm index 6481705ad3c..9ea0c756123 100644 --- a/modular_skyrat/modules/layer_shift/code/mob_movement.dm +++ b/modular_skyrat/modules/layer_shift/code/mob_movement.dm @@ -8,29 +8,29 @@ set category = "IC" if(incapacitated() || body_position == LYING_DOWN) - to_chat(src, "You can't do that right now!") + to_chat(src, span_warning("You can't do that right now!")) return if(layer >= MOB_LAYER_SHIFT_MAX) - to_chat(src, "You cannot increase your layer priority any further.") + to_chat(src, span_warning("You cannot increase your layer priority any further.")) return layer += MOB_LAYER_SHIFT_INCREMENT var/layer_priority = (layer - MOB_LAYER) * 100 // Just for text feedback - to_chat(src, "Your layer priority is now [layer_priority].") + to_chat(src, span_notice("Your layer priority is now [layer_priority].")) /mob/living/verb/layershift_down() set name = "Shift Layer Downwards" set category = "IC" if(incapacitated() || body_position == LYING_DOWN) - to_chat(src, "You can't do that right now!") + to_chat(src, span_warning("You can't do that right now!")) return if(layer <= MOB_LAYER_SHIFT_MIN) - to_chat(src, "You cannot decrease your layer priority any further.") + to_chat(src, span_warning("You cannot decrease your layer priority any further.")) return - + layer -= MOB_LAYER_SHIFT_INCREMENT var/layer_priority = (layer - MOB_LAYER) * 100 // Just for text feedback - to_chat(src, "Your layer priority is now [layer_priority].") + to_chat(src, span_notice("Your layer priority is now [layer_priority].")) diff --git a/modular_skyrat/modules/liquids/code/drains.dm b/modular_skyrat/modules/liquids/code/drains.dm index e59b89cda29..faaa6a9a4ab 100644 --- a/modular_skyrat/modules/liquids/code/drains.dm +++ b/modular_skyrat/modules/liquids/code/drains.dm @@ -28,9 +28,9 @@ return TRUE playsound(src, 'sound/items/welder2.ogg', 50, TRUE) - to_chat(user, "You start [welded ? "unwelding" : "welding"] [src]...") + to_chat(user, span_notice("You start [welded ? "unwelding" : "welding"] [src]...")) if(I.use_tool(src, user, 20)) - to_chat(user, "You [welded ? "unweld" : "weld"] [src].") + to_chat(user, span_notice("You [welded ? "unweld" : "weld"] [src].")) welded = !welded update_icon() if(welded) diff --git a/modular_skyrat/modules/liquids/code/liquid_systems/liquid_effect.dm b/modular_skyrat/modules/liquids/code/liquid_systems/liquid_effect.dm index c1ee3f8de54..4a04dbbf5ff 100644 --- a/modular_skyrat/modules/liquids/code/liquid_systems/liquid_effect.dm +++ b/modular_skyrat/modules/liquids/code/liquid_systems/liquid_effect.dm @@ -379,7 +379,7 @@ if(!(C.shoes && C.shoes.clothing_flags & NOSLIP)) step(C, dir) if(prob(60) && C.body_position != LYING_DOWN) - to_chat(C, "The current knocks you down!") + to_chat(C, span_userdanger("The current knocks you down!")) C.Paralyze(60) else step(AM, dir) @@ -419,7 +419,7 @@ if(iscarbon(M)) var/mob/living/carbon/C = M if(C.wear_mask && C.wear_mask.flags_cover & MASKCOVERSMOUTH) - to_chat(C, "You fall in the water!") + to_chat(C, span_userdanger("You fall in the water!")) else var/datum/reagents/tempr = take_reagents_flat(CHOKE_REAGENTS_INGEST_ON_FALL_AMOUNT) tempr.trans_to(C, tempr.total_volume, methods = INGEST) @@ -427,9 +427,9 @@ C.adjustOxyLoss(5) //C.emote("cough") INVOKE_ASYNC(C, /mob.proc/emote, "cough") - to_chat(C, "You fall in and swallow some water!") + to_chat(C, span_userdanger("You fall in and swallow some water!")) else - to_chat(M, "You fall in the water!") + to_chat(M, span_userdanger("You fall in the water!")) /obj/effect/abstract/liquid_turf/Initialize() . = ..() diff --git a/modular_skyrat/modules/liquids/code/liquid_systems/liquid_plumbers.dm b/modular_skyrat/modules/liquids/code/liquid_systems/liquid_plumbers.dm index 538e10747e4..45db9b24045 100644 --- a/modular_skyrat/modules/liquids/code/liquid_systems/liquid_plumbers.dm +++ b/modular_skyrat/modules/liquids/code/liquid_systems/liquid_plumbers.dm @@ -24,9 +24,9 @@ /obj/machinery/plumbing/liquid_input_pump/attack_hand(mob/user) if(!anchored) - to_chat(user, "[src] needs to be anchored first!") + to_chat(user, span_warning("[src] needs to be anchored first!")) return - to_chat(user, "You turn [src] [turned_on ? "off" : "on"].") + to_chat(user, span_notice("You turn [src] [turned_on ? "off" : "on"].")) turned_on = !turned_on /obj/machinery/plumbing/liquid_input_pump/CtrlClick(mob/living/user) @@ -42,8 +42,8 @@ /obj/machinery/plumbing/liquid_input_pump/examine(mob/user) . = ..() - . += "It's currently [turned_on ? "ON" : "OFF"]." - . += "It's height regulator [height_regulator ? "points at [height_regulator]" : "is disabled"]. (Ctrl-click to change)" + . += span_notice("It's currently [turned_on ? "ON" : "OFF"].") + . += span_notice("It's height regulator [height_regulator ? "points at [height_regulator]" : "is disabled"]. (Ctrl-click to change)") /obj/machinery/plumbing/liquid_input_pump/Initialize(mapload, bolt) . = ..() @@ -118,9 +118,9 @@ /obj/machinery/plumbing/liquid_output_pump/attack_hand(mob/user) if(!anchored) - to_chat(user, "[src] needs to be anchored first!") + to_chat(user, span_warning("[src] needs to be anchored first!")) return - to_chat(user, "You turn [src] [turned_on ? "off" : "on"].") + to_chat(user, span_notice("You turn [src] [turned_on ? "off" : "on"].")) turned_on = !turned_on /obj/machinery/plumbing/liquid_output_pump/CtrlClick(mob/living/user) @@ -136,8 +136,8 @@ /obj/machinery/plumbing/liquid_output_pump/examine(mob/user) . = ..() - . += "It's currently [turned_on ? "ON" : "OFF"]." - . += "It's height regulator [height_regulator ? "points at [height_regulator]" : "is disabled"]. (Ctrl-click to change)" + . += span_notice("It's currently [turned_on ? "ON" : "OFF"].") + . += span_notice("It's height regulator [height_regulator ? "points at [height_regulator]" : "is disabled"]. (Ctrl-click to change)") /obj/machinery/plumbing/liquid_output_pump/proc/can_pump() if(!turned_on || !anchored || panel_open || !isturf(loc) || reagents.total_volume == 0) diff --git a/modular_skyrat/modules/liquids/code/liquid_systems/liquid_pump.dm b/modular_skyrat/modules/liquids/code/liquid_systems/liquid_pump.dm index ed1b3b2ad25..4aaacfbc153 100644 --- a/modular_skyrat/modules/liquids/code/liquid_systems/liquid_pump.dm +++ b/modular_skyrat/modules/liquids/code/liquid_systems/liquid_pump.dm @@ -28,24 +28,24 @@ /obj/structure/liquid_pump/attack_hand(mob/user) if(!anchored) - to_chat(user, "[src] needs to be anchored first!") + to_chat(user, span_warning("[src] needs to be anchored first!")) return - to_chat(user, "You turn [src] [turned_on ? "off" : "on"].") + to_chat(user, span_notice("You turn [src] [turned_on ? "off" : "on"].")) toggle_working() /obj/structure/liquid_pump/AltClick(mob/living/user) if(!user.canUseTopic(src, BE_CLOSE, NO_DEXTERITY, FALSE, TRUE)) return - to_chat(user, "You flick [src]'s spewing mode [spewing_mode ? "off" : "on"].") + to_chat(user, span_notice("You flick [src]'s spewing mode [spewing_mode ? "off" : "on"].")) spewing_mode = !spewing_mode update_icon() /obj/structure/liquid_pump/examine(mob/user) . = ..() - . += "It's anchor bolts are [anchored ? "down and secured" : "up"]." - . += "It's currently [turned_on ? "ON" : "OFF"]." - . += "It's mode currently is set to [spewing_mode ? "SPEWING" : "SIPHONING"]. (Alt-click to switch)" - . += "The pressure gauge shows [reagents.total_volume]/[reagents.maximum_volume]." + . += span_notice("It's anchor bolts are [anchored ? "down and secured" : "up"].") + . += span_notice("It's currently [turned_on ? "ON" : "OFF"].") + . += span_notice("It's mode currently is set to [spewing_mode ? "SPEWING" : "SIPHONING"]. (Alt-click to switch)") + . += span_notice("The pressure gauge shows [reagents.total_volume]/[reagents.maximum_volume].") /obj/structure/liquid_pump/process() if(!isturf(loc)) diff --git a/modular_skyrat/modules/liquids/code/ocean_flora.dm b/modular_skyrat/modules/liquids/code/ocean_flora.dm index 6610ced4b82..06ef934e792 100644 --- a/modular_skyrat/modules/liquids/code/ocean_flora.dm +++ b/modular_skyrat/modules/liquids/code/ocean_flora.dm @@ -63,11 +63,11 @@ playsound(src, 'sound/items/welder2.ogg', 50, TRUE) if(first) - to_chat(user, "You start slicing the [src]...") + to_chat(user, span_notice("You start slicing the [src]...")) if(I.use_tool(src, user, 2 SECONDS)) welds_remaining-- if(welds_remaining <= 0) - to_chat(user, "You successfully salvage [src].") + to_chat(user, span_notice("You successfully salvage [src].")) new /obj/item/stack/sheet/iron(get_turf(src), rand(SCRAP_METAL_YIELD_LOW, SCRAP_METAL_YIELD_HIGH)) qdel(src) else diff --git a/modular_skyrat/modules/lobbyscreen/code/load_servers.dm b/modular_skyrat/modules/lobbyscreen/code/load_servers.dm index ccd6b72a2b6..d1f627d50c7 100644 --- a/modular_skyrat/modules/lobbyscreen/code/load_servers.dm +++ b/modular_skyrat/modules/lobbyscreen/code/load_servers.dm @@ -13,7 +13,7 @@ SUBSYSTEM_DEF(serverswap) return ..() if(!fexists("config/skyrat/swap_ips.txt")) - to_chat_immediate(world, "SERVER SWAP ERROR: swap_ips.txt does not exist, unable to set up server swapping!") + to_chat_immediate(world, span_boldwarning("SERVER SWAP ERROR: swap_ips.txt does not exist, unable to set up server swapping!")) return ..() var/list/lines = world.file2list("config/skyrat/swap_ips.txt") diff --git a/modular_skyrat/modules/mapping/code/dungeon.dm b/modular_skyrat/modules/mapping/code/dungeon.dm index 4a4c1802b4c..220c7e0bfa9 100644 --- a/modular_skyrat/modules/mapping/code/dungeon.dm +++ b/modular_skyrat/modules/mapping/code/dungeon.dm @@ -87,7 +87,7 @@ climbable = TRUE /obj/structure/railing/stone/attackby(obj/item/wrench, mob/living/user, params) - to_chat(user, "You frown as you realise this wall is in fact made of stone, and cannot be uprooted from the ground and dragged along with a mere wrench.") + to_chat(user, span_notice("You frown as you realise this wall is in fact made of stone, and cannot be uprooted from the ground and dragged along with a mere wrench.")) return /obj/structure/railing/stone/left @@ -122,6 +122,6 @@ /obj/machinery/button/dungeon/attackby(obj/item/W, mob/user, params) if(W.tool_behaviour == TOOL_SCREWDRIVER) - to_chat(user, "You prod around the rim of the bricks and try and jam it in. Looks like it isn't coming out this way.") + to_chat(user, span_notice("You prod around the rim of the bricks and try and jam it in. Looks like it isn't coming out this way.")) return // Let's not open the maintenance panel of a stone brick. diff --git a/modular_skyrat/modules/mapping/code/fluff.dm b/modular_skyrat/modules/mapping/code/fluff.dm index 251acdc284c..41839e677c5 100644 --- a/modular_skyrat/modules/mapping/code/fluff.dm +++ b/modular_skyrat/modules/mapping/code/fluff.dm @@ -97,7 +97,7 @@ if(atom_integrity >= 50) //breaks it a bit earlier than it should, but still takes a few hits to kill it return else if(. && !QDELETED(src)) - visible_message("[src] sparks and explodes! You hear a faint, buzzy scream...","You hear a loud pop, followed by a faint, buzzy scream.") + visible_message(span_notice("[src] sparks and explodes! You hear a faint, buzzy scream..."), span_hear("You hear a loud pop, followed by a faint, buzzy scream.")) playsound(src.loc, 'modular_skyrat/modules/mapping/sounds/MachineDeath.ogg', 75, TRUE) //Credit to @yungfunnyman#3798 on the SR Discord do_sparks(2, TRUE, src) qdel(src) diff --git a/modular_skyrat/modules/mapping/code/genpop.dm b/modular_skyrat/modules/mapping/code/genpop.dm index 5b1d57871ce..3bf472b15f1 100644 --- a/modular_skyrat/modules/mapping/code/genpop.dm +++ b/modular_skyrat/modules/mapping/code/genpop.dm @@ -28,7 +28,7 @@ break if(!prisoner_id) - to_chat(user, "Access Denied.") + to_chat(user, span_danger("Access Denied.")) return FALSE qdel(registered_id) @@ -36,7 +36,7 @@ locked = FALSE open(user) desc = "It's a secure locker for prisoner effects." - to_chat(user, "You insert your prisoner id into \the [src] and it springs open!") + to_chat(user, span_notice("You insert your prisoner id into \the [src] and it springs open!")) return TRUE diff --git a/modular_skyrat/modules/mapping/code/machinery.dm b/modular_skyrat/modules/mapping/code/machinery.dm index d3584cc578a..34dbfeb93b1 100644 --- a/modular_skyrat/modules/mapping/code/machinery.dm +++ b/modular_skyrat/modules/mapping/code/machinery.dm @@ -16,8 +16,8 @@ if(flags_1 & NODECONSTRUCT_1) return TRUE - user.visible_message("[user] disassembles [src].", - "You start to disassemble [src]...", "You hear clanking and banging noises.") + user.visible_message(span_warning("[user] disassembles [src]."), + span_notice("You start to disassemble [src]..."), span_hear("You hear clanking and banging noises.")) if(I.use_tool(src, user, 20, volume=50)) new /obj/item/gps/spaceruin(loc) //really the only non-aesthetic change, gives the space ruin GPS signal qdel(src) diff --git a/modular_skyrat/modules/mapping/code/pool.dm b/modular_skyrat/modules/mapping/code/pool.dm index c054746391c..40ff5983d4f 100644 --- a/modular_skyrat/modules/mapping/code/pool.dm +++ b/modular_skyrat/modules/mapping/code/pool.dm @@ -49,7 +49,7 @@ SEND_SIGNAL(A, COMSIG_ADD_MOOD_EVENT, "hotspring", /datum/mood_event/hotspring) /datum/mood_event/hotspring - description = "I recently a paddle in some nice warm water! It was so refreshing!\n" + description = span_nicegreen("I recently had a paddle in some nice warm water! It was so refreshing!\n") mood_change = 4 timeout = 20 MINUTES ///////////// MOOD EVENT ///////////// diff --git a/modular_skyrat/modules/materials_glass/code/glass.dm b/modular_skyrat/modules/materials_glass/code/glass.dm index 7db139a87ab..d09adc0dcea 100644 --- a/modular_skyrat/modules/materials_glass/code/glass.dm +++ b/modular_skyrat/modules/materials_glass/code/glass.dm @@ -52,7 +52,7 @@ GLOBAL_LIST_INIT(glass_recipes, list ( \ source = /datum/robot_energy_storage/glass /obj/item/stack/sheet/glass/suicide_act(mob/living/carbon/user) - user.visible_message("[user] begins to slice [user.p_their()] neck with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!") + user.visible_message(span_suicide("[user] begins to slice [user.p_their()] neck with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!")) return BRUTELOSS /obj/item/stack/sheet/glass/fifty @@ -67,11 +67,11 @@ GLOBAL_LIST_INIT(glass_recipes, list ( \ if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/CC = W if (get_amount() < 1 || CC.get_amount() < 5) - to_chat(user, "You attach wire to the [name].") + to_chat(user, span_notice("You attach wire to the [name].")) var/obj/item/stack/light_w/new_tile = new(user.loc) new_tile.add_fingerprint(user) return @@ -86,7 +86,7 @@ GLOBAL_LIST_INIT(glass_recipes, list ( \ if(QDELETED(src) && replace) user.put_in_hands(RG) else - to_chat(user, "You need one rod and one sheet of glass to make reinforced glass!") + to_chat(user, span_warning("You need one rod and one sheet of glass to make reinforced glass!")) return return ..() @@ -126,7 +126,7 @@ GLOBAL_LIST_INIT(glass_recipes, list ( \ if(QDELETED(src) && replace) user.put_in_hands(RG) else - to_chat(user, "You need one rod and one sheet of plasma glass to make reinforced plasma glass!") + to_chat(user, span_warning("You need one rod and one sheet of plasma glass to make reinforced plasma glass!")) return else return ..() @@ -257,7 +257,7 @@ GLOBAL_LIST_INIT(glass_recipes, list ( \ /obj/item/shard/suicide_act(mob/user) - user.visible_message("[user] is slitting [user.p_their()] [pick("wrists", "throat")] with the shard of glass! It looks like [user.p_theyre()] trying to commit suicide.") + user.visible_message(span_suicide("[user] is slitting [user.p_their()] [pick("wrists", "throat")] with the shard of glass! It looks like [user.p_theyre()] trying to commit suicide.")) return (BRUTELOSS) @@ -306,7 +306,7 @@ GLOBAL_LIST_INIT(glass_recipes, list ( \ if(ishuman(user)) var/mob/living/carbon/human/H = user if(!H.gloves && !HAS_TRAIT(H, TRAIT_PIERCEIMMUNE)) // golems, etc - to_chat(H, "[src] cuts into your hand!") + to_chat(H, span_warning("[src] cuts into your hand!")) H.apply_damage(force*0.5, BRUTE, hit_hand) /obj/item/shard/attackby(obj/item/I, mob/user, params) @@ -315,11 +315,11 @@ GLOBAL_LIST_INIT(glass_recipes, list ( \ L.attackby(src, user) else if(istype(I, /obj/item/stack/sheet/cloth)) var/obj/item/stack/sheet/cloth/C = I - to_chat(user, "You begin to wrap the [C] around the [src]...") + to_chat(user, span_notice("You begin to wrap the [C] around the [src]...")) if(do_after(user, 35, target = src)) var/obj/item/knife/shiv/S = new /obj/item/knife/shiv C.use(1) - to_chat(user, "You wrap the [C] around the [src] forming a makeshift weapon.") + to_chat(user, span_notice("You wrap the [C] around the [src] forming a makeshift weapon.")) remove_item_from_storage(src) qdel(src) user.put_in_hands(S) @@ -337,7 +337,7 @@ GLOBAL_LIST_INIT(glass_recipes, list ( \ if(G.amount >= G.max_amount) continue G.attackby(NG, user) - to_chat(user, "You add the newly-formed [NG.name] to the stack. It now contains [NG.amount] sheet\s.") + to_chat(user, span_notice("You add the newly-formed [NG.name] to the stack. It now contains [NG.amount] sheet\s.")) qdel(src) return TRUE diff --git a/modular_skyrat/modules/medical/code/bodypart_aid.dm b/modular_skyrat/modules/medical/code/bodypart_aid.dm index c74874deab4..3bddf8be9b4 100644 --- a/modular_skyrat/modules/medical/code/bodypart_aid.dm +++ b/modular_skyrat/modules/medical/code/bodypart_aid.dm @@ -25,12 +25,12 @@ return var/mob/living/carbon/C = usr var/self = (C == bodypart.owner) - C.visible_message("[C] begins removing [name] from [self ? "[bodypart.owner.p_their(TRUE)]" : "[bodypart.owner]'s" ] [bodypart.name]...", "You begin to remove [name] from [self ? "your" : "[bodypart.owner]'s"] [bodypart.name]...") + C.visible_message(span_notice("[C] begins removing [name] from [self ? "[bodypart.owner.p_their(TRUE)]" : "[bodypart.owner]'s" ] [bodypart.name]..."), span_notice("You begin to remove [name] from [self ? "your" : "[bodypart.owner]'s"] [bodypart.name]...")) if(!do_after(C, (self ? SELF_AID_REMOVE_DELAY : OTHER_AID_REMOVE_DELAY), target=bodypart.owner)) return if(QDELETED(src)) return - C.visible_message("[C] removes [name] from [self ? "[bodypart.owner.p_their(TRUE)]" : "[bodypart.owner]'s" ] [bodypart.name].", "You remove [name] from [self ? "your" : "[bodypart.owner]'s" ] [bodypart.name].") + C.visible_message(span_notice("[C] removes [name] from [self ? "[bodypart.owner.p_their(TRUE)]" : "[bodypart.owner]'s" ] [bodypart.name]."), span_notice("You remove [name] from [self ? "your" : "[bodypart.owner]'s" ] [bodypart.name].")) var/obj/item/gotten = rip_off() if(gotten && !C.put_in_hands(gotten)) gotten.forceMove(get_turf(C)) @@ -57,7 +57,7 @@ integrity-- if(integrity <= 0) if(bodypart.owner) - to_chat(bodypart.owner, "The [name] on your [bodypart.name] tears and falls off!") + to_chat(bodypart.owner, span_warning("The [name] on your [bodypart.name] tears and falls off!")) qdel(src) /** @@ -218,11 +218,11 @@ if(type == GAUZE_STAIN_BLOOD && !blood_stained) blood_stained = TRUE if(bodypart.owner) - to_chat(bodypart.owner, "The [name] on your [bodypart.name] [pick(list("pools", "trickles", "seeps"))] with blood.") + to_chat(bodypart.owner, span_warning("The [name] on your [bodypart.name] [pick(list("pools", "trickles", "seeps"))] with blood.")) else if(type == GAUZE_STAIN_PUS && !pus_stained) pus_stained = TRUE if(bodypart.owner) - to_chat(bodypart.owner, "The [name] on your [bodypart.name] [pick(list("pools", "trickles", "seeps"))] with pus.") + to_chat(bodypart.owner, span_warning("The [name] on your [bodypart.name] [pick(list("pools", "trickles", "seeps"))] with pus.")) /datum/bodypart_aid/gauze/improvised name = "improvised gauze" diff --git a/modular_skyrat/modules/medical/code/carbon_defense.dm b/modular_skyrat/modules/medical/code/carbon_defense.dm index 06dcd0e45c0..6f2dcd6ccfb 100644 --- a/modular_skyrat/modules/medical/code/carbon_defense.dm +++ b/modular_skyrat/modules/medical/code/carbon_defense.dm @@ -3,17 +3,17 @@ return var/starting_hand_index = active_hand_index if(starting_hand_index == grasped_part.held_index) - to_chat(src, "You can't grasp your [grasped_part.name] with itself!") + to_chat(src, span_danger("You can't grasp your [grasped_part.name] with itself!")) return - to_chat(src, "You try grasping at your [grasped_part.name], trying to stop the bleeding...") + to_chat(src, span_warning("You try grasping at your [grasped_part.name], trying to stop the bleeding...")) if(!do_after(src, 1.5 SECONDS)) - to_chat(src, "You fail to grasp your [grasped_part.name].") + to_chat(src, span_danger("You fail to grasp your [grasped_part.name].")) return var/obj/item/self_grasp/grasp = new if(starting_hand_index != active_hand_index || !put_in_active_hand(grasp)) - to_chat(src, "You fail to grasp your [grasped_part.name].") + to_chat(src, span_danger("You fail to grasp your [grasped_part.name].")) QDEL_NULL(grasp) return grasp.grasp_limb(grasped_part) diff --git a/modular_skyrat/modules/medical/code/carbon_examine.dm b/modular_skyrat/modules/medical/code/carbon_examine.dm index bb4874e673e..14be697fbb2 100644 --- a/modular_skyrat/modules/medical/code/carbon_examine.dm +++ b/modular_skyrat/modules/medical/code/carbon_examine.dm @@ -1,5 +1,5 @@ /mob/living/carbon/examine_more(mob/user) - var/msg = list("You examine [src] closer, and note the following...") + var/msg = list(span_notice("You examine [src] closer, and note the following...")) var/t_His = p_their(TRUE) var/t_He = p_they(TRUE) var/t_Has = p_have() diff --git a/modular_skyrat/modules/medical/code/splint.dm b/modular_skyrat/modules/medical/code/splint.dm index f8c707fff90..f2bd28261a5 100644 --- a/modular_skyrat/modules/medical/code/splint.dm +++ b/modular_skyrat/modules/medical/code/splint.dm @@ -17,10 +17,10 @@ /obj/item/stack/medical/splint/try_heal(mob/living/M, mob/user, silent) var/obj/item/bodypart/limb = M.get_bodypart(check_zone(user.zone_selected)) if(!limb) - to_chat(user, "There's nothing there to bandage!") + to_chat(user, span_notice("There's nothing there to bandage!")) return if(!LAZYLEN(limb.wounds)) - to_chat(user, "There's no wounds that require bandaging on [user==M ? "your" : "[M]'s"] [limb.name]!") // good problem to have imo + to_chat(user, span_notice("There's no wounds that require bandaging on [user==M ? "your" : "[M]'s"] [limb.name]!")) // good problem to have imo return var/splintable_wound = FALSE @@ -30,18 +30,18 @@ splintable_wound = TRUE break if(!splintable_wound) - to_chat(user, "There's no wounds that require splinting on [user==M ? "your" : "[M]'s"] [limb.name]!") // good problem to have imo + to_chat(user, span_notice("There's no wounds that require splinting on [user==M ? "your" : "[M]'s"] [limb.name]!")) // good problem to have imo return if(limb.current_splint) - to_chat(user, "[user==M ? "Your" : "[M]'s"] [limb.name] is already fastened in a splint!") + to_chat(user, span_warning("[user==M ? "Your" : "[M]'s"] [limb.name] is already fastened in a splint!")) return - user.visible_message("[user] begins fastening [M]'s [limb.name] with [src]...", "You begin to fasten [user == M ? "your" : "[M]'s"] [limb.name] with [src]...") + user.visible_message(span_warning("[user] begins fastening [M]'s [limb.name] with [src]..."), span_warning("You begin to fasten [user == M ? "your" : "[M]'s"] [limb.name] with [src]...")) if(!do_after(user, (user == M ? self_delay : other_delay), target=M)) return - user.visible_message("[user] applies [src] to [M]'s [limb.name].", "You splint [user == M ? "your" : "[M]'s"] [limb.name].") + user.visible_message(span_green("[user] applies [src] to [M]'s [limb.name]."), span_green("You splint [user == M ? "your" : "[M]'s"] [limb.name].")) limb.apply_splint(src) /obj/item/stack/medical/splint/twelve diff --git a/modular_skyrat/modules/medical/code/wounds/bones.dm b/modular_skyrat/modules/medical/code/wounds/bones.dm index 6f097302bf1..a1efcf0dff5 100644 --- a/modular_skyrat/modules/medical/code/wounds/bones.dm +++ b/modular_skyrat/modules/medical/code/wounds/bones.dm @@ -48,7 +48,7 @@ I = victim.get_inactive_held_item() if(I && victim.dropItemToGround(I)) - victim.visible_message("[victim] drops [I] in shock!", "The force on your [limb.name] causes you to drop [I]!", vision_distance=COMBAT_MESSAGE_RANGE) + victim.visible_message(span_danger("[victim] drops [I] in shock!"), span_warning("The force on your [limb.name] causes you to drop [I]!"), vision_distance=COMBAT_MESSAGE_RANGE) update_inefficiencies() @@ -83,13 +83,13 @@ if(prob(severity * 3)) victim.take_bodypart_damage(rand(1, severity * 2), stamina=rand(2, severity * 2.5), wound_bonus=CANT_WOUND) if(prob(33)) - to_chat(victim, "You feel a sharp pain in your body as your bones are reforming!") + to_chat(victim, span_danger("You feel a sharp pain in your body as your bones are reforming!")) if(regen_ticks_current > regen_ticks_needed) if(!victim || !limb) qdel(src) return - to_chat(victim, "Your [limb.name] has recovered from your fracture!") + to_chat(victim, span_green("Your [limb.name] has recovered from your fracture!")) remove_wound() /// If we're a human who's punching something with a broken arm, we might hurt ourselves doing so @@ -103,11 +103,11 @@ if(prob((severity - 1) * 15)) // And you have a 70% or 50% chance to actually land the blow, respectively if(prob(70 - 20 * (severity - 1))) - to_chat(victim, "The fracture in your [limb.name] shoots with pain as you strike [target]!") + to_chat(victim, span_userdanger("The fracture in your [limb.name] shoots with pain as you strike [target]!")) limb.receive_damage(brute=rand(1,5)) else - victim.visible_message("[victim] weakly strikes [target] with [victim.p_their()] broken [limb.name], recoiling from pain!", \ - "You fail to strike [target] as the fracture in your [limb.name] lights up in unbearable pain!", vision_distance=COMBAT_MESSAGE_RANGE) + victim.visible_message(span_danger("[victim] weakly strikes [target] with [victim.p_their()] broken [limb.name], recoiling from pain!"), \ + span_userdanger("You fail to strike [target] as the fracture in your [limb.name] lights up in unbearable pain!"), vision_distance=COMBAT_MESSAGE_RANGE) INVOKE_ASYNC(victim, /mob.proc/emote, "scream") victim.Stun(0.5 SECONDS) limb.receive_damage(brute=rand(3,7)) @@ -128,10 +128,10 @@ if(1 to 6) victim.bleed(blood_bled, TRUE) if(7 to 13) - victim.visible_message("A thin stream of blood drips from [victim]'s mouth from the blow to [victim.p_their()] chest.", "You cough up a bit of blood from the blow to your chest.", vision_distance=COMBAT_MESSAGE_RANGE) + victim.visible_message(span_smalldanger("A thin stream of blood drips from [victim]'s mouth from the blow to [victim.p_their()] chest."), span_danger("You cough up a bit of blood from the blow to your chest."), vision_distance=COMBAT_MESSAGE_RANGE) victim.bleed(blood_bled, TRUE) if(14 to 19) - victim.visible_message("Blood spews out of [victim]'s mouth from the blow to [victim.p_their()] chest!", "You spit out a string of blood from the blow to your chest!", vision_distance=COMBAT_MESSAGE_RANGE) + victim.visible_message(span_smalldanger("Blood spews out of [victim]'s mouth from the blow to [victim.p_their()] chest!"), span_danger("You spit out a string of blood from the blow to your chest!"), vision_distance=COMBAT_MESSAGE_RANGE) new /obj/effect/temp_visual/dir_setting/bloodsplatter(victim.loc, victim.dir) victim.bleed(blood_bled) if(20 to INFINITY) @@ -225,7 +225,7 @@ /datum/wound/blunt/moderate/proc/door_crush() SIGNAL_HANDLER if(prob(33)) - victim.visible_message("[victim]'s dislocated [limb.name] pops back into place!", "Your dislocated [limb.name] pops back into place! Ow!") + victim.visible_message(span_danger("[victim]'s dislocated [limb.name] pops back into place!"), span_userdanger("Your dislocated [limb.name] pops back into place! Ow!")) remove_wound() /datum/wound/blunt/moderate/try_handling(mob/living/carbon/human/user) @@ -233,12 +233,12 @@ return FALSE if(user.grab_state == GRAB_PASSIVE) - to_chat(user, "You must have [victim] in an aggressive grab to manipulate [victim.p_their()] [lowertext(name)]!") + to_chat(user, span_warning("You must have [victim] in an aggressive grab to manipulate [victim.p_their()] [lowertext(name)]!")) return TRUE if(user.grab_state >= GRAB_AGGRESSIVE) - user.visible_message("[user] begins twisting and straining [victim]'s dislocated [limb.name]!", "You begin twisting and straining [victim]'s dislocated [limb.name]...", ignored_mobs=victim) - to_chat(victim, "[user] begins twisting and straining your dislocated [limb.name]!") + user.visible_message(span_danger("[user] begins twisting and straining [victim]'s dislocated [limb.name]!"), span_notice("You begin twisting and straining [victim]'s dislocated [limb.name]..."), ignored_mobs=victim) + to_chat(victim, span_userdanger("[user] begins twisting and straining your dislocated [limb.name]!")) if(!user.combat_mode) chiropractice(user) else @@ -253,14 +253,14 @@ return if(prob(65)) - user.visible_message("[user] snaps [victim]'s dislocated [limb.name] back into place!", "You snap [victim]'s dislocated [limb.name] back into place!", ignored_mobs=victim) - to_chat(victim, "[user] snaps your dislocated [limb.name] back into place!") + user.visible_message(span_danger("[user] snaps [victim]'s dislocated [limb.name] back into place!"), span_notice("You snap [victim]'s dislocated [limb.name] back into place!"), ignored_mobs=victim) + to_chat(victim, span_userdanger("[user] snaps your dislocated [limb.name] back into place!")) victim.emote("scream") limb.receive_damage(brute=20, wound_bonus=CANT_WOUND) qdel(src) else - user.visible_message("[user] wrenches [victim]'s dislocated [limb.name] around painfully!", "You wrench [victim]'s dislocated [limb.name] around painfully!", ignored_mobs=victim) - to_chat(victim, "[user] wrenches your dislocated [limb.name] around painfully!") + user.visible_message(span_danger("[user] wrenches [victim]'s dislocated [limb.name] around painfully!"), span_danger("You wrench [victim]'s dislocated [limb.name] around painfully!"), ignored_mobs=victim) + to_chat(victim, span_userdanger("[user] wrenches your dislocated [limb.name] around painfully!")) limb.receive_damage(brute=10, wound_bonus=CANT_WOUND) chiropractice(user) @@ -272,33 +272,33 @@ return if(prob(65)) - user.visible_message("[user] snaps [victim]'s dislocated [limb.name] with a sickening crack!", "You snap [victim]'s dislocated [limb.name] with a sickening crack!", ignored_mobs=victim) - to_chat(victim, "[user] snaps your dislocated [limb.name] with a sickening crack!") + user.visible_message(span_danger("[user] snaps [victim]'s dislocated [limb.name] with a sickening crack!"), span_danger("You snap [victim]'s dislocated [limb.name] with a sickening crack!"), ignored_mobs=victim) + to_chat(victim, span_userdanger("[user] snaps your dislocated [limb.name] with a sickening crack!")) victim.emote("scream") limb.receive_damage(brute=25, wound_bonus=30) else - user.visible_message("[user] wrenches [victim]'s dislocated [limb.name] around painfully!", "You wrench [victim]'s dislocated [limb.name] around painfully!", ignored_mobs=victim) - to_chat(victim, "[user] wrenches your dislocated [limb.name] around painfully!") + user.visible_message(span_danger("[user] wrenches [victim]'s dislocated [limb.name] around painfully!"), span_danger("You wrench [victim]'s dislocated [limb.name] around painfully!"), ignored_mobs=victim) + to_chat(victim, span_userdanger("[user] wrenches your dislocated [limb.name] around painfully!")) limb.receive_damage(brute=10, wound_bonus=CANT_WOUND) malpractice(user) /datum/wound/blunt/moderate/treat(obj/item/I, mob/user) if(victim == user) - victim.visible_message("[user] begins resetting [victim.p_their()] [limb.name] with [I].", "You begin resetting your [limb.name] with [I]...") + victim.visible_message(span_danger("[user] begins resetting [victim.p_their()] [limb.name] with [I]."), span_warning("You begin resetting your [limb.name] with [I]...")) else - user.visible_message("[user] begins resetting [victim]'s [limb.name] with [I].", "You begin resetting [victim]'s [limb.name] with [I]...") + user.visible_message(span_danger("[user] begins resetting [victim]'s [limb.name] with [I]."), span_notice("You begin resetting [victim]'s [limb.name] with [I]...")) if(!do_after(user, base_treat_time * (user == victim ? 1.5 : 1), target = victim, extra_checks=CALLBACK(src, .proc/still_exists))) return if(victim == user) limb.receive_damage(brute=15, wound_bonus=CANT_WOUND) - victim.visible_message("[user] finishes resetting [victim.p_their()] [limb.name]!", "You reset your [limb.name]!") + victim.visible_message(span_danger("[user] finishes resetting [victim.p_their()] [limb.name]!"), span_userdanger("You reset your [limb.name]!")) else limb.receive_damage(brute=10, wound_bonus=CANT_WOUND) - user.visible_message("[user] finishes resetting [victim]'s [limb.name]!", "You finish resetting [victim]'s [limb.name]!", victim) - to_chat(victim, "[user] resets your [limb.name]!") + user.visible_message(span_danger("[user] finishes resetting [victim]'s [limb.name]!"), span_nicegreen("You finish resetting [victim]'s [limb.name]!"), victim) + to_chat(victim, span_userdanger("[user] resets your [limb.name]!")) victim.emote("scream") qdel(src) @@ -362,10 +362,10 @@ /// if someone is using bone gel on our wound /datum/wound/blunt/proc/gel(obj/item/stack/medical/bone_gel/I, mob/user) if(gelled) - to_chat(user, "[user == victim ? "Your" : "[victim]'s"] [limb.name] is already coated with bone gel!") + to_chat(user, span_warning("[user == victim ? "Your" : "[victim]'s"] [limb.name] is already coated with bone gel!")) return - user.visible_message("[user] begins hastily applying [I] to [victim]'s' [limb.name]...", "You begin hastily applying [I] to [user == victim ? "your" : "[victim]'s"] [limb.name], disregarding the warning label...") + user.visible_message(span_danger("[user] begins hastily applying [I] to [victim]'s' [limb.name]..."), span_warning("You begin hastily applying [I] to [user == victim ? "your" : "[victim]'s"] [limb.name], disregarding the warning label...")) if(!do_after(user, base_treat_time * 1.5 * (user == victim ? 1.5 : 1), target = victim, extra_checks=CALLBACK(src, .proc/still_exists))) return @@ -373,8 +373,8 @@ I.use(1) victim.emote("scream") if(user != victim) - user.visible_message("[user] finishes applying [I] to [victim]'s [limb.name], emitting a fizzing noise!", "You finish applying [I] to [victim]'s [limb.name]!", ignored_mobs=victim) - to_chat(victim, "[user] finishes applying [I] to your [limb.name], and you can feel the bones exploding with pain as they begin melting and reforming!") + user.visible_message(span_notice("[user] finishes applying [I] to [victim]'s [limb.name], emitting a fizzing noise!"), span_notice("You finish applying [I] to [victim]'s [limb.name]!"), ignored_mobs=victim) + to_chat(victim, span_userdanger("[user] finishes applying [I] to your [limb.name], and you can feel the bones exploding with pain as they begin melting and reforming!")) else var/painkiller_bonus = 0 if(victim.drunkenness > 10) @@ -389,10 +389,10 @@ painkiller_bonus += 20 if(prob(25 + (20 * (severity - 2)) - painkiller_bonus)) // 25%/45% chance to fail self-applying with severe and critical wounds, modded by painkillers - victim.visible_message("[victim] fails to finish applying [I] to [victim.p_their()] [limb.name], passing out from the pain!", "You pass out from the pain of applying [I] to your [limb.name] before you can finish!") + victim.visible_message(span_danger("[victim] fails to finish applying [I] to [victim.p_their()] [limb.name], passing out from the pain!"), span_notice("You pass out from the pain of applying [I] to your [limb.name] before you can finish!")) victim.AdjustUnconscious(5 SECONDS) return - victim.visible_message("[victim] finishes applying [I] to [victim.p_their()] [limb.name], grimacing from the pain!", "You finish applying [I] to your [limb.name], and your bones explode in pain!") + victim.visible_message(span_notice("[victim] finishes applying [I] to [victim.p_their()] [limb.name], grimacing from the pain!"), span_notice("You finish applying [I] to your [limb.name], and your bones explode in pain!")) limb.receive_damage(25, stamina=100, wound_bonus=CANT_WOUND) if(!gelled) @@ -401,13 +401,13 @@ /// if someone is using surgical tape on our wound /datum/wound/blunt/proc/tape(obj/item/stack/sticky_tape/surgical/I, mob/user) if(!gelled) - to_chat(user, "[user == victim ? "Your" : "[victim]'s"] [limb.name] must be coated with bone gel to perform this emergency operation!") + to_chat(user, span_warning("[user == victim ? "Your" : "[victim]'s"] [limb.name] must be coated with bone gel to perform this emergency operation!")) return if(taped) - to_chat(user, "[user == victim ? "Your" : "[victim]'s"] [limb.name] is already wrapped in [I.name] and reforming!") + to_chat(user, span_warning("[user == victim ? "Your" : "[victim]'s"] [limb.name] is already wrapped in [I.name] and reforming!")) return - user.visible_message("[user] begins applying [I] to [victim]'s' [limb.name]...", "You begin applying [I] to [user == victim ? "your" : "[victim]'s"] [limb.name]...") + user.visible_message(span_danger("[user] begins applying [I] to [victim]'s' [limb.name]..."), span_warning("You begin applying [I] to [user == victim ? "your" : "[victim]'s"] [limb.name]...")) if(!do_after(user, base_treat_time * (user == victim ? 1.5 : 1), target = victim, extra_checks=CALLBACK(src, .proc/still_exists))) return @@ -417,10 +417,10 @@ I.use(1) if(user != victim) - user.visible_message("[user] finishes applying [I] to [victim]'s [limb.name], emitting a fizzing noise!", "You finish applying [I] to [victim]'s [limb.name]!", ignored_mobs=victim) - to_chat(victim, "[user] finishes applying [I] to your [limb.name], you immediately begin to feel your bones start to reform!") + user.visible_message(span_notice("[user] finishes applying [I] to [victim]'s [limb.name], emitting a fizzing noise!"), span_notice("You finish applying [I] to [victim]'s [limb.name]!"), ignored_mobs=victim) + to_chat(victim, span_green("[user] finishes applying [I] to your [limb.name], you immediately begin to feel your bones start to reform!")) else - victim.visible_message("[victim] finishes applying [I] to [victim.p_their()] [limb.name], !", "You finish applying [I] to your [limb.name], and you immediately begin to feel your bones start to reform!") + victim.visible_message(span_notice("[victim] finishes applying [I] to [victim.p_their()] [limb.name], !"), span_green("You finish applying [I] to your [limb.name], and you immediately begin to feel your bones start to reform!")) taped = TRUE processes = TRUE @@ -439,9 +439,9 @@ if(!gelled) . += "Alternative Treatment: Apply bone gel directly to injured limb, then apply surgical tape to begin bone regeneration. This is both excruciatingly painful and slow, and only recommended in dire circumstances.\n" else if(!taped) - . += "Continue Alternative Treatment: Apply surgical tape directly to injured limb to begin bone regeneration. Note, this is both excruciatingly painful and slow, though sleep or laying down will speed recovery.\n" + . += span_notice("Continue Alternative Treatment: Apply surgical tape directly to injured limb to begin bone regeneration. Note, this is both excruciatingly painful and slow, though sleep or laying down will speed recovery.\n") else - . += "Note: Bone regeneration in effect. Bone is [round(regen_ticks_current*100/regen_ticks_needed)]% regenerated.\n" + . += span_notice("Note: Bone regeneration in effect. Bone is [round(regen_ticks_current*100/regen_ticks_needed)]% regenerated.\n") if(limb.body_zone == BODY_ZONE_HEAD) . += "Cranial Trauma Detected: Patient will suffer random bouts of [severity == WOUND_SEVERITY_SEVERE ? "mild" : "severe"] brain traumas until bone is repaired." diff --git a/modular_skyrat/modules/medical/code/wounds/burns.dm b/modular_skyrat/modules/medical/code/wounds/burns.dm index 762d9685d73..6e41e3b8290 100644 --- a/modular_skyrat/modules/medical/code/wounds/burns.dm +++ b/modular_skyrat/modules/medical/code/wounds/burns.dm @@ -37,7 +37,7 @@ if(strikes_to_lose_limb == 0) // we've already hit sepsis, nothing more to do victim.adjustToxLoss(0.5) if(prob(1)) - victim.visible_message("The infection on the remnants of [victim]'s [limb.name] shift and bubble nauseatingly!", "You can feel the infection on the remnants of your [limb.name] coursing through your veins!", vision_distance = COMBAT_MESSAGE_RANGE) + victim.visible_message(span_danger("The infection on the remnants of [victim]'s [limb.name] shift and bubble nauseatingly!"), span_warning("You can feel the infection on the remnants of your [limb.name] coursing through your veins!"), vision_distance = COMBAT_MESSAGE_RANGE) return if(victim.reagents) @@ -64,7 +64,7 @@ // here's the check to see if we're cleared up if((flesh_damage <= 0) && (infestation <= 1)) - to_chat(victim, "The burns on your [limb.name] have cleared up!") + to_chat(victim, span_green("The burns on your [limb.name] have cleared up!")) qdel(src) return @@ -82,25 +82,25 @@ if(prob(30)) victim.adjustToxLoss(0.2) if(prob(6)) - to_chat(victim, "The blisters on your [limb.name] ooze a strange pus...") + to_chat(victim, span_warning("The blisters on your [limb.name] ooze a strange pus...")) if(WOUND_INFECTION_SEVERE to WOUND_INFECTION_CRITICAL) if(!disabling && prob(2)) - to_chat(victim, "Your [limb.name] completely locks up, as you struggle for control against the infection!") + to_chat(victim, span_warning("Your [limb.name] completely locks up, as you struggle for control against the infection!")) set_disabling(TRUE) else if(disabling && prob(8)) - to_chat(victim, "You regain sensation in your [limb.name], but it's still in terrible shape!") + to_chat(victim, span_notice("You regain sensation in your [limb.name], but it's still in terrible shape!")) set_disabling(FALSE) else if(prob(20)) victim.adjustToxLoss(0.5) if(WOUND_INFECTION_CRITICAL to WOUND_INFECTION_SEPTIC) if(!disabling && prob(3)) - to_chat(victim, "You suddenly lose all sensation of the festering infection in your [limb.name]!") + to_chat(victim, span_warning("You suddenly lose all sensation of the festering infection in your [limb.name]!")) set_disabling(TRUE) else if(disabling && prob(3)) - to_chat(victim, "You can barely feel your [limb.name] again, and you have to strain to retain motor control!") + to_chat(victim, span_notice("You can barely feel your [limb.name] again, and you have to strain to retain motor control!")) set_disabling(FALSE) else if(prob(1)) - to_chat(victim, "You contemplate life without your [limb.name]...") + to_chat(victim, span_warning("You contemplate life without your [limb.name]...")) victim.adjustToxLoss(0.75) else if(prob(4)) victim.adjustToxLoss(1) @@ -108,13 +108,13 @@ if(prob(infestation)) switch(strikes_to_lose_limb) if(3 to INFINITY) - to_chat(victim, "The skin on your [limb.name] is literally dripping off, you feel awful!") + to_chat(victim, span_deadsay("The skin on your [limb.name] is literally dripping off, you feel awful!")) if(2) - to_chat(victim, "The infection in your [limb.name] is literally dripping off, you feel horrible!") + to_chat(victim, span_deadsay("The infection in your [limb.name] is literally dripping off, you feel horrible!")) if(1) - to_chat(victim, "Infection has just about completely claimed your [limb.name]!") + to_chat(victim, span_deadsay("Infection has just about completely claimed your [limb.name]!")) if(0) - to_chat(victim, "The last of the nerve endings in your [limb.name] wither away, as the infection completely paralyzes your joint connector.") + to_chat(victim, span_deadsay("The last of the nerve endings in your [limb.name] wither away, as the infection completely paralyzes your joint connector.")) threshold_penalty = 120 // piss easy to destroy var/datum/brain_trauma/severe/paralysis/sepsis = new (limb.body_zone) victim.gain_trauma(sepsis) @@ -122,7 +122,7 @@ /datum/wound/burn/get_examine_description(mob/user) if(strikes_to_lose_limb <= 0) - return "[victim.p_their(TRUE)] [limb.name] has locked up completely and is non-functional." + return span_deadsay("[victim.p_their(TRUE)] [limb.name] has locked up completely and is non-functional.") var/list/condition = list("[victim.p_their(TRUE)] [limb.name] [examine_desc]") if(limb.current_gauze) @@ -141,15 +141,13 @@ else switch(infestation) if(WOUND_INFECTION_MODERATE to WOUND_INFECTION_SEVERE) - //condition += ", with early signs of infection." condition += ", with small spots of discoloration along the nearby veins!" if(WOUND_INFECTION_SEVERE to WOUND_INFECTION_CRITICAL) - //condition += ", with growing clouds of infection." condition += ", with growing clouds of infection." if(WOUND_INFECTION_CRITICAL to WOUND_INFECTION_SEPTIC) condition += ", with streaks of rotten, pulsating infection!" if(WOUND_INFECTION_SEPTIC to INFINITY) - return "[victim.p_their(TRUE)] [limb.name] is a mess of charred skin and infected rot!" + return span_deadsay("[victim.p_their(TRUE)] [limb.name] is a mess of charred skin and infected rot!") else condition += "!" @@ -189,31 +187,31 @@ /// if someone is using ointment or mesh on our burns /datum/wound/burn/proc/ointmentmesh(obj/item/stack/medical/I, mob/user) - user.visible_message("[user] begins applying [I] to [victim]'s [limb.name]...", "You begin applying [I] to [user == victim ? "your" : "[victim]'s"] [limb.name]...") + user.visible_message(span_notice("[user] begins applying [I] to [victim]'s [limb.name]..."), span_notice("You begin applying [I] to [user == victim ? "your" : "[victim]'s"] [limb.name]...")) if(!do_after(user, (user == victim ? I.self_delay : I.other_delay), extra_checks = CALLBACK(src, .proc/still_exists))) return limb.heal_damage(I.heal_brute, I.heal_burn) - user.visible_message("[user] applies [I] to [victim].", "You apply [I] to [user == victim ? "your" : "[victim]'s"] [limb.name].") + user.visible_message(span_green("[user] applies [I] to [victim]."), span_green("You apply [I] to [user == victim ? "your" : "[victim]'s"] [limb.name].")) I.use(1) sanitization += I.sanitization flesh_healing += I.flesh_regeneration if((infestation <= 0 || sanitization >= infestation) && (flesh_damage <= 0 || flesh_healing > flesh_damage)) - to_chat(user, "You've done all you can with [I], now you must wait for the flesh on [victim]'s [limb.name] to recover.") + to_chat(user, span_notice("You've done all you can with [I], now you must wait for the flesh on [victim]'s [limb.name] to recover.")) else try_treating(I, user) /// Paramedic UV penlights /datum/wound/burn/proc/uv(obj/item/flashlight/pen/paramedic/I, mob/user) if(!COOLDOWN_FINISHED(I, uv_cooldown)) - to_chat(user, "[I] is still recharging!") + to_chat(user, span_notice("[I] is still recharging!")) return if(infestation <= 0 || infestation < sanitization) - to_chat(user, "There's no infection to treat on [victim]'s [limb.name]!") + to_chat(user, span_notice("There's no infection to treat on [victim]'s [limb.name]!")) return - user.visible_message("[user] flashes the burns on [victim]'s [limb] with [I].", "You flash the burns on [user == victim ? "your" : "[victim]'s"] [limb.name] with [I].", vision_distance=COMBAT_MESSAGE_RANGE) + user.visible_message(span_notice("[user] flashes the burns on [victim]'s [limb] with [I]."), span_notice("You flash the burns on [user == victim ? "your" : "[victim]'s"] [limb.name] with [I]."), vision_distance=COMBAT_MESSAGE_RANGE) sanitization += I.uv_power COOLDOWN_START(I, uv_cooldown, I.uv_cooldown_length) @@ -223,7 +221,7 @@ else if(istype(I, /obj/item/stack/medical/mesh)) var/obj/item/stack/medical/mesh/mesh_check = I if(!mesh_check.is_open) - to_chat(user, "You need to open [mesh_check] first.") + to_chat(user, span_warning("You need to open [mesh_check] first.")) return ointmentmesh(mesh_check, user) else if(istype(I, /obj/item/flashlight/pen/paramedic)) @@ -235,7 +233,7 @@ if(flesh_healing > 0) flesh_damage = max(0, flesh_damage - 0.2) if((flesh_damage <= 0) && (infestation <= WOUND_INFECTION_MODERATE)) - to_chat(victim, "The burns on your [limb.name] have cleared up!") + to_chat(victim, span_green("The burns on your [limb.name] have cleared up!")) qdel(src) return if(sanitization > 0) diff --git a/modular_skyrat/modules/medical/code/wounds/muscle.dm b/modular_skyrat/modules/medical/code/wounds/muscle.dm index 57284a8c4ab..362d52d902e 100644 --- a/modular_skyrat/modules/medical/code/wounds/muscle.dm +++ b/modular_skyrat/modules/medical/code/wounds/muscle.dm @@ -29,7 +29,7 @@ I = victim.get_inactive_held_item() if(I && victim.dropItemToGround(I)) - victim.visible_message("[victim] drops [I] in shock!", "The force on your [limb.name] causes you to drop [I]!", vision_distance=COMBAT_MESSAGE_RANGE) + victim.visible_message(span_danger("[victim] drops [I] in shock!"), span_warning("The force on your [limb.name] causes you to drop [I]!"), vision_distance=COMBAT_MESSAGE_RANGE) update_inefficiencies() @@ -58,7 +58,7 @@ if(!victim || !limb) qdel(src) return - to_chat(victim, "Your [limb.name] has regenerated its muscle!") + to_chat(victim, span_green("Your [limb.name] has regenerated its muscle!")) remove_wound() /// If we're a human who's punching something with a broken arm, we might hurt ourselves doing so @@ -72,11 +72,11 @@ if(prob(severity * 15)) // And you have a 70% or 50% chance to actually land the blow, respectively if(prob(70 - 20 * severity)) - to_chat(victim, "The damaged muscle in your [limb.name] shoots with pain as you strike [target]!") + to_chat(victim, span_userdanger("The damaged muscle in your [limb.name] shoots with pain as you strike [target]!")) limb.receive_damage(brute=rand(1,5)) else - victim.visible_message("[victim] weakly strikes [target] with [victim.p_their()] swollen [limb.name], recoiling from pain!", \ - "You fail to strike [target] as the fracture in your [limb.name] lights up in unbearable pain!", vision_distance=COMBAT_MESSAGE_RANGE) + victim.visible_message(span_danger("[victim] weakly strikes [target] with [victim.p_their()] swollen [limb.name], recoiling from pain!"), \ + span_userdanger("You fail to strike [target] as the fracture in your [limb.name] lights up in unbearable pain!"), vision_distance=COMBAT_MESSAGE_RANGE) INVOKE_ASYNC(victim, /mob.proc/emote, "scream") victim.Stun(0.5 SECONDS) limb.receive_damage(brute=rand(3,7)) diff --git a/modular_skyrat/modules/medical/code/wounds/pierce.dm b/modular_skyrat/modules/medical/code/wounds/pierce.dm index 49eccc338c0..c189988af7c 100644 --- a/modular_skyrat/modules/medical/code/wounds/pierce.dm +++ b/modular_skyrat/modules/medical/code/wounds/pierce.dm @@ -47,14 +47,14 @@ if(1 to 6) victim.bleed(blood_bled, TRUE) if(7 to 13) - victim.visible_message("Blood droplets fly from the hole in [victim]'s [limb.name].", "You cough up a bit of blood from the blow to your [limb.name].", vision_distance=COMBAT_MESSAGE_RANGE) + victim.visible_message(span_smalldanger("Blood droplets fly from the hole in [victim]'s [limb.name]."), span_danger("You cough up a bit of blood from the blow to your [limb.name]."), vision_distance=COMBAT_MESSAGE_RANGE) victim.bleed(blood_bled, TRUE) if(14 to 19) - victim.visible_message("A small stream of blood spurts from the hole in [victim]'s [limb.name]!", "You spit out a string of blood from the blow to your [limb.name]!", vision_distance=COMBAT_MESSAGE_RANGE) + victim.visible_message(span_smalldanger("A small stream of blood spurts from the hole in [victim]'s [limb.name]!"), span_danger("You spit out a string of blood from the blow to your [limb.name]!"), vision_distance=COMBAT_MESSAGE_RANGE) new /obj/effect/temp_visual/dir_setting/bloodsplatter(victim.loc, victim.dir) victim.bleed(blood_bled) if(20 to INFINITY) - victim.visible_message("A spray of blood streams from the gash in [victim]'s [limb.name]!", "You choke up on a spray of blood from the blow to your [limb.name]!", vision_distance=COMBAT_MESSAGE_RANGE) + victim.visible_message(span_danger("A spray of blood streams from the gash in [victim]'s [limb.name]!"), span_danger("You choke up on a spray of blood from the blow to your [limb.name]!"), vision_distance=COMBAT_MESSAGE_RANGE) victim.bleed(blood_bled) new /obj/effect/temp_visual/dir_setting/bloodsplatter(victim.loc, victim.dir) victim.add_splatter_floor(get_step(victim.loc, victim.dir)) @@ -72,7 +72,7 @@ if(victim.bodytemperature < (BODYTEMP_NORMAL - 10)) blood_flow -= 0.2 if(prob(5)) - to_chat(victim, "You feel the [lowertext(name)] in your [limb.name] firming up from the cold!") + to_chat(victim, span_notice("You feel the [lowertext(name)] in your [limb.name] firming up from the cold!")) if(HAS_TRAIT(victim, TRAIT_BLOODY_MESS)) blood_flow += 0.5 // old heparin used to just add +2 bleed stacks per tick, this adds 0.5 bleed flow to all open cuts which is probably even stronger as long as you can cut them first @@ -109,10 +109,10 @@ /// If someone is using a suture to close this puncture /datum/wound/pierce/proc/suture(obj/item/stack/medical/suture/I, mob/user) var/self_penalty_mult = (user == victim ? 1.4 : 1) - user.visible_message("[user] begins stitching [victim]'s [limb.name] with [I]...", "You begin stitching [user == victim ? "your" : "[victim]'s"] [limb.name] with [I]...") + user.visible_message(span_notice("[user] begins stitching [victim]'s [limb.name] with [I]..."), span_notice("You begin stitching [user == victim ? "your" : "[victim]'s"] [limb.name] with [I]...")) if(!do_after(user, base_treat_time * self_penalty_mult, target=victim, extra_checks = CALLBACK(src, .proc/still_exists))) return - user.visible_message("[user] stitches up some of the bleeding on [victim].", "You stitch up some of the bleeding on [user == victim ? "yourself" : "[victim]"].") + user.visible_message(span_green("[user] stitches up some of the bleeding on [victim]."), span_green("You stitch up some of the bleeding on [user == victim ? "yourself" : "[victim]"].")) var/blood_sutured = I.stop_bleeding / self_penalty_mult blood_flow -= blood_sutured limb.heal_damage(I.heal_brute, I.heal_burn) @@ -121,18 +121,18 @@ if(blood_flow > 0) try_treating(I, user) else - to_chat(user, "You successfully close the hole in [user == victim ? "your" : "[victim]'s"] [limb.name].") + to_chat(user, span_green("You successfully close the hole in [user == victim ? "your" : "[victim]'s"] [limb.name].")) /// If someone is using either a cautery tool or something with heat to cauterize this pierce /datum/wound/pierce/proc/tool_cauterize(obj/item/I, mob/user) var/improv_penalty_mult = (I.tool_behaviour == TOOL_CAUTERY ? 1 : 1.25) // 25% longer and less effective if you don't use a real cautery var/self_penalty_mult = (user == victim ? 1.5 : 1) // 50% longer and less effective if you do it to yourself - user.visible_message("[user] begins cauterizing [victim]'s [limb.name] with [I]...", "You begin cauterizing [user == victim ? "your" : "[victim]'s"] [limb.name] with [I]...") + user.visible_message(span_danger("[user] begins cauterizing [victim]'s [limb.name] with [I]..."), span_warning("You begin cauterizing [user == victim ? "your" : "[victim]'s"] [limb.name] with [I]...")) if(!do_after(user, base_treat_time * self_penalty_mult * improv_penalty_mult, target=victim, extra_checks = CALLBACK(src, .proc/still_exists))) return - user.visible_message("[user] cauterizes some of the bleeding on [victim].", "You cauterize some of the bleeding on [victim].") + user.visible_message(span_green("[user] cauterizes some of the bleeding on [victim]."), span_green("You cauterize some of the bleeding on [victim].")) limb.receive_damage(burn = 2 + severity, wound_bonus = CANT_WOUND) if(prob(30)) victim.emote("scream") diff --git a/modular_skyrat/modules/medical/code/wounds/slash.dm b/modular_skyrat/modules/medical/code/wounds/slash.dm index 6d910156f05..fd2fc453049 100644 --- a/modular_skyrat/modules/medical/code/wounds/slash.dm +++ b/modular_skyrat/modules/medical/code/wounds/slash.dm @@ -135,7 +135,7 @@ if(demotes_to) replace_wound(demotes_to) else - to_chat(victim, "The cut on your [limb.name] has stopped bleeding!") + to_chat(victim, span_green("The cut on your [limb.name] has stopped bleeding!")) qdel(src) @@ -167,13 +167,13 @@ if(user.pulling != victim || user.zone_selected != limb.body_zone || !user.combat_mode || !isfelinid(user) || !victim.can_inject(user, TRUE)) return FALSE if(DOING_INTERACTION_WITH_TARGET(user, victim)) - to_chat(user, "You're already interacting with [victim]!") + to_chat(user, span_warning("You're already interacting with [victim]!")) return if(user.is_mouth_covered()) - to_chat(user, "Your mouth is covered, you can't lick [victim]'s wounds!") + to_chat(user, span_warning("Your mouth is covered, you can't lick [victim]'s wounds!")) return if(!user.getorganslot(ORGAN_SLOT_TONGUE)) - to_chat(user, "You can't lick wounds without a tongue!") // f in chat + to_chat(user, span_warning("You can't lick wounds without a tongue!")) // f in chat return lick_wounds(user) @@ -188,19 +188,19 @@ continue user.ForceContractDisease(iter_disease) - user.visible_message("[user] begins licking the wounds on [victim]'s [limb.name].", "You begin licking the wounds on [victim]'s [limb.name]...", ignored_mobs=victim) - to_chat(victim, "[user] begins to lick the wounds on your [limb.name].[user] licks the wounds on [victim]'s [limb.name].", "You lick some of the wounds on [victim]'s [limb.name]", ignored_mobs=victim) - to_chat(victim, "[user] licks the wounds on your [limb.name]! minimum_flow) try_handling(user) else if(demotes_to) - to_chat(user, "You successfully lower the severity of [victim]'s cuts.") + to_chat(user, span_green("You successfully lower the severity of [victim]'s cuts.")) /datum/wound/slash/on_xadone(power) . = ..() @@ -213,7 +213,7 @@ /// If someone's putting a laser gun up to our cut to cauterize it /datum/wound/slash/proc/las_cauterize(obj/item/gun/energy/laser/lasgun, mob/user) var/self_penalty_mult = (user == victim ? 1.25 : 1) - user.visible_message("[user] begins aiming [lasgun] directly at [victim]'s [limb.name]...", "You begin aiming [lasgun] directly at [user == victim ? "your" : "[victim]'s"] [limb.name]...") + user.visible_message(span_warning("[user] begins aiming [lasgun] directly at [victim]'s [limb.name]..."), span_userdanger("You begin aiming [lasgun] directly at [user == victim ? "your" : "[victim]'s"] [limb.name]...")) if(!do_after(user, base_treat_time * self_penalty_mult, target=victim, extra_checks = CALLBACK(src, .proc/still_exists))) return var/damage = lasgun.chambered.loaded_projectile.damage @@ -223,18 +223,18 @@ return victim.emote("scream") blood_flow -= damage / (5 * self_penalty_mult) // 20 / 5 = 4 bloodflow removed, p good - victim.visible_message("The cuts on [victim]'s [limb.name] scar over!") + victim.visible_message(span_warning("The cuts on [victim]'s [limb.name] scar over!")) /// If someone is using either a cautery tool or something with heat to cauterize this cut /datum/wound/slash/proc/tool_cauterize(obj/item/I, mob/user) var/improv_penalty_mult = (I.tool_behaviour == TOOL_CAUTERY ? 1 : 1.25) // 25% longer and less effective if you don't use a real cautery var/self_penalty_mult = (user == victim ? 1.5 : 1) // 50% longer and less effective if you do it to yourself - user.visible_message("[user] begins cauterizing [victim]'s [limb.name] with [I]...", "You begin cauterizing [user == victim ? "your" : "[victim]'s"] [limb.name] with [I]...") + user.visible_message(span_danger("[user] begins cauterizing [victim]'s [limb.name] with [I]..."), span_warning("You begin cauterizing [user == victim ? "your" : "[victim]'s"] [limb.name] with [I]...")) if(!do_after(user, base_treat_time * self_penalty_mult * improv_penalty_mult, target=victim, extra_checks = CALLBACK(src, .proc/still_exists))) return - user.visible_message("[user] cauterizes some of the bleeding on [victim].", "You cauterize some of the bleeding on [victim].") + user.visible_message(span_green("[user] cauterizes some of the bleeding on [victim]."), span_green("You cauterize some of the bleeding on [victim].")) limb.receive_damage(burn = 2 + severity, wound_bonus = CANT_WOUND) if(prob(30)) victim.emote("scream") @@ -244,16 +244,16 @@ if(blood_flow > minimum_flow) try_treating(I, user) else if(demotes_to) - to_chat(user, "You successfully lower the severity of [user == victim ? "your" : "[victim]'s"] cuts.") + to_chat(user, span_green("You successfully lower the severity of [user == victim ? "your" : "[victim]'s"] cuts.")) /// If someone is using a suture to close this cut /datum/wound/slash/proc/suture(obj/item/stack/medical/suture/I, mob/user) var/self_penalty_mult = (user == victim ? 1.4 : 1) - user.visible_message("[user] begins stitching [victim]'s [limb.name] with [I]...", "You begin stitching [user == victim ? "your" : "[victim]'s"] [limb.name] with [I]...") + user.visible_message(span_notice("[user] begins stitching [victim]'s [limb.name] with [I]..."), span_notice("You begin stitching [user == victim ? "your" : "[victim]'s"] [limb.name] with [I]...")) if(!do_after(user, base_treat_time * self_penalty_mult, target=victim, extra_checks = CALLBACK(src, .proc/still_exists))) return - user.visible_message("[user] stitches up some of the bleeding on [victim].", "You stitch up some of the bleeding on [user == victim ? "yourself" : "[victim]"].") + user.visible_message(span_green("[user] stitches up some of the bleeding on [victim]."), span_green("You stitch up some of the bleeding on [user == victim ? "yourself" : "[victim]"].")) var/blood_sutured = I.stop_bleeding / self_penalty_mult blood_flow -= blood_sutured limb.heal_damage(I.heal_brute, I.heal_burn) @@ -262,7 +262,7 @@ if(blood_flow > minimum_flow) try_treating(I, user) else if(demotes_to) - to_chat(user, "You successfully lower the severity of [user == victim ? "your" : "[victim]'s"] cuts.") + to_chat(user, span_green("You successfully lower the severity of [user == victim ? "your" : "[victim]'s"] cuts.")) /datum/wound/slash/moderate diff --git a/modular_skyrat/modules/mentor/code/follow.dm b/modular_skyrat/modules/mentor/code/follow.dm index 49760a34078..5c33da00be0 100644 --- a/modular_skyrat/modules/mentor/code/follow.dm +++ b/modular_skyrat/modules/mentor/code/follow.dm @@ -6,12 +6,12 @@ mentor_datum.following = M usr.reset_perspective(M) add_verb(src,/client/proc/mentor_unfollow) - to_chat(usr, "Click the \"Stop Following\" button here or in the Mentor tab to stop following [key_name(M)].") + to_chat(usr, span_info("Click the \"Stop Following\" button here or in the Mentor tab to stop following [key_name(M)].")) orbiting = FALSE else var/mob/dead/observer/O = usr O.ManualFollow(M) - to_chat(GLOB.admins, "MENTOR: [key_name(usr)] is now [orbiting ? "orbiting" : "following"] [key_name(M)][key_name(M)][orbiting ? " as a ghost" : ""].") + to_chat(GLOB.admins, span_mentor(span_prefix("MENTOR: [key_name(usr)] is now [orbiting ? "orbiting" : "following"] [key_name(M)][key_name(M)][orbiting ? " as a ghost" : ""]."))) log_mentor("[key_name(usr)] [orbiting ? "is now orbiting" : "began following"][key_name(M)][orbiting ? " as a ghost" : ""].") /client/proc/mentor_unfollow() @@ -23,6 +23,6 @@ return usr.reset_perspective() remove_verb(src,/client/proc/mentor_unfollow) - to_chat(GLOB.admins, "MENTOR: [key_name(usr)] is no longer following [key_name(mentor_datum.following)].") + to_chat(GLOB.admins, span_mentor(span_prefix("MENTOR: [key_name(usr)] is no longer following [key_name(mentor_datum.following)]."))) log_mentor("[key_name(usr)] stopped following [key_name(mentor_datum.following)].") mentor_datum.following = null diff --git a/modular_skyrat/modules/mentor/code/mentorhelp.dm b/modular_skyrat/modules/mentor/code/mentorhelp.dm index 9e1d3e8a01d..65501b6a432 100644 --- a/modular_skyrat/modules/mentor/code/mentorhelp.dm +++ b/modular_skyrat/modules/mentor/code/mentorhelp.dm @@ -15,7 +15,7 @@ return var/show_char = CONFIG_GET(flag/mentors_mobname_only) - var/mentor_msg = "MENTORHELP: [key_name_mentor(src, 1, 0, 1, show_char)]: [msg]" + var/mentor_msg = span_mentornotice("MENTORHELP: [key_name_mentor(src, 1, 0, 1, show_char)]: [msg]") log_mentor("MENTORHELP: [key_name_mentor(src, 0, 0, 0, 0)]: [msg]") for(var/it in GLOB.mentors) @@ -23,7 +23,7 @@ SEND_SOUND(X, 'sound/items/bikehorn.ogg') to_chat(X, mentor_msg) - to_chat(src, "PM to-Mentors: [msg]") + to_chat(src, span_mentornotice("PM to-Mentors: [msg]")) return /proc/get_mentor_counts() diff --git a/modular_skyrat/modules/mentor/code/mentorpm.dm b/modular_skyrat/modules/mentor/code/mentorpm.dm index a2c12a264ce..8f6e5480cb7 100644 --- a/modular_skyrat/modules/mentor/code/mentorpm.dm +++ b/modular_skyrat/modules/mentor/code/mentorpm.dm @@ -3,7 +3,7 @@ set category = "Mentor" set name = "Mentor PM" if(!is_mentor()) - to_chat(src, "Error: Mentor-PM-Panel: Only Mentors and Admins may use this command.") + to_chat(src, span_danger("Error: Mentor-PM-Panel: Only Mentors and Admins may use this command.")) return var/list/client/targets[0] for(var/client/T) @@ -27,12 +27,12 @@ else if(istype(whom,/client)) C = whom if(!C) - if(is_mentor()) to_chat(src, "Error: Mentor-PM: Client not found.") + if(is_mentor()) to_chat(src, span_danger("Error: Mentor-PM: Client not found.")) else mentorhelp(msg) //Mentor we are replying to left. Mentorhelp instead(check below) return if(is_mentor(whom)) - to_chat(GLOB.mentors, "[src] has started replying to [whom]'s mhelp.") + to_chat(GLOB.mentors, span_mentor("[src] has started replying to [whom]'s mhelp.")) //get message text, limit it's length.and clean/escape html if(!msg) @@ -40,12 +40,12 @@ if(!msg) if (is_mentor(whom)) - to_chat(GLOB.mentors, "[src] has stopped their reply to [whom]'s mhelp.") + to_chat(GLOB.mentors, span_mentor(span_purple("[src] has stopped their reply to [whom]'s mhelp."))) return if(!C) if(is_mentor()) - to_chat(src, "Error: Mentor-PM: Client not found.") + to_chat(src, span_danger("Error: Mentor-PM: Client not found.")) else mentorhelp(msg) //Mentor we are replying to has vanished, Mentorhelp instead (how the fuck does this work?let's hope it works,shrug) return @@ -57,7 +57,7 @@ msg = sanitize(copytext_char(msg, 1, MAX_MESSAGE_LEN)) if(!msg) if (is_mentor(whom)) - to_chat(GLOB.mentors, "[src] has stopped their reply to [whom]'s mhelp.") + to_chat(GLOB.mentors, span_mentor(span_purple("[src] has stopped their reply to [whom]'s mhelp."))) return log_mentor("Mentor PM: [key_name(src)]->[key_name(C)]: [msg]") @@ -66,17 +66,17 @@ var/show_char = CONFIG_GET(flag/mentors_mobname_only) if(C.is_mentor()) if(is_mentor())//both are mentors - to_chat(C, "Mentor PM from-[key_name_mentor(src, C, 1, 0, 0)]: [msg]") - to_chat(src, "Mentor PM to-[key_name_mentor(C, C, 1, 0, 0)]: [msg]") + to_chat(C, span_mentor(span_purple("Mentor PM from-[key_name_mentor(src, C, 1, 0, 0)]: [msg]"))) + to_chat(src, span_mentor(span_blue("Mentor PM to-[key_name_mentor(C, C, 1, 0, 0)]: [msg]"))) else //recipient is a mentor but sender is not - to_chat(C, "Reply PM from-[key_name_mentor(src, C, 1, 0, show_char)]: [msg]") - to_chat(src, "Mentor PM to-[key_name_mentor(C, C, 1, 0, 0)]: [msg]") + to_chat(C, span_mentor(span_purple("Reply PM from-[key_name_mentor(src, C, 1, 0, show_char)]: [msg]"))) + to_chat(src, span_mentor(span_pink("Mentor PM to-[key_name_mentor(C, C, 1, 0, 0)]: [msg]"))) else if(is_mentor()) //sender is a mentor but recipient is not. - to_chat(C, "Mentor PM from-[key_name_mentor(src, C, 1, 0, 0)]: [msg]") - to_chat(src, "Mentor PM to-[key_name_mentor(C, C, 1, 0, show_char)]: [msg]") + to_chat(C, span_mentor(span_purple("Mentor PM from-[key_name_mentor(src, C, 1, 0, 0)]: [msg]"))) + to_chat(src, span_mentor(span_pink("Mentor PM to-[key_name_mentor(C, C, 1, 0, show_char)]: [msg]"))) //we don't use message_Mentors here because the sender/receiver might get it too var/show_char_sender = !is_mentor() && CONFIG_GET(flag/mentors_mobname_only) @@ -84,4 +84,4 @@ for(var/it in GLOB.mentors) var/client/X = it if(X.key!=key && X.key!=C.key) //check client/X is an Mentor and isn't the sender or recipient - to_chat(X, "Mentor PM: [key_name_mentor(src, X, 0, 0, show_char_sender)]->[key_name_mentor(C, X, 0, 0, show_char_recip)]: [msg]") //inform X + to_chat(X, span_mentor("Mentor PM: [key_name_mentor(src, X, 0, 0, show_char_sender)]->[key_name_mentor(C, X, 0, 0, show_char_recip)]: [msg]")) //inform X diff --git a/modular_skyrat/modules/mentor/code/mentorsay.dm b/modular_skyrat/modules/mentor/code/mentorsay.dm index 8b831799ffd..77d83d3c936 100644 --- a/modular_skyrat/modules/mentor/code/mentorsay.dm +++ b/modular_skyrat/modules/mentor/code/mentorsay.dm @@ -13,7 +13,7 @@ log_mentor("MSAY: [key_name(src)] : [msg]") if(check_rights_for(src, R_ADMIN,0)) - msg = "MENTOR: [key_name(src, 0, 0)]: [msg]" + msg = span_mentor("MENTOR: [key_name(src, 0, 0)]: [msg]") else - msg = "MENTOR: [key_name(src, 0, 0)]: [msg]" + msg = span_mentor("MENTOR: [key_name(src, 0, 0)]: [msg]") to_chat(GLOB.admins | GLOB.mentors, msg) diff --git a/modular_skyrat/modules/mentor/code/mentorwho.dm b/modular_skyrat/modules/mentor/code/mentorwho.dm index 500a5587bb2..feb5d71ccdc 100644 --- a/modular_skyrat/modules/mentor/code/mentorwho.dm +++ b/modular_skyrat/modules/mentor/code/mentorwho.dm @@ -18,5 +18,5 @@ if(C.is_afk()) suffix += " (AFK)" - msg += "\t[C][suffix]\n" + msg += span_info("plain'>\t[C][suffix]\n") to_chat(src, msg) diff --git a/modular_skyrat/modules/modular_items/code/miscellaneous.dm b/modular_skyrat/modules/modular_items/code/miscellaneous.dm index bd28cf9d3e2..f839662a83f 100644 --- a/modular_skyrat/modules/modular_items/code/miscellaneous.dm +++ b/modular_skyrat/modules/modular_items/code/miscellaneous.dm @@ -6,7 +6,7 @@ icon_state = "vial" /obj/item/bloodcrawlbottle/attack_self(mob/user) - to_chat(user, "You drink the bottle's contents.") + to_chat(user, span_notice("You drink the bottle's contents.")) var/obj/effect/proc_holder/spell/bloodcrawl/S = new() user.mind.AddSpell(S) user.log_message("learned the spell bloodcrawl ([S])", LOG_ATTACK, color="orange") @@ -22,7 +22,7 @@ perform(target) return revert_cast() - to_chat(user, "There must be a nearby source of plentiful blood!") + to_chat(user, span_warning("There must be a nearby source of plentiful blood!")) /obj/effect/proc_holder/spell/bloodcrawl/lesser/perform(obj/effect/decal/cleanable/target, recharge = 1, mob/living/user = usr) if(istype(user) && user.canUseTopic(user, TRUE)) @@ -38,7 +38,7 @@ start_recharge() return revert_cast() - to_chat(user, "You are unable to blood crawl!") + to_chat(user, span_warning("You are unable to blood crawl!")) /obj/item/storage/box/hero/ronin name = "Sword Saint, Wandering Vagabond - 1600's." diff --git a/modular_skyrat/modules/modular_reagents/code/reagents/medicine.dm b/modular_skyrat/modules/modular_reagents/code/reagents/medicine.dm index e94392426f9..5e4021b4dde 100644 --- a/modular_skyrat/modules/modular_reagents/code/reagents/medicine.dm +++ b/modular_skyrat/modules/modular_reagents/code/reagents/medicine.dm @@ -38,7 +38,7 @@ /datum/reagent/inverse/lidocaine/on_mob_life(mob/living/carbon/owner, delta_time, times_fired) ..() - to_chat(owner, "Your body aches with unimaginable pain!") + to_chat(owner, span_userdanger("Your body aches with unimaginable pain!")) owner.adjustOrganLoss(ORGAN_SLOT_HEART,3 * REM * delta_time, 85) owner.adjustStaminaLoss(5 * REM * delta_time, 0) if(prob(30)) diff --git a/modular_skyrat/modules/modular_weapons/code/rifle.dm b/modular_skyrat/modules/modular_weapons/code/rifle.dm index a74a718d09b..6803eed701c 100644 --- a/modular_skyrat/modules/modular_weapons/code/rifle.dm +++ b/modular_skyrat/modules/modular_weapons/code/rifle.dm @@ -73,11 +73,11 @@ var/obj/item/stack/cable_coil/C = A if(C.use(10)) slot_flags = ITEM_SLOT_BACK - to_chat(user, "You tie the lengths of cable to the shotgun, making a sling.") + to_chat(user, span_notice("You tie the lengths of cable to the shotgun, making a sling.")) slung = TRUE update_icon() else - to_chat(user, "You need at least ten lengths of cable if you want to make a sling!") + to_chat(user, span_warning("You need at least ten lengths of cable if you want to make a sling!")) /obj/item/gun/ballistic/rifle/ishotgun/update_icon_state() . = ..() diff --git a/modular_skyrat/modules/morenarcotics/code/cocaine.dm b/modular_skyrat/modules/morenarcotics/code/cocaine.dm index 53fb8720bc4..5daca39469e 100644 --- a/modular_skyrat/modules/morenarcotics/code/cocaine.dm +++ b/modular_skyrat/modules/morenarcotics/code/cocaine.dm @@ -45,7 +45,7 @@ /datum/reagent/drug/cocaine/on_mob_life(mob/living/carbon/M, delta_time, times_fired) if(DT_PROB(2.5, delta_time)) var/high_message = pick("You feel jittery.", "You feel like you gotta go fast.", "You feel like you need to step it up.") - to_chat(M, "[high_message]") + to_chat(M, span_notice("[high_message]")) SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "zoinked", /datum/mood_event/stimulant_heavy, name) M.AdjustStun(-15 * REM * delta_time) M.AdjustKnockdown(-15 * REM * delta_time) @@ -59,7 +59,7 @@ . = TRUE /datum/reagent/drug/cocaine/overdose_start(mob/living/M) - to_chat(M, "Your heart beats is beating so fast, it hurts...") + to_chat(M, span_userdanger("Your heart beats is beating so fast, it hurts...")) /datum/reagent/drug/cocaine/overdose_process(mob/living/M, delta_time, times_fired) M.adjustToxLoss(1 * REM * delta_time, 0) @@ -69,7 +69,7 @@ M.emote(pick("twitch","drool")) if(!HAS_TRAIT(M, TRAIT_FLOORED)) if(DT_PROB(1.5, delta_time)) - M.visible_message("[M] collapses onto the floor!") + M.visible_message(span_danger("[M] collapses onto the floor!")) M.Paralyze(135,TRUE) M.drop_all_held_items() ..() diff --git a/modular_skyrat/modules/morenarcotics/code/cocaine_item.dm b/modular_skyrat/modules/morenarcotics/code/cocaine_item.dm index abcf3d69d6e..6292fbcfd77 100644 --- a/modular_skyrat/modules/morenarcotics/code/cocaine_item.dm +++ b/modular_skyrat/modules/morenarcotics/code/cocaine_item.dm @@ -18,7 +18,7 @@ /obj/item/reagent_containers/crackbrick/attackby(obj/item/W, mob/user, params) if(W.get_sharpness()) - user.show_message("You cut \the [src] into some rocks.", MSG_VISUAL) + user.show_message(span_notice("You cut \the [src] into some rocks."), MSG_VISUAL) for(var/i = 1 to 4) new /obj/item/reagent_containers/crack(user.loc) qdel(src) @@ -50,11 +50,11 @@ else if(user.is_mouth_covered(mask_only = 1)) covered = "mask" if(covered) - to_chat(user, "You have to remove your [covered] first!") + to_chat(user, span_warning("You have to remove your [covered] first!")) return - user.visible_message("") + user.visible_message(span_notice("'[user] starts snorting the [src].")) if(do_after(user, 30)) - to_chat(user, "You finish snorting the [src].") + to_chat(user, span_notice("You finish snorting the [src].")) if(reagents.total_volume) reagents.trans_to(user, reagents.total_volume, transfered_by = user, methods = INGEST) qdel(src) @@ -88,9 +88,9 @@ /obj/item/reagent_containers/cocainebrick/attack_self(mob/user) - user.visible_message("[user] starts breaking up the [src].") + user.visible_message(span_notice("[user] starts breaking up the [src].")) if(do_after(user,10)) - to_chat(user, "You finish breaking up the [src].") + to_chat(user, span_notice("You finish breaking up the [src].")) for(var/i = 1 to 5) new /obj/item/reagent_containers/cocaine(user.loc) qdel(src) diff --git a/modular_skyrat/modules/morenarcotics/code/crackpipe.dm b/modular_skyrat/modules/morenarcotics/code/crackpipe.dm index 347c4baa2b1..e2508089177 100644 --- a/modular_skyrat/modules/morenarcotics/code/crackpipe.dm +++ b/modular_skyrat/modules/morenarcotics/code/crackpipe.dm @@ -14,7 +14,7 @@ if(smoketime <= 0) if(ismob(loc)) var/mob/living/smoking_mob = loc - to_chat(smoking_mob, "Your [name] goes out.") + to_chat(smoking_mob, span_notice("Your [name] goes out.")) lit = FALSE icon_state = icon_off inhand_icon_state = icon_off @@ -30,7 +30,7 @@ /obj/item/clothing/mask/cigarette/pipe/crackpipe/attackby(obj/item/used_item, mob/user, params) if(is_type_in_list(used_item, list(/obj/item/reagent_containers/crack,/obj/item/reagent_containers/blacktar))) - to_chat(user, "You stuff [used_item] into [src].") + to_chat(user, span_notice("You stuff [used_item] into [src].")) smoketime = 2 * 60 name = "[used_item.name]-packed [initial(name)]" if(used_item.reagents) @@ -42,7 +42,7 @@ if(smoketime > 0) light(lighting_text) else - to_chat(user, "There is nothing to smoke!") + to_chat(user, span_warning("There is nothing to smoke!")) else return ..() diff --git a/modular_skyrat/modules/morenarcotics/code/opium.dm b/modular_skyrat/modules/morenarcotics/code/opium.dm index e2dd6038629..700bb420616 100644 --- a/modular_skyrat/modules/morenarcotics/code/opium.dm +++ b/modular_skyrat/modules/morenarcotics/code/opium.dm @@ -36,7 +36,7 @@ /datum/reagent/drug/opium/on_mob_life(mob/living/carbon/M, delta_time, times_fired) var/high_message = pick("You feel euphoric.", "You feel on top of the world.") if(DT_PROB(2.5, delta_time)) - to_chat(M, "[high_message]") + to_chat(M, span_notice("[high_message]")) SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "smacked out", /datum/mood_event/narcotic_heavy, name) M.adjustBruteLoss(-0.1 * REM * delta_time, 0) //can be used as a (shitty) painkiller M.adjustFireLoss(-0.1 * REM * delta_time, 0) @@ -72,7 +72,7 @@ /datum/reagent/drug/opium/heroin/on_mob_life(mob/living/carbon/M, delta_time, times_fired) var/high_message = pick("You feel like nothing can stop you.", "You feel like God.") if(DT_PROB(2.5, delta_time)) - to_chat(M, "[high_message]") + to_chat(M, span_notice("[high_message]")) M.adjustBruteLoss(-0.4 * REM * delta_time, 0) //more powerful as a painkiller, possibly actually useful to medical now M.adjustFireLoss(-0.4 * REM * delta_time, 0) ..() @@ -91,7 +91,7 @@ /datum/reagent/drug/opium/blacktar/on_mob_life(mob/living/carbon/M, delta_time, times_fired) var/high_message = pick("You feel like tar.", "The blood in your veins feel like syrup.") if(DT_PROB(2.5, delta_time)) - to_chat(M, "[high_message]") + to_chat(M, span_notice("[high_message]")) M.set_drugginess(15 * REM * delta_time) M.adjustToxLoss(0.5 * REM * delta_time, 0) //toxin damage ..() diff --git a/modular_skyrat/modules/morenarcotics/code/pcp.dm b/modular_skyrat/modules/morenarcotics/code/pcp.dm index 9ae3b79d2eb..4765aaef568 100644 --- a/modular_skyrat/modules/morenarcotics/code/pcp.dm +++ b/modular_skyrat/modules/morenarcotics/code/pcp.dm @@ -47,7 +47,7 @@ var/atom/movable/plane_master_controller/game_plane_master_controller = M.hud_used.plane_master_controllers[PLANE_MASTERS_GAME] game_plane_master_controller.add_filter("pcp_blur", 10, angular_blur_filter(0, 0, 0.7)) if(DT_PROB(2.5, delta_time)) - to_chat(M, "[high_message]") + to_chat(M, span_warning("[high_message]")) M.AdjustKnockdown(-20 * REM * delta_time) M.AdjustImmobilized(-20 * REM * delta_time) M.adjustStaminaLoss(-10 * REM * delta_time, 0) @@ -71,7 +71,7 @@ QDEL_NULL(pcp_rage) if(pcp_tenacity) QDEL_NULL(pcp_tenacity) - L.visible_message("[L] collapses onto the floor!") //you pretty much pass out + L.visible_message(span_danger("[L] collapses onto the floor!")) //you pretty much pass out L.Paralyze(pcp_lifetime,TRUE) L.drop_all_held_items() ..() @@ -85,7 +85,7 @@ if(DT_PROB(2.5, delta_time)) M.emote(pick("twitch","drool")) if(DT_PROB(1.5, delta_time)) - M.visible_message("[M] flails their arms around everywhere!") + M.visible_message(span_danger("[M] flails their arms around everywhere!")) M.drop_all_held_items() ..() . = TRUE diff --git a/modular_skyrat/modules/morenarcotics/code/quaalude.dm b/modular_skyrat/modules/morenarcotics/code/quaalude.dm index 9212886fa50..ba953a87e83 100644 --- a/modular_skyrat/modules/morenarcotics/code/quaalude.dm +++ b/modular_skyrat/modules/morenarcotics/code/quaalude.dm @@ -16,7 +16,7 @@ /datum/reagent/drug/quaalude/on_mob_life(mob/living/carbon/M, delta_time, times_fired) var/high_message = pick("You feel relaxed.", "You feel like you're on the moon.", "You feel like you could walk 20 miles for a quaalude.") if(DT_PROB(2.5, delta_time)) - to_chat(M, "[high_message]") + to_chat(M, span_notice("[high_message]")) if(M.hud_used!=null) var/atom/movable/plane_master_controller/game_plane_master_controller = M.hud_used.plane_master_controllers[PLANE_MASTERS_GAME] game_plane_master_controller.add_filter("quaalude_wave", 10, wave_filter(300, 300, 3, 0, WAVE_SIDEWAYS)) @@ -29,7 +29,7 @@ M.emote(pick("laugh","drool")) if(!HAS_TRAIT(M, TRAIT_FLOORED)) if(DT_PROB(1, delta_time)) - M.visible_message("[M]'s legs become too weak to carry their own weight!") + M.visible_message(span_danger("[M]'s legs become too weak to carry their own weight!")) M.Knockdown(90,TRUE) M.drop_all_held_items() ..() diff --git a/modular_skyrat/modules/morenarcotics/code/thc.dm b/modular_skyrat/modules/morenarcotics/code/thc.dm index 72e383cd0f3..e731f27990b 100644 --- a/modular_skyrat/modules/morenarcotics/code/thc.dm +++ b/modular_skyrat/modules/morenarcotics/code/thc.dm @@ -27,7 +27,7 @@ //shit for effects /datum/mood_event/stoned - description = "You're totally baked right now...\n" + description = span_nicegreen("You're totally baked right now...\n") mood_change = 6 timeout = 3 MINUTES @@ -52,7 +52,7 @@ var/atom/movable/plane_master_controller/game_plane_master_controller = M.hud_used.plane_master_controllers[PLANE_MASTERS_GAME] game_plane_master_controller.add_filter("weed_blur", 10, angular_blur_filter(0, 0, 0.45)) if(DT_PROB(2.5, delta_time)) - to_chat(M, "[high_message]") + to_chat(M, span_notice("[high_message]")) SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "stoned", /datum/mood_event/stoned, name) M.throw_alert("stoned", /atom/movable/screen/alert/stoned) M.sound_environment_override = SOUND_ENVIRONMENT_DRUGGED diff --git a/modular_skyrat/modules/morenarcotics/code/thc_item.dm b/modular_skyrat/modules/morenarcotics/code/thc_item.dm index 7b0aef895b4..e9cc66a12d7 100644 --- a/modular_skyrat/modules/morenarcotics/code/thc_item.dm +++ b/modular_skyrat/modules/morenarcotics/code/thc_item.dm @@ -27,9 +27,9 @@ /obj/item/reagent_containers/hashbrick/attack_self(mob/user) - user.visible_message("[user] starts breaking up the [src].") + user.visible_message(span_notice("[user] starts breaking up the [src].")) if(do_after(user,10)) - to_chat(user, "You finish breaking up the [src].") + to_chat(user, span_notice("You finish breaking up the [src].")) for(var/i = 1 to 4) new /obj/item/reagent_containers/hash(user.loc) qdel(src) diff --git a/modular_skyrat/modules/morenarcotics/code/vapecarts.dm b/modular_skyrat/modules/morenarcotics/code/vapecarts.dm index ced93697347..edf9fd37531 100644 --- a/modular_skyrat/modules/morenarcotics/code/vapecarts.dm +++ b/modular_skyrat/modules/morenarcotics/code/vapecarts.dm @@ -19,11 +19,11 @@ if(target_vape.screw == TRUE && !target_vape.reagents.total_volume) src.reagents.trans_to(target_vape, src.volume, transfered_by = user) qdel(src) - to_chat(user, span_notice("You plug the [src.name] into the vape.")) + to_chat(user, span_notice("You plug the [src.name] into the vape.")) else if(!target_vape.screw) - to_chat(user, span_warning("You need to open the cap to do that!")) + to_chat(user, span_warning("You need to open the cap to do that!")) else - to_chat(user, span_warning("[target_vape] is already full!")) + to_chat(user, span_warning("[target_vape] is already full!")) /obj/item/reagent_containers/vapecart/empty name = "customizable vape cart" @@ -34,13 +34,13 @@ /obj/item/reagent_containers/vapecart/empty/attack_self(mob/user) if(reagents.total_volume > 0) - to_chat(user, span_notice("You empty [src] of all reagents.
")) + to_chat(user, span_notice("You empty [src] of all reagents.")) reagents.clear_reagents() /obj/item/reagent_containers/vapecart/empty/attackby(obj/item/attacked_item, mob/user, params) if (istype(attacked_item, /obj/item/pen) || istype(attacked_item, /obj/item/toy/crayon)) if(!user.is_literate()) - to_chat(user, span_notice("You scribble illegibly on the label of the vape cart!
")) + to_chat(user, span_notice("You scribble illegibly on the label of the vape cart!")) return var/new_title = stripped_input(user, "What would you like to label the vape cart?", name, null, 53) if(!user.canUseTopic(src, BE_CLOSE)) diff --git a/modular_skyrat/modules/moretraitoritems/code/glue.dm b/modular_skyrat/modules/moretraitoritems/code/glue.dm index 8fe06a0932c..75867bca825 100644 --- a/modular_skyrat/modules/moretraitoritems/code/glue.dm +++ b/modular_skyrat/modules/moretraitoritems/code/glue.dm @@ -13,17 +13,17 @@ return else if(!uses) - to_chat(user, "The bottle of glue is empty!") + to_chat(user, span_warning("The bottle of glue is empty!")) return if(istype(target, /obj/item)) var/obj/item/I = target if(HAS_TRAIT_FROM(I, TRAIT_NODROP, GLUED_ITEM_TRAIT)) - to_chat(user, "[I] is already sticky!") + to_chat(user, span_warning("[I] is already sticky!")) return uses -= 1 ADD_TRAIT(I, TRAIT_NODROP, GLUED_ITEM_TRAIT) I.desc += " It looks sticky." - to_chat(user, "You smear the [I] with glue, making it incredibly sticky!") + to_chat(user, span_notice("You smear the [I] with glue, making it incredibly sticky!")) if(uses == 0) icon_state = "glue_used" name = "empty bottle of super glue" diff --git a/modular_skyrat/modules/moretraitoritems/code/granters.dm b/modular_skyrat/modules/moretraitoritems/code/granters.dm index e0d079b46cc..56cec874211 100644 --- a/modular_skyrat/modules/moretraitoritems/code/granters.dm +++ b/modular_skyrat/modules/moretraitoritems/code/granters.dm @@ -7,12 +7,12 @@ if(!traits) return TRUE if(HAS_TRAIT(src, (traits))) - to_chat(user, "You already know about [traitname].") + to_chat(user, span_boldwarning("You already know about [traitname].")) return return FALSE /obj/item/book/granter/traitsr/on_reading_start(mob/user) - to_chat(user, "You start reading about [traitname]...") + to_chat(user, span_notice("You start reading about [traitname]...")) /obj/item/book/granter/traitsr/on_reading_finished(mob/user) to_chat(user, "[greet]") @@ -23,13 +23,13 @@ /obj/item/book/granter/traitsr/onlearned(mob/user) ..() if(oneuse) - user.visible_message("You rip out the pages of the [src]!") + user.visible_message(span_warning("You rip out the pages of the [src]!")) /obj/item/book/granter/traitsr/ventcrawl_book traits = TRAIT_VENTCRAWLER_ALWAYS name = "Military Contortionist Guide" traitname = "ventcrawling expert" desc = "A special operations handbook for teaching people with at least a basic understanding of infiltration tactics how to most effectively utilize small spaces such as air ducts or pipes." - greet = "You’ve mastered the art of climbing through air pipes!" + greet = span_boldannounce("You’ve mastered the art of climbing through air pipes!") icon_state = "stealthmanual" remarks = list("Have a healthy diet...", "Know when to use vents to your advantage...", "Don't be seen climbing into vents...", "Best paired with close quarters skills...", "Pressure resistant gear recommended...") diff --git a/modular_skyrat/modules/morewizardstuffs/code/antag_spawner.dm b/modular_skyrat/modules/morewizardstuffs/code/antag_spawner.dm index 3b3ea055cb2..5506d2eb05b 100644 --- a/modular_skyrat/modules/morewizardstuffs/code/antag_spawner.dm +++ b/modular_skyrat/modules/morewizardstuffs/code/antag_spawner.dm @@ -6,7 +6,7 @@ /obj/item/antag_spawner/impostors/proc/check_usability(mob/user) if(!user.mind.has_antag_datum(/datum/antagonist/wizard, TRUE)) - to_chat(user, "You have no idea on how to use this thing.") + to_chat(user, span_danger("You have no idea on how to use this thing.")) return FALSE return TRUE @@ -20,7 +20,7 @@ var/mob/living/carbon/human/W = M.current var/list/candidates = poll_ghost_candidates("Would you like to be an imposter wizard?", ROLE_WIZARD) if(!candidates) - to_chat(user, "Unable to duplicate! You can either attack the spellbook with the contract to refund your points, or wait and try again later..") + to_chat(user, span_warning("Unable to duplicate! You can either attack the spellbook with the contract to refund your points, or wait and try again later..")) return var/mob/dead/observer/C = pick(candidates) diff --git a/modular_skyrat/modules/morewizardstuffs/code/snapceleritas.dm b/modular_skyrat/modules/morewizardstuffs/code/snapceleritas.dm index d58af07e3f7..f16ac044acf 100644 --- a/modular_skyrat/modules/morewizardstuffs/code/snapceleritas.dm +++ b/modular_skyrat/modules/morewizardstuffs/code/snapceleritas.dm @@ -29,6 +29,6 @@ return FALSE if(!isliving(target)) if(!silent) - to_chat(user, "You are unable to swap with [target]!") + to_chat(user, span_warning("You are unable to swap with [target]!")) return FALSE return TRUE diff --git a/modular_skyrat/modules/morewizardstuffs/code/tiedshoes.dm b/modular_skyrat/modules/morewizardstuffs/code/tiedshoes.dm index 64f46e63ce8..1ef402f144e 100644 --- a/modular_skyrat/modules/morewizardstuffs/code/tiedshoes.dm +++ b/modular_skyrat/modules/morewizardstuffs/code/tiedshoes.dm @@ -11,18 +11,18 @@ /obj/effect/proc_holder/spell/pointed/knotlaces/cast(list/targets, mob/user) if(!targets.len) - to_chat(user, "No target found in range!") + to_chat(user, span_warning("No target found in range!")) return FALSE if(!can_target(targets[1], user)) return FALSE var/mob/living/carbon/target = targets[1] if(target.anti_magic_check()) - to_chat(user, "The spell had no effect!") + to_chat(user, span_warning("The spell had no effect!")) return FALSE var/obj/item/clothing/shoes/tiedshoes = target.shoes if (!tiedshoes?.can_be_tied) - to_chat(user, "[target] does not have knottable shoes!") + to_chat(user, span_warning("[target] does not have knottable shoes!")) return tiedshoes.adjust_laces(SHOES_KNOTTED) @@ -32,6 +32,6 @@ return FALSE if(!is_type_in_typecache(target, compatible_mobs_typecache)) if(!silent) - to_chat(user, "You are unable to curse [target]!") + to_chat(user, span_warning("You are unable to curse [target]!")) return FALSE return TRUE diff --git a/modular_skyrat/modules/multicellcharger/code/multi_cell_charger.dm b/modular_skyrat/modules/multicellcharger/code/multi_cell_charger.dm index 88d5cb4eb9b..843acbab28b 100644 --- a/modular_skyrat/modules/multicellcharger/code/multi_cell_charger.dm +++ b/modular_skyrat/modules/multicellcharger/code/multi_cell_charger.dm @@ -34,7 +34,7 @@ /obj/machinery/cell_charger_multi/attack_hand_secondary(mob/user, list/modifiers) if(!can_interact(user) || !charging_batteries.len) return - to_chat(user, "You press the quick release as all the cells pop out!") + to_chat(user, span_notice("You press the quick release as all the cells pop out!")) for(var/i in charging_batteries) removecell() return COMPONENT_CANCEL_ATTACK_CHAIN @@ -48,32 +48,32 @@ for(var/obj/item/stock_parts/cell/charging in charging_batteries) . += "There's [charging] cell in the charger, current charge: [round(charging.percent(), 1)]%." if(in_range(user, src) || isobserver(user)) - . += "The status display reads: Charging power: [charge_rate]W." - . += "Right click it to remove all the cells at once!" + . += span_notice("The status display reads: Charging power: [charge_rate]W.") + . += span_notice("Right click it to remove all the cells at once!") /obj/machinery/cell_charger_multi/attackby(obj/item/tool, mob/user, params) if(istype(tool, /obj/item/stock_parts/cell) && !panel_open) if(machine_stat & BROKEN) - to_chat(user, "[src] is broken!") + to_chat(user, span_warning("[src] is broken!")) return if(!anchored) - to_chat(user, "[src] isn't attached to the ground!") + to_chat(user, span_warning("[src] isn't attached to the ground!")) return if(charging_batteries.len >= 4) - to_chat(user, "[src] is full, and cannot hold anymore cells!") + to_chat(user, span_warning("[src] is full, and cannot hold anymore cells!")) return else var/area/current_area = loc.loc // Gets our locations location, like a dream within a dream if(!isarea(current_area)) return if(current_area.power_equip == 0) // There's no APC in this area, don't try to cheat power! - to_chat(user, "[src] blinks red as you try to insert the cell!") + to_chat(user, span_warning("[src] blinks red as you try to insert the cell!")) return if(!user.transferItemToLoc(tool,src)) return charging_batteries += tool - user.visible_message("[user] inserts a cell into [src].", "You insert a cell into [src].") + user.visible_message(span_notice("[user] inserts a cell into [src]."), span_notice("You insert a cell into [src].")) update_appearance() else if(!charging_batteries.len && default_deconstruction_screwdriver(user, icon_state, icon_state, tool)) @@ -103,7 +103,7 @@ if(!charging_batteries.len) return - to_chat(user, "You telekinetically remove [removecell(user)] from [src].") + to_chat(user, span_notice("You telekinetically remove [removecell(user)] from [src].")) return COMPONENT_CANCEL_ATTACK_CHAIN @@ -149,7 +149,7 @@ user.put_in_hands(charging) charging.add_fingerprint(user) - user.visible_message("[user] removes [charging] from [src].", "You remove [charging] from [src].") + user.visible_message(span_notice("[user] removes [charging] from [src]."), span_notice("You remove [charging] from [src].")) /obj/machinery/cell_charger_multi/proc/removecell(mob/user) if(!charging_batteries.len) diff --git a/modular_skyrat/modules/mutants/code/mutant_cure.dm b/modular_skyrat/modules/mutants/code/mutant_cure.dm index b7ac01bda0c..c8378269929 100644 --- a/modular_skyrat/modules/mutants/code/mutant_cure.dm +++ b/modular_skyrat/modules/mutants/code/mutant_cure.dm @@ -8,12 +8,12 @@ /obj/item/rna_extractor/attackby(obj/item/O, mob/living/user) if((istype(O, /obj/item/rna_vial) && loaded_vial != null)) - to_chat(user, "[src] can not hold more than one vial!") + to_chat(user, span_warning("[src] can not hold more than one vial!")) return FALSE if(istype(O, /obj/item/rna_vial)) if(!user.transferItemToLoc(O, src)) return FALSE - to_chat(user, "You insert [O] into [src]!") + to_chat(user, span_notice("You insert [O] into [src]!")) loaded_vial = O playsound(loc, 'sound/weapons/autoguninsert.ogg', 35, 1) update_appearance() @@ -30,36 +30,36 @@ return var/mob/living/carbon/human/H = target if(!loaded_vial) - to_chat(user, "[src] is empty!") + to_chat(user, span_danger("[src] is empty!")) return if(loaded_vial.contains_rna) - to_chat(user, "[src] already has RNA data in it, upload it to the combinator!") + to_chat(user, span_danger("[src] already has RNA data in it, upload it to the combinator!")) return if(!ismutant(H)) - to_chat(user, "[H] does not register as infected!") + to_chat(user, span_danger("[H] does not register as infected!")) return var/datum/component/mutant_infection/ZI = H.GetComponent(/datum/component/mutant_infection) if(!ZI) - to_chat(user, "[H] does not register as infected!") + to_chat(user, span_danger("[H] does not register as infected!")) return if(ZI.extract_rna()) loaded_vial.load_rna(H) - to_chat(user, "[src] successfully scanned [H], and now holds a sample virus RNA data.") + to_chat(user, span_notice("[src] successfully scanned [H], and now holds a sample virus RNA data.")) playsound(src.loc, 'sound/effects/spray2.ogg', 50, TRUE, -6) update_appearance() else - to_chat(user, "[H] has no useable RNA!") + to_chat(user, span_warning("[H] has no useable RNA!")) /obj/item/rna_extractor/proc/unload_vial(mob/living/user) if(loaded_vial) loaded_vial.forceMove(user.loc) user.put_in_hands(loaded_vial) - to_chat(user, "You remove [loaded_vial] from [src].") + to_chat(user, span_notice("You remove [loaded_vial] from [src].")) loaded_vial = null update_appearance() playsound(loc, 'sound/weapons/empty.ogg', 50, 1) else - to_chat(user, "[src] isn't loaded!") + to_chat(user, span_notice("[src] isn't loaded!")) return /obj/item/rna_extractor/update_overlays() @@ -110,17 +110,17 @@ /obj/item/hnz_cure/attack(mob/living/M, mob/living/user, params) . = ..() if(used) - to_chat(user, "[src] has been used and is useless!") + to_chat(user, span_danger("[src] has been used and is useless!")) return if(ishuman(M)) var/mob/living/carbon/human/H = M if(!H.GetComponent(/datum/component/mutant_infection)) - to_chat(user, "[H] does not register as infected!") + to_chat(user, span_danger("[H] does not register as infected!")) return if(do_after(user, 4 SECONDS)) cure_target(H) playsound(src.loc, 'sound/effects/spray2.ogg', 50, TRUE, -6) - to_chat(user, "You inject [H] wth [src]!") + to_chat(user, span_notice("You inject [H] wth [src]!")) used = TRUE update_appearance() @@ -172,7 +172,7 @@ if(!user.transferItemToLoc(O, src)) return FALSE loaded_item = O - to_chat(user, "You insert [O] to into [src] reciprocal.") + to_chat(user, span_notice("You insert [O] to into [src] reciprocal.")) flick("h_lathe_load", src) update_appearance() playsound(loc, 'sound/weapons/autoguninsert.ogg', 35, 1) @@ -223,11 +223,11 @@ updateUsrDialog() else if(status != STATUS_IDLE) - to_chat(usr, "[src] is currently recombinating!") + to_chat(usr, span_warning("[src] is currently recombinating!")) else if(!loaded_item) - to_chat(usr, "[src] is not currently loaded!") + to_chat(usr, span_warning("[src] is not currently loaded!")) else if(!process || process != loaded_item) //Interface exploit protection (such as hrefs or swapping items with interface set to old item) - to_chat(usr, "Interface failure detected in [src]. Please try again.") + to_chat(usr, span_danger("Interface failure detected in [src]. Please try again.")) else if(operation == "virus") status = STATUS_RECOMBINATING_VIRUS diff --git a/modular_skyrat/modules/mutants/code/mutant_datum.dm b/modular_skyrat/modules/mutants/code/mutant_datum.dm index 86d97022fce..c4d130375d5 100644 --- a/modular_skyrat/modules/mutants/code/mutant_datum.dm +++ b/modular_skyrat/modules/mutants/code/mutant_datum.dm @@ -29,7 +29,7 @@ GLOBAL_LIST_EMPTY(mutant_infection_list) // A list of all mutant_infection organ if(host.stat == DEAD) var/revive_time = rand(REVIVE_TIME_LOWER, REVIVE_TIME_UPPER) timer_id = addtimer(CALLBACK(src, .proc/transform_host), revive_time, TIMER_STOPPABLE) - to_chat(host, "You feel your veins throb as your body begins twitching...") + to_chat(host, span_userdanger("You feel your veins throb as your body begins twitching...")) RegisterSignal(parent, COMSIG_MUTANT_CURED, .proc/cure_host) @@ -47,7 +47,7 @@ GLOBAL_LIST_EMPTY(mutant_infection_list) // A list of all mutant_infection organ host.set_species(old_species) host.grab_ghost() host.revive(TRUE, TRUE) - to_chat(host, "You feel like you're free of that foul disease!") + to_chat(host, span_greentext("You feel like you're free of that foul disease!")) ADD_TRAIT(host, TRAIT_MUTANT_IMMUNE, "mutant_virus") var/cure_time = rand(IMMUNITY_LOWER, IMMUNITY_UPPER) addtimer(CALLBACK(host, /mob/living/carbon/human/proc/remove_mutant_immunity), cure_time, TIMER_STOPPABLE) @@ -57,7 +57,7 @@ GLOBAL_LIST_EMPTY(mutant_infection_list) // A list of all mutant_infection organ /datum/component/mutant_infection/proc/extract_rna() if(rna_extracted) return FALSE - to_chat(host, "You feel your genes being altered!") + to_chat(host, span_userdanger("You feel your genes being altered!")) rna_extracted = TRUE addtimer(CALLBACK(src, .proc/refresh_rna), RNA_REFRESH_TIME, TIMER_STOPPABLE) return TRUE @@ -89,17 +89,17 @@ GLOBAL_LIST_EMPTY(mutant_infection_list) // A list of all mutant_infection organ if(host.stat != DEAD) return if(!ismutant(host)) - to_chat(host, "You can feel your heart stopping, but something isn't right... \ + to_chat(host, span_cultlarge("You can feel your heart stopping, but something isn't right... \ life has not abandoned your broken form. You can only feel a deep and immutable hunger that \ - not even death can stop, you will rise again!") + not even death can stop, you will rise again!")) var/revive_time = rand(REVIVE_TIME_LOWER, REVIVE_TIME_UPPER) - to_chat(host, "You will transform in approximately [revive_time/10] seconds.") + to_chat(host, span_redtext("You will transform in approximately [revive_time/10] seconds.")) timer_id = addtimer(CALLBACK(src, .proc/transform_host), revive_time, TIMER_STOPPABLE) /datum/component/mutant_infection/proc/cure_host() SIGNAL_HANDLER if(!host.stat == DEAD) - to_chat(host, "You start to feel refreshed and invigorated!") + to_chat(host, span_notice("You start to feel refreshed and invigorated!")) STOP_PROCESSING(SSobj, src) addtimer(CALLBACK(src, .proc/Destroy), CURE_TIME) @@ -119,19 +119,19 @@ GLOBAL_LIST_EMPTY(mutant_infection_list) // A list of all mutant_infection organ regenerate() host.do_jitter_animation(30) - host.visible_message("[host] suddenly convulses, as [host.p_they()][stand_up ? " stagger to [host.p_their()] feet and" : ""] gain a ravenous hunger in [host.p_their()] eyes!", "You HUNGER!") + host.visible_message(span_danger("[host] suddenly convulses, as [host.p_they()][stand_up ? " stagger to [host.p_their()] feet and" : ""] gain a ravenous hunger in [host.p_their()] eyes!"), span_alien("You HUNGER!")) playsound(host.loc, 'sound/hallucinations/far_noise.ogg', 50, TRUE) if(is_species(host, /datum/species/mutant/infectious/fast)) - to_chat(host, "You are a FAST zombie. You run fast and hit more quickly, beware however, you are much weaker and susceptible to damage.") + to_chat(host, span_redtext("You are a FAST zombie. You run fast and hit more quickly, beware however, you are much weaker and susceptible to damage.")) else - to_chat(host, "You are a SLOW zombie. You walk slowly and hit more slowly and harder. However, you are far more resilient to most damage types.") - to_chat(host, "You are now a mutant! Do not seek to be cured, do not help any non-mutants in any way, do not harm your mutant brethren. You retain some higher functions and can reason to an extent.") + to_chat(host, span_redtext("You are a SLOW zombie. You walk slowly and hit more slowly and harder. However, you are far more resilient to most damage types.")) + to_chat(host, span_alert("alien'>You are now a mutant! Do not seek to be cured, do not help any non-mutants in any way, do not harm your mutant brethren. You retain some higher functions and can reason to an extent.")) RegisterSignal(parent, COMSIG_LIVING_DEATH, .proc/mutant_death) /datum/component/mutant_infection/proc/mutant_death() SIGNAL_HANDLER var/revive_time = rand(REVIVE_TIME_LOWER, REVIVE_TIME_UPPER) - to_chat(host, "You can feel your heart stopping, but something isn't right... you will rise again!") + to_chat(host, span_cultlarge("You can feel your heart stopping, but something isn't right... you will rise again!")) timer_id = addtimer(CALLBACK(src, .proc/regenerate), revive_time, TIMER_STOPPABLE) /datum/component/mutant_infection/proc/regenerate() @@ -143,7 +143,7 @@ GLOBAL_LIST_EMPTY(mutant_infection_list) // A list of all mutant_infection organ host.key = C.key else host.grab_ghost() - to_chat(host, "You feel an itching, both inside and \ - outside as your tissues knit and reknit.") + to_chat(host, span_notice("You feel an itching, both inside and \ + outside as your tissues knit and reknit.")) playsound(host, 'sound/magic/demon_consume.ogg', 50, TRUE) host.revive(TRUE, TRUE) diff --git a/modular_skyrat/modules/panicbunker/code/panicbunker.dm b/modular_skyrat/modules/panicbunker/code/panicbunker.dm index 3af052d5ec2..96ee7c551b2 100644 --- a/modular_skyrat/modules/panicbunker/code/panicbunker.dm +++ b/modular_skyrat/modules/panicbunker/code/panicbunker.dm @@ -5,7 +5,7 @@ GLOBAL_LIST_EMPTY(bunker_passthrough) set name = "Add PB Bypass" set desc = "Allows a given ckey to connect despite the panic bunker for a given round." if(!CONFIG_GET(flag/sql_enabled)) - to_chat(usr, "The Database is not enabled!") + to_chat(usr, span_adminnotice("The Database is not enabled!")) return GLOB.bunker_passthrough |= ckey(ckeytobypass) @@ -20,7 +20,7 @@ GLOBAL_LIST_EMPTY(bunker_passthrough) set desc = "Revoke's a ckey's permission to bypass the panic bunker for a given round." if(!CONFIG_GET(flag/sql_enabled)) - to_chat(usr, "The Database is not enabled!") + to_chat(usr, span_adminnotice("The Database is not enabled!")) return GLOB.bunker_passthrough -= ckey(ckeytobypass) diff --git a/modular_skyrat/modules/primitive_fun/code/ceramics.dm b/modular_skyrat/modules/primitive_fun/code/ceramics.dm index 9e710cc3a3c..96ac2c4ca45 100644 --- a/modular_skyrat/modules/primitive_fun/code/ceramics.dm +++ b/modular_skyrat/modules/primitive_fun/code/ceramics.dm @@ -8,8 +8,8 @@ skill_name = "Ceramic Master" skill_description = "Master the ability to use clay within ceramics." skill_icon = "certificate" - activate_message = "The faults within the clay are now to be seen." - deactivate_message = "Clay becomes more obscured." + activate_message = span_notice("The faults within the clay are now to be seen.") + deactivate_message = span_notice("Clay becomes more obscured.") /obj/structure/water_source/puddle/attackby(obj/item/O, mob/user, params) if(istype(O, /obj/item/stack/ore/glass)) diff --git a/modular_skyrat/modules/primitive_fun/code/glassblowing.dm b/modular_skyrat/modules/primitive_fun/code/glassblowing.dm index 23aff998505..f6ba73e0fbe 100644 --- a/modular_skyrat/modules/primitive_fun/code/glassblowing.dm +++ b/modular_skyrat/modules/primitive_fun/code/glassblowing.dm @@ -8,8 +8,8 @@ skill_name = "Glass-Blowing Master" skill_description = "Master the ability to use glass within glassblowing." skill_icon = "certificate" - activate_message = "The faults within the glass are now to be seen." - deactivate_message = "Glass becomes more obscured." + activate_message = span_notice("The faults within the glass are now to be seen.") + deactivate_message = span_notice("Glass becomes more obscured.") /obj/item/glassblowing icon = 'modular_skyrat/modules/primitive_fun/icons/prim_fun.dmi' diff --git a/modular_skyrat/modules/sec_haul/code/guns/token_system/token_system.dm b/modular_skyrat/modules/sec_haul/code/guns/token_system/token_system.dm index b2b8681fbb3..78e4931286e 100644 --- a/modular_skyrat/modules/sec_haul/code/guns/token_system/token_system.dm +++ b/modular_skyrat/modules/sec_haul/code/guns/token_system/token_system.dm @@ -32,7 +32,7 @@ /obj/machinery/gun_vendor/proc/RedeemToken(obj/item/armament_token/token, mob/redeemer) if(seclevel2num(get_security_level()) < token.minimum_sec_level) - to_chat(redeemer, "Warning, this holochip is locked to [num2seclevel(token.minimum_sec_level)]!") + to_chat(redeemer, span_redtext("Warning, this holochip is locked to [num2seclevel(token.minimum_sec_level)]!")) message_admins("ARMAMENT LOG: [redeemer] attempted to redeem a [token.name] on the incorrect security level!") return var/list/radial_build = token.get_available_gunsets() @@ -47,9 +47,9 @@ var/obj/item/storage/box/gunset/dispensed = new chosen_gunset(src.loc) if(redeemer.CanReach(src) && redeemer.put_in_hands(dispensed)) - to_chat(redeemer, "You take [dispensed] out of the slot.") + to_chat(redeemer, span_notice("You take [dispensed] out of the slot.")) else - to_chat(redeemer, "[dispensed] falls onto the floor!") + to_chat(redeemer, span_warning("[dispensed] falls onto the floor!")) playsound(src, 'sound/machines/machine_vend.ogg', 50, TRUE, extrarange = -3) to_chat(redeemer, "Thank you for redeeming your token. Remember. Do NOT take lethal ammo without permission or good reasoning.") SSblackbox.record_feedback("tally", "armament_token_redeemed", 1, dispensed) diff --git a/modular_skyrat/modules/sec_haul/code/misc/bullet_drive.dm b/modular_skyrat/modules/sec_haul/code/misc/bullet_drive.dm index ddf1a5a3ce3..8d147d325ba 100644 --- a/modular_skyrat/modules/sec_haul/code/misc/bullet_drive.dm +++ b/modular_skyrat/modules/sec_haul/code/misc/bullet_drive.dm @@ -22,12 +22,12 @@ /obj/machinery/dish_drive/bullet/do_the_dishes(manual) if(!LAZYLEN(dish_drive_contents)) if(manual) - visible_message("[src] is empty!") + visible_message(span_notice("[src] is empty!")) return var/obj/machinery/disposal/bin/bin = locate() in view(binrange, src) //SKYRAT EDIT CHANGE if(!bin) if(manual) - visible_message("[src] buzzes. There are no disposal bins in range!") + visible_message(span_warning("[src] buzzes. There are no disposal bins in range!")) playsound(src, 'sound/machines/buzz-sigh.ogg', 50, TRUE) return var/disposed = 0 @@ -38,12 +38,12 @@ use_power(active_power_usage) disposed++ if(disposed) - visible_message("[src] [pick("whooshes", "bwooms", "fwooms", "pshooms")] and demoleculizes [disposed] stored item\s into the nearby void.") + visible_message(span_notice("[src] [pick("whooshes", "bwooms", "fwooms", "pshooms")] and demoleculizes [disposed] stored item\s into the nearby void.")) playsound(src, 'sound/items/pshoom.ogg', 50, TRUE) playsound(bin, 'sound/items/pshoom.ogg', 50, TRUE) flick("synthesizer_beam", src) else - visible_message("There are no disposable items in [src]!") + visible_message(span_notice("There are no disposable items in [src]!")) time_since_dishes = world.time + 600 /obj/machinery/dish_drive/bullet/process() @@ -53,12 +53,12 @@ return for(var/obj/item/I in view(succrange, src)) if(istype(I, /obj/machinery/dish_drive/bullet)) - visible_message("[src] has detected another bullet drive nearby, and is sad!") + visible_message(span_userdanger("[src] has detected another bullet drive nearby, and is sad!")) break if(is_type_in_list(I, collectable_items) && I.loc != src && (!I.reagents || !I.reagents.total_volume)) if(I.Adjacent(src)) LAZYADD(dish_drive_contents, I) - visible_message("[src] beams up [I]!") + visible_message(span_notice("[src] beams up [I]!")) I.moveToNullspace() playsound(src, 'sound/items/pshoom.ogg', 50, TRUE) flick("synthesizer_beam", src) diff --git a/modular_skyrat/modules/sec_haul/code/misc/policetape.dm b/modular_skyrat/modules/sec_haul/code/misc/policetape.dm index e8ec1a59b3c..d9f31c75a32 100644 --- a/modular_skyrat/modules/sec_haul/code/misc/policetape.dm +++ b/modular_skyrat/modules/sec_haul/code/misc/policetape.dm @@ -25,13 +25,13 @@ /obj/item/taperoll/attack_self(mob/user as mob) //This one is pretty much a copy-paste, so dont ask me how the math works I failed that class. I /do/ know this is what handles placing the tape. if(icon_state == "[icon_base]_start") start = get_turf(src) - to_chat(usr, "You place the first end of \the [src].") + to_chat(usr, span_notice("You place the first end of \the [src].")) icon_state = "[icon_base]_stop" else icon_state = "[icon_base]_start" end = get_turf(src) if(start.y != end.y && start.x != end.x || start.z != end.z) - to_chat(usr, "\The [src] can only be laid horizontally or vertically.") + to_chat(usr, span_notice("\The [src] can only be laid horizontally or vertically.")) return var/turf/cur = start @@ -60,7 +60,7 @@ break cur = get_step_towards(cur,end) if (!can_place) - to_chat(usr, "You can't run \the [src] through that!") + to_chat(usr, span_notice("You can't run \the [src] through that!")) return cur = start @@ -74,26 +74,26 @@ P.icon_state = "[P.icon_base]_[dir]" cur = get_step_towards(cur,end) //is_blocked_turf(var/turf/T) /*(what does this even do? it was commented out when I found it...)*/ - to_chat(usr, " You finish placing \the [src]." ) + to_chat(usr, span_notice(" You finish placing \the [src].") ) /obj/item/taperoll/afterattack(atom/A, mob/user as mob, proximity) if (proximity && istype(A, /obj/machinery/door/airlock)) var/turf/T = get_turf(A) if(locate(/obj/structure/jobtape) in T) //Check if the door already has tape - to_chat(user, "This door is already taped!") + to_chat(user, span_notice("This door is already taped!")) return var/obj/structure/jobtape/ourtape = new tape_type(T.x,T.y,T.z) ourtape.loc = locate(T.x,T.y,T.z) ourtape.icon_state = "[src.icon_base]_door" ourtape.layer = ABOVE_WINDOW_LAYER - to_chat(user, "You finish placing \the [src].") + to_chat(user, span_notice("You finish placing \the [src].")) /obj/structure/jobtape/examine(mob/user) . = ..() - . += "The tape is weak enough to easily push through on harm intent or by walking, though that'd be impolite..." + . += span_notice("The tape is weak enough to easily push through on harm intent or by walking, though that'd be impolite...") if(allowed(user)) - . += "You can unroll the whole line by right-clicking with the tape roll!" - . += "Clicking it with an empty hand will lift the tape, allowing anyone/anything to pass through." + . += span_notice("You can unroll the whole line by right-clicking with the tape roll!") + . += span_notice("Clicking it with an empty hand will lift the tape, allowing anyone/anything to pass through.") /obj/structure/jobtape/CanAllowThrough(atom/movable/mover, turf/target) //This is low-key based off the holosigns, but modified to be better fitting for tape - people can't walk thru, but they can smash . = ..() @@ -105,10 +105,10 @@ if(!crumpled) if(target_carbon.combat_mode || target_carbon.m_intent == MOVE_INTENT_WALK) crumple() - visible_message("[target_carbon] pushes through \the [src] aggressively, ruining the tape!") + visible_message(span_notice("[target_carbon] pushes through \the [src] aggressively, ruining the tape!")) return TRUE else //Good boi player obeys the tape - /*to_chat(target_carbon, "You don't want to cross \the [src], it's there for a reason...")*/ //-- I WANT to have it post a message, but need a way to avoid chatspamming people walking into it... --// + /*to_chat(target_carbon, span_notice("You don't want to cross \the [src], it's there for a reason..."))*/ //-- I WANT to have it post a message, but need a way to avoid chatspamming people walking into it... --// return FALSE else return TRUE @@ -134,15 +134,15 @@ else //Icon is implied to be vertical if it reaches this point icon_state = "[icon_base]_v" name = initial(name) - visible_message("[usr] repairs \the [src], restoring its quality.") + visible_message(span_notice("[usr] repairs \the [src], restoring its quality.")) /obj/structure/jobtape/proc/lifttape() if(crumpled) - to_chat(usr, "There's no point lifting damaged [src] - try repairing it first.") //Find out how to make sure this doesnt post "damaged the tape", instead just "damaged tape" + to_chat(usr, span_notice("There's no point lifting damaged [src] - try repairing it first.")) //Find out how to make sure this doesnt post "damaged the tape", instead just "damaged tape" return else lifted = !lifted - visible_message("[usr] [lifted ? "lifts" : "lowers"] \the [src], [lifted ? "allowing" : "restricting"] passage.") + visible_message(span_notice("[usr] [lifted ? "lifts" : "lowers"] \the [src], [lifted ? "allowing" : "restricting"] passage.")) if(!lifted) name = initial(name) alpha = 255 @@ -176,12 +176,12 @@ /obj/structure/jobtape/proc/breaktape(obj/item/useditem, mob/living/user, params) //Handles actually removing the tape if(useditem.tool_behaviour == TOOL_WIRECUTTER || useditem.sharpness == SHARP_EDGED) - visible_message("[user] breaks \the [src]!") + visible_message(span_notice("[user] breaks \the [src]!")) qdel(src) return if(istype(useditem, /obj/item/taperoll)) //Should only trigger on right-click if(!do_after(usr, 3.5 SECONDS, target = usr)) - to_chat(usr, "You have to stand still to re-roll \the [src]!") + to_chat(usr, span_notice("You have to stand still to re-roll \the [src]!")) return //Again, IDK what the math and code hear entirely means, it's mostly unchanged from the TGMC code - I /assume/ this is meant to cut entire connected lines of tape var/dir[2] @@ -202,10 +202,10 @@ N = 0 qdel(P) cur = get_step(cur,dir[i]) - visible_message("[user] re-rolls \the [src], cleanly removing the full line!") + visible_message(span_notice("[user] re-rolls \the [src], cleanly removing the full line!")) qdel(src) else - to_chat(user, "You can't break \the [src] with that!") + to_chat(user, span_notice("You can't break \the [src] with that!")) return /*----- Actually usable tape types below this line -----*/ diff --git a/modular_skyrat/modules/sec_haul/code/peacekeeper/peacekeeper_clothing.dm b/modular_skyrat/modules/sec_haul/code/peacekeeper/peacekeeper_clothing.dm index 8a12f528eb2..f822f849a3a 100644 --- a/modular_skyrat/modules/sec_haul/code/peacekeeper/peacekeeper_clothing.dm +++ b/modular_skyrat/modules/sec_haul/code/peacekeeper/peacekeeper_clothing.dm @@ -186,7 +186,7 @@ if(!isliving(user) || !user.CanReach(parent) || user.incapacitated()) return FALSE if(locked) - to_chat(user, "[parent] seems to be locked!") + to_chat(user, span_warning("[parent] seems to be locked!")) return var/atom/A = parent @@ -198,7 +198,7 @@ remove_from_storage(gun_to_draw, get_turf(user)) playsound(parent, 'modular_skyrat/modules/sec_haul/sound/holsterout.ogg', 50, TRUE, -5) INVOKE_ASYNC(user, /mob/.proc/put_in_hands, gun_to_draw) - user.visible_message("[user] draws [gun_to_draw] from [parent]!", "You draw [gun_to_draw] from [parent].") + user.visible_message(span_warning("[user] draws [gun_to_draw] from [parent]!"), span_notice("You draw [gun_to_draw] from [parent].")) /datum/component/storage/concrete/peacekeeper/mob_item_insertion_feedback(mob/user, mob/M, obj/item/I, override = FALSE) @@ -212,11 +212,11 @@ for(var/mob/viewing in viewers(user, null)) if(M == viewing) - to_chat(usr, "You put [I] [insert_preposition]to [parent].") + to_chat(usr, span_notice("You put [I] [insert_preposition]to [parent].")) else if(in_range(M, viewing)) //If someone is standing close enough, they can tell what it is... - viewing.show_message("[M] puts [I] [insert_preposition]to [parent].", MSG_VISUAL) + viewing.show_message(span_notice("[M] puts [I] [insert_preposition]to [parent]."), MSG_VISUAL) else if(I && I.w_class >= 3) //Otherwise they can only see large or normal items from a distance... - viewing.show_message("[M] puts [I] [insert_preposition]to [parent].", MSG_VISUAL) + viewing.show_message(span_notice("[M] puts [I] [insert_preposition]to [parent]."), MSG_VISUAL) /obj/item/storage/belt/security/peacekeeper/ComponentInitialize() . = ..() diff --git a/modular_skyrat/modules/sec_haul/code/security_medic/security_medic.dm b/modular_skyrat/modules/sec_haul/code/security_medic/security_medic.dm index 76bca10569a..70c47ca31f1 100644 --- a/modular_skyrat/modules/sec_haul/code/security_medic/security_medic.dm +++ b/modular_skyrat/modules/sec_haul/code/security_medic/security_medic.dm @@ -45,8 +45,8 @@ /datum/job/security_medic/after_spawn(mob/living/carbon/human/H, mob/M) . = ..() - to_chat(M, "As the Security Medic, you are comparable in medical knowledge to a Paramedic, not a one man surgical bay. \ - your main duty is healing on the field or in combat situations. Leave revivals and chemistry work to trained professionals.") + to_chat(M, span_redtext("As the Security Medic, you are comparable in medical knowledge to a Paramedic, not a one man surgical bay. \ + your main duty is healing on the field or in combat situations. Leave revivals and chemistry work to trained professionals.")) /datum/outfit/job/security_medic name = "Security Medic" diff --git a/modular_skyrat/modules/server_overflow/code/chat_link.dm b/modular_skyrat/modules/server_overflow/code/chat_link.dm index 64b7ddb4dbe..d219ff910cb 100644 --- a/modular_skyrat/modules/server_overflow/code/chat_link.dm +++ b/modular_skyrat/modules/server_overflow/code/chat_link.dm @@ -30,6 +30,6 @@ for(var/client/C in GLOB.clients) if(C.prefs.chat_toggles & CHAT_OOC) if(GLOB.OOC_COLOR) - to_chat(C, "OOC: [sender_name]: [message]") + to_chat(C, span_oocplain("OOC: [sender_name]: [message]")) else - to_chat(C, "OOC: [sender_name]: [message]") + to_chat(C, span_ooc(span_prefix("OOC: [sender_name]: [message]")) diff --git a/modular_skyrat/modules/shapeshifting_module/code/borg_shapeshifter.dm b/modular_skyrat/modules/shapeshifting_module/code/borg_shapeshifter.dm index 0fe433dc993..73f0aa118eb 100644 --- a/modular_skyrat/modules/shapeshifting_module/code/borg_shapeshifter.dm +++ b/modular_skyrat/modules/shapeshifting_module/code/borg_shapeshifter.dm @@ -128,18 +128,18 @@ if (isturf(user.loc)) toggle(user) else - to_chat(user, "You can't use [src] while inside something!") + to_chat(user, span_warning("You can't use [src] while inside something!")) else - to_chat(user, "You need at least [activationCost] charge in your cell to use [src]!") + to_chat(user, span_warning("You need at least [activationCost] charge in your cell to use [src]!")) /obj/item/borg_shapeshifter/proc/toggle(mob/living/silicon/robot/user) if(active) playsound(src, 'sound/effects/pop.ogg', 100, TRUE, -6) - to_chat(user, "You deactivate \the [src].") + to_chat(user, span_notice("You deactivate \the [src].")) deactivate(user) else if(animation_playing) - to_chat(user, "\the [src] is recharging.") + to_chat(user, span_notice("\the [src] is recharging.")) return var/mob/living/silicon/robot/R = loc var/static/list/model_icons = sort_list(list( @@ -1037,7 +1037,7 @@ return FALSE animation_playing = TRUE - to_chat(user, "You activate \the [src].") + to_chat(user, span_notice("You activate \the [src].")) playsound(src, 'sound/effects/seedling_chargeup.ogg', 100, TRUE, -6) var/start = user.filters.len var/X,Y,rsq,i,f @@ -1054,10 +1054,10 @@ animate(offset=f:offset-1, time=rand()*20+10) if (do_after(user, 50, target=user) && user.cell.use(activationCost)) playsound(src, 'sound/effects/bamf.ogg', 100, TRUE, -6) - to_chat(user, "You are now disguised.") + to_chat(user, span_notice("You are now disguised.")) activate(user, model_selection) else - to_chat(user, "The chameleon field fizzles.") + to_chat(user, span_warning("The chameleon field fizzles.")) do_sparks(3, FALSE, user) for(i=1, i<=min(7, user.filters.len), ++i) // removing filters that are animating does nothing, we gotta stop the animations first f = user.filters[start+i] @@ -1123,5 +1123,5 @@ /obj/item/borg_shapeshifter/proc/disrupt(mob/living/silicon/robot/user) SIGNAL_HANDLER if(active) - to_chat(user, "Your chameleon field deactivates.") + to_chat(user, span_danger("Your chameleon field deactivates.")) deactivate(user) diff --git a/modular_skyrat/modules/singularity_engine/code/particle_accelerator/particle_accelerator.dm b/modular_skyrat/modules/singularity_engine/code/particle_accelerator/particle_accelerator.dm index 0085f004244..19c907738de 100644 --- a/modular_skyrat/modules/singularity_engine/code/particle_accelerator/particle_accelerator.dm +++ b/modular_skyrat/modules/singularity_engine/code/particle_accelerator/particle_accelerator.dm @@ -71,40 +71,40 @@ if(W.tool_behaviour == TOOL_WRENCH && !isinspace()) W.play_tool_sound(src, 75) set_anchored(TRUE) - user.visible_message("[user.name] secures the [name] to the floor.", \ - "You secure the external bolts.") + user.visible_message(span_notice("[user.name] secures the [name] to the floor."), \ + span_notice("You secure the external bolts.")) user.changeNext_move(CLICK_CD_MELEE) return //set_anchored handles the rest of the stuff we need to do. if(PA_CONSTRUCTION_UNWIRED) if(W.tool_behaviour == TOOL_WRENCH) W.play_tool_sound(src, 75) set_anchored(FALSE) - user.visible_message("[user.name] detaches the [name] from the floor.", \ - "You remove the external bolts.") + user.visible_message(span_notice("[user.name] detaches the [name] from the floor."), \ + span_notice("You remove the external bolts.")) user.changeNext_move(CLICK_CD_MELEE) return //set_anchored handles the rest of the stuff we need to do. else if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/CC = W if(CC.use(1)) - user.visible_message("[user.name] adds wires to the [name].", \ - "You add some wires.") + user.visible_message(span_notice("[user.name] adds wires to the [name]."), \ + span_notice("You add some wires.")) construction_state = PA_CONSTRUCTION_PANEL_OPEN did_something = TRUE if(PA_CONSTRUCTION_PANEL_OPEN) if(W.tool_behaviour == TOOL_WIRECUTTER)//TODO:Shock user if its on? - user.visible_message("[user.name] removes some wires from the [name].", \ - "You remove some wires.") + user.visible_message(span_notice("[user.name] removes some wires from the [name]."), \ + span_notice("You remove some wires.")) construction_state = PA_CONSTRUCTION_UNWIRED did_something = TRUE else if(W.tool_behaviour == TOOL_SCREWDRIVER) - user.visible_message("[user.name] closes the [name]'s access panel.", \ - "You close the access panel.") + user.visible_message(span_notice("[user.name] closes the [name]'s access panel."), \ + span_notice("You close the access panel.")) construction_state = PA_CONSTRUCTION_COMPLETE did_something = TRUE if(PA_CONSTRUCTION_COMPLETE) if(W.tool_behaviour == TOOL_SCREWDRIVER) - user.visible_message("[user.name] opens the [name]'s access panel.", \ - "You open the access panel.") + user.visible_message(span_notice("[user.name] opens the [name]'s access panel."), \ + span_notice("You open the access panel.")) construction_state = PA_CONSTRUCTION_PANEL_OPEN did_something = TRUE diff --git a/modular_skyrat/modules/singularity_engine/code/particle_accelerator/particle_control.dm b/modular_skyrat/modules/singularity_engine/code/particle_accelerator/particle_control.dm index 087ded33dac..47f0d7c3335 100644 --- a/modular_skyrat/modules/singularity_engine/code/particle_accelerator/particle_control.dm +++ b/modular_skyrat/modules/singularity_engine/code/particle_accelerator/particle_control.dm @@ -215,40 +215,40 @@ if(W.tool_behaviour == TOOL_WRENCH && !isinspace()) W.play_tool_sound(src, 75) set_anchored(TRUE) - user.visible_message("[user.name] secures the [name] to the floor.", \ - "You secure the external bolts.") + user.visible_message(span_notice("[user.name] secures the [name] to the floor."), \ + span_notice("You secure the external bolts.")) user.changeNext_move(CLICK_CD_MELEE) return //set_anchored handles the rest of the stuff we need to do. if(PA_CONSTRUCTION_UNWIRED) if(W.tool_behaviour == TOOL_WRENCH) W.play_tool_sound(src, 75) set_anchored(FALSE) - user.visible_message("[user.name] detaches the [name] from the floor.", \ - "You remove the external bolts.") + user.visible_message(span_notice("[user.name] detaches the [name] from the floor."), \ + span_notice("You remove the external bolts.")) user.changeNext_move(CLICK_CD_MELEE) return //set_anchored handles the rest of the stuff we need to do. else if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/CC = W if(CC.use(1)) - user.visible_message("[user.name] adds wires to the [name].", \ - "You add some wires.") + user.visible_message(span_notice("[user.name] adds wires to the [name]."), \ + span_notice("You add some wires.")) construction_state = PA_CONSTRUCTION_PANEL_OPEN did_something = TRUE if(PA_CONSTRUCTION_PANEL_OPEN) if(W.tool_behaviour == TOOL_WIRECUTTER)//TODO:Shock user if its on? - user.visible_message("[user.name] removes some wires from the [name].", \ - "You remove some wires.") + user.visible_message(span_notice("[user.name] removes some wires from the [name]."), \ + span_notice("You remove some wires.")) construction_state = PA_CONSTRUCTION_UNWIRED did_something = TRUE else if(W.tool_behaviour == TOOL_SCREWDRIVER) - user.visible_message("[user.name] closes the [name]'s access panel.", \ - "You close the access panel.") + user.visible_message(span_notice("[user.name] closes the [name]'s access panel."), \ + span_notice("You close the access panel.")) construction_state = PA_CONSTRUCTION_COMPLETE did_something = TRUE if(PA_CONSTRUCTION_COMPLETE) if(W.tool_behaviour == TOOL_SCREWDRIVER) - user.visible_message("[user.name] opens the [name]'s access panel.", \ - "You open the access panel.") + user.visible_message(span_notice("[user.name] opens the [name]'s access panel."), \ + span_notice("You open the access panel.")) construction_state = PA_CONSTRUCTION_PANEL_OPEN did_something = TRUE @@ -272,7 +272,7 @@ /obj/machinery/particle_accelerator/control_box/proc/is_interactive(mob/user) if(!interface_control) - to_chat(user, "ERROR: Request timed out. Check wire contacts.") + to_chat(user, span_alert("ERROR: Request timed out. Check wire contacts.")) return FALSE if(construction_state != PA_CONSTRUCTION_COMPLETE) return FALSE diff --git a/modular_skyrat/modules/singularity_engine/code/particle_accelerator/wires.dm b/modular_skyrat/modules/singularity_engine/code/particle_accelerator/wires.dm index c8c1f144dde..ea9db6ae9c8 100644 --- a/modular_skyrat/modules/singularity_engine/code/particle_accelerator/wires.dm +++ b/modular_skyrat/modules/singularity_engine/code/particle_accelerator/wires.dm @@ -27,7 +27,7 @@ if(WIRE_INTERFACE) C.interface_control = !C.interface_control if(WIRE_LIMIT) - C.visible_message("[icon2html(C, viewers(holder))][C] makes a loud whirring noise.") + C.visible_message(span_notice("[icon2html(C, viewers(holder))][C] makes a loud whirring noise.")) /datum/wires/particle_accelerator/control_box/on_cut(wire, mend) var/obj/machinery/particle_accelerator/control_box/C = holder diff --git a/modular_skyrat/modules/specborg/code/robot_module.dm b/modular_skyrat/modules/specborg/code/robot_module.dm index f0d6daa2639..8a939a8083d 100644 --- a/modular_skyrat/modules/specborg/code/robot_module.dm +++ b/modular_skyrat/modules/specborg/code/robot_module.dm @@ -132,7 +132,7 @@ /obj/item/robot_model/ninja_saboteur/do_transform_animation() ..() - to_chat(loc, "While you have picked the saboteur model, that doesn't mean you are allowed to sabotage the station by delaminating the supermatter or opening all the doors to the armory, you should still ahelp to ask the permission to do that and the reason for it.") + to_chat(loc, span_userdanger("While you have picked the saboteur model, that doesn't mean you are allowed to sabotage the station by delaminating the supermatter or opening all the doors to the armory, you should still ahelp to ask the permission to do that and the reason for it.")) /obj/item/robot_model/ninja_saboteur/be_transformed_to(obj/item/robot_model/old_model) diff --git a/modular_skyrat/modules/stasisrework/code/stasissleeper.dm b/modular_skyrat/modules/stasisrework/code/stasissleeper.dm index 69f1a879b6c..ab1262b577a 100644 --- a/modular_skyrat/modules/stasisrework/code/stasissleeper.dm +++ b/modular_skyrat/modules/stasisrework/code/stasissleeper.dm @@ -10,7 +10,7 @@ circuit = /obj/item/circuitboard/machine/stasissleeper idle_power_usage = 40 active_power_usage = 340 - var/enter_message = "You feel cool air surround you. You go numb as your senses turn inward." + var/enter_message = span_notice("You feel cool air surround you. You go numb as your senses turn inward.") var/last_stasis_sound = FALSE fair_market_price = 10 payment_department = ACCOUNT_MED @@ -20,9 +20,9 @@ /obj/machinery/stasissleeper/examine(mob/user) . = ..() - . += "Alt-click to [state_open ? "close" : "open"] the machine." - . += "A light blinking on the side indicates that it is [occupant ? "occupied" : "vacant"]." - . += "It has a screen on the side displaying the vitals of the occupant. Interact to read it." + . += span_notice("Alt-click to [state_open ? "close" : "open"] the machine.") + . += span_notice("A light blinking on the side indicates that it is [occupant ? "occupied" : "vacant"].") + . += span_notice("It has a screen on the side displaying the vitals of the occupant. Interact to read it.") /obj/machinery/stasissleeper/open_machine() if(!state_open && !panel_open) @@ -58,9 +58,9 @@ if(!user.canUseTopic(src, !issilicon(user))) return if(!panel_open) - user.visible_message("\The [src] [state_open ? "hisses as it seals shut." : "hisses as it swings open."].", \ - "You [state_open ? "close" : "open"] \the [src].", \ - "You hear a nearby machine [state_open ? "seal shut." : "swing open."].") + user.visible_message(span_notice("\The [src] [state_open ? "hisses as it seals shut." : "hisses as it swings open."]."), \ + span_notice("You [state_open ? "close" : "open"] \the [src]."), \ + span_hear("You hear a nearby machine [state_open ? "seal shut." : "swing open."].")) if(state_open) close_machine() else @@ -72,8 +72,8 @@ . = ..() /obj/machinery/stasissleeper/container_resist_act(mob/living/user) - visible_message("[occupant] emerges from [src]!", - "You climb out of [src]!") + visible_message(span_notice("[occupant] emerges from [src]!"), + span_notice("You climb out of [src]!")) open_machine() if(IS_IN_STASIS(user)) thaw_them(user) @@ -122,10 +122,10 @@ if(.) return if(occupant) - to_chat(user, "[src] is currently occupied!") + to_chat(user, span_warning("[src] is currently occupied!")) return if(state_open) - to_chat(user, "[src] must be closed to [panel_open ? "close" : "open"] its maintenance hatch!") + to_chat(user, span_warning("[src] must be closed to [panel_open ? "close" : "open"] its maintenance hatch!")) return default_deconstruction_screwdriver(user, "[initial(icon_state)]-o", initial(icon_state), I) @@ -145,28 +145,28 @@ . = !(state_open || panel_open || (flags_1 & NODECONSTRUCT_1)) && I.tool_behaviour == TOOL_CROWBAR if(.) I.play_tool_sound(src, 50) - visible_message("[usr] pries open [src].", "You pry open [src].") + visible_message(span_notice("[usr] pries open [src]."), span_notice("You pry open [src].")) open_machine() /obj/machinery/stasissleeper/attack_hand(mob/user) if(occupant) if(occupant == user) - to_chat(user, "You read the vitals readout on the inside of the stasis unit.") + to_chat(user, span_notice("You read the vitals readout on the inside of the stasis unit.")) else - to_chat(user, "You read the vitals readout on the side of the stasis unit.") + to_chat(user, span_notice("You read the vitals readout on the side of the stasis unit.")) healthscan(user, occupant, SCANNER_VERBOSE, TRUE) else - to_chat(user, "The vitals readout is blank, the stasis unit is unoccupied!") + to_chat(user, span_warning("The vitals readout is blank, the stasis unit is unoccupied!")) /obj/machinery/stasissleeper/attack_hand_secondary(mob/user) if(occupant) if(occupant == user) - to_chat(user, "You read the bloodstream readout on the inside of the stasis unit.") + to_chat(user, span_notice("You read the bloodstream readout on the inside of the stasis unit.")) else - to_chat(user, "You read the bloodstream readout on the side of the stasis unit.") + to_chat(user, span_notice("You read the bloodstream readout on the side of the stasis unit.")) chemscan(user, occupant) else - to_chat(user, "The bloodstream readout is blank, the stasis unit is unoccupied!") + to_chat(user, span_warning("The bloodstream readout is blank, the stasis unit is unoccupied!")) return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN /obj/machinery/stasissleeper/attack_ai(mob/user) diff --git a/modular_skyrat/modules/stone/code/ore_veins.dm b/modular_skyrat/modules/stone/code/ore_veins.dm index 1cf6881889e..9ee1c73f9fb 100644 --- a/modular_skyrat/modules/stone/code/ore_veins.dm +++ b/modular_skyrat/modules/stone/code/ore_veins.dm @@ -44,28 +44,28 @@ /obj/structure/ore_vein/attackby(obj/item/W, mob/user, params) if(W.tool_behaviour != TOOL_MINING) - to_chat(user, "You need a pickaxe to mine this.") + to_chat(user, span_notice("You need a pickaxe to mine this.")) return FALSE if(!ore_type) - to_chat(user, "There's no ore to mine!") + to_chat(user, span_notice("There's no ore to mine!")) return FALSE if(!ore_amount) - to_chat(user, "The [src] is too low quality to yield any useful amount of [ore_descriptor].") + to_chat(user, span_notice("The [src] is too low quality to yield any useful amount of [ore_descriptor].")) return FALSE if(depleted == TRUE) - to_chat(user, "This ore vein is exhausted.") + to_chat(user, span_notice("This ore vein is exhausted.")) return FALSE // Our early return checks to tell the user what went wrong. - to_chat(user, "You start mining the [ore_descriptor]...") + to_chat(user, span_notice("You start mining the [ore_descriptor]...")) if(W.use_tool(src, user, src.mining_time, volume=50)) - to_chat(user, "You mine the [ore_descriptor].") + to_chat(user, span_notice("You mine the [ore_descriptor].")) if(ore_type && ore_amount && depleted == FALSE) new ore_type(loc, ore_amount) SSblackbox.record_feedback("tally", "pick_used_mining", 1, W.type) depleted = TRUE update_icon_state() addtimer(CALLBACK(src, .proc/regenerate_ore), regeneration_time) - + // After the ore vein finishes its wait, we make the ore 'respawn' and return the ore to its original post-Initialize() icon_state. /obj/structure/ore_vein/proc/regenerate_ore() depleted = FALSE diff --git a/modular_skyrat/modules/tableflip/code/flipped_table.dm b/modular_skyrat/modules/tableflip/code/flipped_table.dm index 0aa8e5ffc76..b9f1ba8f9b1 100644 --- a/modular_skyrat/modules/tableflip/code/flipped_table.dm +++ b/modular_skyrat/modules/tableflip/code/flipped_table.dm @@ -52,11 +52,11 @@ . = ..() if(!istype(user) || !user.can_interact_with(src) || iscorticalborer(user)) //skyrat edit: no borer flipping return FALSE - user.visible_message("[user] starts flipping [src]!", "You start flipping over the [src]!") + user.visible_message(span_danger("[user] starts flipping [src]!"), span_notice("You start flipping over the [src]!")) if(do_after(user, max_integrity/4)) var/obj/structure/table/T = new table_type(src.loc) T.update_integrity(src.get_integrity()) - user.visible_message("[user] flips over the [src]!", "You flip over the [src]!") + user.visible_message(span_danger("[user] flips over the [src]!"), span_notice("You flip over the [src]!")) playsound(src, 'sound/items/trayhit2.ogg', 100) qdel(src) @@ -67,7 +67,7 @@ if(!istype(user) || !user.can_interact_with(src) || isobserver(user) || iscorticalborer(user)) //skyrat edit: no borer flipping return if(can_flip) - user.visible_message("[user] starts flipping [src]!", "You start flipping over the [src]!") + user.visible_message(span_danger("[user] starts flipping [src]!"), span_notice("You start flipping over the [src]!")) if(do_after(user, max_integrity/4)) var/obj/structure/flippedtable/T = new flipped_table_type(src.loc) T.name = "flipped [src.name]" @@ -80,7 +80,7 @@ T.max_integrity = src.max_integrity T.update_integrity(src.get_integrity()) T.table_type = src.type - user.visible_message("[user] flips over the [src]!", "You flip over the [src]!") + user.visible_message(span_danger("[user] flips over the [src]!"), span_notice("You flip over the [src]!")) playsound(src, 'sound/items/trayhit2.ogg', 100) qdel(src) diff --git a/modular_skyrat/modules/tribal_extended/code/weapons/bow.dm b/modular_skyrat/modules/tribal_extended/code/weapons/bow.dm index 9580c5138d0..7bdde2573a6 100644 --- a/modular_skyrat/modules/tribal_extended/code/weapons/bow.dm +++ b/modular_skyrat/modules/tribal_extended/code/weapons/bow.dm @@ -34,18 +34,18 @@ var/obj/item/ammo_casing/AC = magazine.get_round(0) user.put_in_hands(AC) chambered = null - to_chat(user, "You gently release the bowstring, removing the arrow.") + to_chat(user, span_notice("You gently release the bowstring, removing the arrow.")) else if (get_ammo()) var/obj/item/I = user.get_active_held_item() if (do_mob(user,I,10)) - to_chat(user, "You draw back the bowstring.") + to_chat(user, span_notice("You draw back the bowstring.")) playsound(src, 'modular_skyrat/modules/tribal_extended/sound/sound_weapons_bowdraw.ogg', 75, 0) //gets way too high pitched if the freq varies chamber_round() update_icon() /obj/item/gun/ballistic/tribalbow/attackby(obj/item/I, mob/user, params) if (magazine.attackby(I, user, params, 1)) - to_chat(user, "You notch the arrow.") + to_chat(user, span_notice("You notch the arrow.")) update_icon() /obj/item/gun/ballistic/tribalbow/update_icon() diff --git a/modular_skyrat/modules/trim_tokens/code/cards_ids.dm b/modular_skyrat/modules/trim_tokens/code/cards_ids.dm index 2fad2c659fc..bd7194c507b 100644 --- a/modular_skyrat/modules/trim_tokens/code/cards_ids.dm +++ b/modular_skyrat/modules/trim_tokens/code/cards_ids.dm @@ -2,24 +2,24 @@ /obj/item/card/id/proc/apply_token(obj/item/trim_token/token, mob/user) if(token.has_required_trim) if(!(src.trim in token.valid_trims)) - to_chat(user, "The trim of your ID is not valid for this trim token.") + to_chat(user, span_warning("The trim of your ID is not valid for this trim token.")) return if(token.uses == 0) - to_chat(user, "The [token.name] disintegrates as you press it against your ID, it probably only barely had enough charge left to keep its shape!") + to_chat(user, span_warning("The [token.name] disintegrates as you press it against your ID, it probably only barely had enough charge left to keep its shape!")) qdel(token) return // Just to make sure to give feedback if it requires a better card to grant the trim. if(SSid_access.apply_trim_to_card(src, token.token_trim, copy_access = token.force_access)) playsound(src, token.usesound, 40) - to_chat(user, "The [token.name] fuses with your ID, replacing its trim with a [token.assignment] trim!") + to_chat(user, span_notice("The [token.name] fuses with your ID, replacing its trim with a [token.assignment] trim!")) // If it's INFINITE (-1), it won't be affected by this. if(token.uses > 0) token.uses -= 1 if(token.uses == 0) qdel(token) return - to_chat(user, "The [token.name] reforms into a solid token before your eyes, after having successfully replaced your ID's trim. Nice.") + to_chat(user, span_notice("The [token.name] reforms into a solid token before your eyes, after having successfully replaced your ID's trim. Nice.")) return else - to_chat(user, "Your ID is not rare enough to support this trim upgrade!") + to_chat(user, span_warning("Your ID is not rare enough to support this trim upgrade!")) diff --git a/modular_skyrat/modules/verbs/code/looc.dm b/modular_skyrat/modules/verbs/code/looc.dm index 3acd84a12de..c1df1e968e1 100644 --- a/modular_skyrat/modules/verbs/code/looc.dm +++ b/modular_skyrat/modules/verbs/code/looc.dm @@ -4,7 +4,7 @@ set category = "OOC" if(GLOB.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) @@ -16,22 +16,22 @@ if(!holder) if(!GLOB.looc_allowed) - to_chat(src, " LOOC is globally muted") + to_chat(src, span_danger(" LOOC is globally muted")) return if(handle_spam_prevention(msg,MUTE_OOC)) return if(findtext(msg, "byond://")) - to_chat(src, "Advertising other servers is not allowed.") + to_chat(src, span_boldannounce("Advertising other servers is not allowed.")) log_admin("[key_name(src)] has attempted to advertise in LOOC: [msg]") return if(prefs.muted & MUTE_LOOC) - to_chat(src, "You cannot use LOOC (muted).") + to_chat(src, span_danger("You cannot use LOOC (muted).")) return if(mob.stat) - to_chat(src, "You cannot use LOOC while unconscious or dead.") //Skyrat change + to_chat(src, span_danger("You cannot use LOOC while unconscious or dead.")) //Skyrat change return if(istype(mob, /mob/dead)) - to_chat(src, "You cannot use LOOC while ghosting.") + to_chat(src, span_danger("You cannot use LOOC while ghosting.")) return msg = emoji_parse(msg) @@ -61,11 +61,11 @@ if (isobserver(M)) continue //Also handled later. - to_chat(C, "LOOC: [src.mob.name]: [msg]") + to_chat(C, span_looc(span_prefix("LOOC: [src.mob.name]: [msg]"))) for(var/cli in GLOB.admins) var/client/C = cli if (admin_seen[C]) - to_chat(C, "[ADMIN_FLW(usr)] LOOC: [src.key]/[src.mob.name]: [msg]") + to_chat(C, span_looc("[ADMIN_FLW(usr)] LOOC: [src.key]/[src.mob.name]: [msg]")) else if (C.prefs.read_preference(/datum/preference/toggle/admin/see_looc)) - to_chat(C, "[ADMIN_FLW(usr)] (R)LOOC: [src.key]/[src.mob.name]: [msg]") + to_chat(C, span_rlooc("[ADMIN_FLW(usr)] (R)LOOC: [src.key]/[src.mob.name]: [msg]")) diff --git a/modular_skyrat/modules/verbs/code/subtle.dm b/modular_skyrat/modules/verbs/code/subtle.dm index bdb1048fe1c..9f690273093 100644 --- a/modular_skyrat/modules/verbs/code/subtle.dm +++ b/modular_skyrat/modules/verbs/code/subtle.dm @@ -7,7 +7,7 @@ /datum/emote/living/subtle/proc/check_invalid(mob/user, input) /* TO DO if(stop_bad_mime.Find(input, 1, 1)) - to_chat(user, "Invalid emote.") + to_chat(user, span_danger("Invalid emote.")) return TRUE */ return FALSE @@ -45,7 +45,7 @@ var/prefix_log_message = "(SUBTLE) [subtle_message]" user.log_message(prefix_log_message, LOG_EMOTE) - subtle_message = "[user] " + "[user.say_emphasis(subtle_message)]" + subtle_message = span_emote("[user] " + "[user.say_emphasis(subtle_message)]") for(var/mob/M in GLOB.dead_mob_list) if(!M.client || isnewplayer(M)) @@ -72,7 +72,7 @@ /datum/emote/living/subtler/proc/check_invalid(mob/user, input) /* TO DO if(stop_bad_mime.Find(input, 1, 1)) - to_chat(user, "Invalid emote.") + to_chat(user, span_danger("Invalid emote.")) return TRUE */ return FALSE @@ -109,7 +109,7 @@ return FALSE user.log_message(subtler_message, LOG_SUBTLER) - subtler_message = "[user] " + "[user.say_emphasis(subtler_message)]" + subtler_message = span_emote("[user] " + "[user.say_emphasis(subtler_message)]") if(emote_type == EMOTE_AUDIBLE) user.audible_message_subtler(message=subtler_message,hearing_distance=1, ignored_mobs = GLOB.dead_mob_list) @@ -127,7 +127,7 @@ set name = "Subtle" set category = "IC" if(GLOB.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 usr.emote("subtle") @@ -136,7 +136,7 @@ set name = "Subtler Anti-Ghost" set category = "IC" if(GLOB.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 usr.emote("subtler") diff --git a/modular_skyrat/modules/xenoarch/code/modules/research/xenoarch/xenoarch_tool.dm b/modular_skyrat/modules/xenoarch/code/modules/research/xenoarch/xenoarch_tool.dm index 8450e1fb07e..83cbcaf537f 100644 --- a/modular_skyrat/modules/xenoarch/code/modules/research/xenoarch/xenoarch_tool.dm +++ b/modular_skyrat/modules/xenoarch/code/modules/research/xenoarch/xenoarch_tool.dm @@ -251,13 +251,13 @@ show_message = TRUE else if(!spam_protection) - to_chat(user, "Your [name] is full and can't hold any more!") + to_chat(user, span_warning("Your [name] is full and can't hold any more!")) spam_protection = TRUE continue if(show_message) playsound(user, "rustle", 50, TRUE) - user.visible_message("[user] scoops up the rocks beneath [user.p_them()].", \ - "You scoop up the rocks beneath you with your [name].") + user.visible_message(span_notice("[user] scoops up the rocks beneath [user.p_them()]."), \ + span_notice("You scoop up the rocks beneath you with your [name].")) spam_protection = FALSE /obj/item/storage/bag/xenoarch/adv diff --git a/modular_skyrat/readme.md b/modular_skyrat/readme.md index 3b6bffff69e..889cebd3798 100644 --- a/modular_skyrat/readme.md +++ b/modular_skyrat/readme.md @@ -242,7 +242,7 @@ In those cases, we've decided to apply the following convention, with examples: SSshuttle.emergency.request() SSblackbox.record_feedback("tally", "admin_verb", 1, "Call Shuttle") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! log_admin("[key_name(usr)] admin-called the emergency shuttle.") - message_admins("[key_name_admin(usr)] admin-called the emergency shuttle.") + message_admins(span_adminnotice("[key_name_admin(usr)] admin-called the emergency shuttle.")) return */ //SKYRAT EDIT REMOVAL END