From 043c2a853a916a8ef3ad997c57d9c9dfde1f836c Mon Sep 17 00:00:00 2001
From: Belsima <31827220+Belsima@users.noreply.github.com>
Date: Fri, 17 Nov 2017 13:13:36 -0500
Subject: [PATCH] Adds a message to the IRC for round start.
---
code/game/gamemodes/gameticker.dm | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/code/game/gamemodes/gameticker.dm b/code/game/gamemodes/gameticker.dm
index 38316a6c50..f415542ece 100644
--- a/code/game/gamemodes/gameticker.dm
+++ b/code/game/gamemodes/gameticker.dm
@@ -43,10 +43,13 @@ var/global/datum/controller/gameticker/ticker
'sound/music/title2.ogg',\
'sound/music/clouds.s3m',\
'sound/music/space_oddity.ogg') //Ground Control to Major Tom, this song is cool, what's going on?
- do
+
+ send2mainirc("Server lobby is loaded and open at byond://[config.serverurl ? config.serverurl : (config.server ? config.server : "[world.address]:[world.port]")]")
+
+ do
pregame_timeleft = 180
- world << "Welcome to the pre-game lobby!"
- world << "Please, setup your character and select ready. Game will start in [pregame_timeleft] seconds"
+ to_chat(world, "Welcome to the pre-game lobby!")
+ to_chat(world, "Please, setup your character and select ready. Game will start in [pregame_timeleft] seconds.")
while(current_state == GAME_STATE_PREGAME)
for(var/i=0, i<10, i++)
sleep(1)
@@ -76,7 +79,7 @@ var/global/datum/controller/gameticker/ticker
if(!runnable_modes.len)
current_state = GAME_STATE_PREGAME
Master.SetRunLevel(RUNLEVEL_LOBBY)
- world << "Unable to choose playable game mode. Reverting to pre-game lobby."
+ to_chat(world, "Unable to choose playable game mode. Reverting to pre-game lobby.")
return 0
if(secret_force_mode != "secret")
src.mode = config.pick_mode(secret_force_mode)
@@ -87,11 +90,11 @@ var/global/datum/controller/gameticker/ticker
src.mode = gamemode_cache[pickweight(weighted_modes)]
else
src.mode = config.pick_mode(master_mode)
-
+
if(!src.mode)
current_state = GAME_STATE_PREGAME
Master.SetRunLevel(RUNLEVEL_LOBBY)
- world << "Serious error in mode setup! Reverting to pre-game lobby."
+ to_chat(world, "Serious error in mode setup! Reverting to pre-game lobby.")
return 0
job_master.ResetOccupations()
@@ -116,7 +119,7 @@ var/global/datum/controller/gameticker/ticker
tmpmodes+=M.name
tmpmodes = sortList(tmpmodes)
if(tmpmodes.len)
- world << "Possibilities: [english_list(tmpmodes, and_text= "; ", comma_text = "; ")]"
+ to_chat(world, "Possibilities: [english_list(tmpmodes, and_text= "; ", comma_text = "; ")]")
else
src.mode.announce()
@@ -139,7 +142,7 @@ var/global/datum/controller/gameticker/ticker
//Deleting Startpoints but we need the ai point to AI-ize people later
if (S.name != "AI")
qdel(S)
- world << "Enjoy the game!"
+ to_chat(world, "Enjoy the game!")
world << sound('sound/AI/welcome.ogg') // Skie
//Holiday Round-start stuff ~Carn
Holiday_Game_Start()
@@ -371,7 +374,7 @@ var/global/datum/controller/gameticker/ticker
//call a transfer shuttle vote
spawn(50)
if(!round_end_announced) // Spam Prevention. Now it should announce only once.
- world << "The round has ended!"
+ to_chat(world, "The round has ended!")
round_end_announced = 1
vote.autotransfer()