mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
Shortens Hub Entry Descriptors (#68186)
This commit is contained in:
+6
-21
@@ -307,32 +307,17 @@ GLOBAL_VAR(restart_counter)
|
||||
var/server_name = CONFIG_GET(string/servername)
|
||||
if (server_name)
|
||||
s += "<b>[server_name]</b> "
|
||||
features += "[CONFIG_GET(flag/norespawn) ? "no " : ""]respawn"
|
||||
if(CONFIG_GET(flag/allow_ai))
|
||||
features += "AI allowed"
|
||||
if(!CONFIG_GET(flag/norespawn))
|
||||
features += "respawn"
|
||||
if(!CONFIG_GET(flag/allow_ai))
|
||||
features += "AI disabled"
|
||||
hostedby = CONFIG_GET(string/hostedby)
|
||||
|
||||
if (CONFIG_GET(flag/station_name_in_hub_entry))
|
||||
s += " — <b>[station_name()]</b>"
|
||||
|
||||
s += " ("
|
||||
s += "<a href=\"http://\">" //Change this to wherever you want the hub to link to.
|
||||
s += "Default" //Replace this with something else. Or ever better, delete it and uncomment the game version.
|
||||
s += "</a>"
|
||||
s += ")"
|
||||
|
||||
var/players = GLOB.clients.len
|
||||
|
||||
var/popcaptext = ""
|
||||
var/popcap = max(CONFIG_GET(number/extreme_popcap), CONFIG_GET(number/hard_popcap), CONFIG_GET(number/soft_popcap))
|
||||
if (popcap)
|
||||
popcaptext = "/[popcap]"
|
||||
|
||||
if (players > 1)
|
||||
features += "[players][popcaptext] players"
|
||||
else if (players > 0)
|
||||
features += "[players][popcaptext] player"
|
||||
|
||||
game_state = (CONFIG_GET(number/extreme_popcap) && players >= CONFIG_GET(number/extreme_popcap)) //tells the hub if we are full
|
||||
|
||||
if (!host && hostedby)
|
||||
@@ -341,10 +326,10 @@ GLOBAL_VAR(restart_counter)
|
||||
if (features)
|
||||
s += ": [jointext(features, ", ")]"
|
||||
|
||||
s += "<br>Round time: <b>[gameTimestamp("hh:mm")]</b>"
|
||||
s += "<br>Time: <b>[gameTimestamp("hh:mm")]</b>"
|
||||
if(SSmapping.config)
|
||||
s += "<br>Map: <b>[SSmapping.config.map_path == CUSTOM_MAP_PATH ? "Uncharted Territory" : SSmapping.config.map_name]</b>"
|
||||
s += "<br>Alert level: <b>[capitalize(SSsecurity_level.get_current_level_as_text())]</b>"
|
||||
s += "<br>Alert: <b>[capitalize(SSsecurity_level.get_current_level_as_text())]</b>"
|
||||
|
||||
status = s
|
||||
|
||||
|
||||
Reference in New Issue
Block a user