Refactors language holder (#48106)

* Language holder refactor

* Ironed out bugs, testing

* adds sourced language, blocking list. more useful helpers.

* Replaced old usage

* Adresses requests

* Autodoc attempt #1

* Fixed monkeyize (again)

* Travis happy

* Language menu updated

* Final pass
This commit is contained in:
skoglol
2019-12-18 22:22:12 +01:00
committed by AnturK
parent 2e1d2db862
commit 4a487ca803
54 changed files with 533 additions and 340 deletions
+3 -3
View File
@@ -41,8 +41,8 @@
UnregisterSignal(M, COMSIG_MOB_SAY, .proc/handle_speech)
M.RegisterSignal(M, COMSIG_MOB_SAY, /mob/living/carbon/.proc/handle_tongueless_speech)
/obj/item/organ/tongue/could_speak_in_language(datum/language/dt)
return is_type_in_typecache(dt, languages_possible)
/obj/item/organ/tongue/could_speak_language(language)
return is_type_in_typecache(language, languages_possible)
/obj/item/organ/tongue/lizard
name = "forked tongue"
@@ -215,7 +215,7 @@
modifies_speech = TRUE
taste_sensitivity = 25 // not as good as an organic tongue
/obj/item/organ/tongue/robot/can_speak_in_language(datum/language/dt)
/obj/item/organ/tongue/robot/can_speak_language(language)
return TRUE // THE MAGIC OF ELECTRONICS
/obj/item/organ/tongue/robot/handle_speech(datum/source, list/speech_args)