From c4b95c7ccda73613fe2a39a0b318bbded2f89b0d Mon Sep 17 00:00:00 2001 From: Sol N <116288367+flowercuco@users.noreply.github.com> Date: Wed, 29 Mar 2023 06:22:22 +0100 Subject: [PATCH] Fix Respawn Character Admin Verb (#74295) ## About The Pull Request while testing #74293 i tried to use this verb and it didnt work because some stuff wasnt parsing in correctly so i fixed it ## Why It's Good For The Game we want all of the admin tools to work ## Changelog :cl: fix: admin respawn character verb works properly /:cl: --- code/datums/records/record.dm | 3 +++ code/modules/admin/verbs/admingame.dm | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/code/datums/records/record.dm b/code/datums/records/record.dm index e491228269f..72581360cb3 100644 --- a/code/datums/records/record.dm +++ b/code/datums/records/record.dm @@ -127,6 +127,8 @@ var/datum/dna/dna_ref /// Mind datum var/datum/mind/mind_ref + /// Typepath of species used by player, for usage in respawning via records + var/species_type /datum/record/locked/New( age = 18, @@ -147,6 +149,7 @@ . = ..() src.dna_ref = dna_ref src.mind_ref = mind_ref + species_type = dna_ref.species.type GLOB.manifest.locked += src diff --git a/code/modules/admin/verbs/admingame.dm b/code/modules/admin/verbs/admingame.dm index aa517b16ba7..21d17a05429 100644 --- a/code/modules/admin/verbs/admingame.dm +++ b/code/modules/admin/verbs/admingame.dm @@ -212,10 +212,10 @@ Traitors and the like can also be revived with the previous role mostly intact. if(record_found)//If they have a record we can determine a few things. new_character.real_name = record_found.name - new_character.gender = record_found.gender + new_character.gender = lowertext(record_found.gender) new_character.age = record_found.age var/datum/dna/found_dna = record_found.dna_ref - new_character.hardset_dna(found_dna.unique_identity, record_found.dna_string, null, record_found.name, record_found.blood_type, new record_found.species, found_dna.features) + new_character.hardset_dna(found_dna.unique_identity, found_dna.mutation_index, null, record_found.name, record_found.blood_type, new record_found.species_type, found_dna.features) else new_character.randomize_human_appearance() new_character.dna.update_dna_identity()