Skip to content

Commit

Permalink
Gating DNA runtimes during pref load.
Browse files Browse the repository at this point in the history
  • Loading branch information
MistakeNot4892 committed Aug 7, 2023
1 parent 47305a2 commit 9a72d63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 4 additions & 3 deletions code/modules/admin/verbs/randomverbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,10 @@ Traitors and the like can also be revived with the previous role mostly intact.
new_character.mind.assigned_role = global.using_map.default_job_title//If they somehow got a null assigned role.

//DNA
new_character.dna.ready_dna(new_character)
if(record_found)//Pull up their name from database records if they did have a mind.
new_character.dna.unique_enzymes = record_found.get_dna()
if(new_character.dna)
new_character.dna.ready_dna(new_character)
if(record_found)//Pull up their name from database records if they did have a mind.
new_character.dna.unique_enzymes = record_found.get_dna()
new_character.key = G_found.key

/*
Expand Down
7 changes: 5 additions & 2 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,11 @@ var/global/list/time_prefs_fixed = list()
if(LAZYLEN(appearance_descriptors))
character.appearance_descriptors = appearance_descriptors.Copy()

character.dna.ready_dna(character)
character.dna.b_type = client.prefs.blood_type
if(character.dna)
character.dna.ready_dna(character)
if(client.prefs?.blood_type)
character.dna.b_type = client.prefs.blood_type

character.force_update_limbs()
character.update_mutations(0)
character.update_body(0)
Expand Down

0 comments on commit 9a72d63

Please sign in to comment.