makes make everyone random not the worst button of all time (#23703)

* makes make everyone random not the worst button of all time

* comments
This commit is contained in:
Qwertytoforty
2024-01-02 18:29:09 -05:00
committed by GitHub
parent 3570756619
commit 27af5eca53
+10 -5
View File
@@ -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)