Fixes flavor text not being viewable (#27245)

* yeah

* fun
This commit is contained in:
Contrabang
2024-11-05 13:11:32 +00:00
committed by GitHub
parent 12cb55d4f8
commit 78ac77b53b
2 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
set name = "Set Default Language"
set category = "IC"
if(!(language in languages))
if(!(language in languages) && !isnull(language))
to_chat(src, "<span class='warning'>You don't seem to know how to speak [language].</span>")
return
if(language)
@@ -16,7 +16,7 @@
set name = "Set Default Language"
set category = "IC"
if(!(language in speech_synthesizer_langs))
if(!(language in speech_synthesizer_langs) && !isnull(language))
to_chat(src, "<span class='warning'>You don't seem to know how to speak [language].</span>")
return
if(language)
+6 -5
View File
@@ -792,6 +792,12 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
src:cameraFollow = null
/mob/Topic(href, href_list)
if(href_list["flavor_more"])
usr << browse(text("<html><meta charset='utf-8'><head><title>[]</title></head><body><tt>[]</tt></body></html>", name, replacetext(flavor_text, "\n", "<br>")), "window=[name];size=500x200")
onclose(usr, "[name]")
if(href_list["flavor_change"])
update_flavor_text()
if(usr != src)
return TRUE
if(..())
@@ -801,11 +807,6 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
unset_machine()
src << browse(null, t1)
if(href_list["flavor_more"])
usr << browse(text("<html><meta charset='utf-8'><head><title>[]</title></head><body><tt>[]</tt></body></html>", name, replacetext(flavor_text, "\n", "<br>")), "window=[name];size=500x200")
onclose(usr, "[name]")
if(href_list["flavor_change"])
update_flavor_text()
if(href_list["scoreboard"])
usr << browse(GLOB.scoreboard, "window=roundstats;size=500x600")