Skip to content

Commit

Permalink
Fix tts seed dna (#125)
Browse files Browse the repository at this point in the history
## About The Pull Request
Теперь ДНК корректно обновляет сид ТТС

## Changelog
:cl:
fix: Теперь генокрад корректно ворует ТТС
/:cl:
  • Loading branch information
larentoun authored Apr 18, 2024
1 parent 6fc067c commit fcdd000
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modular_bandastation/tts/code/base_seeds/mobs/_base.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@

/mob/living/silicon/add_tts_component()
AddComponent(/datum/component/tts_component, null, TTS_TRAIT_ROBOTIZE)

/mob/living/carbon/add_tts_component()
var/random_tts_seed_key = SStts220.pick_tts_seed_by_gender(gender)
var/datum/tts_seed/random_tts_seed = SStts220.tts_seeds[random_tts_seed_key]
dna.tts_seed_dna = random_tts_seed
AddComponent(/datum/component/tts_component, random_tts_seed)
1 change: 1 addition & 0 deletions modular_bandastation/tts/code/tts_preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

/datum/preference/text/tts_seed/apply_to_human(mob/living/carbon/human/target, value)
target.AddComponent(/datum/component/tts_component, SStts220.tts_seeds[value])
target.dna.tts_seed_dna = SStts220.tts_seeds[value]

/datum/preference/numeric/sound_tts_volume_radio
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
Expand Down

0 comments on commit fcdd000

Please sign in to comment.