Merge pull request #15352 from Runa-Dacino/motdrespawn

Tweaks RESPAWN MESSAGE to appear AFTER the MOTD, makes Quit the Round more clear
This commit is contained in:
Heroman3003
2023-09-05 15:50:05 +10:00
committed by GitHub
3 changed files with 12 additions and 4 deletions
+5 -2
View File
@@ -366,7 +366,9 @@
if(choice == "No, wait")
return
else if(mind.assigned_role)
var/extra_check = tgui_alert(usr, "Do you want to Quit This Round before you return to lobby? This will properly remove you from manifest, as well as prevent resleeving.","Quit This Round",list("Quit Round","Cancel"))
var/extra_check = tgui_alert(usr, "Do you want to Quit This Round before you return to lobby?\
This will properly remove you from manifest, as well as prevent resleeving. BEWARE: Pressing 'NO' will STILL return you to lobby!",
"Quit This Round",list("Quit Round","No"))
if(extra_check == "Quit Round")
//Update any existing objectives involving this mob.
for(var/datum/objective/O in all_objectives)
@@ -406,7 +408,6 @@
to_chat(src,"<span class='notice'>Your job has been free'd up, and you can rejoin as another character or quit. Thanks for properly quitting round, it helps the server!</span>")
// Beyond this point, you're going to respawn
to_chat(usr, config.respawn_message)
if(!client)
log_game("[usr.key] AM failed due to disconnect.")
@@ -425,7 +426,9 @@
qdel(M)
return
M.has_respawned = TRUE //When we returned to main menu, send respawn message
M.key = key
if(M.mind)
M.mind.reset()
return
+6 -2
View File
@@ -31,6 +31,10 @@ var/obj/effect/lobby_image = new /obj/effect/lobby_image
if(join_motd)
to_chat(src, "<div class=\"motd\">[join_motd]</div>")
if(has_respawned)
to_chat(usr, config.respawn_message)
has_respawned = FALSE
if(!mind)
mind = new /datum/mind(key)
mind.active = 1
@@ -53,7 +57,7 @@ var/obj/effect/lobby_image = new /obj/effect/lobby_image
/mob/new_player/proc/version_warnings()
var/problems // string to store message to present to player as a problem
// TODO: Move this to a config file at some point maybe? What would the structure of that look like?
switch(client.byond_build)
// http://www.byond.com/forum/post/2711510
@@ -62,7 +66,7 @@ var/obj/effect/lobby_image = new /obj/effect/lobby_image
// http://www.byond.com/forum/post/2711748
if(1562 to 1563)
problems = "frequent known crashes related to animations"
// Don't have a thread, just a lot of player reports.
if(1564 to 1565) // Fixed in 1566 which isn't released as of this commit
if(world.byond_build == 1564)
@@ -6,6 +6,7 @@
var/totalPlayers = 0 //Player counts for the Lobby tab
var/totalPlayersReady = 0
var/show_hidden_jobs = 0 //Show jobs that are set to "Never" in preferences
var/has_respawned = FALSE //Determines if we're using RESPAWN_MESSAGE
var/datum/browser/panel
universal_speak = 1