Login loss prevention v1

This commit is contained in:
Archie
2021-09-23 19:37:06 -03:00
parent d0070cdab2
commit d20013cfe4
26 changed files with 92 additions and 29 deletions
+3 -1
View File
@@ -77,7 +77,9 @@
var/datum/action/innate/imaginary_hide/hide
/mob/camera/imaginary_friend/Login()
..()
. = ..()
if(!. || !client)
return FALSE
greet()
Show()
@@ -138,7 +138,9 @@
..()
/mob/living/split_personality/Login()
..()
. = ..()
if(!. || !client)
return FALSE
to_chat(src, "<span class='notice'>As a split personality, you cannot do anything but observe. However, you will eventually gain control of your body, switching places with the current personality.</span>")
to_chat(src, "<span class='warning'><b>Do not commit suicide or put the body in a deadly position. Behave like you care about it as much as the owner.</b></span>")
@@ -214,7 +216,9 @@
var/codeword
/mob/living/split_personality/traitor/Login()
..()
. = ..()
if(!. || !client)
return FALSE
to_chat(src, "<span class='notice'>As a brainwashed personality, you cannot do anything yet but observe. However, you may gain control of your body if you hear the special codeword, switching places with the current personality.</span>")
to_chat(src, "<span class='notice'>Your activation codeword is: <b>[codeword]</b></span>")
if(objective)
+2
View File
@@ -68,6 +68,8 @@
var/list/learned_recipes //List of learned recipe TYPES.
var/reEnterCooldown = 0 //This was created to prevent players from deleting their own bodies when the server can't keep up with them and they're trying to re-enter/exit their corpse too quickly.
/datum/mind/New(var/key)
src.key = key
soulOwner = src