From 0b47e4a4646456f006afe1a16ec88faf18eea735 Mon Sep 17 00:00:00 2001 From: Vero <73014819+vero5123@users.noreply.github.com> Date: Fri, 24 May 2024 18:12:58 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Drathek <76988376+Drulikar@users.noreply.github.com> --- code/game/machinery/computer/security.dm | 2 +- code/game/machinery/medical_pod/autodoc.dm | 4 ++-- code/game/machinery/medical_pod/bodyscanner.dm | 2 +- code/modules/cm_marines/marines_consoles.dm | 6 +++--- code/modules/mob/living/carbon/human/human.dm | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/code/game/machinery/computer/security.dm b/code/game/machinery/computer/security.dm index d77a9f154865..fa8858c1c647 100644 --- a/code/game/machinery/computer/security.dm +++ b/code/game/machinery/computer/security.dm @@ -74,7 +74,7 @@ if(operable()) visible_message("[SPAN_BOLD("[src]")] states, \"AUTH LOGOUT: Session end confirmed.\"") else - to_chat(usr, "You remove \the [user_id_card] from \the [src].") + to_chat(usr, "You remove [user_id_card] from [src].") authenticated = FALSE user_id_card = null else diff --git a/code/game/machinery/medical_pod/autodoc.dm b/code/game/machinery/medical_pod/autodoc.dm index eeb7622997ff..cca98ca989a5 100644 --- a/code/game/machinery/medical_pod/autodoc.dm +++ b/code/game/machinery/medical_pod/autodoc.dm @@ -286,8 +286,8 @@ var/human_ref = WEAKREF(H) N = retrieve_record(record_id_ref = H.record_id_ref, mob_ref = human_ref, record_type = RECORD_TYPE_MEDICAL) if(isnull(N)) - visible_message("\The [src] buzzes: No records found for occupant.") - src.go_out() //kick them out too. + visible_message("[src] buzzes: No records found for occupant.") + go_out() //kick them out too. return var/list/surgery_todo_list = N.fields["autodoc_manual"] diff --git a/code/game/machinery/medical_pod/bodyscanner.dm b/code/game/machinery/medical_pod/bodyscanner.dm index 1793403aa345..6ad94e75e7ca 100644 --- a/code/game/machinery/medical_pod/bodyscanner.dm +++ b/code/game/machinery/medical_pod/bodyscanner.dm @@ -182,7 +182,7 @@ N.fields["last_tgui_scan_result"] = last_health_display.ui_data(user, DETAIL_LEVEL_BODYSCAN) N.fields[MOB_AUTODOC_DATA] = generate_autodoc_surgery_list(H) visible_message(SPAN_NOTICE("\The [src] pings as it stores the scan report of [H.real_name]")) - playsound(src.loc, 'sound/machines/screen_output1.ogg', 25) + playsound(loc, 'sound/machines/screen_output1.ogg', 25) last_health_display.look_at(user, DETAIL_LEVEL_BODYSCAN, bypass_checks = TRUE) diff --git a/code/modules/cm_marines/marines_consoles.dm b/code/modules/cm_marines/marines_consoles.dm index 5c1b84d18efb..c8f8f0b6cbfe 100644 --- a/code/modules/cm_marines/marines_consoles.dm +++ b/code/modules/cm_marines/marines_consoles.dm @@ -73,7 +73,7 @@ if(operable()) // Powered. Console can response. visible_message("[SPAN_BOLD("[src]")] states, \"AUTH LOGOUT: Session end confirmed.\"") else - to_chat(usr, "You remove \the [user_id_card] from \the [src].") + to_chat(usr, "You remove [user_id_card] from [src].") authenticated = FALSE // No card - no access user_id_card = null @@ -86,7 +86,7 @@ target_id_card.name = text("[target_id_card.registered_name]'s ID Card ([target_id_card.assignment])") visible_message("[SPAN_BOLD("[src]")] states, \"CARD EJECT: Data imprinted. Updating database... Success.\"") else - to_chat(usr, "You remove \the [target_id_card] from \the [src].") + to_chat(usr, "You remove [target_id_card] from [src].") target_id_card = null else @@ -651,7 +651,7 @@ if(!user_id_card || !target_id_card || person_to_modify || user.name == user_id_card.registered_name) return - user.visible_message(SPAN_NOTICE("You hear a beep as [user]'s hand is scanned to \the [name].")) + user.visible_message(SPAN_NOTICE("You hear a beep as [user]'s hand is scanned to [name].")) visible_message("[SPAN_BOLD("[src]")] states, \"SCAN ENTRY: Scanned, please stay close until operation's end.\"") playsound(user.loc, 'sound/machines/screen_output1.ogg', 25, 1) person_to_modify = user diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index e260c5379f27..f46a04521892 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -19,7 +19,7 @@ prev_gender = gender // Debug for plural genders if(SSticker?.mode?.hardcore) - hardcore = TRUE //For WO disposing of corpsess + hardcore = TRUE //For WO disposing of corpses /mob/living/carbon/human/initialize_pass_flags(datum/pass_flags_container/PF) ..()