[MIRROR] Unit Test rework & Master/Ticker update (#11372)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
Co-authored-by: C.L. <killer65311@gmail.com>
This commit is contained in:
Selis
2025-08-12 08:46:46 +02:00
committed by GitHub
co-authored by Kashargul C.L.
parent 0ab6069dcb
commit 386c4f6756
390 changed files with 10560 additions and 5777 deletions
+8
View File
@@ -209,6 +209,14 @@
/client/proc/_Topic(datum/hsrc, href, list/href_list)
return hsrc.Topic(href, href_list)
/client/proc/is_localhost()
var/static/localhost_addresses = list(
"127.0.0.1",
"::1",
null,
)
return address in localhost_addresses
//This stops files larger than UPLOAD_LIMIT being sent from client to server via input(), client.Import() etc.
/client/AllowUpload(filename, filelength)
if(filelength > UPLOAD_LIMIT)
@@ -49,9 +49,9 @@
var/firstspace = findtext(pref.real_name, " ")
var/name_length = length(pref.real_name)
if(!firstspace) //we need a surname
pref.real_name += " [pick(last_names)]"
pref.real_name += " [pick(GLOB.last_names)]"
else if(firstspace == name_length)
pref.real_name += "[pick(last_names)]"
pref.real_name += "[pick(GLOB.last_names)]"
character.real_name = pref.real_name
character.name = character.real_name
+2 -2
View File
@@ -429,9 +429,9 @@ var/list/preferences_datums = list()
var/firstspace = findtext(real_name, " ")
var/name_length = length(real_name)
if(!firstspace) //we need a surname
real_name += " [pick(last_names)]"
real_name += " [pick(GLOB.last_names)]"
else if(firstspace == name_length)
real_name += "[pick(last_names)]"
real_name += "[pick(GLOB.last_names)]"
character.real_name = real_name
character.name = character.real_name
if(character.dna)
@@ -127,3 +127,9 @@
INVOKE_ASYNC(client, TYPE_VERB_REF(/client, refresh_tgui))
client.tgui_say?.load()
/// Enables flashing the window in your task tray for important events
/datum/preference/toggle/window_flashing
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "windowflashing"
savefile_identifier = PREFERENCE_PLAYER
+2 -2
View File
@@ -7,7 +7,7 @@
to_chat(src, "You're already dead!")
return
if (!ticker)
if (!SSticker)
to_chat(src, "You can't commit suicide before the game starts!")
return
@@ -21,7 +21,7 @@
to_chat(src, "You're already dead!")
return
if (!ticker)
if (!SSticker)
to_chat(src, "You can't commit suicide before the game starts!")
return