Skip to content

Commit

Permalink
Tweak: Annoying-stuff (#433)
Browse files Browse the repository at this point in the history
Тут всякие мелочи, которые надо бы пофиксить, но мне все лень
  • Loading branch information
Furrior authored Oct 15, 2023
1 parent f3cf7cb commit 56321f9
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code/modules/client/preference/link_processing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@
"CLEAR" = "Center"
)

new_key = key_map[new_key] || new_key
new_key = convert_ru_key_to_en_key(key_map[new_key] || new_key) // SS220 EDIT

var/full_key
switch(new_key)
Expand Down
6 changes: 4 additions & 2 deletions code/modules/mob/new_player/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@
ready = FALSE
return FALSE

check_tts_seed_ready() // SS220 ADDITION
if(!check_tts_seed_ready()) // SS220 ADDITION
return FALSE

ready = !ready
new_player_panel_proc()
Expand Down Expand Up @@ -231,7 +232,8 @@
to_chat(src, alert("You are currently not whitelisted to play [client.prefs.active_character.species]."))
return FALSE

check_tts_seed_ready()
if(!check_tts_seed_ready()) // SS220 ADDITION
return FALSE

LateChoices()

Expand Down
3 changes: 1 addition & 2 deletions modular_ss220/_modpacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ SUBSYSTEM_DEF(modpacks)

/datum/controller/subsystem/modpacks/Initialize()
var/list/all_modpacks = list()
for(var/modpack in subtypesof(/datum/modpack/))
all_modpacks.Add(new modpack)
init_subtypes(/datum/modpack/, all_modpacks)

loaded_modpacks = list()
// Pre-init and register all compiled modpacks.
Expand Down
2 changes: 1 addition & 1 deletion modular_ss220/discord_link/code/discord.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
if(!SSdbcore.IsConnected())
return

var/token = md5("[world.time+rand(1000,1000000)]")
var/token = "WyccStation_" + md5("[world.time+rand(1000,1000000)]")
var/datum/db_query/query_replace_token = SSdbcore.NewQuery("REPLACE INTO discord_links (ckey, timestamp, one_time_token) VALUES (:ckey, NOW(), :token)", list(
"token" = token,
"ckey" = ckey
Expand Down
3 changes: 1 addition & 2 deletions modular_ss220/text_to_speech/code/hear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
var/message_tts = combine_message_tts(message_pieces, speaker)
var/effect = isrobot(speaker) ? SOUND_EFFECT_ROBOT : SOUND_EFFECT_NONE
var/traits = TTS_TRAIT_RATE_FASTER
var/is_whisper = verb == "whispers"
if(is_whisper)
if(italics)
traits |= TTS_TRAIT_PITCH_WHISPER
INVOKE_ASYNC(GLOBAL_PROC, GLOBAL_PROC_REF(tts_cast), speaker, src, message_tts, speaker.tts_seed, TRUE, effect, traits)

Expand Down
2 changes: 1 addition & 1 deletion modular_ss220/text_to_speech/code/providers/silero.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
api_url = "http://s2.ss220.club:9999/voice"

/datum/tts_provider/silero/vv_edit_var(var_name, var_value)
. = ..()
if(var_name == "api_url")
return FALSE
return ..()

/datum/tts_provider/silero/request(text, datum/tts_seed/silero/seed, datum/callback/proc_callback)
if(throttle_check())
Expand Down
1 change: 1 addition & 0 deletions modular_ss220/text_to_speech/code/tts_preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@
to_chat(usr, span_danger("Выбранный голос персонажа более недоступен на текущем уровне подписки!"))
client.prefs.ShowChoices(src)
return FALSE
return TRUE

0 comments on commit 56321f9

Please sign in to comment.