From 83bd7265738fe2bd981d65684df605b7ce901ff7 Mon Sep 17 00:00:00 2001 From: senorsapo <70925284+senorsapo@users.noreply.github.com> Date: Mon, 6 May 2024 08:54:37 -0300 Subject: [PATCH] Adds a timestamp to body scanner and CMO hand analyzer printout titles. (#19084) Adds a timestamp to body scanner and CMO hand analyzer printout titles. Scan (Person) becomes Scan (Person) (Time) --- code/game/machinery/body_scanner.dm | 2 +- code/game/objects/items/devices/scanners.dm | 2 +- html/changelogs/scannertime_flpfs.yml | 58 +++++++++++++++++++++ 3 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 html/changelogs/scannertime_flpfs.yml diff --git a/code/game/machinery/body_scanner.dm b/code/game/machinery/body_scanner.dm index 87f558b076d..61bffa4d30b 100644 --- a/code/game/machinery/body_scanner.dm +++ b/code/game/machinery/body_scanner.dm @@ -318,7 +318,7 @@ switch(action) // shouldn't be reachable if occupant is invalid if("print") - var/obj/item/paper/medscan/R = new /obj/item/paper/medscan(src, format_occupant_data(connected.get_occupant_data()), "Scan ([connected.occupant])", connected.occupant) + var/obj/item/paper/medscan/R = new /obj/item/paper/medscan(src, format_occupant_data(connected.get_occupant_data()), "Scan ([connected.occupant]) ([worldtime2text()])", connected.occupant) print(R, message = "\The [src] beeps, printing \the [R] after a moment.", user = usr) if("eject") diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm index f0bcb18f187..119c8b6da64 100644 --- a/code/game/objects/items/devices/scanners.dm +++ b/code/game/objects/items/devices/scanners.dm @@ -721,7 +721,7 @@ BREATH ANALYZER add_fingerprint(user) /obj/item/device/advanced_healthanalyzer/proc/print_scan(var/mob/M, var/mob/living/user) - var/obj/item/paper/medscan/R = new /obj/item/paper/medscan(src, connected.format_occupant_data(get_occupant_data(M)), "Scan ([M.name])", M) + var/obj/item/paper/medscan/R = new /obj/item/paper/medscan(src, connected.format_occupant_data(get_occupant_data(M)), "Scan ([M.name]) ([worldtime2text()])", M) connected.print(R, message = "\The [src] beeps, printing \the [R] after a moment.", user = user) /obj/item/device/advanced_healthanalyzer/proc/get_occupant_data(var/mob/living/carbon/human/H) diff --git a/html/changelogs/scannertime_flpfs.yml b/html/changelogs/scannertime_flpfs.yml new file mode 100644 index 00000000000..57e171d5865 --- /dev/null +++ b/html/changelogs/scannertime_flpfs.yml @@ -0,0 +1,58 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# - (fixes bugs) +# wip +# - (work in progress) +# qol +# - (quality of life) +# soundadd +# - (adds a sound) +# sounddel +# - (removes a sound) +# rscadd +# - (adds a feature) +# rscdel +# - (removes a feature) +# imageadd +# - (adds an image or sprite) +# imagedel +# - (removes an image or sprite) +# spellcheck +# - (fixes spelling or grammar) +# experiment +# - (experimental change) +# balance +# - (balance changes) +# code_imp +# - (misc internal code change) +# refactor +# - (refactors code) +# config +# - (makes a change to the config files) +# admin +# - (makes changes to administrator tools) +# server +# - (miscellaneous changes to server) +################################# + +# Your name. +author: Flpfs + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit. +# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog. +changes: + - rscadd: "The body scanner and CMO hand scanner now print papers with timestamps in their title. "