mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-15 09:56:47 +01:00
Puts blood type in the medical record and let the medhud see it (#21521)
The blood type was already stored in the medical records, but was not visible to players. With this, anyone with medical record access can see the blood type and change it, and anyone with a medical hud can also see what it is in the person's medical record.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
"physical_status" = list("Active", "*Deceased*", "*SSD*", "*Missing*", "Physically Unfit", "Disabled"),
|
||||
"criminal_status" = list("None", "*Arrest*", "Search", "Incarcerated", "Parolled", "Released"),
|
||||
"mental_status" = list("Stable", "*Insane*", "*Unstable*", "*Watch*"),
|
||||
"medical" = list("A-", "B-", "AB-", "O-", "A+", "B+", "AB+", "O+", "SBS")
|
||||
"blood_type" = list("A-", "B-", "AB-", "O-", "A+", "B+", "AB+", "O+", "SBS")
|
||||
)
|
||||
|
||||
/datum/computer_file/program/records/New()
|
||||
@@ -118,6 +118,7 @@
|
||||
data["physical_status_options"] = typechoices["physical_status"]
|
||||
data["criminal_status_options"] = typechoices["criminal_status"]
|
||||
data["mental_status_options"] = typechoices["mental_status"]
|
||||
data["blood_type_options"] = typechoices["blood_type"]
|
||||
data["medical_options"] = typechoices["medical"]
|
||||
data["allrecords"] = list()
|
||||
data["allrecords_locked"] = list()
|
||||
@@ -141,7 +142,7 @@
|
||||
"religion" = R.religion,
|
||||
"employer" = R.employer,
|
||||
"notes" = html_decode(R.notes),
|
||||
"blood" = R.medical ? R.medical.blood_type : null,
|
||||
"blood_type" = R.medical ? R.medical.blood_type : null,
|
||||
"dna" = R.medical ? R.medical.blood_dna : null,
|
||||
"ccia_notes" = R.ccia_record,
|
||||
"ccia_actions" = R.ccia_actions,
|
||||
@@ -272,6 +273,9 @@
|
||||
if("allergies")
|
||||
if(!(edit_type & RECORD_MEDICAL))
|
||||
return FALSE
|
||||
if("blood_type")
|
||||
if(!(edit_type & RECORD_MEDICAL) || (edit_type & RECORD_SECURITY))
|
||||
return FALSE
|
||||
if("blood_dna")
|
||||
if(!(edit_type & RECORD_MEDICAL) || (edit_type & RECORD_SECURITY))
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user