Skip to content

Commit

Permalink
Merge branch 'master' into merge-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
AyIong committed Nov 5, 2024
2 parents 8f2252b + 78ac77b commit a148404
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/living/default_language.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
11 changes: 6 additions & 5 deletions code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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(..())
Expand All @@ -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")
Expand Down

0 comments on commit a148404

Please sign in to comment.