respawn limit removed

you can now respawn as the same character
This commit is contained in:
GDLW
2023-05-09 16:03:21 +02:00
parent f91cd25b64
commit e6679878b3
2 changed files with 11 additions and 7 deletions
@@ -122,9 +122,11 @@
LateChoices()
return
if(client.prefs.real_name in client.pastcharacters) //if character has been spawned before
to_chat(usr, "<span class='notice'>You have played that character before this round, please select a new one!</span>")
return
// if(client.prefs.real_name in client.pastcharacters) //if character has been spawned before
// to_chat(usr, "<span class='notice'>You have played that character before this round, please select a new one!</span>")
// return
//GS13 - commented it out to allow players to rejoin
if(SSticker.queued_players.len || (relevant_cap && living_player_count() >= relevant_cap && !(ckey(key) in GLOB.admin_datums)))
to_chat(usr, "<span class='danger'>[CONFIG_GET(string/hard_popcap_message)]</span>")
+6 -4
View File
@@ -451,10 +451,12 @@ mob/visible_message(message, self_message, blind_message, vision_distance = DEFA
//if they didnt join as a observer, add their name to the past character list so they cannot play them again.
if(!usr.client.respawn_observing)
var/responserespawn = alert(src,"If you respawn now, you cannot rejoin the game as your current character! Are you sure you want to respawn?","Warning","Yes","No")
if(responserespawn != "Yes")
return
usr.client.pastcharacters += usr.real_name
var/responserespawn = alert(src,"Are you sure you want to respawn?","Warning","Yes","No")
// if(responserespawn != "Yes")
// return
// usr.client.pastcharacters += usr.real_name
//GS13 - commented out to allow players to rejoin with the same char
if(!client)
log_game("[key_name(usr)] AM failed due to disconnect.")