mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Moves languages to a holder datum, gives mind its own language holder (#26776)
* Ghosts now have a language menu 🆑 coiax add: Ghosts can now modify their own understood languages with the language menu. /🆑 - Language menu is now on /atom/movable, and can be opened by any atom with the `open_language_menu` proc. - Used for testing, and simulating what various station members hear. * Language holders, I * Language holder, II * Dos line endings * MIND LANGUAGES * Fixes some mobs not having language holders in their minds * Shadow languages * How did you lose the holder? * Mob level IC->Open Language Menu verb * Gives draconic to silicons * Lazy breeki * Use of pre-initialized global lists for languages * Fixes bugs with lazy holders
This commit is contained in:
@@ -1799,12 +1799,12 @@
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
var/mob/living/L = locate(href_list["languagemenu"]) in GLOB.mob_list
|
||||
if(!isliving(L))
|
||||
to_chat(usr, "This can only be used on instances of type /mob/living.")
|
||||
var/mob/M = locate(href_list["languagemenu"]) in GLOB.mob_list
|
||||
if(!ismob(M))
|
||||
to_chat(usr, "This can only be used on instances of type /mob.")
|
||||
return
|
||||
|
||||
L.open_language_menu(usr)
|
||||
var/datum/language_holder/H = M.get_language_holder()
|
||||
H.open_language_menu(usr)
|
||||
|
||||
else if(href_list["traitor"])
|
||||
if(!check_rights(R_ADMIN))
|
||||
|
||||
Reference in New Issue
Block a user