refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
+7 -7
View File
@@ -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."))