Audible emotes can be used again

This commit is contained in:
Anewbe
2019-01-18 16:57:12 -06:00
parent 3b2570d3c9
commit ff0fd7db8a
2 changed files with 15 additions and 8 deletions
+3
View File
@@ -18,6 +18,9 @@
// if you make a loud noise (screams etc), you'll be heard from 4 tiles over instead of two
return (copytext(message, length(message)) == "!") ? 4 : 2
/datum/language/noise/can_speak_special(var/mob/speaker)
return TRUE //Audible emotes
// 'basic' language; spoken by default.
/datum/language/common
name = LANGUAGE_GALCOM
+12 -8
View File
@@ -134,14 +134,15 @@
/datum/language/proc/can_speak_special(var/mob/speaker)
. = TRUE
if(ishuman(speaker))
var/mob/living/carbon/human/H = speaker
if(src.name in H.species.assisted_langs)
. = FALSE
var/obj/item/organ/internal/voicebox/vox = locate() in H.internal_organs // Only voiceboxes for now. Maybe someday it'll include other organs, but I'm not that clever
if(vox)
if(!vox.is_broken() && (src in vox.assists_languages))
. = TRUE
if(name != "Noise") // Audible Emotes
if(ishuman(speaker))
var/mob/living/carbon/human/H = speaker
if(src.name in H.species.assisted_langs)
. = FALSE
var/obj/item/organ/internal/voicebox/vox = locate() in H.internal_organs // Only voiceboxes for now. Maybe someday it'll include other organs, but I'm not that clever
if(vox)
if(!vox.is_broken() && (src in vox.assists_languages))
. = TRUE
// Language handling.
/mob/proc/add_language(var/language)
@@ -172,6 +173,9 @@
log_debug("[src] attempted to speak a null language.")
return 0
if(speaking == all_languages["Noise"])
return 1
if (only_species_language && speaking != all_languages[species_language])
return 0