mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 15:01:04 +01:00
Singing Fix (#11733)
This commit is contained in:
@@ -78,6 +78,7 @@
|
||||
desc = "A signed version of Ceti Basic, though its intent is primarily to help out people who are deaf and mute, "
|
||||
speech_verb = list("signs")
|
||||
signlang_verb = list("signs", "gestures")
|
||||
sing_verb = null
|
||||
colour = "i"
|
||||
key = "4"
|
||||
flags = NO_STUTTER|SIGNLANG
|
||||
|
||||
@@ -53,6 +53,8 @@
|
||||
if(LAZYACCESS(partial_understanding, L.name))
|
||||
understand_chance += partial_understanding[L.name]
|
||||
|
||||
var/static/list/music_notes = list("\u2669", "\u266A", "\u266B")
|
||||
|
||||
var/list/words = splittext(input, " ")
|
||||
var/list/scrambled_text = list()
|
||||
var/new_sentence = 0
|
||||
@@ -60,7 +62,7 @@
|
||||
var/nword = "[w] "
|
||||
var/input_ending = copytext(w, length(w))
|
||||
var/ends_sentence = findtext(".?!",input_ending)
|
||||
if(!prob(understand_chance))
|
||||
if(!prob(understand_chance) && !(w in music_notes))
|
||||
nword = scramble_word(w)
|
||||
if(new_sentence)
|
||||
nword = capitalize(nword)
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
desc = "A sign language developed by Adhomai hunters"
|
||||
speech_verb = list("signs")
|
||||
signlang_verb = list("signs", "flicks their ears", "gestures")
|
||||
sing_verb = null
|
||||
colour = "i"
|
||||
key = "i"
|
||||
flags = NO_STUTTER | SIGNLANG | WHITELISTED
|
||||
|
||||
@@ -203,7 +203,8 @@ proc/get_radio_key_from_channel(var/channel)
|
||||
var/is_singing = FALSE
|
||||
if(length(message) >= 1 && copytext(message, 1, 2) == "%")
|
||||
message = copytext(message, 2)
|
||||
is_singing = TRUE
|
||||
if(speaking?.sing_verb)
|
||||
is_singing = TRUE
|
||||
|
||||
// This is broadcast to all mobs with the language,
|
||||
// irrespective of distance or anything else.
|
||||
|
||||
Reference in New Issue
Block a user