Adds a message to the IRC for round start.

This commit is contained in:
Belsima
2017-11-17 13:13:36 -05:00
committed by GitHub
parent b72faa1dac
commit 043c2a853a

View File

@@ -43,10 +43,13 @@ var/global/datum/controller/gameticker/ticker
'sound/music/title2.ogg',\ 'sound/music/title2.ogg',\
'sound/music/clouds.s3m',\ 'sound/music/clouds.s3m',\
'sound/music/space_oddity.ogg') //Ground Control to Major Tom, this song is cool, what's going on? '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 pregame_timeleft = 180
world << "<B><FONT color='blue'>Welcome to the pre-game lobby!</FONT></B>" to_chat(world, "<B><FONT color='blue'>Welcome to the pre-game lobby!</FONT></B>")
world << "Please, setup your character and select ready. Game will start in [pregame_timeleft] seconds" to_chat(world, "Please, setup your character and select ready. Game will start in [pregame_timeleft] seconds.")
while(current_state == GAME_STATE_PREGAME) while(current_state == GAME_STATE_PREGAME)
for(var/i=0, i<10, i++) for(var/i=0, i<10, i++)
sleep(1) sleep(1)
@@ -76,7 +79,7 @@ var/global/datum/controller/gameticker/ticker
if(!runnable_modes.len) if(!runnable_modes.len)
current_state = GAME_STATE_PREGAME current_state = GAME_STATE_PREGAME
Master.SetRunLevel(RUNLEVEL_LOBBY) Master.SetRunLevel(RUNLEVEL_LOBBY)
world << "<B>Unable to choose playable game mode.</B> Reverting to pre-game lobby." to_chat(world, "<B>Unable to choose playable game mode.</B> Reverting to pre-game lobby.")
return 0 return 0
if(secret_force_mode != "secret") if(secret_force_mode != "secret")
src.mode = config.pick_mode(secret_force_mode) 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)] src.mode = gamemode_cache[pickweight(weighted_modes)]
else else
src.mode = config.pick_mode(master_mode) src.mode = config.pick_mode(master_mode)
if(!src.mode) if(!src.mode)
current_state = GAME_STATE_PREGAME current_state = GAME_STATE_PREGAME
Master.SetRunLevel(RUNLEVEL_LOBBY) Master.SetRunLevel(RUNLEVEL_LOBBY)
world << "<span class='danger'>Serious error in mode setup!</span> Reverting to pre-game lobby." to_chat(world, "<span class='danger'>Serious error in mode setup!</span> Reverting to pre-game lobby.")
return 0 return 0
job_master.ResetOccupations() job_master.ResetOccupations()
@@ -116,7 +119,7 @@ var/global/datum/controller/gameticker/ticker
tmpmodes+=M.name tmpmodes+=M.name
tmpmodes = sortList(tmpmodes) tmpmodes = sortList(tmpmodes)
if(tmpmodes.len) if(tmpmodes.len)
world << "<B>Possibilities:</B> [english_list(tmpmodes, and_text= "; ", comma_text = "; ")]" to_chat(world, "<B>Possibilities:</B> [english_list(tmpmodes, and_text= "; ", comma_text = "; ")]")
else else
src.mode.announce() 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 //Deleting Startpoints but we need the ai point to AI-ize people later
if (S.name != "AI") if (S.name != "AI")
qdel(S) qdel(S)
world << "<FONT color='blue'><B>Enjoy the game!</B></FONT>" to_chat(world, "<FONT color='blue'><B>Enjoy the game!</B></FONT>")
world << sound('sound/AI/welcome.ogg') // Skie world << sound('sound/AI/welcome.ogg') // Skie
//Holiday Round-start stuff ~Carn //Holiday Round-start stuff ~Carn
Holiday_Game_Start() Holiday_Game_Start()
@@ -371,7 +374,7 @@ var/global/datum/controller/gameticker/ticker
//call a transfer shuttle vote //call a transfer shuttle vote
spawn(50) spawn(50)
if(!round_end_announced) // Spam Prevention. Now it should announce only once. if(!round_end_announced) // Spam Prevention. Now it should announce only once.
world << "<span class='danger'>The round has ended!</span>" to_chat(world, "<span class='danger'>The round has ended!</span>")
round_end_announced = 1 round_end_announced = 1
vote.autotransfer() vote.autotransfer()