mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
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 🆑 fix: admin respawn character verb works properly /🆑
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user