This commit is contained in:
silicons
2020-12-21 00:28:03 -07:00
parent 97824f4030
commit 7da6979b54
2 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@
config_entry_value = FALSE
/// Minutes from roundstart before someone can respawn
/datum/config_entry/flag/respawn_minimum_delay_roundstart
/datum/config_entry/number/respawn_minimum_delay_roundstart
config_entry_value = 30.0
integer = FALSE

View File

@@ -122,12 +122,12 @@
to_chat(src, "<span class='danger'>You cannot respawn as you have enabled DNR.</span>")
return
var/roundstart_timeleft = world.time - (SSticker.round_start_time + (CONFIG_GET(number/respawn_minimum_delay_roundstart) * 600))
var/roundstart_timeleft = (SSticker.round_start_time + (CONFIG_GET(number/respawn_minimum_delay_roundstart) * 600)) - world.time
if(roundstart_timeleft > 0)
to_chat(src, "<span class='warning'>It's been too short of a time since the round started! Please wait [CEILING(roundstart_timeleft / 600, 0.1)] more minutes.</span>")
return
var/list/modes = CONFIG_GET(keyed_list/respawn_chaos_gamemodes)
var/list/banned_modes = CONFIG_GET(keyed_list/respawn_chaos_gamemodes)
if(SSticker.mode && banned_modes[lowertext(SSticker.mode.config_tag)])
to_chat(src, "<span class='warning'>The current mode tag, [SSticker.mode.config_tag], is not eligible for respawn.</span>")
return