From 07c787ca55db68a7ee9aada23c13cfbc6e1385fd Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 12 Mar 2024 03:48:45 +0100 Subject: [PATCH] [MIRROR] Fixes a runtime with the crew manifest. (#26843) * Fixes a runtime with the crew manifest. (#81926) ## About The Pull Request `/datum/dna/stored` is a specific subtype of `/datum/dna` that ignores mutations. Wonderful for crew records on top of brain mobs tbf. The crew manifest now uses it. ## Why It's Good For The Game This will fix #81842. ## Changelog N/A * Fixes a runtime with the crew manifest. --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> --- code/datums/dna.dm | 2 +- code/datums/records/manifest.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/dna.dm b/code/datums/dna.dm index 2a7423a1fc1..fc56cfc9c43 100644 --- a/code/datums/dna.dm +++ b/code/datums/dna.dm @@ -514,7 +514,7 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block()) mutant_bodyparts = species.get_mutant_bodyparts(features, existing_mutant_bodyparts = randomize_features ? list() : mutant_bodyparts) // SKYRAT EDIT ADDITION update_dna_identity() -/datum/dna/stored //subtype used by brain mob's stored_dna +/datum/dna/stored //subtype used by brain mob's stored_dna and the crew manifest /datum/dna/stored/add_mutation(mutation_name) //no mutation changes on stored dna. return diff --git a/code/datums/records/manifest.dm b/code/datums/records/manifest.dm index c13acad9f05..3a942325cba 100644 --- a/code/datums/records/manifest.dm +++ b/code/datums/records/manifest.dm @@ -111,7 +111,7 @@ GLOBAL_DATUM_INIT(manifest, /datum/manifest, new) person_gender = "Male" if(person.gender == "female") person_gender = "Female" - var/datum/dna/record_dna = new() + var/datum/dna/stored/record_dna = new() person.dna.copy_dna(record_dna) // SKYRAT EDIT ADDITION BEGIN - ALTERNATIVE_JOB_TITLES