Files
CHOMPStation2/code/game/status.dm

62 lines
1.3 KiB
Plaintext

/world/proc/update_status()
var/s = ""
if (config && config.server_name)
s += "<b>[config.server_name]</b> &#8212; "
s += "<b>[station_name()]</b>";
s += " ("
s += "<a href=\"http://ss13.lljk.net/\">"
s += "[game_version]"
s += "</a>"
s += ")"
var/list/features = list()
if (!ticker)
features += "<b>STARTING</b>"
if (ticker && master_mode)
features += master_mode
if (config && config.enable_authentication)
features += "goon only"
if (!enter_allowed)
features += "closed"
if (abandon_allowed)
features += abandon_allowed ? "respawn" : "no respawn"
if (config && config.allow_vote_mode)
features += "vote"
if (config && config.allow_ai)
features += "AI allowed"
var/n = 0
for (var/mob/M in world)
if (M.client)
n++
if (n > 1)
features += "~[n] players"
else if (n > 0)
features += "~[n] player"
/*
is there a reason for this? the byond site shows 'hosted by X' when there is a proper host already.
if (host)
features += "hosted by <b>[host]</b>"
*/
if (!host && config && config.hostedby)
features += "hosted by <b>[config.hostedby]</b>"
if (features)
s += ": [dd_list2text(features, ", ")]"
/* does this help? I do not know */
if (src.status != s)
src.status = s