Small oversight fix

This commit is contained in:
Sharkmare
2023-03-09 19:39:01 +01:00
parent 2a4209c2bd
commit 0f512330b3
2 changed files with 5 additions and 1 deletions

View File

@@ -226,6 +226,9 @@
else if(href_list["voice_test"])
var/sound/S = pick(pref.voice_sound)
if(pref.voice_sound)
S = sound(pick(get_talk_sound(pref.voice_sound))) //CHOMPADD: Global Voicegetter
/*CHOMPREMOVAL: redundant list
switch(pref.voice_sound)
if("beep-boop")
S = sound(pick(talk_sound))
@@ -255,6 +258,7 @@
S = sound(pick(goon_speak_roach_sound))
if("goon speak skelly")
S = sound(pick(goon_speak_skelly_sound))
*/
S.frequency = pick(pref.voice_freq)
S.volume = 50
SEND_SOUND(user, S)

View File

@@ -51,7 +51,7 @@ var/list/talk_sound_map = rlist(
for(i = 1, i <= LAZYLEN(keys), i++)
to_chat(world,keys[i])
rlist[1] += keys[i]
rlist[2] += values[i]
rlist[2][keys[i]] = values[i]
rlist += TRUE
rlist += i
return rlist