mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-29 08:11:11 +01:00
[MIRROR] JSON Logging Refactor (#11623)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Selis
Kashargul
parent
272afa33c8
commit
5a62077f2c
@@ -144,7 +144,7 @@
|
||||
// But in practice, it's just a way for a language to override all other languages and bypass hear_say
|
||||
// which is exactly what sign language does.
|
||||
/datum/language/sign/broadcast(var/mob/living/speaker, var/message, var/speaker_mask)
|
||||
log_say("(SIGN) [message]", speaker)
|
||||
speaker.log_talk("(SIGN) [message]", LOG_SAY)
|
||||
var/verb_to_use = pick(signlang_verb)
|
||||
speaker.say_signlang(message, verb_to_use, verb_to_use, src)
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
return (copytext(message, length(message)) == "!") ? 2 : 1
|
||||
|
||||
/datum/language/proc/broadcast(var/mob/living/speaker,var/message,var/speaker_mask)
|
||||
INVOKE_ASYNC(GLOBAL_PROC, GLOBAL_PROC_REF(log_say), "(HIVE) [message]", speaker) //CHOMP EDIT - TODO: FIX ME (selis logging pr)
|
||||
speaker.log_talk("(HIVE) [message]", LOG_SAY)
|
||||
|
||||
add_verb(speaker, /mob/proc/adjust_hive_range)
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
/mob/proc/can_speak(datum/language/speaking)
|
||||
//Prevents someone from speaking a null language.
|
||||
if(!speaking)
|
||||
log_debug("[src] attempted to speak a null language.")
|
||||
log_runtime("[src] attempted to speak a null language.")
|
||||
return 0
|
||||
|
||||
if(speaking == GLOB.all_languages["Noise"])
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
flags = WHITELISTED | SIGNLANG | NO_STUTTER //nonverbal define was not needed here, and i need to use it ~Layne
|
||||
|
||||
/datum/language/tajsign/broadcast(var/mob/living/speaker, var/message, var/speaker_mask)
|
||||
log_say("(SIGN) [message]", speaker)
|
||||
speaker.log_talk("(SIGN) [message]", LOG_SAY)
|
||||
var/verb_to_use = pick(signlang_verb)
|
||||
speaker.say_signlang(message, verb_to_use, verb_to_use, src)
|
||||
|
||||
@@ -127,8 +127,8 @@
|
||||
syllables = list("qr","qrr","xuq","qil","quum","xuqm","vol","xrim","zaoo","qu-uu","qix","qoo","zix")
|
||||
|
||||
/datum/language/skrell/get_random_name(var/gender)
|
||||
var/list/first_names = file2list('strings/names/first_name_skrell.txt')
|
||||
var/list/last_names = file2list('strings/names/last_name_skrell.txt')
|
||||
var/list/first_names = world.file2list('strings/names/first_name_skrell.txt')
|
||||
var/list/last_names = world.file2list('strings/names/last_name_skrell.txt')
|
||||
return "[pick(first_names)] [pick(last_names)]"
|
||||
|
||||
/datum/language/human
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
flags = WHITELISTED
|
||||
|
||||
/datum/language/echosong/broadcast(var/mob/living/speaker, var/message, var/speaker_mask)
|
||||
log_say("(INAUDIBLE) [message]", speaker)
|
||||
speaker.log_talk("(INAUDIBLE) [message]", LOG_SAY)
|
||||
speaker.say_signlang(format_message(message), pick(signlang_verb), pick(signlang_verb_understood), src, 2)
|
||||
|
||||
/datum/language/unathi
|
||||
|
||||
Reference in New Issue
Block a user