From 27af5eca53c6c3705262aa96e25f2cc1645e00ee Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Tue, 2 Jan 2024 18:29:09 -0500 Subject: [PATCH] makes make everyone random not the worst button of all time (#23703) * makes make everyone random not the worst button of all time * comments --- code/modules/mob/new_player/new_player.dm | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index 8f8f9276131..7ceccc08633 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -544,12 +544,17 @@ check_prefs_are_sane() var/mob/living/carbon/human/new_character = new(loc) new_character.lastarea = get_area(loc) - - if(SSticker.random_players) - client.prefs.active_character.randomise() - client.prefs.active_character.real_name = random_name(client.prefs.active_character.gender) client.prefs.active_character.copy_to(new_character) - + if(SSticker.random_players) + var/mob/living/carbon/human/H = new_character + scramble(1, H, 100) + H.real_name = random_name(H.gender, H.dna.species.name) + H.sync_organ_dna(assimilate = 1) + H.update_body() + H.reset_hair() + H.reset_markings() + H.dna.ResetUIFrom(H) + H.flavor_text = "" stop_sound_channel(CHANNEL_LOBBYMUSIC)