Skip to content

Commit

Permalink
make world status use config values (#2609)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZephyrTFA authored Dec 28, 2023
1 parent 9f2b3cd commit fd832d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"**/.pnp.*": true
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"files.insertFinalNewline": true,
"gitlens.advanced.blame.customArguments": ["-w"],
"tgstationTestExplorer.project.resultsType": "json",
"[python]": {
"gitlens.codeLens.symbolScopes": ["!Module"],
"editor.wordBasedSuggestions": false,
"editor.wordBasedSuggestions": "off",
"editor.insertSpaces": true,
"editor.tabSize": 4
},
Expand Down
13 changes: 11 additions & 2 deletions code/game/world.dm
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,23 @@ GLOBAL_VAR(restart_counter)
features += "AI allowed"
hostedby = CONFIG_GET(string/hostedby)

var/discord_url
var/github_url
if(isnull(config))
discord_url = "https://shiptest.net/discord"
github_url = "https://github.com/shiptest-ss13/Shiptest"
else
discord_url = CONFIG_GET(string/discordurl)
github_url = CONFIG_GET(string/githuburl)

s += "<b>[station_name()]</b>";
s += " ("
s += "<a href=\"https://shiptest.net/discord\">" //Change this to wherever you want the hub to link to.
s += "<a href=\"[discord_url]\">" //Change this to wherever you want the hub to link to.
s += "Discord" //Replace this with something else. Or ever better, delete it and uncomment the game version.
s += "</a>"
s += ")"
s += " ("
s += "<a href=\"https://github.com/shiptest-ss13/Shiptest\">"
s += "<a href=\"[github_url]\">"
s += "Github"
s += "</a>"
s += ")"
Expand Down

0 comments on commit fd832d6

Please sign in to comment.