Skip to content

Commit

Permalink
Feat: random tts with random appearance (#875)
Browse files Browse the repository at this point in the history
## About The Pull Request
При рандомной внешке в префах так же будет рандоный ттс

## Why It's Good For The Game
Нельзя будет угадывать людей по ттс

## Changelog

:cl:
add: Рандомная внешность теперь так же включается рандомный ттс
/:cl:
  • Loading branch information
Furrior authored Dec 16, 2024
1 parent c3ab928 commit 13dd878
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modular_bandastation/tts/code/tts_preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 13dd878

Please sign in to comment.