mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 12:37:50 +01:00
refactors most spans
This commit is contained in:
@@ -6,20 +6,20 @@
|
||||
set category = "IC"
|
||||
|
||||
if (only_species_language && language != GLOB.all_languages[src.species_language])
|
||||
to_chat(src, "<span class='notice'>You can only speak your species language, [src.species_language].</span>")
|
||||
to_chat(src, span_notice("You can only speak your species language, [src.species_language]."))
|
||||
return 0
|
||||
|
||||
if(language == GLOB.all_languages[src.species_language])
|
||||
to_chat(src, "<span class='notice'>You will now speak your standard default language, [language ? language : "common"], if you do not specify a language when speaking.</span>")
|
||||
to_chat(src, span_notice("You will now speak your standard default language, [language ? language : "common"], if you do not specify a language when speaking."))
|
||||
else if (language)
|
||||
|
||||
if(language && !can_speak(language))
|
||||
to_chat(src, "<span class='notice'>You are unable to speak that language.</span>")
|
||||
to_chat(src, span_notice("You are unable to speak that language."))
|
||||
return
|
||||
|
||||
to_chat(src, "<span class='notice'>You will now speak [language] if you do not specify a language when speaking.</span>")
|
||||
to_chat(src, span_notice("You will now speak [language] if you do not specify a language when speaking."))
|
||||
else
|
||||
to_chat(src, "<span class='notice'>You will now speak whatever your standard default language is if you do not specify one when speaking.</span>")
|
||||
to_chat(src, span_notice("You will now speak whatever your standard default language is if you do not specify one when speaking."))
|
||||
default_language = language
|
||||
|
||||
// Silicons can't neccessarily speak everything in their languages list
|
||||
@@ -31,6 +31,6 @@
|
||||
set category = "IC"
|
||||
|
||||
if(default_language)
|
||||
to_chat(src, "<span class='notice'>You are currently speaking [default_language] by default.</span>")
|
||||
to_chat(src, span_notice("You are currently speaking [default_language] by default."))
|
||||
else
|
||||
to_chat(src, "<span class='notice'>Your current default language is your species or mob type default.</span>")
|
||||
to_chat(src, span_notice("Your current default language is your species or mob type default."))
|
||||
|
||||
Reference in New Issue
Block a user