From 13dd878e39329acd5ffb618be13417e67f9c87a1 Mon Sep 17 00:00:00 2001 From: "Mikhail G." <furiorg@gmail.com> Date: Mon, 16 Dec 2024 23:07:13 +0700 Subject: [PATCH] Feat: random tts with random appearance (#875) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## About The Pull Request При рандомной внешке в префах так же будет рандоный ттс ## Why It's Good For The Game Нельзя будет угадывать людей по ттс ## Changelog :cl: add: Рандомная внешность теперь так же включается рандомный ттс /:cl: --- modular_bandastation/tts/code/tts_preferences.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modular_bandastation/tts/code/tts_preferences.dm b/modular_bandastation/tts/code/tts_preferences.dm index 3963966d4578b..2aa170438f83c 100644 --- a/modular_bandastation/tts/code/tts_preferences.dm +++ b/modular_bandastation/tts/code/tts_preferences.dm @@ -74,3 +74,8 @@ GLOBAL_LIST_EMPTY(human_to_tts) /datum/preferences/apply_prefs_to(mob/living/carbon/human/character, icon_updates) . = ..() GLOB.human_to_tts["[character.real_name]"] = character.dna.tts_seed_dna + +/mob/living/carbon/human/randomize_human_appearance(randomize_flags) + . = ..() + var/datum/component/tts_component/tts_component = GetComponent(/datum/component/tts_component) + tts_component.tts_seed = tts_component.get_random_tts_seed_by_gender()