[MIRROR] Fixes the logging text on respawn to correctly say it's respawn instead of "abandon mob" (#8379)

* Fixes the logging text on respawn to correctly say it's respawn instead of "abandon mob"

* Update mob.dm

Co-authored-by: Iamgoofball <iamgoofball@gmail.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-09-25 01:22:16 +02:00
committed by GitHub
parent dce39e27e1
commit c459200e7c
+6 -5
View File
@@ -693,27 +693,28 @@
to_chat(usr, span_boldnotice("You must be dead to use this!"))
return
//SKYRAT EDIT ADDITION
if(ckey)
if(is_banned_from(ckey, BAN_RESPAWN))
to_chat(usr, "<span class='boldnotice'>You are respawn banned, you can't respawn!</span>")
return
log_game("[key_name(usr)] used abandon mob.")
//SKYRAT EDIT END
log_game("[key_name(usr)] used the respawn button.")
to_chat(usr, span_boldnotice("Please roleplay correctly!"))
if(!client)
log_game("[key_name(usr)] AM failed due to disconnect.")
log_game("[key_name(usr)] respawn failed due to disconnect.")
return
client.screen.Cut()
client.screen += client.void
if(!client)
log_game("[key_name(usr)] AM failed due to disconnect.")
log_game("[key_name(usr)] respawn failed due to disconnect.")
return
var/mob/dead/new_player/M = new /mob/dead/new_player()
if(!client)
log_game("[key_name(usr)] AM failed due to disconnect.")
log_game("[key_name(usr)] respawn failed due to disconnect.")
qdel(M)
return