Fixes spawning as a mouse before the round starts (#31977)

Co-authored-by: kanef <kanef9x@protonmail.com>
This commit is contained in:
kane-f
2022-02-06 04:24:04 +00:00
committed by GitHub
parent eff171e1e3
commit b3775a82fa

View File

@@ -141,6 +141,9 @@
timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss")
to_chat(src, "<span class='warning'>You may only spawn again as a mouse more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left.</span>")
return
if(!world.has_round_started())
to_chat(src, "<span class='warning'>The game has not started yet.</span>")
return
var/response = alert(src, "Are you -sure- you want to become a mouse?","Are you sure you want to squeek?","Squeek!","Nope!")
if(response != "Squeek!")
@@ -498,6 +501,9 @@
timedifference_text = time2text(mouse_respawn_time * 600 - timedifference,"mm:ss")
to_chat(src, "<span class='warning'>You may only spawn again as a mouse or MoMMI more than [mouse_respawn_time] minutes after your death. You have [timedifference_text] left.</span>")
return
if(!world.has_round_started())
to_chat(src, "<span class='warning'>The game has not started yet.</span>")
return
//find a viable mouse candidate
var/list/found_spawners = list()