mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 12:08:55 +01:00
[MIRROR] Adds medical record descriptions for quirks without any [MDB IGNORE] (#25347)
* Adds medical record descriptions for quirks without any * Fix Conflict, Preserve SR edit * Updates Ration Ticket with medical Records * Two more quirks --------- Co-authored-by: Verm <32827189+Vermidia@users.noreply.github.com> Co-authored-by: SomeRandomOwl <somerandomowl@ratchtnet.com>
This commit is contained in:
co-authored by
Verm
SomeRandomOwl
parent
a6a3f83084
commit
32196fd996
@@ -19,3 +19,25 @@
|
||||
continue
|
||||
|
||||
used_icons[icon] = quirk_type
|
||||
|
||||
// Make sure all quirks start with a description in medical records
|
||||
/datum/unit_test/quirk_initial_medical_records
|
||||
|
||||
/datum/unit_test/quirk_initial_medical_records/Run()
|
||||
var/mob/living/carbon/human/patient = allocate(/mob/living/carbon/human/consistent)
|
||||
|
||||
for(var/datum/quirk/quirk_type as anything in subtypesof(/datum/quirk))
|
||||
if (initial(quirk_type.abstract_parent_type) == quirk_type)
|
||||
continue
|
||||
|
||||
if(!isnull(quirk_type.medical_record_text))
|
||||
continue
|
||||
|
||||
//Add quirk to a patient - so we can pass quirks that add a medical record after being assigned someone
|
||||
patient.add_quirk(quirk_type)
|
||||
|
||||
var/datum/quirk/quirk = patient.get_quirk(quirk_type)
|
||||
|
||||
TEST_ASSERT_NOTNULL(quirk.medical_record_text,"[quirk_type] has no medical record description!")
|
||||
|
||||
patient.remove_quirk(quirk_type)
|
||||
|
||||
Reference in New Issue
Block a user