Skip to content

Commit

Permalink
Толстая надпись в хабе. (TauCetiStation#13655)
Browse files Browse the repository at this point in the history
* Первая итерация

Начало

* Update world.dm

* Update code/game/world.dm

Co-authored-by: KIBORG04 <bossmira4@gmail.com>

---------

Co-authored-by: KIBORG04 <bossmira4@gmail.com>
  • Loading branch information
DarthSidiousPalpatine and KIBORG04 authored Nov 29, 2024
1 parent f82b0e4 commit 028a61b
Showing 1 changed file with 12 additions and 43 deletions.
55 changes: 12 additions & 43 deletions code/game/world.dm
Original file line number Diff line number Diff line change
Expand Up @@ -480,57 +480,26 @@ var/global/shutdown_processed = FALSE
/world/proc/update_status()
var/s = ""

if (config && config.server_name)
s += "<b>[config.server_name]</b> &#8212; "

s += "<b>[station_name()]</b>";

if (config && config.siteurl)
s += " ("
s += "<a href=\"[config.siteurl]\">" //Change this to wherever you want the hub to link to.
s += "site" //Replace this with something else. Or ever better, delete it and uncomment the game version.
s += "</a>"
s += ")"

var/list/features = list()

if(SSticker)
if(master_mode)
features += master_mode
else
features += "<b>STARTING</b>"
s += "<a href=\"[config.siteurl]\">"

if (LAZYACCESS(SSlag_switch.measures, DISABLE_NON_OBSJOBS))
features += "closed"
s += "<b>"

features += abandon_allowed ? "respawn" : "no respawn"

if (config && config.allow_ai)
features += "AI allowed"
if (config && config.server_name)
s += "[config.server_name] &#8212; "

var/n = 0
for (var/mob/M in player_list)
if (M.client)
n++
s += "[station_name()]</b>"

if (n > 1)
features += "~[n] players"
else if (n > 0)
features += "~[n] player"
if (config && config.siteurl)
s += "</a>";

/*
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>"
*/
s += "<br>Roleplay: <b>Medium</b>"

if (!host && config && config.hostedby)
features += "hosted by <b>[config.hostedby]</b>"
s += "<br>Round Duration: <b>[roundduration2text()]</b>"

if (features)
s += ": [jointext(features, ", ")]"
if (config && config.changelog_link)
s += "<br><a href=\"[config.changelog_link]\">Recent changes</a>"

/* does this help? I do not know */
if (src.status != s)
src.status = s

Expand Down Expand Up @@ -662,7 +631,7 @@ var/global/failed_db_connections = 0

packet_data["secret"] = "SECRET"
log_href("WTOPIC: NET ANNOUNCE: \"[list2params(packet_data)]\", from:[sender]")

return proccess_net_announce(packet_data["type"], packet_data, sender)

/world/proc/proccess_net_announce(type, list/data, sender)
Expand Down

0 comments on commit 028a61b

Please sign in to comment.