From a0f45c759d847a976862d6dab315d6760842e1c1 Mon Sep 17 00:00:00 2001 From: Casper3667 Date: Wed, 13 Oct 2021 21:40:07 +0200 Subject: [PATCH] Fixes medical records again (#12610) --- .../file_system/programs/generic/records.dm | 6 ++++++ html/changelogs/MedBugFix.yml | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 html/changelogs/MedBugFix.yml diff --git a/code/modules/modular_computers/file_system/programs/generic/records.dm b/code/modules/modular_computers/file_system/programs/generic/records.dm index 7ac4d833479..1e9b6401439 100644 --- a/code/modules/modular_computers/file_system/programs/generic/records.dm +++ b/code/modules/modular_computers/file_system/programs/generic/records.dm @@ -320,6 +320,12 @@ if("security") if(!(edit_type & RECORD_SECURITY)) return FALSE + if("physical_status") + if(!((edit_type & RECORD_MEDICAL) || (edit_type & RECORD_GENERAL))) + return FALSE + if("mental_status") + if(!((edit_type & RECORD_MEDICAL) || (edit_type & RECORD_GENERAL))) + return FALSE if("medical") if(!(edit_type & RECORD_MEDICAL)) return FALSE diff --git a/html/changelogs/MedBugFix.yml b/html/changelogs/MedBugFix.yml new file mode 100644 index 00000000000..015ffd66e4d --- /dev/null +++ b/html/changelogs/MedBugFix.yml @@ -0,0 +1,6 @@ +author: TheGreyWolf + +delete-after: True + +changes: + - bugfix: "Fixes medical's ability to set the patient's status in medical records completely."