Ajout de l'intégration twitch

This commit is contained in:
2026-06-23 23:38:20 +02:00
parent 4f93f7acaf
commit fcf8bfaa45
12 changed files with 305 additions and 16 deletions

View File

@@ -8,6 +8,13 @@ const CONSONANTS = ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p",
static func generate_random_word(_random_seed = randi()) -> String:
if (
GameInfo
and GameInfo.settings_data.activate_twitch_integration
and len(TwitchConnection.pseudo_gathered)
):
return TwitchConnection.pseudo_gathered.pick_random()
var word_len = randf_range(4,8)
var word = ''
var last_letter_is_vowel = false